1779 Commits

Author SHA1 Message Date
Christopher Allan Webber
b594eadfbf kombu-sqlalchemy a requirement in order for kombu sqlalchemy transport to work 2012-02-26 13:25:02 -06:00
Christopher Allan Webber
b2a7e44c9e Move mediagoblin dbs out of user_dev for race condition directory-creation reasons. 2012-02-26 08:20:17 -06:00
Christopher Allan Webber
b94dfe4cbf Give kombu its own db. Responding to Elrond "sqlite will lock all the time!" :) 2012-02-26 07:58:40 -06:00
Christopher Allan Webber
200abf856b Apparently an absolute path is three slashes after sqlite:. Thx elrond.
sqlite:///////////////////////////////////whaaaaaa.db
2012-02-26 07:46:23 -06:00
Christopher Allan Webber
e629cde0b3 Should be all that's needed to switch celery/kombu settings to sqlalchemy 2012-02-25 22:39:38 -06:00
Elrond
58f96a13e4 Allow .id instead of ._id for the Mongo backend
To allow easier migration to the SQLAlchemy style .id give
the User and MediaEntry mongo classes an alias attribute of
.id that maps to ['_id'].

Use it in the upload process, because this was one of the
last positions with a ['_id'] instead of ._id (due to a bug
in mongokit).
2012-02-25 14:10:57 +01:00
Elrond
9891351256 Create "gmg convert_mongo_to_sql" command
Finally, to make testing of sql a bit easier, create a
bin/gmg command to do the conversion from mongo to sql.
It's currently named "convert_mongo_to_sql".

The most important option is the gmg -cf option to give a
configfile with the appropiate sql_engine definition.
2012-02-23 23:49:09 +01:00
Elrond
1582181701 mongo to sql convert: Better Ordering
Order the conversion by the "created" attribute. That way
the sql ids are mostly in the order they would have been,
if sql was used earlier.

Makes things nicer to look at in a db dump.
2012-02-23 23:44:13 +01:00
Elrond
572d4f01ff Use task_id in generating the queue file path
The task_id is created anyway as a UUID. So it is very
unique per definition. The only thing needed for the queue
file path is a unique part.

Before the objectid of the MediaEntry was used instead. But
in the sql world the objectid is only available after an
"insert" on the db. And creating the queue_file_path
afterwards would require an "update" on the db. We can save
that. ... for now.
2012-02-21 20:47:26 +01:00
Christopher Allan Webber
99812bbc4a We now require sqlalchemy and sqlalchemy-migrate 2012-02-19 15:30:38 -06:00
Christopher Allan Webber
d2506eebb4 Commenting out the migrations that don't exist yet 2012-02-18 23:19:41 -06:00
Christopher Allan Webber
3ea1cf36fc Updates so that dbupdate command works
- Various fixes to dbupdate itself
 - Switching db/sql/migrations.py to use a dict instead of a list
 - Registering the function
2012-02-18 23:19:09 -06:00
Christopher Allan Webber
4d8be4fe0d Merge branch 'master' into sqlmigrate 2012-02-18 15:33:29 -06:00
Elrond
a45631e3f3 Start having useful defaults for SQL
Mostly this means: Havintg a config_spec.ini that has a
local (relative to mediagoblin.ini) sqlite db with the name
"mediagoblin.db".

Also:
- Add to .gitignore
- Add a notice to mediagoblin.ini about the db
2012-02-18 19:34:11 +01:00
Elrond
6456cefa0d Fix MediaTag __init__ to handle no args
Let the init code also handle createing a fresh clean
instance without any attrs set.
2012-02-18 19:34:11 +01:00
Elrond
cf27accc9e SQL: fail_metadata as JSON encoded field
fail_metadata used to be a dict in mongo. So a json encoded
field should be okay too.

We could use a pickled field instead, which would be more
flexible.
2012-02-18 19:29:01 +01:00
Christopher Allan Webber
63352aaf70 Merge branch 'master' into sqlmigrate
Conflicts:
	mediagoblin/db/sql/models.py
2012-02-18 10:01:47 -06:00
Elrond
feba5c5287 Drop pre-rendered html: MediaComment.content_html
After a bit of discussion, we decided to drop the
pre-rendered html from the database and render it on
the fly.

In another step, we will use some proper caching method to
cache this stuff.

This commit affects the MediaComment.content_html part.
2012-02-18 12:50:30 +01:00
Elrond
1e72e075f8 Drop pre-rendered html: MediaEntry.description_html
After a bit of discussion, we decided to drop the
pre-rendered html from the database and render it on
the fly.

In another step, we will use some proper caching method to
cache this stuff.

This commit affects the MediaEntry.description_html part.
2012-02-18 12:41:25 +01:00
Elrond
e61ab0998b Drop pre-rendered html: User.bio_html
After a bit of discussion, we decided to drop the
pre-rendered html from the database and render it on
the fly.

In another step, we will use some proper caching method to
cache this stuff.

This commit affects the User.bio_html part.
2012-02-18 12:35:30 +01:00
Christopher Allan Webber
38816c6607 Revert "Layout overhaul time!"
This reverts a whole bunch of commits, fb1dc4f5 thru 92e8ca79, where
an experimental new layout was played with.  Unfortunately, this
layout broke the look and feel of master, even though it was going in
the right direction for mobile stuff.  Jef said he'll do things in a
branch!
2012-02-13 21:31:11 -06:00
Elrond
53280164e2 47: Only lowercase host part of email
According to most documentation it seems that the local
part of an email adress is/can be case sensitive. While
the host part is not.
So we lowercase only the host part of the given adress.

See: http://issues.mediagoblin.org/ticket/47
2012-02-13 23:20:04 +01:00
Christopher Allan Webber
e4c3077437 Our javascript is actually AGPLv3+, not LGPL*. Correcting. 2012-02-12 20:36:46 -06:00
Jef van Schendel
92e8ca790b Wait, scratch that. This commit uses a better way. 2012-02-12 21:02:02 +01:00
Jef van Schendel
f2ca3ad6ac Add navigation button styles for mobile 2012-02-12 21:00:20 +01:00
Jef van Schendel
b0ed64aa12 Fix comment input field width/padding; change some text; remove weird #form_comment duplicate rules; move Edit/Delete buttons next to title 2012-02-12 20:47:25 +01:00
Jef van Schendel
4944e3c374 Make media thumbnail gallery a list instead of a table 2012-02-12 19:33:05 +01:00
Jef van Schendel
be09ed51c8 Corrections for mobile layout 2012-02-12 18:39:55 +01:00
Jef van Schendel
28439be4e3 Move "Added on" date to sidebar 2012-02-12 18:25:52 +01:00
Jef van Schendel
630dd7941d Style sidedata h3; revert sidebar margin change 2012-02-12 18:23:18 +01:00
Jef van Schendel
a1161b84a6 Fix sidebar margins 2012-02-12 18:12:23 +01:00
Jef van Schendel
c6498b26be Move Attachments from sidebar to default pane 2012-02-12 16:30:21 +01:00
Jef van Schendel
1fccaf4a81 Consistencify sidebar bits (same headers and such) 2012-02-12 16:28:42 +01:00
Jef van Schendel
b21c943427 Restore sidebar 2012-02-12 16:18:58 +01:00
Jef van Schendel
fb1dc4f56b Layout overhaul time! 2012-02-11 23:04:02 +01:00
Elrond
eea6d276bc sql db design suggestions by Svavar Kjarrval
Many thanks go to Svavar Kjarrval who has taken a deeper
look at our current sql db design and made a bunch of
suggestions.  The suggestions are currently put as TODO
items in the docstrings.  This way we can keep track of
them directly where we need it.
2012-02-11 12:11:51 +01:00
Jef van Schendel
937c7ea5d9 Fix for ticket #386 2012-02-09 21:46:57 +01:00
Will Kahn-Greene
6e03e58671 Fix docs version 2012-02-09 11:00:30 -05:00
Will Kahn-Greene
934d0b67a0 Update version to 0.3.0-dev 2012-02-09 10:49:50 -05:00
Will Kahn-Greene
58301e093c Update version numbers 2012-02-09 10:45:43 -05:00
Christopher Allan Webber
39edc73cb0 Committing extracted and compiled translations 2012-02-09 09:30:26 -06:00
Will Kahn-Greene
1da5052ff7 Removing youcanhelp stuff
This was never used. It doesn't support Texinfo files. It was only half
completed. Best to remove it.
2012-02-09 10:24:29 -05:00
Will Kahn-Greene
df900eed17 Update copyright headers for shell scripts 2012-02-09 10:20:42 -05:00
Christopher Allan Webber
efd69313d0 Added info on how to enable ascii art 2012-02-09 09:16:14 -06:00
Christopher Allan Webber
973f37e9c3 Updating codebase.rst to reflect the modern mediagoblin world
- adding/removing libraries listed as appropriate
 - buildout->virtualenv references
 - Updating directory structure description to reflect current reality
2012-02-09 09:16:14 -06:00
Will Kahn-Greene
0c8e20cf13 Minor rewording
Tried to address confusion I had when I read the document and tweaked
some formatting.
2012-02-08 11:07:19 -05:00
Will Kahn-Greene
7f4ebeed76 Fix copyright statements; add LICENSE for EXIF.py 2012-02-08 10:47:08 -05:00
Christopher Allan Webber
c2dfe1dd40 Fully qualify the import of asciitoimage 2012-02-08 09:29:24 -06:00
Christopher Allan Webber
473a4431c2 Added CC0 header to all MediaGoblin docs in docs/source/ 2012-02-07 21:27:27 -06:00
Christopher Allan Webber
110b4acc3d Committing extracted and compiled translations 2012-02-05 16:23:29 -06:00