[web2py] Re: Web2py (2.7.4) not working on IE9

2013-11-11 Thread Luca Zacchetti
Yes, that was a cookies problem. IE was blocking all cookies by default, I had to set a lower cookies policy in Internet options-Privacy. Il giorno venerdì 8 novembre 2013 17:44:02 UTC+1, Luca Zacchetti ha scritto: Web2py (version 2.7.4) forms are not working on my IE9 browser. Just tried

[web2py] Web2py crash if i define model with function

2013-11-11 Thread Diogo Munaro
Hi guys, first the problem: I need some databases with identical structure, but with different data. These databases must be stored with the clients because they want (different locations), but the auth system is unique. So, my structure by now is: a centralized auth system and some disyributed

[web2py] Re: Web2py crash if i define model with function

2013-11-11 Thread Michele Comitini
If you define a function like def f(): pass in a model, you should have no problems. Just show us an extract of code that causes the problem, without violating any reserved information or IP. That way we can help you... mic Il giorno lunedì 11 novembre 2013 10:43:49 UTC+1, Diogo Munaro ha

Re: [web2py] How to make registrations invitation-only with Janrain login/registrations

2013-11-11 Thread Johann Spies
I do not use Janrain but I think you can use auth.settings.registration_requires_verification = True auth.settings.registration_requires_approval = True I normally use the last one only. That means no registration will be valid unless approved by the administrator. I don't have a lot of users

Re: [web2py] Scheduler - a second try

2013-11-11 Thread Niphlod
how many schedulers are running ? just one with the default configurations ? On Monday, November 11, 2013 7:08:38 AM UTC+1, Johann Spies wrote: On 9 November 2013 15:05, Niphlod nip...@gmail.com javascript: wrote: @spies: sorry for the digressions, any luck figuring out what database

[web2py] Re: Autocomplete trigger callback function using ID

