def __init__(self, parent): """ Initialize """ RenderableLivePage.__init__(self, parent) mainxul = Path(self.config.xulDir).joinpath('templates', 'properties.xul') self.docFactory = loaders.xmlfile(mainxul) self.client = None self.fieldsReceived = set() log.info("creating the properties page")
def __init__(self, parent): """ Initialize """ RenderableLivePage.__init__(self, parent) mainxul = Path(self.config.xulDir).joinpath('templates', 'properties.xul') self.docFactory = loaders.xmlfile(mainxul) self.client = None self.fieldsReceived = set() # Processing log.info("creating the properties page")
def __init__(self, parent, package): """ Initialize a new XUL page 'package' is the package that we look after """ self.name = package.name RenderableLivePage.__init__(self, parent, package) self.putChild("resources", static.File(package.resourceDir)) mainxul = Path(self.config.xulDir).joinpath('templates', 'mainpage.xul') self.docFactory = loaders.xmlfile(mainxul) self.outlinePane = OutlinePane(self) self.idevicePane = IdevicePane(self) self.styleMenu = StyleMenu(self) self.authoringPage = AuthoringPage(self) self.propertiesPage = PropertiesPage(self)
def __getattribute__(self, name): """ Provides auto field fill-ins """ if name.startswith('render_'): localName = name[7:] # Get rid of render if '_' in localName: obj, name = self.fieldId2obj(localName) return lambda ctx, data: ctx.tag(value=getattr(obj, localName)) return RenderableLivePage.__getattribute__(self, name)
def __init__(self, parent, package): """ Initialize a new XUL page 'package' is the package that we look after """ self.name = package.name RenderableLivePage.__init__(self, parent, package) self.putChild("resources", static.File(package.resourceDir)) mainxul = Path(self.config.xulDir).joinpath('templates', 'mainpage.xul') self.docFactory = loaders.xmlfile(mainxul) # Create all the children on the left self.outlinePane = OutlinePane(self) self.idevicePane = IdevicePane(self) self.styleMenu = StyleMenu(self) # And in the main section self.authoringPage = AuthoringPage(self) self.propertiesPage = PropertiesPage(self) # translate the "don't close the window" message red_x = _("Please use eXe's\n File... Quit\nmenu to close eXe.")
def __getattribute__(self, name): """ Provides auto field fill-ins """ if name.startswith('render_'): localName = name[7:] # Get rid of render # Name contains pp_abc to get package.abc or dc_abc to get dc.abc # pp means Project Properties # dc means Dublin Core # eo means Export Options if '_' in localName: obj, name = self.fieldId2obj(localName) return lambda ctx, data: ctx.tag(value=getattr(obj, localName)) return RenderableLivePage.__getattribute__(self, name)