mediagoblin.git
13 years agoReorganization of storage.py.
Christopher Allan Webber [Sun, 17 Apr 2011 15:26:52 +0000 (10:26 -0500)]
Reorganization of storage.py.

Ordering: Errors, Storage interface / implementation, utils.

13 years agostorage.storage_system_from_paste_config() utility, w/ tests
Christopher Allan Webber [Sun, 17 Apr 2011 15:24:36 +0000 (10:24 -0500)]
storage.storage_system_from_paste_config() utility, w/ tests

13 years agoMoved app.load_controller -> util.import_component and added tests.
Christopher Allan Webber [Sun, 17 Apr 2011 14:43:03 +0000 (09:43 -0500)]
Moved app.load_controller -> util.import_component and added tests.

13 years agodocumentation for get_jinja_env
Christopher Allan Webber [Sun, 17 Apr 2011 14:30:10 +0000 (09:30 -0500)]
documentation for get_jinja_env

13 years agoEncourage storage systems to passively accept extraneous keyword
Christopher Allan Webber [Sun, 17 Apr 2011 14:18:12 +0000 (09:18 -0500)]
Encourage storage systems to passively accept extraneous keyword
arguments w/ **kwargs.

Also did that for BasicFileStorage.

13 years agoTest for BasicFileStorage.file_url()
Christopher Allan Webber [Sat, 16 Apr 2011 17:47:15 +0000 (12:47 -0500)]
Test for BasicFileStorage.file_url()

13 years agoImport urlparse! Duh. I should remember to turn flymake-mode on.
Christopher Allan Webber [Sat, 16 Apr 2011 17:46:58 +0000 (12:46 -0500)]
Import urlparse!  Duh.  I should remember to turn flymake-mode on.

13 years agoTests for BasicFileStorage.delete_file()
Christopher Allan Webber [Sat, 16 Apr 2011 16:03:32 +0000 (11:03 -0500)]
Tests for BasicFileStorage.delete_file()

13 years agoTests for BasicFileStorage.get_file()
Christopher Allan Webber [Sat, 16 Apr 2011 16:00:53 +0000 (11:00 -0500)]
Tests for BasicFileStorage.get_file()

13 years ago"if not os.path.exists(directory)", not "if not os.path.exists('directory')"
Christopher Allan Webber [Sat, 16 Apr 2011 15:59:23 +0000 (10:59 -0500)]
"if not os.path.exists(directory)", not "if not os.path.exists('directory')"

13 years agowhen running get_unique_filepath, clean_listy_filepath from the get-go
Christopher Allan Webber [Sat, 16 Apr 2011 15:27:03 +0000 (10:27 -0500)]
when running get_unique_filepath, clean_listy_filepath from the get-go

13 years agoAdded delete_file, url_for_file methods to BasicFileStorage
Christopher Allan Webber [Sat, 16 Apr 2011 14:36:36 +0000 (09:36 -0500)]
Added delete_file, url_for_file methods to BasicFileStorage

13 years agoIgnore the docs/_build directory.
Christopher Allan Webber [Fri, 15 Apr 2011 13:15:13 +0000 (08:15 -0500)]
Ignore the docs/_build directory.

13 years agoOverhauls TOC of manual
Will Kahn-Greene [Fri, 15 Apr 2011 02:28:02 +0000 (22:28 -0400)]
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.

13 years agoAdds license/copyright headers to jinja2 templates.
Will Kahn-Greene [Wed, 13 Apr 2011 14:21:06 +0000 (10:21 -0400)]
Adds license/copyright headers to jinja2 templates.

13 years agoClarifies licensing for the project.
Will Kahn-Greene [Wed, 13 Apr 2011 14:13:35 +0000 (10:13 -0400)]
Clarifies licensing for the project.

13 years agoChanges Mediagoblin -> MediaGoblin.
Will Kahn-Greene [Wed, 13 Apr 2011 14:04:30 +0000 (10:04 -0400)]
Changes Mediagoblin -> MediaGoblin.

13 years agoAdds documentation.
Will Kahn-Greene [Wed, 13 Apr 2011 02:36:19 +0000 (22:36 -0400)]
Adds documentation.

* wrote up some basic bits of a hacking howto
* added a better deployment howto stub

13 years agoAdds license/copyright header.
Will Kahn-Greene [Wed, 13 Apr 2011 02:35:48 +0000 (22:35 -0400)]
Adds license/copyright header.

13 years agoFixes docs.
Will Kahn-Greene [Tue, 12 Apr 2011 23:56:04 +0000 (19:56 -0400)]
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

13 years agoAdding a file for testing of CIA bot
Matt Lee [Mon, 11 Apr 2011 19:18:41 +0000 (15:18 -0400)]
Adding a file for testing of CIA bot

13 years agoStarted the workflow document. Currently just mockups. Soon: more techy info.
Christopher Allan Webber [Mon, 11 Apr 2011 13:39:23 +0000 (08:39 -0500)]
Started the workflow document.  Currently just mockups.  Soon: more techy info.

13 years agoget_file() implementation for BasicFileStorage
Christopher Allan Webber [Sun, 10 Apr 2011 22:03:23 +0000 (17:03 -0500)]
get_file() implementation for BasicFileStorage

13 years agoTest BasicFileStorage.get_unique_filepath()
Christopher Allan Webber [Sun, 10 Apr 2011 21:51:25 +0000 (16:51 -0500)]
Test BasicFileStorage.get_unique_filepath()

13 years agoWe should import uuid, because we use it!
Christopher Allan Webber [Sun, 10 Apr 2011 21:50:52 +0000 (16:50 -0500)]
We should import uuid, because we use it!

13 years agoget_unique_filepath not get_unique_filename!
Christopher Allan Webber [Sun, 10 Apr 2011 21:44:47 +0000 (16:44 -0500)]
get_unique_filepath not get_unique_filename!

13 years agoUnit tests for BasicFileStorage.file_exists()
Christopher Allan Webber [Sun, 10 Apr 2011 21:23:55 +0000 (16:23 -0500)]
Unit tests for BasicFileStorage.file_exists()

13 years agoStarted BasicFileStorage tests. test_basic_storage__resolve_filepath() done.
Christopher Allan Webber [Sun, 10 Apr 2011 20:50:32 +0000 (15:50 -0500)]
Started BasicFileStorage tests.  test_basic_storage__resolve_filepath() done.

Also switched to using assert_raises, which is only sane!

13 years agoMerge branch 'master' of gitorious.org:mediagoblin/mediagoblin
Christopher Allan Webber [Sun, 10 Apr 2011 20:04:21 +0000 (15:04 -0500)]
Merge branch 'master' of gitorious.org:mediagoblin/mediagoblin

13 years agoAdded the url_for_file stub to the interface
Christopher Allan Webber [Sun, 10 Apr 2011 20:01:00 +0000 (15:01 -0500)]
Added the url_for_file stub to the interface

13 years agoI don't think we need _create_dirs_for_filepath.
Christopher Allan Webber [Sun, 10 Apr 2011 19:57:23 +0000 (14:57 -0500)]
I don't think we need _create_dirs_for_filepath.

13 years agoPut down structure of BasicFileStorage, and the ._resolve_filepath() method
Christopher Allan Webber [Sun, 10 Apr 2011 18:38:01 +0000 (13:38 -0500)]
Put down structure of BasicFileStorage, and the ._resolve_filepath() method

13 years agoFleshes out documentation.
Will Kahn-Greene [Sat, 9 Apr 2011 22:43:26 +0000 (18:43 -0400)]
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

13 years agoMore documentation on all the core storage API methods
Christopher Allan Webber [Sat, 9 Apr 2011 19:26:41 +0000 (14:26 -0500)]
More documentation on all the core storage API methods

13 years agou'string', but of course ;)
Christopher Allan Webber [Sat, 9 Apr 2011 19:08:07 +0000 (14:08 -0500)]
u'string', but of course ;)

13 years agoActually, we can implement get_unique_filename, which should be the
Christopher Allan Webber [Sat, 9 Apr 2011 19:05:44 +0000 (14:05 -0500)]
Actually, we can implement get_unique_filename, which should be the
same across all storage API implementations

13 years agoMost of the StorageInterface stubs in place and documented.
Christopher Allan Webber [Sat, 9 Apr 2011 19:02:54 +0000 (14:02 -0500)]
Most of the StorageInterface stubs in place and documented.

13 years agoRaise a specific error if a filename component can't be resolved into anything.
Christopher Allan Webber [Sat, 9 Apr 2011 16:45:38 +0000 (11:45 -0500)]
Raise a specific error if a filename component can't be resolved into anything.

13 years agofile storage filelist cleaning
Christopher Allan Webber [Sat, 9 Apr 2011 16:41:09 +0000 (11:41 -0500)]
file storage filelist cleaning

13 years agoInclude werkzeug. We'll need it for werkzeug.util.secure_filename at least.
Christopher Allan Webber [Sat, 9 Apr 2011 13:11:43 +0000 (08:11 -0500)]
Include werkzeug.  We'll need it for werkzeug.util.secure_filename at least.

13 years agoAdding staticdirect infrastructure from cc.engine
Christopher Allan Webber [Sat, 9 Apr 2011 13:08:23 +0000 (08:08 -0500)]
Adding staticdirect infrastructure from cc.engine

13 years agoAdds Sphinx docs infrastructure.
Will Kahn-Greene [Fri, 8 Apr 2011 00:11:06 +0000 (20:11 -0400)]
Adds Sphinx docs infrastructure.

13 years agoHerp derp GPL notice blocks should even be on routing.
Christopher Allan Webber [Sun, 3 Apr 2011 23:58:23 +0000 (18:58 -0500)]
Herp derp GPL notice blocks should even be on routing.

13 years agoSince we're searching by id, that try: except: was superfluous.
Christopher Allan Webber [Sun, 3 Apr 2011 23:56:48 +0000 (18:56 -0500)]
Since we're searching by id, that try: except: was superfluous.

13 years agoFunctioning request.user, and a functioning greeting for users :)
Christopher Allan Webber [Sun, 3 Apr 2011 23:55:55 +0000 (18:55 -0500)]
Functioning request.user, and a functioning greeting for users :)

13 years agoThis should allow for request.user and show users logged in
Christopher Allan Webber [Sun, 3 Apr 2011 23:40:01 +0000 (18:40 -0500)]
This should allow for request.user and show users logged in

... except it's not working?

13 years agoWe should always have a request.user object, even if None.
Christopher Allan Webber [Sun, 3 Apr 2011 23:35:52 +0000 (18:35 -0500)]
We should always have a request.user object, even if None.

13 years agoAdded setup_user_in_request
Christopher Allan Webber [Sun, 3 Apr 2011 23:34:05 +0000 (18:34 -0500)]
Added setup_user_in_request

13 years agoWe should use one instead of find_one to really make sure there's only
Christopher Allan Webber [Sun, 3 Apr 2011 23:32:29 +0000 (18:32 -0500)]
We should use one instead of find_one to really make sure there's only
one such user in the database

13 years agoAlso handle when there is no such user
Christopher Allan Webber [Sun, 3 Apr 2011 23:28:17 +0000 (18:28 -0500)]
Also handle when there is no such user

13 years agoWorking logout function
Christopher Allan Webber [Sun, 3 Apr 2011 23:23:40 +0000 (18:23 -0500)]
Working logout function

13 years agoLogins seem to work.
Christopher Allan Webber [Sun, 3 Apr 2011 22:05:30 +0000 (17:05 -0500)]
Logins seem to work.

13 years agoAdded a check_login command to User
Christopher Allan Webber [Sun, 3 Apr 2011 21:38:13 +0000 (16:38 -0500)]
Added a check_login command to User

13 years agoUse beaker from middleware, it's official.
Christopher Allan Webber [Sun, 3 Apr 2011 21:37:36 +0000 (16:37 -0500)]
Use beaker from middleware, it's official.

