Karrigell is too complex for my needs. I'm going with mod_python for the web service backend and PHP/JavaScript for the frontend.
Going with PHP for the backend would make it easier to move to an external server that might not have Python, but starting with Python allows a quick start and giving some KPA-MySQL access code back.
The Publisher mod_python handler is excellent, exposes functions with their parameters. Extremely easy for web services. Combined with JSON for transfer of data, the web service side of it is pretty much taken care of.
The trick now is the right division of labor between PHP and Javascript. Unfortunately, there's not a lot of obvious tutorial for Prototype.
Showing posts with label taggart. Show all posts
Showing posts with label taggart. Show all posts
Monday, 26 November 2007
Saturday, 24 November 2007
Setting up Karrigell according to http://karrigell.sourceforge.net/en/apache.htm (second version)
Moved autostart script to /usr/lib/cgi-bin
Enabled rewrite module.
Added handler for .cgi.
Still no worky:(
Moved autostart script to /usr/lib/cgi-bin
Enabled rewrite module.
Added handler for .cgi.
Still no worky:(
Notes on Taggart
Taggart is the code name for my newest crazy idea for a tagging system.
Put up mysql server with the usual password. Created db kpa, user taggart, as per in script in /usr/local/src/KPhotoAlbum-src/kphotoalbum/script/KPhotoAlbum
Ran script transferring all data from index.xml into MySQL. Created test script for getting out data, it seems to work.
Karrigell seems to be the nicer way to embed python in HTML, installed.
Next step: get list of images from a given folder and present them in HTML together with their tags. This requires some access methods -- they will be written as needed. Also need to interface with dcraw to get thumbnails - -c option is perty fast, but it needs downscaling too, and convert is slow. Using a faster resizer like point speeds it up a bit. Obviously need to cache these.
Note: filename and dirId are separate in the media db.
Put up mysql server with the usual password. Created db kpa, user taggart, as per in script in /usr/local/src/KPhotoAlbum-src/kphotoalbum/script/KPhotoAlbum
Ran script transferring all data from index.xml into MySQL. Created test script for getting out data, it seems to work.
Karrigell seems to be the nicer way to embed python in HTML, installed.
Next step: get list of images from a given folder and present them in HTML together with their tags. This requires some access methods -- they will be written as needed. Also need to interface with dcraw to get thumbnails - -c option is perty fast, but it needs downscaling too, and convert is slow. Using a faster resizer like point speeds it up a bit. Obviously need to cache these.
Note: filename and dirId are separate in the media db.
Subscribe to:
Posts (Atom)