6e41c71c49Adding the hidden next field to the login page so we actually do redirect
Christopher Allan Webber
2011-04-23 12:56:32 -05:00
f6f524bf59submit_start written in a way that, by golly, you'd think maybe it'd work
Christopher Allan Webber
2011-04-23 12:56:01 -05:00
574d1511d6Probably better to request.POST.get?
Christopher Allan Webber
2011-04-23 12:54:11 -05:00
e745ce10c9we should check for request.user['status'] not request.user['session'], clearly.
Christopher Allan Webber
2011-04-23 11:30:20 -05:00
74ae6b112amaking state for MediaEntry objects, also adding attributes: - media_files - attachment_files - queue_files - thumbnail_file
Christopher Allan Webber
2011-04-23 10:51:55 -05:00
7bf3f5db0fAdding a space for custom validators, though we haven't used it yet :)
Christopher Allan Webber
2011-04-23 09:03:25 -05:00
4d75522b91Give User a status, also add uploader user field to MediaEntry
Christopher Allan Webber
2011-04-23 08:52:23 -05:00
7eba0306d8Provide a next= url when we require logging in
Christopher Allan Webber
2011-04-23 08:46:02 -05:00
efb291d633Fixes CC0 language
Will Kahn-Greene
2011-04-22 22:08:49 -04:00
6a338d8e0eUpdates contributing howto
Will Kahn-Greene
2011-04-22 22:02:55 -04:00
fad67707e1License/copyright changes
Will Kahn-Greene
2011-04-19 22:42:08 -04:00
ddff7cce3eutil.setup_user_in_request must be called last
Christopher Allan Webber
2011-04-19 19:16:56 -05:00
6648c52ba8Use request.app.db, not request.db
Christopher Allan Webber
2011-04-19 19:11:38 -05:00
9ec5910861Merge branch 'master' of gitorious.org:mediagoblin/mediagoblin
Christopher Allan Webber
2011-04-19 19:05:58 -05:00
e323a06851Start of the submit view, but not much there quite yet.
Christopher Allan Webber
2011-04-19 19:05:46 -05:00
bb3eaf20eaNew requires_active_login decorator!
Christopher Allan Webber
2011-04-19 19:04:22 -05:00
c66d0f5c66Hackinghowto tweaks
Will Kahn-Greene
2011-04-19 12:37:20 -04:00
54e219fed1Makes most sense for [server:main] to be at bottom
Christopher Allan Webber
2011-04-17 16:45:36 -05:00
0dd6594596Move the request.app stuff to the same area
Christopher Allan Webber
2011-04-17 16:36:01 -05:00
582c4d5fb2Add the staticdirector stuff to the mediagoblin wsgi app.
Christopher Allan Webber
2011-04-17 16:30:51 -05:00
dae6add99eHow to run the server
Christopher Allan Webber
2011-04-17 14:05:56 -05:00
719f82bad3Updated hackinghowto.rst with info on how to use the new buildout stuff.
Christopher Allan Webber
2011-04-17 14:04:07 -05:00
df0953ce45Buildout script which creates user_dev directory and necessary subdirectories for the user.
Christopher Allan Webber
2011-04-17 13:44:10 -05:00
49461402d1Merge branch 'master' into buildout
Christopher Allan Webber
2011-04-17 12:45:38 -05:00
3a69a5dcd6Base MediaGoblin paste deploy config file.
Christopher Allan Webber
2011-04-17 12:44:39 -05:00
af37cf47b0Buildout'ifying things. - added buildout's bootstrap.py - added buildout.cfg - adjustments to .gitignore.
Christopher Allan Webber
2011-04-17 12:42:48 -05:00
5afdd7a1deActually set up the storage systems
Christopher Allan Webber
2011-04-17 10:36:46 -05:00
d807b7252dReorganization of storage.py.
Christopher Allan Webber
2011-04-17 10:26:52 -05:00
ffa2293549storage.storage_system_from_paste_config() utility, w/ tests
Christopher Allan Webber
2011-04-17 10:24:36 -05:00
cb8ea0fe3fMoved app.load_controller -> util.import_component and added tests.
Christopher Allan Webber
2011-04-17 09:43:03 -05:00
904f61c298documentation for get_jinja_env
Christopher Allan Webber
2011-04-17 09:30:10 -05:00
5afb92275cEncourage storage systems to passively accept extraneous keyword arguments w/ **kwargs.
Christopher Allan Webber
2011-04-17 09:18:12 -05:00
01da9e6a0eTest for BasicFileStorage.file_url()
Christopher Allan Webber
2011-04-16 12:47:15 -05:00
f61a41b89dImport urlparse! Duh. I should remember to turn flymake-mode on.
Christopher Allan Webber
2011-04-16 12:46:58 -05:00
d024806a0bTests for BasicFileStorage.delete_file()
Christopher Allan Webber
2011-04-16 11:03:32 -05:00
d2be0838a7Tests for BasicFileStorage.get_file()
Christopher Allan Webber
2011-04-16 11:00:53 -05:00
d0e3a5341e"if not os.path.exists(directory)", not "if not os.path.exists('directory')"
Christopher Allan Webber
2011-04-16 10:59:23 -05:00
b0bfb766d9when running get_unique_filepath, clean_listy_filepath from the get-go
Christopher Allan Webber
2011-04-16 10:27:03 -05:00
b1bb050b27Added delete_file, url_for_file methods to BasicFileStorage
Christopher Allan Webber
2011-04-16 09:36:36 -05:00
3c1a9d753cIgnore the docs/_build directory.
Christopher Allan Webber
2011-04-15 08:15:13 -05:00
5a40e1ec5cOverhauls TOC of manual
Will Kahn-Greene
2011-04-14 22:28:02 -04:00
76c9ea6b5fAdds license/copyright headers to jinja2 templates.
Will Kahn-Greene
2011-04-13 10:21:06 -04:00
908dee6b15Clarifies licensing for the project.
Will Kahn-Greene
2011-04-13 10:13:35 -04:00
8e1e744d27Changes Mediagoblin -> MediaGoblin.
Will Kahn-Greene
2011-04-13 10:04:30 -04:00
56d507b60bAdds documentation.
Will Kahn-Greene
2011-04-12 22:36:19 -04:00
5698a579b2Adds license/copyright header.
Will Kahn-Greene
2011-04-12 22:35:48 -04:00
00fdc7bdeeFixes docs.
Will Kahn-Greene
2011-04-12 19:56:04 -04:00
3c013c5b79Adding a file for testing of CIA bot
Matt Lee
2011-04-11 15:18:41 -04:00
a130260873Started the workflow document. Currently just mockups. Soon: more techy info.
Christopher Allan Webber
2011-04-11 08:39:23 -05:00
cee7a1c163get_file() implementation for BasicFileStorage
Christopher Allan Webber
2011-04-10 17:03:23 -05:00
20e3ee115dTest BasicFileStorage.get_unique_filepath()
Christopher Allan Webber
2011-04-10 16:51:25 -05:00
2fdec8270dWe should import uuid, because we use it!
Christopher Allan Webber
2011-04-10 16:50:52 -05:00
2d1a60739eget_unique_filepath not get_unique_filename!
Christopher Allan Webber
2011-04-10 16:44:47 -05:00
92fb87ae8dUnit tests for BasicFileStorage.file_exists()
Christopher Allan Webber
2011-04-10 16:23:55 -05:00
17e7093e4bStarted BasicFileStorage tests. test_basic_storage__resolve_filepath() done.
Christopher Allan Webber
2011-04-10 15:50:32 -05:00
e579cf544dMerge branch 'master' of gitorious.org:mediagoblin/mediagoblin
Christopher Allan Webber
2011-04-10 15:04:21 -05:00
644614d4ddAdded the url_for_file stub to the interface
Christopher Allan Webber
2011-04-10 15:01:00 -05:00
1118858140I don't think we need _create_dirs_for_filepath.
Christopher Allan Webber
2011-04-10 14:57:23 -05:00
779f2b9411Put down structure of BasicFileStorage, and the ._resolve_filepath() method
Christopher Allan Webber
2011-04-10 13:38:01 -05:00
8736b05d05Fleshes out documentation.
Will Kahn-Greene
2011-04-09 18:43:26 -04:00
b0de01cf01More documentation on all the core storage API methods
Christopher Allan Webber
2011-04-09 14:26:41 -05:00
ef10e3a2c7u'string', but of course ;)
Christopher Allan Webber
2011-04-09 14:08:07 -05:00
0b9cf289c3Actually, we can implement get_unique_filename, which should be the same across all storage API implementations
Christopher Allan Webber
2011-04-09 14:05:44 -05:00
797be93ca6Most of the StorageInterface stubs in place and documented.
Christopher Allan Webber
2011-04-09 14:02:54 -05:00
770c12be8dRaise a specific error if a filename component can't be resolved into anything.
Christopher Allan Webber
2011-04-09 11:45:38 -05:00
a6b378ef4dfile storage filelist cleaning
Christopher Allan Webber
2011-04-09 11:41:09 -05:00
9578fe5047Include werkzeug. We'll need it for werkzeug.util.secure_filename at least.
Christopher Allan Webber
2011-04-09 08:11:43 -05:00
f75a49b2f2Adding staticdirect infrastructure from cc.engine
Christopher Allan Webber
2011-04-09 08:08:23 -05:00
3eae167e0fAdds Sphinx docs infrastructure.
Will Kahn-Greene
2011-04-07 20:11:06 -04:00
146ad23e9bHerp derp GPL notice blocks should even be on routing.
Christopher Allan Webber
2011-04-03 18:58:23 -05:00
c74e1462feSince we're searching by id, that try: except: was superfluous.
Christopher Allan Webber
2011-04-03 18:56:48 -05:00
59dd5c7e96Functioning request.user, and a functioning greeting for users :)
Christopher Allan Webber
2011-04-03 18:55:55 -05:00
a3fdcf5ce0This should allow for request.user and show users logged in
Christopher Allan Webber
2011-04-03 18:40:01 -05:00
5d6840a010We should always have a request.user object, even if None.
Christopher Allan Webber
2011-04-03 18:35:52 -05:00
58dec5efe5Added setup_user_in_request
Christopher Allan Webber
2011-04-03 18:34:05 -05:00
b058cf15f0We should use one instead of find_one to really make sure there's only one such user in the database
Christopher Allan Webber
2011-04-03 18:32:29 -05:00
d193896315Also handle when there is no such user
Christopher Allan Webber
2011-04-03 18:28:17 -05:00
b97232fa2fWorking logout function
Christopher Allan Webber
2011-04-03 18:23:40 -05:00
a37767172bLogins seem to work.
Christopher Allan Webber
2011-04-03 17:05:30 -05:00
4ad5af85e2Added a check_login command to User
Christopher Allan Webber
2011-04-03 16:38:13 -05:00
14ba9383deUse beaker from middleware, it's official.
Christopher Allan Webber
2011-04-03 16:37:36 -05:00
51479a1d22Clarified documentation on fake_login_attempt and restored bcrypt import
Christopher Allan Webber
2011-04-03 16:37:15 -05:00
692fd1c981starting to write login code
Christopher Allan Webber
2011-04-03 16:32:01 -05:00
c15c9843b4Added a fake_login_attempt utility.
Christopher Allan Webber
2011-04-03 15:31:16 -05:00
f5def6fe23Use the passwordfield for password fields, obviously ;o
Christopher Allan Webber
2011-04-03 15:02:06 -05:00
73cb7b8efcReturn an HTTPFound, not HTTPTemporaryRedirect
Christopher Allan Webber
2011-04-03 14:58:51 -05:00
2418182016Registering almost works right :)
Christopher Allan Webber
2011-04-03 13:35:18 -05:00
a0598d5caeBase mediagoblin template, and register templates
Christopher Allan Webber
2011-04-03 13:35:01 -05:00
e0bc23d370We should return a unicode object in bcrypt_gen_password_hash
Christopher Allan Webber
2011-04-03 13:33:45 -05:00
73a6e206e6Put the User object officially in the 'users' document collection
Christopher Allan Webber
2011-04-03 09:58:35 -05:00
db78002412Also make sure the auth system successfully returns False when login failboats.
Christopher Allan Webber
2011-04-02 12:42:07 -05:00
62615b8133Where did this o come from.
Christopher Allan Webber
2011-04-02 11:20:36 -05:00
80873214d6Merge branch 'master' of gitorious.org:mediagoblin/mediagoblin
Christopher Allan Webber
2011-04-02 10:49:16 -05:00
4b5f4e8791Unit tests for our bcrypt auth stuff. Our first tests!
Christopher Allan Webber
2011-04-02 10:48:34 -05:00
6755f50e8eBasic authentication tools using py-bcrypt
Christopher Allan Webber
2011-04-02 10:29:54 -05:00
f7294dd961Added catalogue number
Matt Lee
2011-03-28 10:28:10 -04:00
ebc4ab71a2HTML export of the READMEish braindump.
Christopher Allan Webber
2011-03-27 23:38:27 -05:00
869704d650A semi-verbose braindump of what I think GNU MediaGoblin will use / look like / be.
Christopher Allan Webber
2011-03-27 23:25:50 -05:00
cf99711dcdAdded copying and authors files
Matt Lee
2011-03-27 18:48:15 -04:00
e5572c6077Added copyright notices
Matt Lee
2011-03-27 18:47:23 -04:00