13 years agoClarified documentation on fake_login_attempt and restored bcrypt import
Christopher Allan Webber [Sun, 3 Apr 2011 21:37:15 +0000 (16:37 -0500)]
Clarified documentation on fake_login_attempt and restored bcrypt import

13 years agostarting to write login code
Christopher Allan Webber [Sun, 3 Apr 2011 21:32:01 +0000 (16:32 -0500)]
starting to write login code

13 years agoAdded a fake_login_attempt utility.
Christopher Allan Webber [Sun, 3 Apr 2011 20:31:16 +0000 (15:31 -0500)]
Added a fake_login_attempt utility.

13 years agoUse the passwordfield for password fields, obviously ;o
Christopher Allan Webber [Sun, 3 Apr 2011 20:02:06 +0000 (15:02 -0500)]
Use the passwordfield for password fields, obviously ;o

13 years agoReturn an HTTPFound, not HTTPTemporaryRedirect
Christopher Allan Webber [Sun, 3 Apr 2011 19:58:51 +0000 (14:58 -0500)]
Return an HTTPFound, not HTTPTemporaryRedirect

13 years agoRegistering almost works right :)
Christopher Allan Webber [Sun, 3 Apr 2011 18:35:18 +0000 (13:35 -0500)]
Registering almost works right :)

13 years agoBase mediagoblin template, and register templates
Christopher Allan Webber [Sun, 3 Apr 2011 18:35:01 +0000 (13:35 -0500)]
Base mediagoblin template, and register templates

13 years agoWe should return a unicode object in bcrypt_gen_password_hash
Christopher Allan Webber [Sun, 3 Apr 2011 18:33:45 +0000 (13:33 -0500)]
We should return a unicode object in bcrypt_gen_password_hash

13 years agoPut the User object officially in the 'users' document collection
Christopher Allan Webber [Sun, 3 Apr 2011 14:58:35 +0000 (09:58 -0500)]
Put the User object officially in the 'users' document collection

13 years agoAlso make sure the auth system successfully returns False when login
Christopher Allan Webber [Sat, 2 Apr 2011 17:42:07 +0000 (12:42 -0500)]
Also make sure the auth system successfully returns False when login
failboats.

13 years agoWhere did this o come from.
Christopher Allan Webber [Sat, 2 Apr 2011 16:20:36 +0000 (11:20 -0500)]
Where did this o come from.

13 years agoMerge branch 'master' of gitorious.org:mediagoblin/mediagoblin
Christopher Allan Webber [Sat, 2 Apr 2011 15:49:16 +0000 (10:49 -0500)]
Merge branch 'master' of gitorious.org:mediagoblin/mediagoblin

13 years agoUnit tests for our bcrypt auth stuff. Our first tests!
Christopher Allan Webber [Sat, 2 Apr 2011 15:48:34 +0000 (10:48 -0500)]
Unit tests for our bcrypt auth stuff.  Our first tests!

13 years agoBasic authentication tools using py-bcrypt
Christopher Allan Webber [Sat, 2 Apr 2011 15:29:54 +0000 (10:29 -0500)]
Basic authentication tools using py-bcrypt

13 years agoAdded catalogue number
Matt Lee [Mon, 28 Mar 2011 14:28:10 +0000 (10:28 -0400)]
Added catalogue number

13 years agoHTML export of the READMEish braindump.
Christopher Allan Webber [Mon, 28 Mar 2011 04:38:27 +0000 (23:38 -0500)]
HTML export of the READMEish braindump.

13 years agoA semi-verbose braindump of what I think GNU MediaGoblin will use / look like / be.
Christopher Allan Webber [Mon, 28 Mar 2011 04:25:50 +0000 (23:25 -0500)]
A semi-verbose braindump of what I think GNU MediaGoblin will use / look like / be.

13 years agoAdded copying and authors files
Matt Lee [Sun, 27 Mar 2011 22:48:15 +0000 (18:48 -0400)]
Added copying and authors files

