Ejemplo n.º 1
0
    def __init__(self, context, request):
        BrowserView.__init__(self, context, request)
        notes = INotes(context)
        self.notes = [note for note in notes
                      if note.privacy == 'public'
                         or note.owner == request.principal.id]

        if 'DELETE_NOTE' in request:
            notes.remove(request['uid'])
Ejemplo n.º 2
0
    def __init__(self, context, request):
        BrowserView.__init__(self, context, request)
        notes = INotes(context)
        self.notes = [
            note for note in notes
            if note.privacy == 'public' or note.owner == request.principal.id
        ]

        if 'DELETE_NOTE' in request:
            notes.remove(request['uid'])
Ejemplo n.º 3
0
 def __init__(self, context, request):
     BrowserView.__init__(self, context, request)
Ejemplo n.º 4
0
 def __init__(self, context, request):
     BrowserView.__init__(self, context, request)
Ejemplo n.º 5
0
 def __init__(self, context, request):
     BrowserView.__init__(self, context, request)
     self.errors = []
     self.success = []
Ejemplo n.º 6
0
 def __init__(self, *args, **kw):
     BrowserView.__init__(self, *args, **kw)
     self.activity_vocabulary = getActivityVocabulary(self.context)
Ejemplo n.º 7
0
 def __init__(self, context, request):
     # avoids setting IContentsPage on our FolderContentsView
     BrowserView.__init__(self, context, request)
Ejemplo n.º 8
0
 def __init__(self, context, request):
     BrowserView.__init__(self, context, request)
     setUpWidgets(self, self.schema, IInputWidget)
Ejemplo n.º 9
0
 def __init__(self, context, request):
     BrowserView.__init__(self, context, request)
     self.message = None
Ejemplo n.º 10
0
 def __init__(self, context, request):
     BrowserView.__init__(self, context, request)
     setUpWidgets(self, self.schema, IInputWidget)
Ejemplo n.º 11
0
 def __init__(self, context, request):
     BrowserView.__init__(self, context, request)
     self.message = None