def _editZone( clientId, zoneTemplate ): session = getSession() session.add( zoneTemplate ) form = ZoneTemplateForm( zoneTemplate, session ) form.activate( clientId )
def zoneList(): session = getSession() zoneTemplates = session.query(ZoneTemplate).all() session.close() return zoneTemplates
def _editZone(clientId, zoneTemplate): session = getSession() session.add(zoneTemplate) form = ZoneTemplateForm(zoneTemplate, session) form.activate(clientId)
def zoneNew( clientId, remaining ): zt = ZoneTemplate() session = getSession() session.add(zt) form = ZoneTemplateForm( zt, session ) form.activate( clientId )
def zoneNew(clientId, remaining): zt = ZoneTemplate() session = getSession() session.add(zt) form = ZoneTemplateForm(zt, session) form.activate(clientId)