2013-11-11 Thread Ari Lion BR Sp
Hi, any comment? Em sexta-feira, 8 de novembro de 2013 15h46min37s UTC-2, Ari Lion BR Sp escreveu: Dear All, I have searched in the list, without success. Is there a way to trigger a function after having filled Autocomplete (ID based) field? (If I would use simple SELECT field, it would

[web2py] Re: Form fields in DB showing a 0 value

2013-11-11 Thread raferbop
Niphold, thanks for that info, but this is what I have; db.define_table( 'order_bus', Field('depart_from'), Field('arrive_to'), Field('date', 'date'), Field('time', db.depature_times), # drop-down select time options Field('no_of_passengers', db.tickets), # drop-down options to

Re: [web2py] Re: Problems with migration to Postgres

2013-11-11 Thread Michele Comitini
before moving to the new db: $ cd web2py/applications/app $ cp -a databases databases_sqlite $ rm -r databases/* supposing your db on postgresql is fresh and empty (else just make a dump of it to avoid loosing all your data!): $ su postgres $ dropdb yourdb $ createdb -O yourdbuser and try

[web2py] Re: Verbose output is printed to console after clicking on any button in my application in 2.7.4

2013-11-11 Thread Massimo Di Pierro
This is a bug. I believe it is fixed in trunk. Try the nightly build. It is better than 2.7.4. On Monday, 11 November 2013 00:12:41 UTC-6, Rahul wrote: Hi Massimo, Yes I have views for all the actions. Here is the screenshot of the application. Here is the code from my function

[web2py] Re: redirect depending on controller name

2013-11-11 Thread Alex
first I had trouble with the simple routing of a specific controller, e.g. routes_in = ( ('/myapp/client/list', '/myapp/client/view'), ) it took sometime until I found out why this didn't work at all. I'm also using the Parameter-based url rewrite system (routers = ...), but this cannot be

[web2py] File upload through Ajax

2013-11-11 Thread Tushar Tuteja
Hey, I want to upload a file, but I want that file to be uploaded via ajax. Is there an example code to do so in web2py. A fully functional app would be of great help. That just uploads one single file to the server from the index page and then displays that image in the list on the same page. No

[web2py] Re: File upload through Ajax

2013-11-11 Thread Leonel Câmara
Here's an example: http://in10min.blogspot.pt/2013/04/web2py-implement-multiple-files-upload.html Segunda-feira, 11 de Novembro de 2013 14:07:38 UTC, Tushar Tuteja escreveu: Hey, I want to upload a file, but I want that file to be uploaded via ajax. Is there an example code to do so in

Re: [web2py] is this possible db.table(id).field.represent

2013-11-11 Thread Richard Vézina
The seconde choice seems to be what I was search for... I was know about .render(), but as you explain it is for rows only and don't apply when I use this short cut : db.table(id_of_record).field Thanks a lot. Richard On Fri, Nov 8, 2013 at 4:59 PM, Anthony abasta...@gmail.com wrote: Are you

[web2py] Re: How to create a db query for data that has not been submitted to the database

2013-11-11 Thread raferbop
Thanks much Massimo, Could you explain this statement further; *where value_to and value_from are not fields not the values of the source and destination. * On Sunday, November 10, 2013 5:28:03 PM UTC-5, Massimo Di Pierro wrote: fare = db((db.order.depart_from==db.fare_table.from)

[web2py] comma in html filename causing invalid request

2013-11-11 Thread John Felps
I have edited routes.parametric.example.py and saved as web2py/routes.py with the default application as myapp. I have some html files in static that now can be accessed as http://ip/myapp/static/dir/test.html or http://ip/static/dir/test.html however, a couple of files have commas in the

[web2py] Re: How to create a db query for data that has not been submitted to the database

2013-11-11 Thread Massimo Di Pierro
In db.order.depart_from==db.fare_table.from both right and left hand sites are fields of the table. therefore including that in a query makes a join, but does not filer fields. This instead db.order.depart_from=='some value' compares a field to a value and therefore filters fields. Now

[web2py] Re: web2py Components for layout.html and other HTML pages [ not derived from layout.html]

2013-11-11 Thread JoeCodeswell
Dear Anthony, Kiran and Johann, Thanks for the responses. I'll be keeping track of the work that i do on this subject on myblog at this posthttp://joecodeswell.wordpress.com/2013/11/11/components-for-web2py-html-pages-not-derived-from-layout-html/. If you or any other web2py-users group

[web2py] Re: comma in html filename causing invalid request

2013-11-11 Thread Leonel Câmara
It is sort of unorthodox to have commas in the path section of your URL unless you have code to specially deal with it and you're using it as a separator for something. So I'm guessing the regex in the examples doesn't consider the comma and you have to change it. So change something like

[web2py] Re: Trying to use dict to filter values for a 2nd dropdown list based on the value of 1st dropdown list

2013-11-11 Thread Leonel Câmara
You are in luck, I had to do this for one of my projects. Here's a widget I made for a project where I had the same problem but I had 3 levels, Country-state-city For countries that don't have states you can use administrative regions, but it's also trivial to adapt this to only 2 levels.

[web2py] How is the current menu styled to be horizontal?

2013-11-11 Thread JoeCodeswell
Dear Web2py forum, I can't find superfish.css in the application structure anymore. I think i remember that web2py went through a menu overhaul. Can someone please tell me the *minimum dependencies *for the new menus to be rendered horizontally? Thanks in advance. Love and peace, Joe --

[web2py] Re: How is the current menu styled to be horizontal?

2013-11-11 Thread Leonel Câmara
I would just copy all the css files, js files, and web2py_ajax.html from an updated welcome application I guess the absolute bare minimum would be for you to include bootstrap.min.css Segunda-feira, 11 de Novembro de 2013 19:12:11 UTC, JoeCodeswell escreveu: Dear Web2py forum, I can't

[web2py] Re: How to create a db query for data that has not been submitted to the database

2013-11-11 Thread Derek
I get what you are saying, you want that once the departure and arrivals are selected, then query the database to get the times for a particular day (like today). That sounds like you would need an ajax solution. http://www.web2py.com/book/default/chapter/11#The-ajax-function It

[web2py] Re: Problems with migration to Postgres

2013-11-11 Thread Leonel Câmara
It seems to me that web2py thinks the other tables are already created. Probably because of files table files you have hanging around in the databases directory of your application. If this is the problem, here's a solution. 1. Stop web2py if it's running. 2. Drop your new postgresql

[web2py] Re: Trying to use dict to filter values for a 2nd dropdown list based on the value of 1st dropdown list

2013-11-11 Thread Derek
aaah you are creating your view in the model, have you not heard of MVC and separation of concerns? That would work, but it is violating the MVC principle. Also, it looks like you are only storing the 'city' and not the country or state. What happens if in two countries they have the same

[web2py] Re: AD LDAP Auth without creating Auth tables

2013-11-11 Thread GregD
Niphlod, Thanks for all your help. We have the app working now. To answer your questions: 1. yes, password and role are reserved words in Firebird 1.5; Not sure about 2.x version though 2. I can see uses for rname down the road. Glad its in the works. 3. We're using Firebird 1.5 because

[web2py] Re: Trying to use dict to filter values for a 2nd dropdown list based on the value of 1st dropdown list

2013-11-11 Thread Leonel Câmara
I'm not explicitly storing the country or state because the city has a reference to a state which has a reference to the country. I don't think I'm breaking MVC much more than it is already routinely broken in web2py whenever you use SQLFORM, as the states and countries on the dropdown have

Re: [web2py] Re: Web2py crash if i define model with function

2013-11-11 Thread Michele Comitini
What happens if you remove the index creation inside the try/except block? 2013/11/11 Diogo Munaro diogo.mvie...@gmail.com It's not a simple function, but putting the model definition inside the function. Here the code: http://pastebin.com/rN7gvAT8 Attached the error ticket Em

[web2py] Loop problem

2013-11-11 Thread sonu kumar
Hi, I am trying to print my data in table from two parsed files in view : here is my code: table thead tr thP1brposition/th thresidue/th thTransmembranebrdomain/th thC-mass/th /tr /thead {{for row in cleavage_res[2:]:}} tbody tr class=gradeA td{{=row[0]}}/td

[web2py] Re: How is the current menu styled to be horizontal?

2013-11-11 Thread Paolo Caruccio
Currently the default layout.html is based on bootstrap framework (see http://getbootstrap.com/2.3.2/index.html) As far as I know the minimum dependencies required from web2py for any layout are: - web2py.css - web2py_ajax.html (which in turn refers to web2py.js and jquery) However, in order

Re: [web2py] Re: Web2py crash if i define model with function

2013-11-11 Thread Diogo Munaro
The error continues, but without index :( The indexes are successful created 2013/11/11 Michele Comitini michele.comit...@gmail.com What happens if you remove the index creation inside the try/except block? 2013/11/11 Diogo Munaro diogo.mvie...@gmail.com It's not a simple function, but

[web2py] Question regarding conf2py registration bug

2013-11-11 Thread Jaeseong You
The conf2py seems to suffer from a crash when one is trying to register. Is there any past resolution of this bug? Would it be possible for you to help me clarify the problem? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source

[web2py] What's the state of background.py (running code in separate threads) ?

2013-11-11 Thread itsik
On some requests I need to run a long process (15+ mintues), but return immediately to the calling user. For now, I've created a command line interface for heavy function, that runs the python script but doesn't wait. (In my case, I don't need the output.) Recently I saw that there was a

Re: [web2py] Re: web2py Components for layout.html and other HTML pages [ not derived from layout.html]

2013-11-11 Thread Kiran Subbaraman
Joe, It is probably a good idea to capture this in the web2py bug tracker as an enhancement request. Kiran Subbaraman http://subbaraman.wordpress.com/about/ On 11/11/2013 10:22 PM, JoeCodeswell wrote: Dear Anthony, Kiran and Johann, Thanks for the

[web2py] Re: Loop problem

2013-11-11 Thread Leonel Câmara
This is kind of impossible to answer without knowing what's in row or thmdata, It could be simply an error in your parser (you say the data comes from parsed files), and it's not getting all the results you were expecting. I suggest you use the debugger included with the framework to

Re: [web2py] Re: web2py Components for layout.html and other HTML pages [ not derived from layout.html]

2013-11-11 Thread Anthony
On Monday, November 11, 2013 9:27:23 PM UTC-5, Kiran Subbaraman wrote: Joe, It is probably a good idea to capture this in the web2py bug tracker as an enhancement request. What exactly is being requested? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

Re: [web2py] Re: web2py Components for layout.html and other HTML pages [ not derived from layout.html]

2013-11-11 Thread Kiran Subbaraman
My view is: Splitting / refactoring the contents of the layout.html into 'components' - which contains a combination of css + html as mentioned in the original note: https://groups.google.com/forum/#!topic/web2py/3NmrocjbwzM Kiran Subbaraman

Re: [web2py] Re: web2py Components for layout.html and other HTML pages [ not derived from layout.html]

2013-11-11 Thread Anthony
On Monday, November 11, 2013 11:28:37 PM UTC-5, Kiran Subbaraman wrote: My view is: Splitting / refactoring the contents of the layout.html into 'components' - which contains a combination of css + html as mentioned in the original note:

[web2py] Re: Verbose output is printed to console after clicking on any button in my application in 2.7.4

2013-11-11 Thread Rahul
Hi Massimo, Yes - this is fixed and working fine with the code in trunk . Thanks! for the quick resolution. :-) BTW - I plan to release this app - Ticketing application (BugBuster) as a free web2py (.w2p) application later this month. However, the source code would not be available

Re: [web2py] Re: web2py Components for layout.html and other HTML pages [ not derived from layout.html]

2013-11-11 Thread Kiran Subbaraman
I wasn't thinking in terms of Ajax calls to stitch together these components/templates, but rather the {{include...}} mechanism to do this. I do agree that the current layout is modular, but then if I want re-use a piece of functionality present in that layout.html in some other page or in my

Re: [web2py] Scheduler - a second try

2013-11-11 Thread Johann Spies
Just one. I never had any success with the scheduler and am trying to get just one instance to work. I did include my configuration in the first email in this thread. Regards Johann On 11 November 2013 13:04, Niphlod niph...@gmail.com wrote: how many schedulers are running ? just one with