~aelkner/schooltool/january_fixes

« back to all changes in this revision

Viewing changes to src/schooltool/app/app.py

  • Committer: Gediminas Paulauskas
  • Date: 2009-12-30 17:38:37 UTC
  • mfrom: (2532.1.44 schooltool_makefile)
  • Revision ID: menesis@pov.lt-20091230173837-tbvd13wlmvvochmo
Port to Zope versions available in Karmic (LP: #498803)

Show diffs side-by-side

added added

removed removed

Lines of Context:
151
151
        >>> chooser.chooseName('@notallowed', obj)
152
152
        Traceback (most recent call last):
153
153
          ...
154
 
        UserError: Names cannot begin with '+' or '@' or contain '/'
 
154
        ValueError: Names cannot begin with '+' or '@' or contain '/'
155
155
 
156
156
    If the name generated from the title gets shortened too much, we
157
157
    generate a name from the name of the context container instead: