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 |
|
Will Kahn-Greene
|
76c9ea6b5f
|
Adds license/copyright headers to jinja2 templates.
|
2011-04-13 10:21:06 -04:00 |
|
Will Kahn-Greene
|
8e1e744d27
|
Changes Mediagoblin -> MediaGoblin.
|
2011-04-13 10:04:30 -04:00 |
|
Will Kahn-Greene
|
5698a579b2
|
Adds license/copyright header.
|
2011-04-12 22:35:48 -04: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
|
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 |
|
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
|
f75a49b2f2
|
Adding staticdirect infrastructure from cc.engine
|
2011-04-09 08:08:23 -05:00 |
|
Christopher Allan Webber
|
146ad23e9b
|
Herp derp GPL notice blocks should even be on routing.
|
2011-04-03 18:58:23 -05:00 |
|
Christopher Allan Webber
|
c74e1462fe
|
Since we're searching by id, that try: except: was superfluous.
|
2011-04-03 18:56:48 -05:00 |
|
Christopher Allan Webber
|
59dd5c7e96
|
Functioning request.user, and a functioning greeting for users :)
|
2011-04-03 18:55:55 -05:00 |
|
Christopher Allan Webber
|
a3fdcf5ce0
|
This should allow for request.user and show users logged in
... except it's not working?
|
2011-04-03 18:40:01 -05:00 |
|
Christopher Allan Webber
|
5d6840a010
|
We should always have a request.user object, even if None.
|
2011-04-03 18:35:52 -05:00 |
|
Christopher Allan Webber
|
58dec5efe5
|
Added setup_user_in_request
|
2011-04-03 18:34:05 -05:00 |
|
Christopher Allan Webber
|
b058cf15f0
|
We should use one instead of find_one to really make sure there's only
one such user in the database
|
2011-04-03 18:32:29 -05:00 |
|
Christopher Allan Webber
|
d193896315
|
Also handle when there is no such user
|
2011-04-03 18:28:17 -05:00 |
|
Christopher Allan Webber
|
b97232fa2f
|
Working logout function
|
2011-04-03 18:23:40 -05:00 |
|
Christopher Allan Webber
|
a37767172b
|
Logins seem to work.
|
2011-04-03 17:05:30 -05:00 |
|
Christopher Allan Webber
|
4ad5af85e2
|
Added a check_login command to User
|
2011-04-03 16:38:13 -05:00 |
|
Christopher Allan Webber
|
14ba9383de
|
Use beaker from middleware, it's official.
|
2011-04-03 16:37:36 -05:00 |
|
Christopher Allan Webber
|
51479a1d22
|
Clarified documentation on fake_login_attempt and restored bcrypt import
|
2011-04-03 16:37:15 -05:00 |
|
Christopher Allan Webber
|
692fd1c981
|
starting to write login code
|
2011-04-03 16:36:03 -05:00 |
|
Christopher Allan Webber
|
c15c9843b4
|
Added a fake_login_attempt utility.
|
2011-04-03 15:31:16 -05:00 |
|
Christopher Allan Webber
|
f5def6fe23
|
Use the passwordfield for password fields, obviously ;o
|
2011-04-03 15:02:06 -05:00 |
|
Christopher Allan Webber
|
73cb7b8efc
|
Return an HTTPFound, not HTTPTemporaryRedirect
|
2011-04-03 14:58:51 -05:00 |
|
Christopher Allan Webber
|
2418182016
|
Registering almost works right :)
|
2011-04-03 13:35:18 -05:00 |
|
Christopher Allan Webber
|
a0598d5cae
|
Base mediagoblin template, and register templates
|
2011-04-03 13:35:01 -05:00 |
|
Christopher Allan Webber
|
e0bc23d370
|
We should return a unicode object in bcrypt_gen_password_hash
|
2011-04-03 13:33:45 -05:00 |
|
Christopher Allan Webber
|
73a6e206e6
|
Put the User object officially in the 'users' document collection
|
2011-04-03 09:58:35 -05:00 |
|
Christopher Allan Webber
|
db78002412
|
Also make sure the auth system successfully returns False when login
failboats.
|
2011-04-02 12:42:07 -05:00 |
|
Christopher Allan Webber
|
62615b8133
|
Where did this o come from.
|
2011-04-02 11:20:36 -05:00 |
|
Christopher Allan Webber
|
4b5f4e8791
|
Unit tests for our bcrypt auth stuff. Our first tests!
|
2011-04-02 10:48:34 -05:00 |
|