[web2py] Re: could use some help ... mobile admin

2011-11-30 Thread Massimo Di Pierro
Mind that with this change anybody who can intercept your network
traffic can get full access to your account.

On Nov 30, 1:55 am, Angelo Compagnucci angelo.compagnu...@gmail.com
wrote:
 Get the trunk!

 If you want to use the admin app whitout setting aup https in a
 private environment, you have to comment out these lines in
 models/access.py:

 #elif not request.is_local and not DEMO_MODE:
 #    raise HTTP(200, T('Admin is disabled because insecure channel'))

 2011/11/30 Javier Quarite jquari...@gmail.com:



  On Tue, Nov 29, 2011 at 6:40 PM, Angelo Compagnucci
  angelo.compagnu...@gmail.com wrote:

  I almost done the admin mobilization!

  I have to get rid of an error on design.html, when done, I'll send you
  patches!

  Thanks!

  Is there a way to see an example? it sounds interesting and it could be a
  good reason to make my friends use web2py :D

 --
 Profile:http://www.gild.com/compagnucciangelo
 Register on Gild:http://www.gild.com/referral/compagnucciangelo


Re: [web2py] Re: could use some help ... mobile admin

2011-11-29 Thread Angelo Compagnucci
I'm astonished,

I'm trying to use admin from my rly old htc g1 with android
and it's totally usable and responsive! Great!

I want mobile admin as soon as possible!

There is a way to know the current porting status? What files left to be edited?

I'll look myself and if I find the response by myself, i'll send you my patches!

Thank you!

2011/11/28 Massimo Di Pierro massimo.dipie...@gmail.com:
 No

 On Nov 28, 1:48 am, Angelo Compagnucci angelo.compagnu...@gmail.com
 wrote:
 Great!

 I'll work on it a soon as possible!

 Are you using the Auto-initialization of form elements ?

 Thanks!

 2011/11/28 Massimo Di Pierro massimo.dipie...@gmail.com:









  I could use some help. In trunk there is code for mobile admin.

  That means that if you visit admin from a mobile device it will use
  jquery.mobile. This is a work in progress and only some pages have
  been implemented but you can help. It is easy.

  In applications/admin/controllers/default.py there is this magic code:

     is_mobile=request.user_agent().is_mobile
     if is_mobile:
         response.view =
  response.view.replace('default/','default.mobile/')

  so if you use a mobile is_mobile==True and is will pick up views from
  views/default.mobile instead of views/default.

  I copied all views from views/default into views/default.mobile and I
  have fixed only index.html, site.html, edit.html about.html. The
  other *.html files need work, this is where you can help

  - replace {{extend 'layout.html'}} with {{extend 'default.mobile/
  layout.html}}.
  - remove any extra text that does not belong to a mobile
  - replace ul with ul  data-role=listview
  - replace all external links (i.e. not internal to admin) from a...
  to a rel=external...

  design.html is going to need some extra work.

  If you can help send me the modified files.

  Also let me know if you have comments or suggestions.

  Massimo

 --
 Profile:http://www.gild.com/compagnucciangelo
 Register on Gild:http://www.gild.com/referral/compagnucciangelo



-- 
Profile: http://www.gild.com/compagnucciangelo
Register on Gild: http://www.gild.com/referral/compagnucciangelo


Re: [web2py] Re: could use some help ... mobile admin

2011-11-29 Thread Angelo Compagnucci
I almost done the admin mobilization!

I have to get rid of an error on design.html, when done, I'll send you patches!

Thanks!

