443 Commits

Author SHA1 Message Date
Christopher Allan Webber
3fd659e0eb Merge branch 'master' of gitorious.org:mediagoblin/mediagoblin 2011-06-13 21:02:16 -05:00
Christopher Allan Webber
a68ee5556e A super strict HTML cleaner method with mediocre tests. 2011-06-13 21:01:19 -05:00
Will Kahn-Greene
6729d65a32 Adds local toc sections
* Some of our chapters are pretty long and this should make it much
  easier for a user to find what they're looking for and jumping
  to it.  It's easier to read the section toc at the top of the
  chapter, than it is to read it in the sidebar.
2011-06-13 12:31:23 -04:00
Will Kahn-Greene
03db7d6c74 Updates version in docs 2011-06-13 12:25:15 -04:00
Christopher Allan Webber
1e85d28e01 Already mentioned, but clarifying that branches should be localized to
a feature/bugfix/issue.
2011-06-13 09:08:18 -05:00
Will Kahn-Greene
fb6924170d Tweaks git workflow structure
* minor tweaking of the headers of the git workflow to break
  things up and organize them a bit better
2011-06-12 22:46:25 -04:00
Will Kahn-Greene
909c639d07 Fixes git workflow
* overhauls the docs so they're (hopefully) clearer on the git
  workflow
* adds text about putting things in bugfix branches, documenting
  your work, and using the issue tracker
* adds a contrived example that uses aliens
2011-06-12 22:43:19 -04:00
Christopher Allan Webber
48a7ba1e1c Merge remote branch 'remotes/elrond/idea/simple_proc_media_clean'
Conflicts:
	mediagoblin/process_media/__init__.py
2011-06-12 17:42:26 -05:00
cfdv
34d35a2393 ensure color mode compatibility when making image thumbnails 2011-06-12 17:35:07 -05:00
Christopher Allan Webber
300c34e8ce First import of mg_globals as mgg, partly because I just wanted it to
be clear that it's okay to do by doing it *somewhere* :)
2011-06-12 17:28:54 -05:00
Christopher Allan Webber
6e7ce8d1af mediagoblin.globals->mediagoblin.mg_globals 2011-06-12 17:27:37 -05:00
Christopher Allan Webber
da579dec00 Merge remote branch 'remotes/elrond/idea/clean_celery_setup'
Conflicts:
	mediagoblin/celery_setup/from_celery.py
2011-06-12 09:16:12 -05:00
Christopher Allan Webber
2f968422e9 Merge remote branch 'remotes/elrond/idea/tests_kill_db' 2011-06-12 09:11:39 -05:00
Christopher Allan Webber
68ffb13690 possibly_localize_file->localized_file... a bit less terribly long. 2011-06-11 21:23:32 -05:00
Christopher Allan Webber
ca030ab6cd Switch process_media over to using the workbench. 2011-06-11 21:20:39 -05:00
Christopher Allan Webber
fdc5003903 Don't bother returning whether or not we copied it or not, we can
figure that out by looking to see whether our storage is local or not.
2011-06-11 21:20:26 -05:00
Christopher Allan Webber
a32acafa0b Moving workbench out of process_media 2011-06-11 20:33:41 -05:00
Christopher Allan Webber
d40f55e3d9 Merge branch 'master' into workbench 2011-06-11 19:49:44 -05:00
Christopher Allan Webber
894facc68d Import mediagoblin.globals as mg_globals so we can be sure things are
set up in the right order.
2011-06-11 19:48:49 -05:00
Christopher Allan Webber
7ecc58cc5c Have the application set up instances of the WorkbenchManager. 2011-06-11 19:47:02 -05:00
Christopher Allan Webber
f43ecb0fc4 test WorkbenchManager.possibly_localize_file() 2011-06-11 19:18:51 -05:00
Christopher Allan Webber
f2b96ff0a4 We don't need this extra '.' in making the filename 2011-06-11 19:18:27 -05:00
Christopher Allan Webber
d91b5a7c2d Added a FakeRemoteStorage, for testing purposes 2011-06-11 19:17:44 -05:00
Christopher Allan Webber
2ecee34f08 Make sure workbench won't kill directories out of scope. 2011-06-11 18:52:48 -05:00
Christopher Allan Webber
2616d70903 Tests for creating/destroying workbenches 2011-06-11 18:49:04 -05:00
Christopher Allan Webber
678d1a20ea Wrote functions and documentation for all the WorkbenchManager
functions but haven't actually tested them yet. :)
2011-06-11 17:28:58 -05:00
Christopher Allan Webber
68784b9e6a Base structure of workbench manager 2011-06-11 16:48:39 -05:00
Christopher Allan Webber
6a07362dd0 Adding a copy_locally() method to the StorageInterface and giving it a test. 2011-06-11 12:04:30 -05:00
Christopher Allan Webber
3a89c23e7f Allow storage systems to be local and allow for a get_local_path
method if applicable.
2011-06-11 11:18:03 -05:00
Elrond
12c559447a Tests: Kill the whole testing database after all tests
nose allows setup and teardown functions at the package
level. So use this to drop the complete database after all
tests have finished.
2011-06-10 21:59:04 +02:00
Elrond
e893094a06 celery_setup: drop param to setup_self and simplify OUR_MODULENAME
setup_self used to look like this:
	setup_self(setup_globals_func=setup_globals)
