Petition.py

Classes

Petition

Functions

delObjects


Petition

class storing information about an petition

Derived from

SimpleItem

Methods

Created
__init__
isAllowed
isPending
isRejected
isWaitConfirm
log
manage_afterAdd
setAllow
setPending
setReject
update


Petition.Created

Created(self)

 return the petition's creating time


Petition.__init__

__init__(self, newid="", name="", company="", worktitle="", zip="", address="",telno="", e_mail="", description="", domain_name="", base_name="", screenshot="")

 


Petition.isAllowed

isAllowed(self)

 determines if the sub site was running


Petition.isPending

isPending(self)

 determines if the petition is pending


Petition.isRejected

isRejected(self)

 determines if the petition is rejected


Petition.isWaitConfirm

isWaitConfirm(self,days=10)

 determines if the petition is wait to confirm


Petition.log

log(self, logmsg)

 adds a log to the transcript


Petition.manage_afterAdd

manage_afterAdd(self, item, container)

 


Petition.setAllow

setAllow(self, formCheck=None)

 set the petition's status to allowed


Petition.setPending

setPending(self, formCheck=None)

 set the petition's status to pending


Petition.setReject

setReject(self, formCheck=None)

 set the petition's status to rejected


Petition.update

update(self,name="",company="",worktitle="",zip="",address="",telno="",e_mail="",description="",domain_name="",screenshot="")

 updates the petition attributes


*

delObjects

delObjects(cont,ids)