Skip to main content

Alpha Web framework & sample mini CMS.

Aims to be quite generic all-in-one-but-minimalistic web+database high-level framework.

Take a look at the (WIP) documentation at drink.rtfd.org.

Dependencies

Use “easy_install” or “pip” to get ‘jinja2’, ‘markdown’, ‘ZODB3’ and ‘whoosh’ installed on your system. Additionally you can install paste or gevent for better performances.

Example (at the DOS/Console/Shell prompt):

easy_install -U markdown

or, alternatively:

pip install -U markdown

Dependencies list:

  • markdown

  • jinja2

  • ZODB3

  • whoosh

  • fs

Install

Just 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.bz2

Running

Just go into the unpacked drink directory and execute the “manage” script:

cd drink-0.0.10
./manage

If you run into troubles, try:

DEBUG=1 ./manage

Getting sources/Contributing

See GitHub page.

The main ideas behind

It 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.

Goals

  • Add features at ONE place in ONE language (html/css/js may be required for some advanced/custom usages)

  • Be fast, with built-in search engine

  • Ajax (ajaj in fact) - with nice fallbacks for old browsers

  • No SQL

  • Website: as simple as a nested dict-like objects tree, endpoints (last element of URL) are object’s properties & methods

  • Make it as productive as possible for most generic tasks

Out 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 Features

  • Built-in search engine

  • Multi-user with access control (group based) at each level

  • Automatic views and javascript-friendly requests, with regard to each object permissions

  • Automatic object edition’s form generation

  • Webpage edition live preview, client-side form validation

  • Comes 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!)

Issues

  • no documentation yet (default manager account, login/password: admin/admin )

  • no auto tests yet

  • not very powerful yet

Release changes

  • Improved TODO Lists (fullcalendar included)

  • Now any TextArea can submit the form with Ctrl+Enter

  • Slightly better access/permissions redirects

  • Filesystem mountpoint (alpha)

  • Improved item addition a bit

  • Markdown have an almost correctly styled preview

  • Cleaner models

  • Embryo of documentation

  • As always: Fixes & Bugs

Roadmap

0.1 (wip)

  • add more types to default form edition

  • object_path => integrate it to markdown editor

  • buildbot & virtualenv

  • change cookie on password change

  • only accept object move if it succeded on server

  • allow custom extensions

  • Per-user group-list, showing in permissions panels

  • allow rss via http://www.freewisdom.org/projects/python-markdown/RSS

  • HomePage object: Login-splash+UserDashboard write user homepages (with login & passwd & name & surname change) / splash-like if not logged-in

  • think about comments ( as property of some Model ?) - commentlist ?

  • allow objects to add custom actions in admin bar

  • edit form: only send “dirty” values when possible

  • add some recursive permissions setter

  • “background processes” for each user / sessions

  • theme support (config entry + template & static path)

  • ensure proper checks are correct at server side

  • Form object?

  • find the cleanest way to make all incoming URLs ends with /

  • pack should call http://packages.python.org/Whoosh/api/index.html?highlight=optimize#whoosh.index.Index.optimize on whoosh

  • add calltips everywhere

  • default content for every user

  • review 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 comment

  • improve link support (javascript popup) in markdown so it’s easy to link tasks to any object

Fixes:

  • only returns requested range in TODO List

  • Rename Tasks/TODO List to calendar

  • remove 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 here

  • investigate fileupload D&D bugs

  • files >4GB are making crazy js loops

  • files ~>500MB may hang the request & cause timeout

0.2

  • zip importer

  • pdf with pypdf

  • doc

  • project support (using drink as a base)

  • integrate imgviewer (image folder type)

0.3

0.4

  • “real” sessions ?

  • chat program (introduce webhooks ?)

0.5

  • forum

  • more tests

0.6

  • gadgets (google search, rss reader, clock, xkcd, ?)

0.7

  • permissions setting admin object

0.8

  • user interface cleanup

0.9

  • doc & fix but minor improvements

1.0

  • stable release

1.x

  • homepage /user pages focus

Metadata

Release files for drink 0.0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distributions (sdists)

Source distribution for drink 0.0.10
File Size Uploaded
drink-0.0.10.zip 538.6 kB Details
drink-0.0.10.tar.gz 470.5 kB Details
drink-0.0.10.tar.bz2 440.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for drink 0.0.10
File Interpreter ABI Platform
drink-0.0.10-py2.7.egg Legacy Egg format - - Details

Total release size: 1.9 MB

Release files / drink-0.0.10.zip

Download URL drink-0.0.10.zip
Size 538.6 kB
Tags Source
SHA-256 checksum
How to use checksums
62a91cef10dbf06f60bb943d48bbf73add379def0557f68872bf8be6bd891255
BLAKE2b-256 checksum
How to use checksums
4b133f11d6dc21cef3f190e5219f57b22a7f1e4ef4cc3564991c037a350f3fdd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / drink-0.0.10.tar.gz

Download URL drink-0.0.10.tar.gz
Size 470.5 kB
Tags Source
SHA-256 checksum
How to use checksums
385ab55c3f78247d41b7e66efccb955d15c7fb5a74782ab22fbb7b80718d9611
BLAKE2b-256 checksum
How to use checksums
ac4eb6f1464b785df071d7a539772cc2e9982e169b08e1d69fb7769867fde3b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / drink-0.0.10.tar.bz2

Download URL drink-0.0.10.tar.bz2
Size 440.9 kB
Tags Source
SHA-256 checksum
How to use checksums
32dd553bd7b7ceac3c52c1b3a065f1cb0a5c0e6b95e88e6b8b83375401f84cc4
BLAKE2b-256 checksum
How to use checksums
ed2b7f558bcb0b4bda7c86eea0e4e63b05b43ad928daa254b6fe8184316c0ca5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / drink-0.0.10-py2.7.egg

Download URL drink-0.0.10-py2.7.egg
Size 439.6 kB
Tags Egg
SHA-256 checksum
How to use checksums
ad8e90ed830fb20dff3f303a8ffbb250b1ccfd8c854bdc48ea6f37242dd1608b
BLAKE2b-256 checksum
How to use checksums
922bd6d3620a34050471adf939e5a403f08ca66b7044b509607f9e0888e8ab66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.10 This release

4 release files

0.0.9

3 release files

0.0.8

3 release files

0.0.7

3 release files

0.0.6

3 release files

0.0.5

3 release files

0.0.4

1 release file

0.0.3

2 release files

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page