The function isn't called with any param, so drop it.
Rewrite function as needed.

The module var OUR_MODULENAME just has the module's name in
it. This is available as __name__ anyway, so use this to
initialize the var.
2011-06-10 21:20:18 +02:00
Elrond
180bdbde93 Refactor filename generation in the public store
Just a small refactoring of the filename setup in the
public store. Very simple.
2011-06-08 23:22:11 +02:00
Christopher Allan Webber
d07713d0b0 This attribute in quotes, too. :) 2011-06-07 20:39:51 -05:00
Christopher Allan Webber
960cbf9689 XML attributes must be in quotes! 2011-06-07 20:38:05 -05:00
Christopher Allan Webber
eb21f9a6cb Fixing check_filetype...
We need to check the first part of the guess_type returned tuple, and
also this try: except: doesn't belong here, so killing.
2011-06-07 00:36:24 -05:00
Christopher Allan Webber
fe4ffb860f Added a comment to clarify that this shouldn't stay here. 2011-06-06 07:57:05 -05:00
Christopher Allan Webber
2190ecde8d Merge remote branch 'remotes/gandaro/324-bad-media-types' 2011-06-06 07:51:17 -05:00
Christopher Allan Webber
3aa4c668b9 A setup_fresh_app decorator which should make writing tests a bit easier.
Setting test_register_views() to use it also.
2011-06-06 07:45:18 -05:00
Christopher Allan Webber
66471f0ee4 A clear_test_buckets() method 2011-06-06 07:44:12 -05:00
Christopher Allan Webber
2fecc29d06 Docstring for test_register_views() 2011-06-05 18:16:31 -05:00
Christopher Allan Webber
8a869db8e4 Make sure that two users with the same username can't register. 2011-06-05 18:14:48 -05:00
Christopher Allan Webber
7b1e17ed0d Email verification view test works 2011-06-05 17:49:43 -05:00
Christopher Allan Webber
1972a888b3 Make sure we can register, and then that we get the verification email 2011-06-05 17:39:47 -05:00
Christopher Allan Webber
23cc15c998 Use render_template utility so we can test whether or not this email
sends
2011-06-05 17:35:20 -05:00
Christopher Allan Webber
2c3fd5c5bf Moved the verification url generation string template to a global variable 2011-06-05 17:31:45 -05:00
Christopher Allan Webber
8045fd4074 Make sure that get_test_app() really does wipe the database 2011-06-05 16:43:25 -05:00
Christopher Allan Webber
2262b2a9e1 Made a simple template rendering view and switched a bunch of code over to using it 2011-06-05 15:58:35 -05:00
Christopher Allan Webber
9038c9f9ac I have a strong preference for aligning all parameters in a function call. 2011-06-05 15:41:08 -05:00
Christopher Allan Webber
a7fcc027aa Merge remote branch 'remotes/elrond/idea/shortcuts' 2011-06-05 15:36:51 -05:00
Christopher Allan Webber
cb9bac0c83 Just a bit of formatting for these unfinished tests ;) 2011-06-05 15:33:48 -05:00