Package: drink
Alpha Web framework & sample mini CMS.Aims to be quite genericall-in-one-but-minimalisticweb+database
high-level framework.Take a look at the (WIP)documentation at drink.rtfd.org.DependenciesUse “easy_install” or “pip” to get ‘jinja2’, ‘markdown’, ‘ZODB3’
and ‘whoosh’ installed on your system. Additionally you can installpasteorgeventfor better performances.Example (at the DOS/Console/Shell prompt):easy_install -U markdownor, alternatively:pip install -U markdownDependencies list:markdownjinja2ZODB3whooshfsInstallJust fetch the source archive and unpack it:wget http://pypi.python.org/packages/source/d/drink/drink-0.0.10.tar.bz2
tar jxvf drink-0.0.10.tar.bz2RunningJust go into the unpacked drink directory and execute the “manage”
script:cd drink-0.0.10
./manageIf you run into troubles, try:DEBUG=1 ./manageGetting sources/ContributingSeeGitHub page.The main ideas behindIt should handle most of javascript, html & forms creation for you,
for very fast prototype implementation.Then you’r free to put your hands into html/css/js and customize to
your precise requirements.Some debugging middleware are supported, edit drink/settings.ini
for details.GoalsAdd features at ONE place in ONE language (html/css/js may be
required for some advanced/custom usages)Be fast, with built-in search engineAjax (ajaj in fact) - with nice fallbacks for old browsersNo SQLWebsite: as simple as a nested dict-like objects tree, endpoints
(last element of URL) are object’s properties & methodsMake it as productive as possible for most generic tasksOut of the box, it is something between a wiki and a cms, probably
a good base for a lightweight web CMS / Intranet / Forum / etc!Main FeaturesBuilt-in search engineMulti-user with access control (group based) at each levelAutomaticviewsand javascript-friendly requests, with regard
to each object permissionsAutomatic object edition’s form generationWebpage edition live preview, client-side form validationComes with some pre-developped objects:folder index (sortable with D&D)file (upload your own file, also allows D&D)Web page ( markdown only )Simple TODO list/TODOs (WIP)And of course special elements like Groups & Users !.Very user friendly (once doc will be there!)Issuesno documentation yet (default manager account, login/password:admin/admin)no auto tests yetnot very powerful yetRelease changesImproved TODO Lists (fullcalendar included)Now any TextArea can submit the form with Ctrl+EnterSlightly better access/permissions redirectsFilesystem mountpoint (alpha)Improved item addition a bitMarkdown have an almost correctly styled previewCleaner modelsEmbryo of documentationAs always: Fixes & BugsRoadmap0.1 (wip)add more types to default form editionobject_path => integrate it to markdown editorbuildbot & virtualenvchange cookie on password changeonly accept object move if it succeded on serverallow custom extensionsPer-user group-list, showing in permissions panelsallow rss viahttp://www.freewisdom.org/projects/python-markdown/RSSHomePage object: Login-splash+UserDashboard write user homepages
(with login & passwd & name & surname change) / splash-like if not
logged-inthink about comments ( as property of some Model ?) -
commentlist ?allow objects to add custom actions in admin baredit form: only send “dirty” values when possibleadd some recursive permissions setter“background processes” for each user / sessionstheme support (config entry + template & static path)ensure proper checks are correct at server sideForm object?find the cleanest way to make all incoming URLs ends with /pack should callhttp://packages.python.org/Whoosh/api/index.html?highlight=optimize#whoosh.index.Index.optimizeon whooshadd calltips everywheredefault content for every userreview 401 handling, ask for login/passwd in case of new session
(to be finished)Think about opening WebFiles in mail client as attached file…add markdown support to tasks commentimprove link support (javascript popup) in markdown so it’s easy
to link tasks to any objectFixes:only returns requested range in TODO ListRename Tasks/TODO List to calendarremove Ctrl+Enter conflict on Markitup/users as user => 401 (should list instead)search => 401 by default (should be allowed)mask file upload widget if File not available hereinvestigate fileupload D&D bugsfiles >4GB are making crazy js loopsfiles ~>500MB may hang the request & cause timeout0.2zip importerpdf with pypdfdocproject support (using drink as a base)integrate imgviewer (image folder type)0.3multi-object pagespreadsheet ?integrate graph library (http://www.jqplot.com/)0.4“real” sessions ?chat program (introduce webhooks ?)0.5forummore tests0.6gadgets (google search, rss reader, clock, xkcd, ?)0.7permissions setting admin object0.8user interface cleanup0.9doc & fix but minor improvements1.0stable release1.xhomepage /user pages focus