Commit f04bb50e authored by Ruslan Makhmatkhanov's avatar Ruslan Makhmatkhanov
Browse files

zope: Remove leaf zope ports that have no sense in absence of zope itself

parent 2e88d5f0
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -4001,3 +4001,8 @@ devel/py-pyls-black||2025-01-04|Repository has been archived by the owner. Use t
net-im/telegram-desktop@qt5|net-im/telegram-desktop|2025-01-05|Flavorization has been removed. Qt 5.x has been long deprecated upstream. Please use unflavored net-im/telegram-desktop port based on Qt 6.x instead
net-im/telegram-desktop@qt6|net-im/telegram-desktop|2025-01-05|Flavorization has been removed. Continue to enjoy net-im/telegram-desktop based on Qt 6.x as usual
deskutils/iconbrowser|deskutils/elementary-iconbrowser|2025-01-06|Switch to reverse domain name notation
devel/py-Products.ExternalEditor||2025-01-11|Remove leaf zope ports that have no sense in absence of zope itself
devel/py-Products.PloneLanguageTool||2025-01-11|Remove leaf zope ports that have no sense in absence of zope itself
devel/py-collective.monkeypatcher||2025-01-11|Remove leaf zope ports that have no sense in absence of zope itself
devel/py-diazo||2025-01-11|Remove leaf zope ports that have no sense in absence of zope itself
devel/py-repoze.xmliter||2025-01-11|Remove leaf zope ports that have no sense in absence of zope itself
+0 −5
Original line number Diff line number Diff line
@@ -4351,8 +4351,6 @@
    SUBDIR += py-Levenshtein
    SUBDIR += py-PYB11Generator
    SUBDIR += py-PeachPy
    SUBDIR += py-Products.ExternalEditor
    SUBDIR += py-Products.PloneLanguageTool
    SUBDIR += py-PyExecJS
    SUBDIR += py-PyGithub
    SUBDIR += py-PyLD
@@ -4674,7 +4672,6 @@
    SUBDIR += py-cobble
    SUBDIR += py-codegen
    SUBDIR += py-cog
    SUBDIR += py-collective.monkeypatcher
    SUBDIR += py-colorama
    SUBDIR += py-colored-traceback
    SUBDIR += py-coloredlogs
@@ -4783,7 +4780,6 @@
    SUBDIR += py-deptry
    SUBDIR += py-devtools
    SUBDIR += py-dexml2
    SUBDIR += py-diazo
    SUBDIR += py-diff-cover
    SUBDIR += py-dill
    SUBDIR += py-dirspec
@@ -5812,7 +5808,6 @@
    SUBDIR += py-repoze.sphinx.autointerface
    SUBDIR += py-repoze.tm2
    SUBDIR += py-repoze.who
    SUBDIR += py-repoze.xmliter
    SUBDIR += py-represent
    SUBDIR += py-requestsexceptions
    SUBDIR += py-requirements-detector
+0 −18
Original line number Diff line number Diff line
PORTNAME=	Products.ExternalEditor
PORTVERSION=	1.1.0
PORTREVISION=	1
CATEGORIES=	devel python zope
MASTER_SITES=	PYPI
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
DIST_SUBDIR=	zope

MAINTAINER=	zope@FreeBSD.org
COMMENT=	Zope external editor
WWW=		https://pypi.org/project/Products.ExternalEditor/

LICENSE=	ZPL21

USES=		python zip
USE_PYTHON=	distutils autoplist

.include <bsd.port.mk>
+0 −2
Original line number Diff line number Diff line
SHA256 (zope/Products.ExternalEditor-1.1.0.zip) = 847013cf831772c5f65db329b083f81b1b319b9a68ea8b344360ebb77f6f1ea7
SIZE (zope/Products.ExternalEditor-1.1.0.zip) = 56705
+0 −64
Original line number Diff line number Diff line
--- Products/ExternalEditor/ExternalEditor.py.orig	2010-12-03 03:58:58 UTC
+++ Products/ExternalEditor/ExternalEditor.py
@@ -18,7 +18,7 @@
 
 from string import join # For Zope 2.3 compatibility
 import types
-import urllib
+import urllib.request, urllib.parse, urllib.error
 from Acquisition import aq_inner, aq_base, aq_parent, Implicit
 try:
     from App.class_init import InitializeClass
@@ -55,11 +55,11 @@ class PDataStreamIterator:
     def __iter__(self):
         return self
 
-    def next(self):
+    def __next__(self):
         if self.data is None:
-            raise StopIteration
+            raise(StopIteration)
         data = self.data.data
-        self.data = self.data.next
+        self.data = self.data.__next__
         return data
 
 def registerCallback(cb):
@@ -125,8 +125,8 @@ class ExternalEditor(Implicit):
         if title is not None:
             if callable(title):
                 title = title()
-            if isinstance(title, types.UnicodeType):
-                title = unicode.encode(title, 'utf-8')
+            if isinstance(title, str):
+                title = str.encode(title, 'utf-8')
             r.append('title:%s' % title)
 
         if hasattr(aq_base(ob), 'content_type'):
@@ -214,7 +214,7 @@ class ExternalEditor(Implicit):
             body = ob.read()
         else:
             # can't read it!
-            raise 'BadRequest', 'Object does not support external editing'
+            raise BadRequest('Object does not support external editing')
 
         if (HAVE_Z3_IFACE and IStreamIterator.providedBy(body) or
             (not HAVE_Z3_IFACE) and IStreamIterator.isImplementedBy(body)):
@@ -287,7 +287,7 @@ def EditLink(self, object, borrow_lock=0, skip_data=0)
         if skip_data:
             query['skip_data'] = 1
         url = "%s/externalEdit_/%s%s%s" % (aq_parent(aq_inner(object)).absolute_url(),
-                                           urllib.quote(object.getId()),
+                                           urllib.parse.quote(object.getId()),
                                            ext, querystr(query))
         return ('<a href="%s" '
                 'title="Edit using external editor">'
@@ -302,7 +302,7 @@ def querystr(d):
     """Create a query string from a dict"""
     if d:
         return '?' + '&'.join(
-            ['%s=%s' % (name, val) for name, val in d.items()])
+            ['%s=%s' % (name, val) for name, val in list(d.items())])
     else:
         return ''
 
Loading