Removed all remaining "self"s
authorDmitriy Morozov <dmitriy@mrzv.org>
Wed, 02 Sep 2009 16:56:15 -0700
changeset 26 4372fcf43497
parent 25 a7e31159efb9
child 27 d65a9450109d
Removed all remaining "self"s
alexandria.py
--- a/alexandria.py	Wed Sep 02 16:53:57 2009 -0700
+++ b/alexandria.py	Wed Sep 02 16:56:15 2009 -0700
@@ -75,12 +75,12 @@
     with open(path, 'r') as fd:
         m.update(fd.read())
 
-    path = self._short_path(cfg, path)
+    path = _short_path(cfg, path)
     p = Paper.get_by(path = path) or Paper.get_by(md5 = m.hexdigest())
     if p is not None:
         print _colorize_string('error', "Paper already exists, use update")
         print '--------------------------------'
-        self._show_paper(p)
+        _show_paper(p)
         return
 
     p = Paper(path = path, md5 = m.hexdigest())
@@ -95,7 +95,7 @@
     """Update paper by hash"""
     
     p = Paper.query.filter(Paper.md5.startswith(hash)).one()
-    if path: p.path = self._short_path(cfg, path)
+    if path: p.path = _short_path(cfg, path)
     _set_options(p, opts)
     session.commit()
     _show_paper(p)