Elrond
e824570a23
Cleanup sql session after request. ALWAYS!
...
The cleanup could be missed if the request handling code in
app.py:__call__ exits early (due to exception, or due to
one of those early "return"s).
So to make sure the sql session is cleaned up for real,
wrap the whole thing in a try: finally:.
Also wrote a short tool to test if the session is actually
empty. The tool is currently disabled, but ready to be
used.
2012-04-07 23:21:59 +02:00
Will Kahn-Greene
abe7417827
Fix relnotes formatting
...
* adds link to deployment docs.
* tweaks formatting
2012-04-07 12:26:40 -04:00
Elrond
5be6425c28
Start adding release notes.
...
This is especially for noting the switch to sql and
explaining how to convert your mongodb data over to sql.
2012-04-05 19:49:14 +02:00
Joar Wandborg
775ec9e8f7
Updated documentation
...
Added PostgreSQL deployment documentation
2012-04-03 00:49:24 +02:00
Joar Wandborg
0e43491374
Merge branch 'master' of gitorious.org:mediagoblin/mediagoblin
2012-04-02 15:09:53 +02:00
Joar Wandborg
c8bee965ad
gmg env_import shouldn't crash on unicode ...
...
characters in media titles
2012-04-02 15:08:22 +02:00
Elrond
797f4437eb
Check that the media_data tables are empty.
...
In the analyzing part also check that the media_data tables
are empty (as expected) before dropping them.
2012-04-02 14:02:56 +02:00
Elrond
f9d62eccf4
Add ascii and audio tables/migration data.
...
Well, and if it's not needed, drop it again. ;)
2012-04-02 13:51:53 +02:00
Elrond
df1c94f52d
Cleanup unused media_data tables and migration info.
...
After converting everything, check what is actually used in
the db. For media_types that are not used, drop all the
media_data tables and remove the migration info.
2012-04-02 13:51:52 +02:00
Elrond
e85a953951
Mongo -> SQL conversion tool: UI improvements
...
Output some headers while converting things.
And indent some info.
Also some DRY things.
2012-04-02 13:51:52 +02:00
Joar Wandborg
f69223e973
Fixed an issue where orphaned comments breaks the import
2012-04-02 13:44:28 +02:00
Christopher Allan Webber
e089b66bde
Merge remote-tracking branch 'refs/remotes/elrond/sql/final'
...
Conflicts:
mediagoblin/tests/test_submission.py
Also, WHOO SQL SWITCHOVER PARTY!
ASCII DANCE PARTY
/_o_/ \ / \o_ o
( _|_ ) //)
/\ / o \ /| /|
*BMCH BMCH BMCH BMCH*
%
/_o_/ HHHYAAaaaaa
/_
/ /
%
AAAAAHAHAHAHAHHHAAHA
,, .------
o_o ;; /\\ \ $ __
'\/ || // \\ # /_/
\// // //\\ \
) \\ \ %
\\ \\_____\
| ) //-------
/_/_ // //
SWITCH YOUR DATABASE
FLIP A FUKKEN BOOLEAN
%
__________
.-' '-.
.' '.
.' _--_ _--_ '.
/ / (_). / (_). \
. | | | | .
| ._____, ._____, |
| ____________________ |
| | | |
' \ / '
\ '. .----./ /
\ '._ / / /
'. '--------' .'
'._ _.'
'----------'
2012-04-01 15:36:11 -05:00
Elrond
bc27a100fc
Fix unit tests for sql: cache media_id.
...
Attributes of SQLAlchemy objects get "lost". So "cache"
them locally in the code.
This is really the simple explanation for some scarry
sqlalchemy details.
2012-04-01 22:02:06 +02:00
Elrond
ce29c140ed
Finally enable SQL for everybody!
...
This switches the whole source code over to use sql instead
of mongodb. It's a pretty easy change, but changes nearly
the complete way things work. Hopefully everythong works!
2012-04-01 21:46:36 +02:00
Elrond
1e3a0e0ca0
Switch JSONEncoded from VARCHAR to TEXT
...
The JSON fields are really "dumb stuff in here" fields.
They are not intended to get indexed or anything. And they
can get large. For example the exif_all field in one of my
simple tests is nearly 7 kB large. Although VARCHAR might
work, TEXT feels just better as the storage type.
2012-04-01 19:58:23 +02:00
Jef van Schendel
98853c63fd
JS: fix first part of #422 ; make items in drop-down acutally work
2012-04-01 18:06:49 +02:00
Jef van Schendel
339105fa36
CSS: change padding-left to margin-left
2012-04-01 17:25:50 +02:00
Jef van Schendel
e4898f43fd
CSS: change comment margins
2012-04-01 17:25:25 +02:00
Jef van Schendel
55dbaa9b77
HTML/CSS: comment style changes
2012-04-01 17:22:37 +02:00
Jef van Schendel
ff2e9dc0d6
HTML: remove elements for comment button style change
2012-04-01 17:11:57 +02:00
Jef van Schendel
2d65b47360
CSS: remove background
2012-04-01 17:07:52 +02:00
Jef van Schendel
30a89a5704
Logo margin fix
2012-04-01 17:04:50 +02:00
Jef van Schendel
d297d8e834
Add dropdown to header
2012-04-01 16:02:23 +02:00
Jef van Schendel
e79d69739e
Revert changes from last commit; I am an idiot
2012-03-31 16:55:35 +02:00
Jef van Schendel
18dbdf07ba
Switch over content to new layout/text; slight css edits
2012-03-31 16:48:06 +02:00
Jef van Schendel
c5a9ecf247
Increase bottom margin header
2012-03-31 14:25:37 +02:00
Jef van Schendel
d317d9d690
Small CSS changes to header
2012-03-31 14:10:58 +02:00
Joar Wandborg
9fb336fdc2
Added pygst.require('0.10') since it's absence breaks stuff
2012-03-30 17:50:56 +02:00
Joar Wandborg
c3c2f163c5
Updated Video docs, so that I won't forget
2012-03-30 00:18:54 +02:00
Joar Wandborg
ab0d5b59ab
Cleaned up media_types.video.transcoders
2012-03-29 23:53:05 +02:00
Elrond
73758391f3
And remove some now useless methods.
2012-03-29 23:23:57 +02:00
Elrond
dda67f7152
Remove the DictReadProxy thing.
...
And some other stuff, that the converter does not need.
2012-03-29 23:23:57 +02:00
Elrond
19535af4e5
Fix some simple errors.
2012-03-29 23:23:57 +02:00
Elrond
c0fddc63e8
Change models to a _v0 suffix.
...
And add the image and video media_data tables.
And start to rewrite the convert tool.
2012-03-29 23:23:57 +02:00
Elrond
7f5ae1c315
Make a copy of models for v0.
2012-03-29 23:23:57 +02:00
Joar Wandborg
450ea6094d
Merge branch 'master' of gitorious.org:mediagoblin/mediagoblin
2012-03-29 23:01:40 +02:00
Joar Wandborg
ff3136d0e8
Cleanded up video imports, removed PyGTK dependency
2012-03-29 22:52:39 +02:00
Elrond
c45dfee61e
Audio: And add empty migrations.
2012-03-29 21:52:26 +02:00
Elrond
c7cf6235fe
Audio: Add models and disable media_data.
...
1. Add a super-minimal media_data table for audio.
It currently contains nothing.
Like the ascii one.
2. To avoid media_data trouble -- for now -- disable the
creation of media_data completrly.
2012-03-29 21:45:05 +02:00
Joar Wandborg
90b25eb2d1
Merge branch 'master' of gitorious.org:mediagoblin/mediagoblin
2012-03-29 16:19:11 +02:00
Joar Wandborg
97e40b5285
Seeking works in firefox
...
- Added support for indicating multiple buffered
ranges (Firefox)
- Added volume slider (Chromium)
- Replaced stop button with faux pause button
- Added 'ended' event handler
2012-03-29 16:06:36 +02:00
Elrond
582958e333
The video media_type needs pygtk/gtk.
...
Note in the docs, that the video media_type needs the gtk
and pygtk modules and where to get them on debian.
2012-03-29 13:15:38 +02:00
Elrond
02f07bfe14
411: Add relationship and backrefs to media_data tables.
...
Adding proper relationship()s and especially backref()s
will delete media_data rows along with the main MediaEntry.
This fixes #411 .
2012-03-28 13:21:47 +02:00
Joar Wandborg
352a180765
Changed audio.* Image* imports
...
so that they no longer import from PIL explicitly.
This is due to explicit PIL.Image* imports failing
on a Ubuntu machine within virtualenv.
PIL is a mystery I have yet to find the energy to unravel.
The 'implicit' approach works both for the affected
machine and my local machine and I've seen it more often
out in the wild, so I'm assuming it is the right way.
2012-03-27 23:43:15 +02:00
Joar Wandborg
0308958b2d
Fixed test_submission -> test_evil_file test
2012-03-27 16:38:41 +02:00
Joar Wandborg
deea3f6661
Merge remote-tracking branch 'joar/audio+sniffing'
...
Conflicts:
mediagoblin/media_types/image/processing.py
mediagoblin/media_types/video/__init__.py
mediagoblin/media_types/video/processing.py
mediagoblin/tests/test_submission.py
2012-03-27 12:05:09 +02:00
Christopher Allan Webber
d0cb752992
Removing superfluous whitespace
2012-03-26 15:11:05 -05:00
Christopher Allan Webber
c051615889
Merge remote-tracking branch 'remotes/slikdigit/bassam'
...
Conflicts:
mediagoblin/media_types/image/processing.py
2012-03-26 15:09:35 -05:00
Christopher Allan Webber
e3e5980624
Merge remote-tracking branch 'remotes/bretts/bug261-resized-filenames'
2012-03-26 14:33:12 -05:00
Elrond
f4162cb640
Reload the user for current values.
...
This might not be needed, but it helped at one point.
2012-03-26 20:31:36 +02:00