Groups
Groups
Sign in
Groups
Groups
Kotti
Conversations
About
Send feedback
Help
Resolving content ID into the full URL
9 views
Skip to first unread message
Andreas Jung
unread,
Apr 18, 2013, 4:10:35 AM
4/18/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ko...@googlegroups.com
Sorry for this basic question:
I have a content-type recipe and the IDs are obviously numbers 1...N
How do I get the public edit URL of this object when I know the objects ID?
Andreas
Andreas Kaiser
unread,
Apr 18, 2013, 4:13:05 AM
4/18/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ko...@googlegroups.com
from kotti.resources import Content
content_object = Content.query.filter(Content.id == id).one()
edit_url = request.resource_url(content_object, 'edit')
HTH,
Andreas
Reply all
Reply to author
Forward
0 new messages