Mercurial > traipse_dev
comparison upmana/validate.py @ 81:65c212e9a5b4 ornery-dev
Controls panel is completed. Users cannot delete branches nicely without a Merc upgrade, so that feature will appear in Pious Paladin. Crash report is being tested on windows.
author | sirebral |
---|---|
date | Wed, 26 Aug 2009 23:24:45 -0500 |
parents | 8bc955faf819 |
children | 496dbf12a6cb |
comparison
equal
deleted
inserted
replaced
80:51bb772c3609 | 81:65c212e9a5b4 |
---|---|
10 import os | 10 import os |
11 | 11 |
12 class Validate: | 12 class Validate: |
13 def __init__(self, userpath=None): | 13 def __init__(self, userpath=None): |
14 if userpath is None: | 14 if userpath is None: |
15 userpath = dir_struct["user"] | 15 userpath = dir_struct["home"] + os.sep + 'upmana' +os.sep |
16 self.__loadUserPath = userpath | 16 self.__loadUserPath = userpath |
17 | 17 |
18 def config_file(self, user_file, template_file): | 18 def config_file(self, user_file, template_file): |
19 #STEP 1: verify the template exists | 19 #STEP 1: verify the template exists |
20 if (not os.path.exists(dir_struct["template"] + template_file)): | 20 if (not os.path.exists(dir_struct["template"] + template_file)): |