From 00172734f29a22300444c2a1955a6c84f2d5cda4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Mon, 13 Jun 2005 10:11:42 +0000 Subject: [PATCH] * add some more guidelines --- src/CODING | 3 +++ src/pisi/installdb.py | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/src/CODING b/src/CODING index ce826877..9f93a3be 100644 --- a/src/CODING +++ b/src/CODING @@ -8,6 +8,9 @@ Guidelines with a trailing slash, and please use the dirnames in pisiconfig 2. Python indentation is usually 4 chars. +3. willUse boyNames() +4. Use single quotes for strings if possible +5. Follow python philosophy of 'batteries included' Suggestions ------------ diff --git a/src/pisi/installdb.py b/src/pisi/installdb.py index 37325b3c..4432831f 100644 --- a/src/pisi/installdb.py +++ b/src/pisi/installdb.py @@ -1,3 +1,9 @@ # -*- coding: utf-8 -*- # installation database +import shelve + +d = shelve.open( db_dir + '/fuck yeah') + +def isInstalled(name, version, release): +