[web2py] Re: represents function

2014-11-02 Thread Alex Glaros
{{extend 'layout.html'}} {{for objectComment in objectComments:}} {{=objectComment.created_on}} {{=objectComment.created_by.first_name}} {{=objectComment.created_by.last_name }}: testing: {{=objectComment.created_by}} {{=MARKMIN(objectComment.superObjectComment)}} {{pass}}

[web2py] Re: represents function

2014-11-02 Thread Anthony
Where is this being displayed? The represent attribute only controls display in SQLTABLE, SQLFORM.grid, and SQLFORM read-only fields. Anthony On Sunday, November 2, 2014 9:06:58 PM UTC-5, Alex Glaros wrote: > > Does anyone see anything wrong with this "represent" function? > > The goal is have f

[web2py] represents function

2014-11-02 Thread Alex Glaros
Does anyone see anything wrong with this "represent" function? The goal is have first_name, last_name (and later other auth_user fields) appear to represent "created_by" field - SuperObjectComment.created_by No error is raised, but the (correct) primary key is displayed (the number) instead of

[web2py] Re: Scheduler: plugin cs_plugin_monitor updated to 2.0.1

2014-11-02 Thread pn
Looks really impressive! Will check out the code tomorrow. Are you looking for any help besides code-review/comments? On Sunday, November 2, 2014 8:49:51 AM UTC-5, Niphlod wrote: > > Followers of the relevant repo > should be yet aware that > there

[web2py] Re: import error when running compiled version of web2py

2014-11-02 Thread skd
Thanks Niphlod. That explains everything. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Goog

[web2py] Re: ajax eval not working when url has an argument

2014-11-02 Thread Toby
Thanks Anthony, that works perfectly (minor typo: need an '=' in front of URL). Tobias -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received t

[web2py] Re: Distance between geolocations in a query

2014-11-02 Thread Ruud Schroen
Nevermind.. I was using a geometry field instead of a geography one, so it was showing the difference in degrees rather than meters. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issue

[web2py] Re: Distance between geolocations in a query

2014-11-02 Thread Ruud Schroen
This doesn't seem to be working properly or I'm doing something wrong.. query = db.providers.geolocation.st_distance(geoPoint(51.340245, > 5.530007))<5 > providers = db(query).select() > I currently have one record. It's geometry field holds this value: *POINT(51.247427 5.89289)*I'm using a

[web2py] Re: Scheduler: plugin cs_plugin_monitor updated to 2.0.1

2014-11-02 Thread JorgeH
great work! On Sunday, November 2, 2014 8:49:51 AM UTC-5, Niphlod wrote: > > Followers of the relevant repo > should be yet aware that > there was something going on with the monitor > And now, it's ready for show-time: > - new revamped interfac

[web2py] Re: ajax eval not working when url has an argument

2014-11-02 Thread Anthony
Note, I just made an update to the book repo changing all ajax() examples to use the URL() function in order to avoid this confusion (previously, the first example had been changed but the others were left as is). Anthony On Sunday, November 2, 2014 9:54:42 AM UTC-5, Anthony wrote: > > > >>

[web2py] Re: ajax eval not working when url has an argument

2014-11-02 Thread Anthony
> > In the ajax call, 'echo' is a relative URL, so it will be appended to the URL of the current page. Instead, try using the URL() function: In general, when you have an Ajax problem, it usually helps to open the browser developer tools and watch the network activity and JS console. T

Re: [web2py] Changing column order in an SQLFORM.grid that takes a "links" parameter

2014-11-02 Thread Spokes
No idea how I missed that in the docs. Thanks! On Sunday, November 2, 2014 2:34:08 AM UTC-5, Kiran Subbaraman wrote: > > This should help? > http://web2py.com/books/default/chapter/29/07/forms-and-validators#SQLFORM-grid-signature > *links_placement = 'right' | 'left' | 'both'* > > _

[web2py] Re: ajax eval not working when url has an argument

2014-11-02 Thread Toby
Hi Anthony, Thanks for responding. Here's my code. default.py: def one(): return dict() def echo(): return "jQuery('#target').html(%s);" % repr(request.vars.name) one.html: {{extend 'layout.html'}} Tobias -- Resources: - http://web2py.com - http://web2py.com/book (Documenta

[web2py] Re: basic argument question

2014-11-02 Thread Alex Glaros
> > > works good great elucidation skills thanks Anthony! -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are s

Re: [web2py] Changing column order in an SQLFORM.grid that takes a "links" parameter

2014-11-02 Thread Kiran Subbaraman
|This should help? http://web2py.com/books/default/chapter/29/07/forms-and-validators#SQLFORM-grid-signature /links_placement = 'right' | 'left' | 'both'/ | Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Sun, 02-11-2014 6:08 AM, Spokes w