Exemplo n.º 1
0
 def __init__(self, pagename, request):
     ActionBase.__init__(self, pagename, request)
     self.use_ticket = True
     _ = self._
     self.form_trigger = "revert"
     self.form_trigger_label = _("Revert")
     self.method = "POST"
Exemplo n.º 2
0
 def __init__(self, pagename, request):
     ActionBase.__init__(self, pagename, request)
     self.use_ticket = True
     _ = self._
     self.form_trigger = 'revert'
     self.form_trigger_label = _('Revert')
     self.method = 'POST'
Exemplo n.º 3
0
 def __init__(self, pagename, request):
     ActionBase.__init__(self, pagename, request)
     self.use_ticket = True
     _ = self._
     self.form_trigger = 'revert'
     self.form_trigger_label = _('Revert')
     self.method = 'POST'
Exemplo n.º 4
0
 def __init__(self, pagename, request):
     ActionBase.__init__(self, pagename, request)
     self.getText = request.getText
     self.request = request
     self.use_ticket = True
     self.form_trigger = 'get'
     self.form_trigger_label = self.getText('Get cookie')
Exemplo n.º 5
0
 def __init__(self, pagename, request):
     ActionBase.__init__(self, pagename, request)
     self.use_ticket = True
     _ = self._
     self.form_trigger = 'rename'
     self.form_trigger_label = _('Rename Page')
     filterfn = re.compile(ur"^%s/.*$" % re.escape(pagename), re.U).match
     subpagenames = request.rootpage.getPageList(user='', exists=1, filter=filterfn)
     self.subpages = [pagename for pagename in subpagenames if self.request.user.may.delete(pagename)]
Exemplo n.º 6
0
 def __init__(self, pagename, request):
     ActionBase.__init__(self, pagename, request)
     self.use_ticket = True
     _ = self._
     self.form_trigger = 'Load'
     self.form_trigger_label = _('Load')
     self.pagename = pagename
     self.method = 'POST'
     self.enctype = 'multipart/form-data'
Exemplo n.º 7
0
 def __init__(self, pagename, request, **kw):
     ActionBase.__init__(self, pagename, request)
     self.getText = request.getText
     self.request = request
     self.use_ticket = True
     self.form_trigger = 'invite'
     self.form_trigger_label = wikiutil.escape(kw.get('button_text', [self.getText('Invite')])[0], True)
     self.template = kw.get('template', [])
     self.querytext = kw.get('text', [self.getText('Invite user to visit this page')])[0]
Exemplo n.º 8
0
Arquivo: Load.py Projeto: aahlad/soar
 def __init__(self, pagename, request):
     ActionBase.__init__(self, pagename, request)
     self.use_ticket = True
     _ = self._
     self.form_trigger = 'Load'
     self.form_trigger_label = _('Load')
     self.pagename = pagename
     self.method = 'POST'
     self.enctype = 'multipart/form-data'
Exemplo n.º 9
0
 def __init__(self, pagename, request, **kw):
     ActionBase.__init__(self, pagename, request)
     self.getText = request.getText
     self.request = request
     self.use_ticket = True
     self.form_trigger = 'invite'
     self.form_trigger_label = wikiutil.escape(
         kw.get('button_text', [self.getText('Invite')])[0], True)
     self.template = kw.get('template', [])
     self.querytext = kw.get(
         'text', [self.getText('Invite user to visit this page')])[0]
Exemplo n.º 10
0
 def __init__(self, pagename, request):
     ActionBase.__init__(self, pagename, request)
     self.use_ticket = True
     _ = self._
     self.form_trigger = "copy"
     self.form_trigger_label = _("Copy Page")
     filterfn = re.compile(ur"^%s/.*$" % re.escape(pagename), re.U).match
     pages = request.rootpage.getPageList(user="", exists=1, filter=filterfn)
     subpagenames = request.rootpage.getPageList(user="", exists=1, filter=filterfn)
     self.subpages = subpagenames
     self.users_subpages = [pagename for pagename in subpagenames if self.request.user.may.read(pagename)]
Exemplo n.º 11
0
    def __init__(self, pagename, request, **kw):
        ActionBase.__init__(self, pagename, request)
        self.getText = request.getText
        self.request = request
        self.use_ticket = True
        self.form_trigger = 'requestinvite'
        self.form_trigger_label = wikiutil.escape(kw.get('button_text', [self.getText('Send Request')])[0], True)
        self.querytext = kw.get('text', [self.getText('Send invite request for collab')])[0]

        form = values_to_form(self.request.values)
        collab = form.get('collab', [u''])[0]
        self.collab = wikiutil.clean_input(collab).strip()
Exemplo n.º 12
0
 def __init__(self, pagename, request):
     ActionBase.__init__(self, pagename, request)
     self.use_ticket = True
     _ = self._
     self.form_trigger = 'delete'
     self.form_trigger_label = _('Delete')
     filterfn = re.compile(ur"^%s/.*$" % re.escape(pagename), re.U).match
     subpagenames = request.rootpage.getPageList(user='',
                                                 exists=1,
                                                 filter=filterfn)
     self.subpages = [
         pagename for pagename in subpagenames
         if self.request.user.may.delete(pagename)
     ]
Exemplo n.º 13
0
 def __init__(self, pagename, request):
     ActionBase.__init__(self, pagename, request)
     self.use_ticket = True
     _ = self._
     self.form_trigger = 'rename'
     self.form_trigger_label = _('Rename Page')
     filterfn = re.compile(ur"^%s/.*$" % re.escape(pagename), re.U).match
     subpagenames = request.rootpage.getPageList(user='', exists=1, filter=filterfn)
     self.subpages = [pagename for pagename in subpagenames if self.request.user.may.delete(pagename)]
     try:
         self.show_redirect = request.cfg.show_rename_redirect
     except AttributeError:
         self.show_redirect = False
     try:
         self.rename_redirect = int(self.request.form.get('rename_redirect', '0'))
     except ValueError:
         self.rename_redirect = 0
Exemplo n.º 14
0
 def __init__(self, pagename, request):
     ActionBase.__init__(self, pagename, request)
     self.use_ticket = True
     _ = self._
     self.form_trigger = 'rename'
     self.form_trigger_label = _('Rename Page')
     filterfn = re.compile(ur"^%s/.*$" % re.escape(pagename), re.U).match
     subpagenames = request.rootpage.getPageList(user='', exists=1, filter=filterfn)
     self.subpages = [pagename for pagename in subpagenames if self.request.user.may.delete(pagename)]
     try:
         self.show_redirect = request.cfg.show_rename_redirect
     except AttributeError:
         self.show_redirect = False
     try:
         self.rename_redirect = int(self.request.form.get('rename_redirect', '0'))
     except ValueError:
         self.rename_redirect = 0
     try:
         self.rename_inlinks = int(self.request.form.get('rename_inlinks', '0'))
     except ValueError:
         self.rename_inlinks = 0
Exemplo n.º 15
0
    def __init__(self, pagename, request):
        ActionBase.__init__(self, pagename, request)

        self.page = PageEditor(request, pagename)
        self.use_ticket = True
Exemplo n.º 16
0
 def __init__(self, pagename, request):
     ActionBase.__init__(self, pagename, request)
     self.use_ticket = True
     _ = self._
     self.form_trigger = 'delete'
     self.form_trigger_label = _('Delete')