[Checkins] SVN: zf.zscp/trunk/src/zf/zscp/website/browser/repository.py Fix package initialization. It works!

Stephan Richter srichter at cosmos.phy.tufts.edu
Sun Apr 9 12:00:10 EDT 2006


Log message for revision 66735:
  Fix package initialization. It works!
  

Changed:
  U   zf.zscp/trunk/src/zf/zscp/website/browser/repository.py

-=-
Modified: zf.zscp/trunk/src/zf/zscp/website/browser/repository.py
===================================================================
--- zf.zscp/trunk/src/zf/zscp/website/browser/repository.py	2006-04-09 15:57:11 UTC (rev 66734)
+++ zf.zscp/trunk/src/zf/zscp/website/browser/repository.py	2006-04-09 16:00:09 UTC (rev 66735)
@@ -25,6 +25,7 @@
 
 from zf.zscp.interfaces import IPublication
 from zf.zscp.package import Package
+from zf.zscp.publication import Publication
 
 
 
@@ -43,12 +44,14 @@
 
         # create the package instance
         package = Package(packageName)
-        package.name = data.get('name', u'')
-        package.summary = data.get('summary', u'')
-        package.author = data.get('author', u'')
-        package.authorEmail = data.get('authorEmail', u'')
-        package.license = data.get('license', u'')
-        package.metadataVersion = data.get('metadataVersion', u'')
+        publication = Publication()
+        publication.name = data.get('name', u'')
+        publication.summary = data.get('summary', u'')
+        publication.author = data.get('author', u'')
+        publication.authorEmail = data.get('authorEmail', u'')
+        publication.license = data.get('license', u'')
+        publication.metadataVersion = data.get('metadataVersion', u'')
+        package.publication = publication
         zope.event.notify(objectevent.ObjectCreatedEvent(package))
 
         # Add the register the package with the register method



More information about the Checkins mailing list