Opened 16 years ago

Closed 16 years ago

#9092 closed (fixed)

Validation of project and application names isn't thorough enough

Reported by: Tom Mortimer-Jones Owned by: nobody
Component: Core (Other) Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

As project and application names get used as a Python modules they have to follow the correct naming convention (see here). The current check allows for the name to start with a number which is not allowed.

Attachments (1)

9092.diff (903 bytes ) - added by Tom Mortimer-Jones 16 years ago.

Download all attachments as: .zip

Change History (3)

by Tom Mortimer-Jones, 16 years ago

Attachment: 9092.diff added

comment:1 by Ivan Giuliani, 16 years ago

Component: UncategorizedCore framework
Has patch: set
Triage Stage: UnreviewedAccepted

Maybe something like "^[_a-zA-Z]\w*" could be more readable regexp.

comment:2 by Adrian Holovaty, 16 years ago

Resolution: fixed
Status: newclosed

(In [9043]) Fixed #9092 -- Improved validation of app/project names by startapp/startproject so that it doesn't allow names to start with a number.

Note: See TracTickets for help on using tickets.
Back to Top