[svn] / z3 / Five / trunk / demo / FiveViewsDemo / helpers.py Repository:
ViewVC logotype

View of /z3/Five/trunk/demo/FiveViewsDemo/helpers.py

Parent Directory Parent Directory | Revision Log Revision Log

Revision 46891 - (download) (as text) (annotate)
Wed Jun 16 12:54:00 2004 UTC (9 years, 10 months ago) by faassen
File size: 461 byte(s)
Initial import of Five. This is a cvs export of cvs.infrae.com/Five.
import urllib

def add_and_edit(self, id, REQUEST):
    """Helper function to point to the object's management screen if
    'Add and Edit' button is pressed.
    id -- id of the object we just added
    if REQUEST is None:
        u = self.DestinationURL()
        u = REQUEST['URL1']
    if REQUEST.has_key('submit_edit'):
        u = "%s/%s" % (u, urllib.quote(id))

zope.org Infrastructure
ViewVC Help
Powered by ViewVC 1.0.3