The Fine Print: The following comments are owned by whoever posted them.
( Reply )
|
Re: Can I change the format of Article ID's to a date-formatted style?
by on Sunday February 18, 10:50AM, 2001
|
Given Squishdot's structure, I'd use YYYY-MM-DD-ZZZZ to avoid slash ('/') collisions. Furthermore, doing this isn't easy, since you'd have to go rewrite Squishdot to handle these new IDs.
Idea--for Swishdot, why not make it so that one can easily change the format of these time stamps? Admins would specify an article ID timestamp format (either the stuff or Biemond's proposed YMDZ format, or even a custom format) and then Squishdot would convert that into whatever the database uses internally.
|
[ Reply to this ]
|
Hack the Source :-)
by on Monday February 19, 05:55PM, 2001
|
Got futz with the createId method of the SquishSite class to do what you want. This is at line 512 of SquishSite.py in the current CVS checkout.
Bear in mind this method must return an integer...
Good luck,
Chris
|
[ Reply to this ]
|
The Fine Print: The following comments are owned by whoever posted them.
( Reply )
|