comparison roundup-admin @ 418:3e31e53a6ff6

typo
author Richard Jones <richard@users.sourceforge.net>
date Tue, 27 Nov 2001 22:32:03 +0000
parents a6088556e9ba
children 350685601f37
comparison
equal deleted inserted replaced
417:4be2c6be4560 418:3e31e53a6ff6
14 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 14 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
15 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" 15 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
16 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, 16 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
17 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 17 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
18 # 18 #
19 # $Id: roundup-admin,v 1.47 2001-11-26 22:55:56 richard Exp $ 19 # $Id: roundup-admin,v 1.48 2001-11-27 22:32:03 richard Exp $
20 20
21 import sys 21 import sys
22 if int(sys.version[0]) < 2: 22 if int(sys.version[0]) < 2:
23 print 'Roundup requires python 2.0 or later.' 23 print 'Roundup requires python 2.0 or later.'
24 sys.exit(1) 24 sys.exit(1)
367 raise UsageError, '%s has no property "%s"'%(classname, 367 raise UsageError, '%s has no property "%s"'%(classname,
368 propname) 368 propname)
369 369
370 # make sure it's a link 370 # make sure it's a link
371 if (not isinstance(property, hyperdb.Link) and not 371 if (not isinstance(property, hyperdb.Link) and not
372 isinstance(proptype, hyperdb.Multilink)): 372 isinstance(property, hyperdb.Multilink)):
373 raise UsageError, 'You may only "find" link properties' 373 raise UsageError, 'You may only "find" link properties'
374 374
375 # get the linked-to class and look up the key property 375 # get the linked-to class and look up the key property
376 link_class = self.db.getclass(property.classname) 376 link_class = self.db.getclass(property.classname)
377 try: 377 try:
891 tool = AdminTool() 891 tool = AdminTool()
892 sys.exit(tool.main()) 892 sys.exit(tool.main())
893 893
894 # 894 #
895 # $Log: not supported by cvs2svn $ 895 # $Log: not supported by cvs2svn $
896 # Revision 1.47 2001/11/26 22:55:56 richard
897 # Feature:
898 # . Added INSTANCE_NAME to configuration - used in web and email to identify
899 # the instance.
900 # . Added EMAIL_SIGNATURE_POSITION to indicate where to place the roundup
901 # signature info in e-mails.
902 # . Some more flexibility in the mail gateway and more error handling.
903 # . Login now takes you to the page you back to the were denied access to.
904 #
905 # Fixed:
906 # . Lots of bugs, thanks Roché and others on the devel mailing list!
907 #
896 # Revision 1.46 2001/11/21 03:40:54 richard 908 # Revision 1.46 2001/11/21 03:40:54 richard
897 # more new property handling 909 # more new property handling
898 # 910 #
899 # Revision 1.45 2001/11/12 22:51:59 jhermann 911 # Revision 1.45 2001/11/12 22:51:59 jhermann
900 # Fixed option & associated error handling 912 # Fixed option & associated error handling

Roundup Issue Tracker: http://roundup-tracker.org/