~zeitgeist/zeitgeist-explorer/git-import

« back to all changes in this revision

Viewing changes to zgexplorer/eventwidgets.py

  • Committer: Manish Sinha
  • Date: 2013-06-14 03:16:53 UTC
  • Revision ID: git-v1:1ce6b41e52e44fcd7df73229b5a39dd214c69a9c
Update to make sure that the import is from a package, not local

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
# You should have received a copy of the GNU Lesser General Public License
20
20
# along with this program.  If not, see <http://www.gnu.org/licenses/>.";
21
21
 
22
 
import codecs
23
22
from datetime import datetime
24
23
from gi.repository import Gtk, Gdk, Gio
25
24
from zeitgeist.datamodel import Event, Subject, Manifestation, \
116
115
            elif isinstance(data, Subject):
117
116
                details.SubjectDetails(data)
118
117
            else:
119
 
                print 'Unknown row selected.'
 
118
                print("Unknown row selected.")
120
119
 
121
120
    def _on_selection_changed(self, widget):
122
121
        selection = self.get_selection()
304
303
                txt = str(subj.get_text())
305
304
                self.text_entry.set_text(txt)
306
305
            except:
307
 
                #print unicode(subj.get_text().strip(codecs.BOM_UTF8), 'utf-8')
308
306
                self.text_entry.set_text("")
309
307
            self.storage_entry.set_text(str(subj.get_storage()))