comparison frontends/src/quick_frontend/constants.py @ 1461:9fce331ba0fd

quick_frontend (constants, quick_app, quick_contact_list): blogging refactoring (not finished): - adaptation to backend modifications - moved common blogging parts from Libervia to quick frontend - QuickApp use a MB_HANDLE class variable to indicated if blogging is managed by the frontend (and avoid waste of resources if not) - comments are now managed inside parent entry, as a result a tree of comments is now possible - Entry.level indicate where in the tree we are (-1 mean parent QuickBlog, 0 mean main item, more means comment) - items + comments are requested in 1 shot, and RTDeferred are used to avoid blocking while waiting for them - in QuickBlog, id2entries allow to get Entry from it's item id, and node2entries allow to get Entry(ies) hosting a comments node - QuickBlog.new_message_target tell where a new message will be sent by default
author Goffi <goffi@goffi.org>
date Sun, 16 Aug 2015 01:00:54 +0200
parents 77f07ea90420
children d17772b0fe22
comparison
equal deleted inserted replaced
1460:c7fd121a6180 1461:9fce331ba0fd
59 "gone": u'✈', 59 "gone": u'✈',
60 "composing": u'✎', 60 "composing": u'✎',
61 "paused": u"⦷" 61 "paused": u"⦷"
62 } 62 }
63 63
64 # Blogs
65 ENTRY_MODE_TEXT = "text"
66 ENTRY_MODE_RICH = "rich"
67 ENTRY_MODE_XHTML = "xhtml"
68
64 # Widgets management 69 # Widgets management
65 # FIXME: should be in quick_frontend.constant, but Libervia doesn't inherit from it 70 # FIXME: should be in quick_frontend.constant, but Libervia doesn't inherit from it
66 WIDGET_NEW = 'NEW' 71 WIDGET_NEW = 'NEW'
67 WIDGET_KEEP = 'KEEP' 72 WIDGET_KEEP = 'KEEP'
68 WIDGET_RAISE = 'RAISE' 73 WIDGET_RAISE = 'RAISE'