[web2py] Re: How to identify the active .table files

2013-08-19 Thread at
interesting feature .. thanks On Monday, 19 August 2013 19:07:02 UTC+5, Anthony wrote: > > On Sunday, August 18, 2013 12:52:10 AM UTC-7, at wrote: > >> Thank you Niphlod. >> >> If connection string is same, can we generate .table files in one server >> and then use them in other server? >> > > A

[web2py] Re: Version in admin lists "(Running on %s)" instead of providing server info

2013-08-19 Thread Massimo Di Pierro
Good point. Please open a ticket about this. On Tuesday, 20 August 2013 01:00:02 UTC-5, HittingSmoke wrote: > > Long ago web2py used to provide which python version it was running on in > the admin interface. > > Now all I see is (Running on %s) in the admin console under the web2py > version. >

[web2py] Re: Question for web2py-users using pythonanywhere

2013-08-19 Thread Massimo Di Pierro
Yes you can do either. I do the former without problems. The only problem I had is that occasionally one instance run out of memory. Probably this is because I am not sure how to properly configure static files and some large files (for example web2py_win.zip) was served by web2py and not by the

[web2py] Version in admin lists "(Running on %s)" instead of providing server info

2013-08-19 Thread HittingSmoke
Long ago web2py used to provide which python version it was running on in the admin interface. Now all I see is (Running on %s) in the admin console under the web2py version. How can I fix this to see which python version web2py is using? -- --- You received this message because you are sub

[web2py] Re: can we paint a def function with multiple memberships

2013-08-19 Thread Anthony
On Monday, August 19, 2013 10:11:17 PM UTC-7, Fabiano wrote: > Almost ;) > > @auth.requires(auth.has_membership('Administrator') or auth.has_membership > ('Manager')) > Better to put the condition in a lambda so it only gets evaluated when the decorated function is called rather than every time

[web2py] Re: can we paint a def function with multiple memberships

2013-08-19 Thread Fabiano
Almost ;) @auth.requires(auth.has_membership('Administrator') or auth.has_membership( 'Manager')) http://www.web2py.com/books/default/chapter/29/09/access-control#Combining-requirements Fabiano. On Monday, August 19, 2013 10:23:21 PM UTC-3, lucas wrote: > > i am aware of: > > @auth.requires_me

[web2py] Book correction: Forms and Validators - 7.2.3 (5th ed. p.364-5)

2013-08-19 Thread REM
It would appear that there's a slight error or two in Chapter 7 in section 7.2.3 In the controller the book has: def display_form(): record = db.person(request.args(0)) or redirect(URL('index')) form = SQLFORM(db.person, record, deletable=True, upload=URL('download'))

Re: [web2py] Re: SQLFORM.grid always show column sorter arrows

2013-08-19 Thread Jim S
Just got back to looking at this and though the ticket is closed with a status of FIXED, it doesn't display the sorter icon when you first display the .grid. Also, line 2212 of sqlhtml.py has a print statement that is putting messages to my console. -Jim On Monday, August 12, 2013 10:01:45 AM

[web2py] can we paint a def function with multiple memberships

2013-08-19 Thread lucas
i am aware of: @auth.requires_membership('Administrator') def users(): etc however, can we allow for multiple or's, like @auth.requires_membership('Administrator') or @auth.requires_membership('Manager') which, of course, is pseudocode cuz i don't really know the syntax. or perhaps in a se

[web2py] Re: Encoding problem in 'format' from define_table on GAE

2013-08-19 Thread juan
Thank you Massimo, but how can it be resolved when the format attribute must represent fields in the database with special chars?. I mean, the hardcoded euro char is the minor problem here. Thanks El jueves, 15 de agosto de 2013 04:07:53 UTC-5, Massimo Di Pierro escribió: > > replace > form

[web2py] Re: auth.wiki() allow guests to view the wiki

2013-08-19 Thread Alan Etkin
> > Hi, > > I am trying to make use of auth.wiki() but I am finding that to even a > view a wiki page I have to be logged in. I want visitors to be able to view > the wiki pages without having to first register an account. > > Are you using the default settings? AFAIK, wikis are public by defaul

[web2py] jQuery help with form and page reload on button click

2013-08-19 Thread Jordan Ladora
Hi, I'm trying to make div's in a view sortable. I initially tried jQuery('div *').sortable() ..with no luck, and then tried the code below, using up and down buttons. They work to move the content in the divs up or down, but clicking them also causes form submission and page reload. I'm sur

[web2py] auth.wiki() allow guests to view the wiki

2013-08-19 Thread Simon Carr
Hi, I am trying to make use of auth.wiki() but I am finding that to even a view a wiki page I have to be logged in. I want visitors to be able to view the wiki pages without having to first register an account. How do I do this? Thanks Simon -- --- You received this message because you are

Re: [web2py] urlify - no char mapping

2013-08-19 Thread Niphlod
it would be the first time we ship a zip archive of a module... a) do we want to update a zip from a module with 118 files? b) do we want to maintain our own packaging system for this library in contrib ? On Monday, August 19, 2013 3:20:04 AM UTC+2, Jonathan Lundell wrote: > > > There's always z

[web2py] Question for web2py-users using pythonanywhere

2013-08-19 Thread Loïc
For users who host on pythonanywhere, I have a question about web2py custom domain setup : With a paying account, can I have one webapp with two applications inside, and have two domains pointing on each application? For example : WebApp |_ MyApp1 (www.myapp1.com) |_ MyApp2 (www.myapp2.com)

[web2py] Re: Two tables, one form -- with a twist

