[Zope3-checkins] CVS: Zope3/src/zope/app/publication - zopepublication.py:1.39

Stephan Richter srichter at cosmos.phy.tufts.edu
Mon Mar 8 07:06:29 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/publication
In directory cvs.zope.org:/tmp/cvs-serv13053/src/zope/app/publication

Modified Files:
	zopepublication.py 
Log Message:


Adjusted code to use the new APIs for permissions and principals. Also, use
the utility service instead of the permission registry to look up permissions.




=== Zope3/src/zope/app/publication/zopepublication.py 1.38 => 1.39 ===
--- Zope3/src/zope/app/publication/zopepublication.py:1.38	Sat Mar  6 12:48:52 2004
+++ Zope3/src/zope/app/publication/zopepublication.py	Mon Mar  8 07:05:58 2004
@@ -35,10 +35,9 @@
 from zope.app.applicationcontrol.applicationcontrol \
      import applicationControllerRoot
 
-from zope.app.security.registries.principalregistry \
-     import principalRegistry as prin_reg
+from zope.app.security.principalregistry import principalRegistry as prin_reg
 
-from zope.app.interfaces.security import IUnauthenticatedPrincipal
+from zope.app.security.interfaces import IUnauthenticatedPrincipal
 
 from zope.app.publication.publicationtraverse import PublicationTraverse
 
@@ -156,7 +155,7 @@
         if IHTTPRequest.providedBy(request):
             txn.note(request["PATH_INFO"])
         # XXX not sure why you would use id vs title or description
-        txn.setUser(request.user.getId())
+        txn.setUser(request.user.id)
         get_transaction().commit()
 
 




More information about the Zope3-Checkins mailing list