Source (Text):
destination = 'website/links'
context.edit(remote_url=remote_url,
destination=destination)
def edit( self, remote_url, destination=None ):
"""
Edit the Link
"""
self.remote_url=remote_url
self.destination=destination
security.declarePrivate('copyIntoWebsite')
def copyIntoWebsite(self, ob):
from string import split
if hasattr(ob, 'destination') and getattr(ob, 'destination') != None:
for elem in split(getattr(ob, 'destination'), '/'):
self = getattr(self, elem)
self._setObject(ob.getId(), ob)
self.setReviewStateOf(ob, 'published', action, comment)
self.copyIntoWebsite(ob)
|