Re: [web2py] Re: One controller for two views (revisited)

2016-06-29 Thread Julio F. Schwarzbeck
s, instantiates a new instance of > my class and read's the dict back into the instance variables. > > But, didn't even think about using current. I will investigate that > tomorrow. Will it keep unique sessions even between tabs open in the same > browser? > > -Jim > > &g

[web2py] Re: One controller for two views (revisited)

2016-06-29 Thread Julio F. Schwarzbeck
me. > I'm doing some tricky (well, tricky for me) things to pass the object > around between pages, but it is all working quite well. > > -Jim > > > On Wednesday, June 29, 2016 at 3:03:45 PM UTC-5, Julio F. Schwarzbeck > wrote: >> >> Hi again Folks, >&g

[web2py] One controller for two views (revisited)

2016-06-29 Thread Julio F. Schwarzbeck
Hi again Folks, I just wanted to get your take on an approach that has not been suggested for this question, even though the question, in one form another, has been asked previously. I have more than one application, or potentially one or more applications + some services that roughly has the

[web2py] 2016 PyCon Portland

2015-12-18 Thread Julio F. Schwarzbeck
Winter is coming, and after that, PyCon in May 2016.. We need a web2py presence there! - What are the steps to make Massimo a figure in the event?? - Suggestions? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Error accessing any app (incl admin): type object 'DAL' has no attribute 'Field'

2015-05-25 Thread Julio F. Schwarzbeck
web2py Version: Version 2.10.4-stable+timestamp.2015.04.26.15.11.54 Just upgraded it and at first I thought it was one of my apps, but when trying to access the welcome, admin apps, I invariably got the same error: Stype 'exceptions.AttributeError' type object 'DAL' has no attribute 'Field' p3

[web2py] Re: Error accessing any app (incl admin): type object 'DAL' has no attribute 'Field'

2015-05-25 Thread Julio F. Schwarzbeck
It was indeed, thanks Stifan, Basically, I was overwriting my whole ~/web2py folder with the contents of the .zip file, as I've done it dozens of times before, since I keep my applications symlinked from outside of the web2py directory structure, removing the whole folder and recreating it

Re: [web2py] Re: Question about web2py roadmap.

2015-02-11 Thread Julio F. Schwarzbeck
and progress nature of my dev, it difficult to predict what shoudl do my class in advence... So, writting class would lead me more in YAGNI state of thinking than in concrete problem solution. Richard On Sat, Feb 7, 2015 at 1:48 PM, Julio F. Schwarzbeck ju...@techfuel.net javascript: wrote

Re: [web2py] Re: Question about web2py roadmap.

2015-02-11 Thread Julio F. Schwarzbeck
and progress nature of my dev, it difficult to predict what shoudl do my class in advence... So, writting class would lead me more in YAGNI state of thinking than in concrete problem solution. Richard On Sat, Feb 7, 2015 at 1:48 PM, Julio F. Schwarzbeck ju...@techfuel.net javascript: wrote

Re: [web2py] Re: Question about web2py roadmap.

2015-02-07 Thread Julio F. Schwarzbeck
Anthony, your last paragraph is quite interesting. I work for a large corporation, which for good or bad, has back-end web programmers, but also simple html designers. The concept of embedding HTML helpers A(), FORM() in controllers, or modules is frowned upon and it was one of the main reasons

[web2py] Re: update database right from view?

2014-07-11 Thread Julio F Schwarzbeck
I'd suggest finding an alternative way of handling this, the below can become a real pain to maintain, not to mention the complexity of the algorithm being a O(n3) will be extremely inefficient and can potentially be very slow, try to minimize the use of inner loops unless there is no other

[web2py] Retrieve Membership information for User

2014-02-28 Thread Julio F Schwarzbeck
Folks, is there an API (couldn't find it) it Auth that returns the memberships that the user belong to?, I guess something like: memberships = auth.get_memberships() Returning a list or dict of objects/tuples/etc with ids and names or something similar.. I understand that this could be

[web2py] Re: Retrieve Membership information for User

2014-02-28 Thread Julio F Schwarzbeck
Awesome, exactly what I was looking for Anthony, thanks! On 02/28/2014 09:42 AM, Anthony wrote: auth.user_groups should be a dict like {group id: role, ...} Anthony On Friday, February 28, 2014 12:03:45 PM UTC-5, Julio F. Schwarzbeck wrote: Folks, is there an API (couldn't find

[web2py] Re: how to get globals like request available in my own modules ?

2014-02-18 Thread Julio F Schwarzbeck
is only access to environment variables, indeed current is the way yo go. Thx, Julio On 02/16/2014 04:40 PM, Anthony wrote: Note, instead of this method, you can now use gluon.current. Anthony On Sunday, February 16, 2014 6:32:13 PM UTC-5, Julio F. Schwarzbeck wrote: I assume

[web2py] Another PEP8 sore

2014-02-16 Thread Julio F Schwarzbeck
Folks, take a look at this piece of code: topics = db((db.topic.id == topic_id) (db.topic.active == True)).select() PEP8 is breaknig with the following error: default.py:xxx:yy: E712 comparison to True should be 'if cond is True:' or 'if cond:' And of course changing (db.topic.active ==

[web2py] Re: how to get globals like request available in my own modules ?

2014-02-16 Thread Julio F Schwarzbeck
I assume that if you will use modules they'll probably be implemented in some kind of class, I'd personally do something similar to this.. # mymodule.py class ModuleHelper(object): Sample Helper for common methods. def __init__(self, environment): self.request =

[web2py] Re: Time to move from Google Groups to a web2py or python??

2012-05-01 Thread Julio F. Schwarzbeck
http://www.qa-stack.com/ 100% web2py, 100% open source. Also here's the documentation: https://docs.google.com/document/d/18WpX6BYgv1MD3IeClLsvNNR1AerMFOC2W0tQJ84EmGg/edit?authkey=CNDZjA0 It still needs some work (more ajax, mobile UI and switch registration/user control possibly to a plug

[web2py] Re: Time to move from Google Groups to a web2py or python??

2012-05-01 Thread Julio F. Schwarzbeck
(upvoting, downvoting, automatic permissions escalation, administration, etc.). Now ability to post from within a newsreader/nntp that is an interesting thought.. Thanks, On Tuesday, May 1, 2012 11:50:49 AM UTC-7, Gour wrote: On Tue, 1 May 2012 10:42:03 -0700 (PDT) Julio F. Schwarzbeck julio

[web2py] Re: How Auth works

2012-03-02 Thread Julio F. Schwarzbeck
If you are ok digging through code, in mostly all of my apps I use a CustomAuthntication.py module that is basically a class that mimics web2py's but it is very thin compared to the stock's, I use it this way not because 'mine is better' but because I wanted to control my registration and

[web2py] Re: Trying to limit the amount of HTML cruft in controllers

2012-03-02 Thread Julio F. Schwarzbeck
Hi Fabien, web2py is so well designed that it should not be hard to do what you ask, I've developed at least 4 public webapps with 95%+ of the logic code being in the controller and the view containing ALL of the html bolierplate code, yes, you lose constructs like form.accepts() but you

[web2py] Re: Signature apps

2012-03-01 Thread Julio F. Schwarzbeck
http://www.i-track.org [Issue Tracking System] Cheers, Julio On Sunday, September 25, 2011 11:24:12 PM UTC-7, Massimo Di Pierro wrote: I have not tested them and I am sure I am missing something important so please add below (do not comment, just add to the list) Layouts and Plugin