13 years agoAdded copyright notices
Matt Lee [Sun, 27 Mar 2011 22:47:23 +0000 (18:47 -0400)]
Added copyright notices

13 years agoA testing submit view that doesn't work but is getting closer to working.
Christopher Allan Webber [Sun, 27 Mar 2011 22:32:27 +0000 (17:32 -0500)]
A testing submit view that doesn't work but is getting closer to working.

13 years ago__collection__ should be auto-defined as media_entries
Christopher Allan Webber [Sun, 27 Mar 2011 22:31:18 +0000 (17:31 -0500)]
__collection__ should be auto-defined as media_entries

13 years agoerp, connection[database_path] not connection['database_path'] obviously :P
Christopher Allan Webber [Sun, 27 Mar 2011 22:30:42 +0000 (17:30 -0500)]
erp, connection[database_path] not connection['database_path'] obviously :P

13 years agoIgnore mediagoblin egg-info
Christopher Allan Webber [Sun, 27 Mar 2011 22:29:59 +0000 (17:29 -0500)]
Ignore mediagoblin egg-info

13 years agoProperly load in the database and register the connection with the models
Christopher Allan Webber [Sat, 26 Mar 2011 18:03:32 +0000 (13:03 -0500)]
Properly load in the database and register the connection with the models

13 years agodate_creation should be created
Christopher Allan Webber [Sat, 26 Mar 2011 16:45:11 +0000 (11:45 -0500)]
date_creation should be created

13 years agorequired_values, default_values! For the only two models we have.
Christopher Allan Webber [Sat, 26 Mar 2011 14:10:04 +0000 (09:10 -0500)]
required_values, default_values!  For the only two models we have.

13 years agoA simple register_modules helper function.
Christopher Allan Webber [Sat, 26 Mar 2011 02:27:52 +0000 (21:27 -0500)]
A simple register_modules helper function.

13 years agoAdding a skeletal models.py
Christopher Allan Webber [Fri, 25 Mar 2011 01:19:25 +0000 (20:19 -0500)]
Adding a skeletal models.py

13 years agoRequiring mongokit
Christopher Allan Webber [Fri, 25 Mar 2011 00:54:06 +0000 (19:54 -0500)]
Requiring mongokit

13 years agoCommenting out beaker till we start using it :)
Christopher Allan Webber [Fri, 25 Mar 2011 00:06:31 +0000 (19:06 -0500)]
Commenting out beaker till we start using it :)

13 years agoAdding requirements :)
Christopher Allan Webber [Fri, 25 Mar 2011 00:00:55 +0000 (19:00 -0500)]
Adding requirements :)

14 years agobeakered_app removed from the paste_app_factory. Deployers should
Christopher Allan Webber [Sun, 18 Jul 2010 22:59:40 +0000 (17:59 -0500)]
beakered_app removed from the paste_app_factory.  Deployers should
wrap the app w/ beaker themselves

14 years agoAdded session support w/ beaker
Christopher Allan Webber [Sun, 18 Jul 2010 20:59:23 +0000 (15:59 -0500)]
Added session support w/ beaker

14 years agoStill totally useless but at least it writes to the database
Christopher Allan Webber [Sun, 18 Jul 2010 20:21:51 +0000 (15:21 -0500)]
Still totally useless but at least it writes to the database

14 years agoStarting with the test submit view using wtforms
Christopher Allan Webber [Sun, 18 Jul 2010 16:22:24 +0000 (11:22 -0500)]
Starting with the test submit view  using wtforms

14 years agoA few adustments to the routing and etc
Christopher Allan Webber [Sun, 18 Jul 2010 16:20:18 +0000 (11:20 -0500)]
A few adustments to the routing and etc

14 years agoBasic but useless connection to the database
Christopher Allan Webber [Sat, 17 Jul 2010 18:32:57 +0000 (13:32 -0500)]
Basic but useless connection to the database

14 years agoInitial mediagoblin structure
Christopher Allan Webber [Sat, 17 Jul 2010 16:33:08 +0000 (11:33 -0500)]
Initial mediagoblin structure