"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "frontends/ZRoundup/__init__.py" between
roundup-1.6.1.tar.gz and roundup-2.0.0.tar.gz

About: Roundup is an highly customisable issue-tracking system with command-line, web and e-mail interfaces (written in Python).

__init__.py  (roundup-1.6.1):__init__.py  (roundup-2.0.0)
skipping to change at line 22 skipping to change at line 22
# BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
# FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
# #
__version__='1.1' __version__='1.1'
import os import os
# figure where ZRoundup is installed # figure where ZRoundup is installed
here = None here = None
if os.environ.has_key('INSTANCE_HOME'): if 'INSTANCE_HOME' in os.environ:
here = os.environ['INSTANCE_HOME'] here = os.environ['INSTANCE_HOME']
path = os.path.join(here, 'Products', 'ZRoundup') path = os.path.join(here, 'Products', 'ZRoundup')
if not os.path.exists(path): if not os.path.exists(path):
path = os.path.join(here, 'lib', 'python', 'Products', 'ZRoundup') path = os.path.join(here, 'lib', 'python', 'Products', 'ZRoundup')
if not os.path.exists(path): if not os.path.exists(path):
here = None here = None
if here is None: if here is None:
from __main__ import here from __main__ import here
path = os.path.join(here, 'Products', 'ZRoundup') path = os.path.join(here, 'Products', 'ZRoundup')
if not os.path.exists(path): if not os.path.exists(path):
path = os.path.join(here, 'lib', 'python', 'Products', 'ZRoundup') path = os.path.join(here, 'lib', 'python', 'Products', 'ZRoundup')
if not os.path.exists(path): if not os.path.exists(path):
raise ValueError, "Can't determine where ZRoundup is installed" raise ValueError("Can't determine where ZRoundup is installed")
# product initialisation # product initialisation
from ZRoundup import ZRoundup, manage_addZRoundupForm, manage_addZRoundup from .ZRoundup import ZRoundup, manage_addZRoundupForm, manage_addZRoundup
def initialize(context): def initialize(context):
context.registerClass( context.registerClass(
ZRoundup, ZRoundup,
meta_type = 'Z Roundup', meta_type = 'Z Roundup',
constructors = ( constructors = (
manage_addZRoundupForm, manage_addZRoundup manage_addZRoundupForm, manage_addZRoundup
) )
) )
# set up the icon # set up the icon
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)