2011/11/29 Angelo Compagnucci angelo.compagnu...@gmail.com:
 I'm astonished,

 I'm trying to use admin from my rly old htc g1 with android
 and it's totally usable and responsive! Great!

 I want mobile admin as soon as possible!

 There is a way to know the current porting status? What files left to be 
 edited?

 I'll look myself and if I find the response by myself, i'll send you my 
 patches!

 Thank you!

 2011/11/28 Massimo Di Pierro massimo.dipie...@gmail.com:
 No

 On Nov 28, 1:48 am, Angelo Compagnucci angelo.compagnu...@gmail.com
 wrote:
 Great!

 I'll work on it a soon as possible!

 Are you using the Auto-initialization of form elements ?

 Thanks!

 2011/11/28 Massimo Di Pierro massimo.dipie...@gmail.com:









  I could use some help. In trunk there is code for mobile admin.

  That means that if you visit admin from a mobile device it will use
  jquery.mobile. This is a work in progress and only some pages have
  been implemented but you can help. It is easy.

  In applications/admin/controllers/default.py there is this magic code:

     is_mobile=request.user_agent().is_mobile
     if is_mobile:
         response.view =
  response.view.replace('default/','default.mobile/')

  so if you use a mobile is_mobile==True and is will pick up views from
  views/default.mobile instead of views/default.

  I copied all views from views/default into views/default.mobile and I
  have fixed only index.html, site.html, edit.html about.html. The
  other *.html files need work, this is where you can help

  - replace {{extend 'layout.html'}} with {{extend 'default.mobile/
  layout.html}}.
  - remove any extra text that does not belong to a mobile
  - replace ul with ul  data-role=listview
  - replace all external links (i.e. not internal to admin) from a...
  to a rel=external...

  design.html is going to need some extra work.

  If you can help send me the modified files.

  Also let me know if you have comments or suggestions.

  Massimo

 --
 Profile:http://www.gild.com/compagnucciangelo
 Register on Gild:http://www.gild.com/referral/compagnucciangelo



 --
 Profile: http://www.gild.com/compagnucciangelo
 Register on Gild: http://www.gild.com/referral/compagnucciangelo



-- 
Profile: http://www.gild.com/compagnucciangelo
Register on Gild: http://www.gild.com/referral/compagnucciangelo


Re: [web2py] Re: could use some help ... mobile admin

2011-11-29 Thread Javier Quarite
On Tue, Nov 29, 2011 at 6:40 PM, Angelo Compagnucci 
angelo.compagnu...@gmail.com wrote:

 I almost done the admin mobilization!

 I have to get rid of an error on design.html, when done, I'll send you
 patches!

 Thanks!


Is there a way to see an example? it sounds interesting and it could be a
good reason to make my friends use web2py :D


Re: [web2py] Re: could use some help ... mobile admin

2011-11-29 Thread Angelo Compagnucci
Get the trunk!

If you want to use the admin app whitout setting aup https in a
private environment, you have to comment out these lines in
models/access.py:

#elif not request.is_local and not DEMO_MODE:
#raise HTTP(200, T('Admin is disabled because insecure channel'))

2011/11/30 Javier Quarite jquari...@gmail.com:


 On Tue, Nov 29, 2011 at 6:40 PM, Angelo Compagnucci
 angelo.compagnu...@gmail.com wrote:

 I almost done the admin mobilization!

 I have to get rid of an error on design.html, when done, I'll send you
 patches!

 Thanks!


 Is there a way to see an example? it sounds interesting and it could be a
 good reason to make my friends use web2py :D



-- 
Profile: http://www.gild.com/compagnucciangelo
Register on Gild: http://www.gild.com/referral/compagnucciangelo


[web2py] Re: could use some help ... mobile admin

2011-11-28 Thread Massimo Di Pierro
yes.

On Nov 28, 8:11 am, Ross Peoples ross.peop...@gmail.com wrote:
 Nice job. I'll be testing soon. By the way: Is @mobilize documented in the
 book? I looked through it briefly but didn't see any mention of it.


[web2py] Re: could use some help ... mobile admin

2011-11-28 Thread Massimo Di Pierro
No

On Nov 28, 1:48 am, Angelo Compagnucci angelo.compagnu...@gmail.com
wrote:
 Great!

 I'll work on it a soon as possible!

 Are you using the Auto-initialization of form elements ?

 Thanks!

 2011/11/28 Massimo Di Pierro massimo.dipie...@gmail.com:









  I could use some help. In trunk there is code for mobile admin.

  That means that if you visit admin from a mobile device it will use
  jquery.mobile. This is a work in progress and only some pages have
  been implemented but you can help. It is easy.

  In applications/admin/controllers/default.py there is this magic code:

     is_mobile=request.user_agent().is_mobile
     if is_mobile:
         response.view =
  response.view.replace('default/','default.mobile/')

  so if you use a mobile is_mobile==True and is will pick up views from
  views/default.mobile instead of views/default.

  I copied all views from views/default into views/default.mobile and I
  have fixed only index.html, site.html, edit.html about.html. The
  other *.html files need work, this is where you can help

  - replace {{extend 'layout.html'}} with {{extend 'default.mobile/
  layout.html}}.
  - remove any extra text that does not belong to a mobile
  - replace ul with ul  data-role=listview
  - replace all external links (i.e. not internal to admin) from a...
  to a rel=external...

  design.html is going to need some extra work.

  If you can help send me the modified files.

  Also let me know if you have comments or suggestions.

  Massimo

 --
 Profile:http://www.gild.com/compagnucciangelo
 Register on Gild:http://www.gild.com/referral/compagnucciangelo