Rob Wolfe wrote: >> This is my function: >> selecteddeptcodes = context.REQUEST.DEPTCODE >> currentstatus = context.REQUEST.STATUS >> >> if currentstatus == 'pending': >> for dptcd in selecteddeptcodes: >> context.changetolive(DEPTCODE=dptcd) >> if currentstatus == 'old': >> for dptcd in selecteddeptcodes: >> context.changetopending(DEPTCODE=dptcd) >> return context.pub_dept_form(context, context.REQUEST, message='Updated >> Status') >> >> The argument in question is selecteddeptcodes. > > You can use isinstance or function like that: >
Zope has a better solution builtin. -- bruno desthuilliers python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for p in '[EMAIL PROTECTED]'.split('@')])" -- http://mail.python.org/mailman/listinfo/python-list