Christopher Allan Webber
0dd6594596
Move the request.app stuff to the same area
2011-04-17 16:36:01 -05:00
Christopher Allan Webber
582c4d5fb2
Add the staticdirector stuff to the mediagoblin wsgi app.
2011-04-17 16:30:51 -05:00
Christopher Allan Webber
dae6add99e
How to run the server
2011-04-17 14:05:56 -05:00
Christopher Allan Webber
719f82bad3
Updated hackinghowto.rst with info on how to use the new buildout
...
stuff.
2011-04-17 14:04:07 -05:00
Christopher Allan Webber
df0953ce45
Buildout script which creates user_dev directory and necessary
...
subdirectories for the user.
2011-04-17 13:44:10 -05:00
Christopher Allan Webber
49461402d1
Merge branch 'master' into buildout
2011-04-17 12:45:38 -05:00
Christopher Allan Webber
3a69a5dcd6
Base MediaGoblin paste deploy config file.
...
Should do what's necessary, work out of the box, be deployable.
2011-04-17 12:44:39 -05:00
Christopher Allan Webber
af37cf47b0
Buildout'ifying things.
...
- added buildout's bootstrap.py
- added buildout.cfg
- adjustments to .gitignore.
2011-04-17 12:42:48 -05:00
Christopher Allan Webber
5afdd7a1de
Actually set up the storage systems
2011-04-17 10:36:46 -05:00
Christopher Allan Webber
d807b7252d
Reorganization of storage.py.
...
Ordering: Errors, Storage interface / implementation, utils.
2011-04-17 10:26:52 -05:00
Christopher Allan Webber
ffa2293549
storage.storage_system_from_paste_config() utility, w/ tests
2011-04-17 10:24:36 -05:00
Christopher Allan Webber
cb8ea0fe3f
Moved app.load_controller -> util.import_component and added tests.
2011-04-17 09:43:03 -05:00
Christopher Allan Webber
904f61c298
documentation for get_jinja_env
2011-04-17 09:30:10 -05:00
Christopher Allan Webber
5afb92275c
Encourage storage systems to passively accept extraneous keyword
...
arguments w/ **kwargs.
Also did that for BasicFileStorage.
2011-04-17 09:18:12 -05:00
Christopher Allan Webber
01da9e6a0e
Test for BasicFileStorage.file_url()
2011-04-16 12:47:15 -05:00
Christopher Allan Webber
f61a41b89d
Import urlparse! Duh. I should remember to turn flymake-mode on.
2011-04-16 12:46:58 -05:00
Christopher Allan Webber
d024806a0b
Tests for BasicFileStorage.delete_file()
2011-04-16 11:03:32 -05:00
Christopher Allan Webber
d2be0838a7
Tests for BasicFileStorage.get_file()
2011-04-16 11:00:53 -05:00
Christopher Allan Webber
d0e3a5341e
"if not os.path.exists(directory)", not "if not os.path.exists('directory')"
2011-04-16 10:59:23 -05:00
Christopher Allan Webber
b0bfb766d9
when running get_unique_filepath, clean_listy_filepath from the get-go
2011-04-16 10:27:03 -05:00
Christopher Allan Webber
b1bb050b27
Added delete_file, url_for_file methods to BasicFileStorage
2011-04-16 09:36:36 -05:00
Christopher Allan Webber
3c1a9d753c
Ignore the docs/_build directory.
2011-04-15 08:15:13 -05:00
Will Kahn-Greene
5a40e1ec5c
Overhauls TOC of manual
...
This work is based on discussion and etherpadding (is that a verb) on
April 14th between Deb, Greg, Karen, Will, and Chris.
It was an epic collaborative sprint.
2011-04-14 22:30:39 -04:00
Will Kahn-Greene
76c9ea6b5f
Adds license/copyright headers to jinja2 templates.
2011-04-13 10:21:06 -04:00
Will Kahn-Greene
908dee6b15
Clarifies licensing for the project.
2011-04-13 10:13:35 -04:00
Will Kahn-Greene
8e1e744d27
Changes Mediagoblin -> MediaGoblin.
2011-04-13 10:04:30 -04:00
Will Kahn-Greene
56d507b60b
Adds documentation.
...
* wrote up some basic bits of a hacking howto
* added a better deployment howto stub
2011-04-12 22:36:19 -04:00
Will Kahn-Greene
5698a579b2
Adds license/copyright header.
2011-04-12 22:35:48 -04:00
Will Kahn-Greene
00fdc7bdee
Fixes docs.
...
* fixes some typos
* tweaks some language issues that occured because I took Chris'
stuff out of the context of the original READMEish structure
* ditches installation for deploymenthowto and hackinghowto
2011-04-12 19:56:04 -04:00
Matt Lee
3c013c5b79
Adding a file for testing of CIA bot
2011-04-11 15:18:41 -04:00
Christopher Allan Webber
a130260873
Started the workflow document. Currently just mockups. Soon: more techy info.
2011-04-11 08:39:23 -05:00
Christopher Allan Webber
cee7a1c163
get_file() implementation for BasicFileStorage
2011-04-10 17:03:23 -05:00
Christopher Allan Webber
20e3ee115d
Test BasicFileStorage.get_unique_filepath()
2011-04-10 16:51:25 -05:00
Christopher Allan Webber
2fdec8270d
We should import uuid, because we use it!
2011-04-10 16:50:52 -05:00
Christopher Allan Webber
2d1a60739e
get_unique_filepath not get_unique_filename!
2011-04-10 16:44:47 -05:00
Christopher Allan Webber
92fb87ae8d
Unit tests for BasicFileStorage.file_exists()
2011-04-10 16:23:55 -05:00
Christopher Allan Webber
17e7093e4b
Started BasicFileStorage tests. test_basic_storage__resolve_filepath() done.
...
Also switched to using assert_raises, which is only sane!
2011-04-10 15:50:32 -05:00
Christopher Allan Webber
e579cf544d
Merge branch 'master' of gitorious.org:mediagoblin/mediagoblin
2011-04-10 15:04:21 -05:00
Christopher Allan Webber
644614d4dd
Added the url_for_file stub to the interface
2011-04-10 15:01:00 -05:00
Christopher Allan Webber
1118858140
I don't think we need _create_dirs_for_filepath.
2011-04-10 14:57:23 -05:00
Christopher Allan Webber
779f2b9411
Put down structure of BasicFileStorage, and the ._resolve_filepath() method
2011-04-10 13:38:01 -05:00
Will Kahn-Greene
8736b05d05
Fleshes out documentation.
...
use, what their function is, and urls for library documentation
* adds a forward chapter which talks about the documentation
* adds an installation stub
* adds a software stack chapter that covers what libraries are in
* adds a design decisions chapter which covers why we chose the
libraries and architecture
2011-04-09 18:44:50 -04:00
Christopher Allan Webber
b0de01cf01
More documentation on all the core storage API methods
2011-04-09 14:26:41 -05:00
Christopher Allan Webber
ef10e3a2c7
u'string', but of course ;)
2011-04-09 14:08:07 -05:00
Christopher Allan Webber
0b9cf289c3
Actually, we can implement get_unique_filename, which should be the
...
same across all storage API implementations
2011-04-09 14:05:44 -05:00
Christopher Allan Webber
797be93ca6
Most of the StorageInterface stubs in place and documented.
2011-04-09 14:02:54 -05:00
Christopher Allan Webber
770c12be8d
Raise a specific error if a filename component can't be resolved into anything.
2011-04-09 11:45:38 -05:00
Christopher Allan Webber
a6b378ef4d
file storage filelist cleaning
2011-04-09 11:41:09 -05:00
Christopher Allan Webber
9578fe5047
Include werkzeug. We'll need it for werkzeug.util.secure_filename at least.
2011-04-09 08:11:43 -05:00
Christopher Allan Webber
f75a49b2f2
Adding staticdirect infrastructure from cc.engine
2011-04-09 08:08:23 -05:00