Ray (a.k.a. Iceberg)
unread,Jul 1, 2013, 7:30:51 AM7/1/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web...@googlegroups.com
Hi folks,
I just noticed that, the auto patterns generated by dal.py's parse_as_rest() are using hyphen to replace underline. This way if I have:
db.define_table("my_table",
Field("my_field"),
)
it will show up in auto patterns as a url like "http://.../my-table/my-field".
However this brings some inconvenience when I am writing other pieces of program to access this patterns.
So the question is, why dal.py's parse_as_rest() intentionally change all underlines into hyphens? I don't think SEO consideration matters in an api. So why?
Thanks in advance.
Regards,
Ray