diff --git a/README b/README
index 017128d..2e8b63b 100644
--- a/README
+++ b/README
@@ -1,5 +1,5 @@
pyGTKtalog 1.0
-==================
+==============
pyGTKtalog is Linux/FreeBSD program for indexing CD/DVD or directories on
filesystem. It is similar to gtktalog or
@@ -75,6 +75,7 @@ There are still minor aims for versions 1.x to be done:
- implement advanced search
For version 2.0:
+- Export/Import
- Icon grid in files view
- command line support: query, adding media to collection etc
- internationalization
@@ -82,7 +83,8 @@ For version 2.0:
- user definied group of tags (represented by color in cloud tag)
- hiding specified files - configurable, like dot prefixed, cfg and manualy
selected
-
+- tests
+- warning about existing image in media directory
Removed:
- filetypes handling (movies, images, archives, documents etc). Now it have
common, unified external "plugin" system - simple text output from command
@@ -103,17 +105,22 @@ Removed:
NOTES
=====
-Catalog file is tared and gziped sqlite database and directories with images and
-thumbnails. If there are more images, the size of catalog file will grow. So be
-carefull with adding big images in your catalog file!
+Catalog file is plain sqlite database (optionally compressed with bzip2). All
+images are stored in ~/.pygtktalog/images directory. Names for images are
+generated sha512 hash from image file itself. There is small possibility for two
+identical hash for different image files. However, no images are overwritten.
+Thumbnail filename for each image is simply concatenation of image filename in
+images directory and '_t' string.
-There is also converter form old database to new. In fact no image are stored in
-archive with katalog. All thumnails will be lost. All images without big image
-will be lost. There ar serious changes with application design, and I decided,
-that is better to keep media unpacked on disk, instead of pack it every time
-with save and unpack with open methods. New design prevent from deleting eny
-file from media directory (placed in ~/.pygtktalog/images). Functionality for
-exporting images and corresponding db file is planned.
+There is also converter from old database to new for internal use only. In
+public release there will be no other formats so it will be useless, and
+deleted. There are some issues with converting. All thumbnails will be lost. All
+images without big image will be lost. There are serious changes with
+application design, and I decided, that is better to keep media unpacked on
+disk, instead of pack it every time with save and unpack with open methods. New
+design prevent from deleting any file from media directory (placed in
+~/.pygtktalog/images). Functionality for exporting images and corresponding db
+file is planned.
BUGS
====
diff --git a/katalog_convert_1.0rc_to_1.0.py b/katalog_convert_1.0rc_to_1.0.py
index 7c05c02..6020de4 100755
--- a/katalog_convert_1.0rc_to_1.0.py
+++ b/katalog_convert_1.0rc_to_1.0.py
@@ -142,7 +142,7 @@ def setup_path():
"""Sets up the python include paths to include needed directories"""
import os.path
- from src.utils.globals import TOPDIR
+ from src.lib.globs import TOPDIR
sys.path = [os.path.join(TOPDIR, "src")] + sys.path
return
@@ -169,7 +169,7 @@ if __name__ == "__main__":
from shutil import copy
- from utils.img import Img
+ from lib.img import Img
from models.m_main import MainModel as NewModel
model = OldModel()
diff --git a/pygtktalog.py b/pygtktalog.py
index 8a62ce1..57bab00 100644
--- a/pygtktalog.py
+++ b/pygtktalog.py
@@ -27,18 +27,16 @@ try:
import gtk
except ImportError:
print "You need to install pyGTK v2.10.x or newer."
- sys.exit(1)
-
+ raise
def setup_path():
"""Sets up the python include paths to include needed directories"""
import os.path
- from src.utils.globals import TOPDIR
+ from src.lib.globs import TOPDIR
sys.path = [os.path.join(TOPDIR, "src")] + sys.path
return
-
def check_requirements():
"""Checks versions and other requirements"""
import sys
@@ -50,7 +48,7 @@ def check_requirements():
except ImportError:
print "Some fundamental files are missing.",
print "Try runnig pyGTKtalog in his root directory"
- sys.exit(1)
+ raise
conf = ConfigModel()
conf.load()
@@ -64,13 +62,17 @@ def check_requirements():
pass
try:
- from pysqlite2 import dbapi2 as sqlite
+ import sqlite3 as sqlite
except ImportError:
- print "pyGTKtalog uses SQLite DB.\nYou'll need to get it and the",
- print "python bindings as well.",
- print "http://www.sqlite.org"
- print "http://initd.org/tracker/pysqlite"
- sys.exit(1)
+ try:
+ from pysqlite2 import dbapi2 as sqlite
+ except ImportError:
+ print "pyGTKtalog uses SQLite DB.\nYou'll need to get it and the",
+ print "python bindings as well.",
+ print "http://www.sqlite.org"
+ print "http://initd.org/tracker/pysqlite"
+ print "Alternatively install python 2.5 or higher"
+ raise
if conf.confd['exportxls']:
try:
@@ -98,7 +100,7 @@ if __name__ == "__main__":
os.chdir(libraries_dir)
setup_path()
- check_requirements()
+ #check_requirements()
from models.m_main import MainModel
from ctrls.c_main import MainController
@@ -113,6 +115,6 @@ if __name__ == "__main__":
try:
gtk.main()
except KeyboardInterrupt:
- model.config.save()
- model.cleanup()
+ #model.config.save()
+ #model.cleanup()
gtk.main_quit
diff --git a/resources/glade/main.glade b/resources/glade/main.glade
index 0e8b74f..e2b0af2 100644
--- a/resources/glade/main.glade
+++ b/resources/glade/main.glade
@@ -62,6 +62,27 @@
True
+
+
+
+
+
+
+
+
+