def __init__(self, **kwargs): View.__init__(self, **kwargs) self.templateFile = 'dashboard.html' self.permissionLevel = 1 self.isEdit = True self.toTemplate.blogPages = PacPages.getBlogPages()
def __init__(self, **kwargs): View.__init__(self, **kwargs) self.templateFile = 'imagestore.html' self.permissionLevel = 1 self.isEdit = True self.toTemplate.uploadUrl = blobstore.create_upload_url('/edit/AddUpdateImageStore') self.toTemplate.imageList = PacImageStore.getAll() query = kwargs['query'] if query.getvalue('item_id'): self.itemId = str(query.getvalue('item_id')) self.toTemplate.currentImage = PacImageStore.getByIdForEdit(self.itemId)
def __init__(self, **kwargs): View.__init__(self, **kwargs) self.templateFile = 'imagestore.html' self.permissionLevel = 1 self.isEdit = True self.toTemplate.uploadUrl = blobstore.create_upload_url( '/edit/AddUpdateImageStore') self.toTemplate.imageList = PacImageStore.getAll() query = kwargs['query'] if query.getvalue('item_id'): self.itemId = str(query.getvalue('item_id')) self.toTemplate.currentImage = PacImageStore.getByIdForEdit( self.itemId)
def __init__(self, **kwargs): View.__init__(self, **kwargs) self.templateFile = 'pages.html' self.permissionLevel = 1 self.isEdit = True self.toTemplate.pageTree = UI.getPageTreeForEditView() query = kwargs['query'] if query.getvalue('item_id'): self.toTemplate.itemId = str(query.getvalue('item_id')) self.currentPage = UI.Pages.getById(self.toTemplate.itemId) if self.currentPage: templateStr = self.currentPage.templateType.split('.')[-1] template = getattr(PageTemplates, templateStr) self.toTemplate.pageTemplate = template(page = self.currentPage) # Add modules for EditView self.toTemplate.pageTemplate.renderEditPage(query)
def __init__(self, **kwargs): View.__init__(self, **kwargs) self.templateFile = 'pages.html' self.permissionLevel = 1 self.isEdit = True self.toTemplate.pageTree = UI.getPageTreeForEditView() query = kwargs['query'] if query.getvalue('item_id'): self.toTemplate.itemId = str(query.getvalue('item_id')) self.currentPage = UI.Pages.getById(self.toTemplate.itemId) if self.currentPage: templateStr = self.currentPage.templateType.split('.')[-1] template = getattr(PageTemplates, templateStr) self.toTemplate.pageTemplate = template(page=self.currentPage) # Add modules for EditView self.toTemplate.pageTemplate.renderEditPage(query)
def __init__(self, **kwargs): View.__init__(self, **kwargs) self.templateFile = 'not_authorized.html' self.permissionLevel = 0 self.isEdit = True