[Checkins] SVN: lovely.remotetask/trunk/ Get rid of zope.app.zapi
Dan Korostelev
nadako at gmail.com
Thu Feb 5 10:06:50 EST 2009
Log message for revision 96131:
Get rid of zope.app.zapi
Changed:
U lovely.remotetask/trunk/CHANGES.txt
U lovely.remotetask/trunk/buildout.cfg
U lovely.remotetask/trunk/src/lovely/remotetask/service.py
-=-
Modified: lovely.remotetask/trunk/CHANGES.txt
===================================================================
--- lovely.remotetask/trunk/CHANGES.txt 2009-02-05 13:13:20 UTC (rev 96130)
+++ lovely.remotetask/trunk/CHANGES.txt 2009-02-05 15:06:50 UTC (rev 96131)
@@ -8,6 +8,8 @@
- Use dropdown widget with available tasks in the cron job
adding form, instead of text input.
+- Remove dependency on zope.app.zapi by using its wrapped api directly.
+
2008/11/07 0.2.15a1:
====================
Modified: lovely.remotetask/trunk/buildout.cfg
===================================================================
--- lovely.remotetask/trunk/buildout.cfg 2009-02-05 13:13:20 UTC (rev 96130)
+++ lovely.remotetask/trunk/buildout.cfg 2009-02-05 15:06:50 UTC (rev 96131)
@@ -1,7 +1,6 @@
[buildout]
develop = .
parts = py test
-index = http://download.zope.org/zope3.4
[test]
recipe = zc.recipe.testrunner
Modified: lovely.remotetask/trunk/src/lovely/remotetask/service.py
===================================================================
--- lovely.remotetask/trunk/src/lovely/remotetask/service.py 2009-02-05 13:13:20 UTC (rev 96130)
+++ lovely.remotetask/trunk/src/lovely/remotetask/service.py 2009-02-05 15:06:50 UTC (rev 96131)
@@ -26,12 +26,12 @@
import zope.interface
from BTrees.IOBTree import IOBTree
from zope import component
-from zope.app import zapi
from zope.app.appsetup.product import getProductConfiguration
from zope.app.container import contained
from zope.app.component.interfaces import ISite
from zope.app.publication.zopepublication import ZopePublication
from zope.component.interfaces import ComponentLookupError
+from zope.traversing.api import getParents
from lovely.remotetask import interfaces, job, task, processor
log = logging.getLogger('lovely.remotetask')
@@ -159,7 +159,7 @@
if self._scheduledQueue == None:
self._scheduledQueue = zc.queue.PersistentQueue()
# Create the path to the service within the DB.
- servicePath = [parent.__name__ for parent in zapi.getParents(self)
+ servicePath = [parent.__name__ for parent in getParents(self)
if parent.__name__]
servicePath.reverse()
servicePath.append(self.__name__)
@@ -196,7 +196,7 @@
"""Return name of the processing thread."""
# This name isn't unique based on the path to self, but this doesn't
# change the name that's been used in past versions.
- path = [parent.__name__ for parent in zapi.getParents(self)
+ path = [parent.__name__ for parent in getParents(self)
if parent.__name__]
path.append('remotetasks')
path.reverse()
More information about the Checkins
mailing list