Skip to content

Commit

Permalink
Add transaction notes to the add_*py scripts, so these transactions
Browse files Browse the repository at this point in the history
show up in the zope undo log. (Only the root log at the moment, I
can't remember how to tell zope what folder the transaction belongs to)


git-svn-id: https://svn.socialplanning.org/svn/opencore/trunk@15342 40f73b84-6177-4a8e-8c61-7eee4b1974ed
  • Loading branch information
slinkp committed Mar 31, 2008
1 parent c64b41d commit 801a1af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions add_maildrop.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
# Nothing else to configure; MaildropHost reads most of its config from # Nothing else to configure; MaildropHost reads most of its config from
# the filesystem. # the filesystem.


transaction.get().note('Replacing old MailHost with a Maildrop Host')
transaction.commit() transaction.commit()
print "successfully added MaildropHost at", \ print "successfully added MaildropHost at", \
'/'.join(site[mh_id].getPhysicalPath()) '/'.join(site[mh_id].getPhysicalPath())
1 change: 1 addition & 0 deletions add_openplans.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@
factory = app.manage_addProduct['CMFPlone'].addPloneSite factory = app.manage_addProduct['CMFPlone'].addPloneSite
factory(site_id, site_title, extension_ids=profiles) factory(site_id, site_title, extension_ids=profiles)


transaction.get().note('Adding openplans site')
transaction.commit() transaction.commit()

0 comments on commit 801a1af

Please sign in to comment.