2013-08-19 Thread Anthony
On Sunday, August 18, 2013 10:21:51 PM UTC-7, Joe Barnhart wrote: > Ah. That explains one mystery. I knew about setting the formname in the > SQLFORM call, but I had not noticed I needed to pass it in the "validate" > method as well. > SQLFORM.__init__ does not take a "formname" argument (you

[web2py] Re: How to identify the active .table files

2013-08-19 Thread Anthony
On Sunday, August 18, 2013 12:52:10 AM UTC-7, at wrote: > Thank you Niphlod. > > If connection string is same, can we generate .table files in one server > and then use them in other server? > Also, note that you do not have to stick with the default *.table file names -- in each db.define_tabl

Re: [web2py] Unexpected redirect to login?_next

2013-08-19 Thread Richard Vézina
auth.settings.login_next = URL('index') auth.settings.logout_next = URL('index') auth.settings.profile_next = URL('index') auth.settings.register_next = URL('user', args='login') auth.settings.retrieve_username_next = URL('index') auth.settings.retrieve_password_next = URL('index') auth.settings.ch

[web2py] Not a web2py issues but ...

2013-08-19 Thread Massimo Di Pierro
... I am writing a book about Numerical Algorithms in Python. It is almost done. If you are interested in the subject and are interested in the area, please email me. I will be happy them to share them in exchange of some feedback. Massimo -- --- You received this message because you are su

[web2py] Re: How to add itens to a shopping cart

2013-08-19 Thread Massimo Di Pierro
I hope to post an example very soon. On Sunday, 18 August 2013 21:21:57 UTC-5, Elliott Chaves wrote: > > Hi, > > i having a problem to add itens to a shopping cart. To be more precise, i > don't know how to do that. I thinking in how to connect a call from view to > a determined function in cont

[web2py] Re: Ajax input masks

2013-08-19 Thread Massimo Di Pierro
web2py does this automatically for some fields (integer, float, decimal). It prevents you from typing invalid chars and also validates serverside for security. It very easy to add other types of client-size typing restrictions by using the examples. For example for integer: jQuery(document).on(

Re: [web2py] Re: Two databases with an auth in each

2013-08-19 Thread David Ripplinger
In my situation, I'm offering two completely different services to my two types of users: one is getting budgeting software and the other is getting advertising options. So in my case, I have decided that it makes sense to have two separate applications placed under two separate URLs. However, I ha

[web2py] Re: primarykey vs is_not_in_db

2013-08-19 Thread Antonis Konstantinos Tzorvas
issue opened: http://code.google.com/p/web2py/issues/detail?id=1637 the book is telling that primarykey is for legacy databases and what i understood is that it's mostly preferred to use a combination of IS_NOT_IN_DB than using primarykey what i am trying to achieve is here: http://ondras.zarov

[web2py] Re: GAE Cron, or some equivelant

2013-08-19 Thread jjg0
I was referring to google app engine... The book hasn't been very helpful On Friday, August 16, 2013 6:05:41 PM UTC-4, Massimo Di Pierro wrote: > > It all depends on how you run web2py. If you run it with web2py.py thank > you can pass a command line option to enable cron and then you need a > a

[web2py] Re: floating div with collapsing menu

2013-08-19 Thread lucas
OR, for that matter, can i place a banner image at the very top and float the menu, with all of its expanding and contracting, just under the banner? lucas On Monday, August 19, 2013 7:14:20 AM UTC-4, lucas wrote: > > can someone please explain to me how this collapsing menu works in the > css

[web2py] floating div with collapsing menu

2013-08-19 Thread lucas
can someone please explain to me how this collapsing menu works in the css's. i notice it depends on the width of the window. if it is narrow, it allows for a single line but it can expand or collapse to show its detail contents. when it is wide, it can show its primary items to the right of

[web2py] Re: plugin_clientapi

2013-08-19 Thread Alan Etkin
> > Alan, you you have a simple example app, that just goes through the basics. > The plugin will probably fail with new versions of web2py because of some recent changes to DAL. The plugin is still unstable because it depends on an experimental feature which needs fixes (http://code.google.co

[web2py] REG : Doubt in upload/insert in web2py

2013-08-19 Thread Sampath Reddy
Hi, I have a table which just stores images and their names from user through upload field. [ mytable(image,name) ] Which are stored by default in uploads folder and which can be accessed by default download action. Now my question is that If I manually put some image

[web2py] Doubt in upload/insert

2013-08-19 Thread Sampath Reddy
Hi, I have a table which just stores images and their names from user through upload field. [ mytable(image,name) ] Which are stored by default in uploads folder and which can be accessed by default download action. Now my question is that If I manually put som

[web2py] Doubt in upload/insert in web2py

2013-08-19 Thread Sampath Reddy
I have a table which just stores images and their names from user through upload field. [ mytable(image,name) ] Which are stored by default in uploads folder and which can be accessed by default download action. Now my question is that If I manually put some images

[web2py] How to add itens to a shopping cart

2013-08-19 Thread Elliott Chaves
Hi, i having a problem to add itens to a shopping cart. To be more precise, i don't know how to do that. I thinking in how to connect a call from view to a determined function in controller. Any advices? Att., -- --- You received this message because you are subscribed to the Google Groups

[web2py] Ajax input masks

2013-08-19 Thread Warren Block
Hello. I'm just starting to dig into web2py. One thing I really want is field input masks ala Visual Foxpro, to prevent users from entering invalid characters rather than validating afterwards and telling them they made a mistake. For example, if a user types alpha characters into a numeric-

[web2py] Re: Web2Py on OpenShift

2013-08-19 Thread xelomac
Hi Andrew, thank you for sharing. I just tried your template and successfully installed the master (latest development snapshot of web2py). But since I want to use the latest stable version I deleted everything (local and remote installation) again and started again: rhc app create -a web2py -

[web2py] Re: [web2py:27381] Re: MySQL - OperationalError: Error on rename (errno: 150)

2013-08-19 Thread Mika Sjöman
I am still getting allot of the same problems but now in 2013. When working on localhost and pushing to pythonanywhere, then I get these MYSQL index errors with 150 message. The way to solve it has been to add fake_migrate_all=True to the DAL connection, but then I can not do any database chan

Re: [web2py] Re: How to identify the active .table files

2013-08-19 Thread Niphlod
the bottomline is: - .table files are just needed for migrations. - If you have migrate_enabled=False or migrate=False on all tables (auth too), web2py is instructed to trust your models to be in sync with the database, so no .table files are neither created nor required. - if you don't have .ta

[web2py] Re: diffrence between web2py and django framework...

2013-08-19 Thread Joe Barnhart
Both are excellent frameworks and I have nothing but praise for both Django and web2py. You need to try a small project in each and determine for yourself which fits your needs better. There are so many similarities and differences that it's impossible to declare one "winner" and "loser". Som

[web2py] Re: {{=customform.custom.widget.delete_record}} is None

2013-08-19 Thread Annet
Hi Simone, Thanks for your reply. I did read the part on custom forms, and tried {{=form.custom.widget.delete}} but it should be {{=form.custom.delete}} without the .widget :-( Best regards, Annet -- --- You received this message because you are subscribed to the Google Groups "web2py-use