Re: [web2py] how to create a view for grid view, edit, delete buttons?

2014-11-10 Thread Alex Glaros
good to know Johann have any examples or links to simple examples? thanks, Alex -- 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

[web2py] Re: How to get tablename from a given Row object?

2014-11-10 Thread Lisandro
Thanks! That was exactly what I was looking for. El domingo, 9 de noviembre de 2014 22:41:08 UTC-3, Anthony escribió: The default Row object doesn't have the table name. However, if you set the compact attribute of the Rows object to False, each Row object will act like a dictionary with

[web2py] Minor suggestion for admin

2014-11-10 Thread António Ramos
Hello , in admin , when i browse to one of the tables where i can query data, its not very usefull to have all columns starting with the table name. Its obvious and leads to wider column sizes. If you ever have more than spare time please remove it. This way i could see more columns without

Re: [web2py] how to create a view for grid view, edit, delete buttons?

2014-11-10 Thread Johann Spies
On 10 November 2014 10:17, Alex Glaros alexgla...@gmail.com wrote: good to know Johann have any examples or links to simple examples? links = lambda row: (A(B(T('Edit')), _target = _blank, _href = URL(r = request, c =

Re: [web2py] how to create a view for grid view, edit, delete buttons?

2014-11-10 Thread Johann Spies
Apologies sent before finished. On 10 November 2014 10:17, Alex Glaros alexgla...@gmail.com wrote: good to know Johann have any examples or links to simple examples? links = lambda row: (A(B(T('Edit')), _target = _blank, _href = URL(r = request,

[web2py] registration settings not working

2014-11-10 Thread Yebach
Hello In my db.py i have the following settings auth.settings.registration_requires_verification = True auth.settings.registration_requires_approval = True/False - it is always Fasle - user can login even if I set to True?? auth.settings.reset_password_requires_verification = True

[web2py] Re: Web2py on Pythonanywhere

2014-11-10 Thread clara
Hello David, Sorry for my late reply. The site I have on pythonanywere is at the following link: http://ulamdev.pythonanywhere.com/unlam https://ulamdev.pythonanywhere.com/unlam I am redirected to: https://ulamdev.pythonanywhere.com/unlam And I assume it is the case for any other PC

[web2py] Re: Web2py on Pythonanywhere

2014-11-10 Thread clara
On the other hand, on another web2py I built long ago if I try: http://kiki.pythonanywhere.com/ it remains as http and if I try: https://kiki.pythonanywhere.com/ it remains as https, that is the request is kept as is. Thanks in advance for any help. Regards to all, Clara El lunes, 10 de

[web2py] Re: Web2py on Pythonanywhere

2014-11-10 Thread Niphlod
the first link, albeit printed as http, is carrying a link to https: please try this http://ulamdev.pythonanywhere.com/unlam and https://ulamdev.pythonanywhere.com/unlam Sites are served independently because pythonanywhere serves both by default, and both are available without

[web2py] Re: how to create a view for grid view, edit, delete buttons?

2014-11-10 Thread Anthony
Just set the readable and writable attributes of field you want hidden to False. If you want to make other customizations in the view, you can include conditions such as: {{if 'view' in request.args:}} [custom code for view forms] {{pass}} Similar conditions can be used in the controller, for

[web2py] Re: Web2py on Pythonanywhere

2014-11-10 Thread clara
Hello Niphlod, Thanks for your quick answer. From my PC if I try either link I always get the secure site back (https). If I try it on my cellphone though I get http when requesting http and https when requesting https. If I remember correctly, when I do the same from my notebook at home, I

[web2py] Re: Deploying web2py-based service along with no-web2py main site

2014-11-10 Thread Dmitry Vlasov
Thanks, I will try. суббота, 8 ноября 2014 г., 15:16:03 UTC+3 пользователь Niphlod написал: you don't need rocket. you need two virtualserver directives, one handling the site at xxx.com and the other handling the web2py site at subdomain.xxx.com On Friday, November 7, 2014 11:33:44 PM

[web2py] Re: Web2py on Pythonanywhere

2014-11-10 Thread Niphlod
it's probably some misconfiguration / cached values / etc on your browser. Try resetting preferences/cache/etc (or open an incognito session) to test it properly. On Monday, November 10, 2014 3:31:58 PM UTC+1, clara wrote: Hello Niphlod, Thanks for your quick answer. From my PC if I try

[web2py] Re: play audio file from controller

2014-11-10 Thread LoveWeb2py
Here is the code in the link: db.define_table('music', Field('name',required=True), Field('filename','upload',required=True), auth.signature) applications/audio/models/db_audio.py echo response.menu = [('Home',0,URL('index'))] # allows to browser, search, and upload new music (if logged in)

[web2py] Re: Very simple issue: redirect on login - auth.settings.login_next

2014-11-10 Thread WhoSoLovesUs
Is this still the recommended way to send logged in users to a particular page? I was looking for how to send my logged in users to a particular page, and eventually found this thread after a fair bit of time searching. So I'm just echoing a desire to see this (I suspect) very common case

[web2py] Re: Very simple issue: redirect on login - auth.settings.login_next

2014-11-10 Thread WhoSoLovesUs
PS ... Glad to find this though at least, and thank you to everyone involved in the thread! I am a beginning user, and I'm starting at the beginning of my app's most fundamental needs (in this case of course, logging in, and what a user will see when they do so) On Thursday, December 6,

[web2py] Is Web2py ill-suited for apps that heavily interact with other services?

2014-11-10 Thread WhoSoLovesUs
Hi, I'm in the beginning stages of building my app. One of the most important things it will do is connect to 3rd party services via their APIs (e.g. Google Analytics) I ran into a disconcerting comment on this stackoverflow thread

[web2py] RSVP: Massimo @ Bay Area web2py meetup (refreshments) -- 12/5/2014, 6:30PM - 9:00PM -- BE THERE!!!

2014-11-10 Thread Richard Warg
I'll be there. I have a projector but it is VGA only. It will run off my Chromebook, MacBook, or antique Linux laptop. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

[web2py] RSVP: Massimo @ Bay Area web2py meetup (refreshments) -- 12/5/2014, 6:30PM - 9:00PM -- BE THERE!!!

2014-11-10 Thread Dexter Hadley
I'm in too. Thx. dex* -- 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 Google Groups

[web2py] Re: RSVP: Massimo @ Bay Area web2py meetup (refreshments) -- 12/5/2014, 6:30PM - 9:00PM -- BE THERE!!!

2014-11-10 Thread Joe Barnhart
I'll be there with bells on. I also offered to drive Massimo to the event as he usually camps out on the peninsula and doesn't rent a car. -- Joe P.S. I don't have an official presentation but I can show a bit about the commercial web site I'm developing using web2py. -- Resources: -

[web2py] SQL query to find all records which are not in another table

2014-11-10 Thread Vladimir Makarov
I'm just a little bit confusing because I can't make correct selection to find records that are absent in another (referenced) table. It's clear to me how to make inner join: rows = db(db.persons).select(join=db.tbl.on(db.persons.id==db.tbl.person), groupby=db.persons.f_name,

[web2py] Re: SQL query to find all records which are not in another table

2014-11-10 Thread Leonel Câmara
You can use belongs. You ask for those that do not belong. http://www.web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#belongs something like tbl_person = db()._select(db['tbl.person'].id) db(~db.persons.id.belongs(tbl_person)).select() Do you actually have dots in your

[web2py] submit form via ajax ... outside of form

2014-11-10 Thread weheh
I wish to create an ajax button that is outside the form ... /form created by SQLFORM.factory, such that when I click the ajax button it will self-submit the form. Is this possible? For instance def mytest(): form=SQLFORM.factory(Field(mytext,text, requires=IS_NOT_EMPTY())) # add some

[web2py] Re: submit form via ajax ... outside of form

2014-11-10 Thread weheh
I think I just came up with a stupid simple way to do this. Just hide the regular submit button and trigger(click) on it when the other button is pressed. What do you think? On Monday, November 10, 2014 1:25:49 PM UTC-8, weheh wrote: I wish to create an ajax button that is outside the form

[web2py] Re: submit form via ajax ... outside of form

2014-11-10 Thread Niphlod
in html and javascript there's no one way to do it. you can come up with a lot of solutionsbut for this particular case, I'd either trigger a submit event on the form or a click on the original submit button. On Monday, November 10, 2014 10:35:43 PM UTC+1, weheh wrote: I think I just came

[web2py] formatting grid

2014-11-10 Thread Alex Glaros
1. to get a field in grid to align vertically top, what is correct syntax? Tried this: db.Suggestion.suggestionShortSummary.represent = lambda value,row: DIV(value , _style='vertical-align:top;') 2. is it possible to put a line break after one of the fields in grid? thanks, Alex Glaros --

[web2py] Re: pypdf sample code not working in a view

2014-11-10 Thread Mark Kirkwood
Ok so the above plan works fine*. *In the interest of completeness, the original demo code can be made to work sensibly on modern web2py (2.9.11). So you can remove the code in the controller and (essentially) paste it into a view. But a few corrections are needed - the major ones being adding

Re: [web2py] Re: pypdf sample code not working in a view

2014-11-10 Thread Mariano Reingart
Hello Mark: Thanks for the patch! This fix is for the wiki page or the code itself? Could you create a new issue in the project site? https://code.google.com/p/pyfpdf/issues/list Or do you want to edit the page directly (I can give you the needed permisions) Even better, for the soure code,

[web2py] Re: pythonanywhere

2014-11-10 Thread clara
Hello Niphlod, I guess I missed your message before. The reason I want to avoid https is that I can not load external javascript files from CDNs that make them available via http. Does this make sense to you? Is there any work around for this? Thanks! Clara El viernes, 10 de octubre de

Re: [web2py] Re: pypdf sample code not working in a view

2014-11-10 Thread Mark Kirkwood
Hi Mariano, The patches are for the pyfpdf web2py sample app, (I'm not seeing that in the main pyfpdf src, but I might have missed it). Yes, I seemed to need a few additional 'pass' statements to avoid the view complaining. I may have been over zealous :-) In terms of style, I was following

[web2py] Re: pythonanywhere

2014-11-10 Thread Dave S
On Monday, November 10, 2014 5:12:57 PM UTC-8, clara wrote: Hello Niphlod, I guess I missed your message before. The reason I want to avoid https is that I can not load external javascript files from CDNs that make them available via http. Does this make sense to you? Is there any