On Mon, Jul 23, 2012 at 3:56 AM, [email protected]
<[email protected]> wrote:
> Your d.html view must certainly be located in /your_app/views/group/ dir.
>
> What do you want exactly to achieve?
> What is really happening?
>
> Vinicius Assef

I've overridden the "d.html" file for my `d()` controller, the problem
is I can't find where to put the "event_page.html" file for my
`event_page(eid)` controller.

> On 07/22/2012 02:49 PM, Alec Taylor wrote:
>>
>> My `group` controller located at: "/social/controllers/group.py", has a
>> view located at: "/social/views/group/d.html".
>>
>> For the event page (routed off group), I am calling a function with an
>> argument.
>>
>> Unfortunately I can't seem to find where I can overwrite its default view.
>>
>> I've tried: "/social/views/group/event_page.html",
>> "/social/views/group/event_page/index.html" and:
>> "/social/views/event_page/index.html".
>>
>> # /social/controllers/group.py
>> def  d():
>>      group=  db(db.group_of_events.group_name==  request.args(0)).select()
>> or  redirect(URL('',  'groups'))
>>      events=  db(db.event.group_id==  group[0].id).select()
>>
>>      if  request.args(1):
>>          return  event_page({'foo':'bar'})
>>      return  dict(group=group,  events=events,  eventpage=eventpage)
>>
>> def  event_page(eid):
>>      eventpage={'foo':'bar'}
>>      return  dict(eventpage=eventpage)
>>
>>
>> *Where do I place my replacement view?*
>>
>>
>> Thanks for all suggestions,
>>
>> Alec Taylor
>>
>> --
>>
>>
>>
>
> --
>
>
>

-- 



Reply via email to