good point.

On Feb 9, 6:33 am, Alex <[email protected]> wrote:
> I found some side effect. When I click edit controller in menu from
> appadmin pages, appadmin controller is opened for editing. May be it
> is not good...
>
> To prevent this and start to edit default controller I've added the
> condition:
>
> [T('Controller'), False,
>   URL('admin', 'default', 'edit/%s/controllers/%s.py' \
>      % (request.application,request.controller=='appadmin' and
> 'default' or request.controller))],
>
> On 9 фев, 01:31, mdipierro <[email protected]> wrote:
>
> > Accepted and in trunk! Thank you.
>
> > On Feb 8, 3:41 pm, Alex <[email protected]> wrote:
>
> > > I've changed models/menu.py of welcome application
> > > This is original code:
> > > ...
> > > response.menu_edit=[
> > >   [T('Edit'), False, URL('admin', 'default', 'design/%s' %
> > > request.application),
> > >    [
> > >             [T('Controller'), False,
> > >              URL('admin', 'default', 'edit/%s/controllers/default.py'
> > > \
> > >                      % request.application)],
> > > ...
>
> > > 2 last lines of this code was changed to:
> > > ...
> > > response.menu_edit=[
> > >   [T('Edit'), False, URL('admin', 'default', 'design/%s' %
> > > request.application),
> > >    [
> > >             [T('Controller'), False,
> > >              URL('admin', 'default', 'edit/%s/controllers/%s.py' \
> > >                      % (request.application, request.controller))],
> > > ...
>
> > > It seems to me that it would be comfortable to edit current controller
> > > not the default one ) But this code is located in welcome.w2p archive
> > > file. I dont know how to send this changes to repo. Help me, please...
>
> > > Thank you.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to