FORGE-243: refactor Filesystem and Attachment

Because every app so far must deal with attachments, factor the common
code down into pyforge. This work was primarily done by Rick with some
minor cleanup by Wolf. This change does away with Filesystem and
metaclasses, instead making a new pyforge.model.File class which better
encapsulates GridFS with a plain file+metadata API. Deriving
app-specific Attachment classes from File is easy: just add metadata
appropriate to the app and any shortcut properties you need. ForgeForum
does just that in this change; use that as your example.

Wolf Wolf 2010-01-22

changed ForgeForum/forgeforum/controllers/forum.py
changed ForgeForum/forgeforum/model/forum.py
changed ForgeForum/forgeforum/templates/lib.html
changed ForgeForum/forgeforum/forum_main.py
changed pyforge/pyforge/model/__init__.py
changed pyforge/pyforge/model/artifact.py
changed pyforge/pyforge/model/filesystem.py
ForgeForum/forgeforum/controllers/forum.py Diff Switch to side-by-side view
Loading...
ForgeForum/forgeforum/model/forum.py Diff Switch to side-by-side view
Loading...
ForgeForum/forgeforum/templates/lib.html Diff Switch to side-by-side view
Loading...
ForgeForum/forgeforum/forum_main.py Diff Switch to side-by-side view
Loading...
pyforge/pyforge/model/__init__.py Diff Switch to side-by-side view
Loading...
pyforge/pyforge/model/artifact.py Diff Switch to side-by-side view
Loading...
pyforge/pyforge/model/filesystem.py Diff Switch to side-by-side view
Loading...