[Zope3-checkins] CVS: zopeproducts/bugtracker - exportimport.py:1.5

Stephan Richter srichter at cosmos.phy.tufts.edu
Fri Aug 29 18:11:30 EDT 2003


Update of /cvs-repository/zopeproducts/bugtracker
In directory cvs.zope.org:/tmp/cvs-serv22987/src/zopeproducts/bugtracker

Modified Files:
	exportimport.py 
Log Message:
Allow Web-defined users to import too. Dunno why this place acts up so much.


=== zopeproducts/bugtracker/exportimport.py 1.4 => 1.5 ===
--- zopeproducts/bugtracker/exportimport.py:1.4	Mon Jul 28 13:13:41 2003
+++ zopeproducts/bugtracker/exportimport.py	Fri Aug 29 17:11:29 2003
@@ -229,10 +229,11 @@
     def startTerm(self, attrs):
         registry = getVocabularyRegistry()
         vocab = registry.get(self.context, self.vocab_name)
+        # XXX: I do not understand why my security does not work here.
+        vocab = trustedRemoveSecurityProxy(vocab)
         vocab.add(attrs.get('value'), attrs.get('title'))
         if attrs.get('default', None) is not None:
-            # XXX: I do not understand why my security does not work here.
-            trustedRemoveSecurityProxy(vocab).default = attrs.get('value')
+            vocab.default = attrs.get('value')
 
     def startBug(self, attrs):
         bug = Bug()




More information about the Zope3-Checkins mailing list