[web2py] Re: form.custom('table')

2012-05-27 Thread Annet
I had to remove {{=form.custom.end[1]}} and change {{=form.custom.end[0]}} to {{=form.custom.end}} to solve the problem. Annet.

[web2py] mydomain.com/#!/ detect and redirect

2012-05-27 Thread Annet
I read this post and wondered whether there are other solutions to solve this problem. https://groups.google.com/forum/?fromgroups#!topic/web2py/K4SteYdwVX4 My applications real address is: mydomain.com/init/default/index What I would like is to redirect mydomain.com/#!/ to a router fu

[web2py] Migrations not working on Postgres

2012-05-27 Thread Jason Brower
I have my system runing on sqlite at my dev environment, but when I push to production which uses postres I get this: Ticket ID 80.75.108.196.2012-05-28.05-45-56.74d0c90a-1a1b-4b60-8ba6-c13af5955bbb current transaction is aborted, commands ignored until end of transaction

[web2py] Re: Can't import a module

2012-05-27 Thread Massimo Di Pierro
Which web2py version? Is the module in a modules folder or installed in site-packages? Here is a possibility. 1.99.7 erroneously returns import error if the module fails. The module may fail to import because of a missing dependency. A path issue or a permission issue. On Friday, 25 May 2012

[web2py] Re: Can't import a module

2012-05-27 Thread Massimo Di Pierro
No no. He should be able to normally import it. On Sunday, 27 May 2012 23:04:40 UTC-5, Vineet wrote: > > You might import sendgrid in "model" file named "test" > In the "test" controller, use the sendgrid namespace. > In am doing this kind of stuff successfully in my app. > > HTH > > ---Vineet > >

[web2py] Re: Can't import a module

2012-05-27 Thread Vineet
You might import sendgrid in "model" file named "test" In the "test" controller, use the sendgrid namespace. In am doing this kind of stuff successfully in my app. HTH ---Vineet On Saturday, May 26, 2012 12:49:08 AM UTC+5:30, Yarin wrote: > > For the first time I'm having trouble importing a mod

[web2py] Re: Wep2Py Database Tables

2012-05-27 Thread Anthony
By default, instantiating Auth() automatically makes the application a CAS provider, whether or not you actually use the app as a CAS provider. So, if the app is not used as a provider, that table will simply remain empty. If you want to prevent it from being created in the first place, before

[web2py] Re: sqlform.grid datable entry vew format

2012-05-27 Thread Anthony
Can you show your controller and view code? On Sunday, May 27, 2012 6:27:36 PM UTC-4, Marian Siwiak wrote: > > Hello, > > I've got simple question, to which I cna't find simple answer. > I formatted "View" of my entries, showing fields I want to show, hidin > those I don't want to show. > When

[web2py] Re: Anyone using BootSwatch with new web2py layout

2012-05-27 Thread Andrew
I spoke to soon. It is fine in Firefox. IE7 has the issue. On Monday, May 28, 2012 11:40:53 AM UTC+12, Andrew wrote: > > Testing the "United" Bootswatch at the moment. ( I can test it but > unfortunately I can't really offer suggested fixes -> CSS Rookie ) > > The Login | Register | Lst Pass

[web2py] Re: Anyone using BootSwatch with new web2py layout

2012-05-27 Thread Andrew
Testing the "United" Bootswatch at the moment. ( I can test it but unfortunately I can't really offer suggested fixes -> CSS Rookie ) The Login | Register | Lst Password text is not visible. My Left sidebar now comes first, and the Welcome App's Admin button is now at the bottom. Does Boots

[web2py] Fwd: Web2Py in iis

2012-05-27 Thread Amber Doctor
I was following this guide: http://www.web2pyslices.com/slice/show/1453/install-web2py-on-windows-with-iis I am attempting #2 : Web2py is called from ISAPI handler in the dedicated AppPool natively in Microsoft IIS isapi-wsgi is installed and >python isapi_wsgi.py install works properly (I have c

Re: [web2py] sqlite datetime problem?

2012-05-27 Thread Marian Siwiak
Thank you very much! For the answer and for web2py! Best regards, Marian W dniu poniedziałek, 28 maja 2012 użytkownik Massimo Di Pierro napisał: > If there are empty rows in the CSV files they will perceived as end of > data. > > On Sunday, 27 May 2012 12:08:21 UTC-5, Marian Siwiak wrote: >> >> H

[web2py] Re: sqlite datetime problem?

2012-05-27 Thread Massimo Di Pierro
If there are empty rows in the CSV files they will perceived as end of data. On Sunday, 27 May 2012 12:08:21 UTC-5, Marian Siwiak wrote: > > Hi, I try to populate database defined below: > > db.define_table('t_yeast', > Field('f_gene_id', type='string', > label=T('Gene Id')), > F

[web2py] Re: Anyone using BootSwatch with new web2py layout

2012-05-27 Thread Massimo Di Pierro
Grazie. In trunk. In futuro ti prego di uploadare i files in google code issues. Sono molto disorganizzato. Cosi' non si perdono. ;-) On Sunday, 27 May 2012 06:06:39 UTC-5, Paolo Caruccio wrote: > > A small look improvement . Please replace code for .icon-chevron-right in > bootswatch.css with

[web2py] sqlform.grid datable entry vew format

2012-05-27 Thread Marian Siwiak
Hello, I've got simple question, to which I cna't find simple answer. I formatted "View" of my entries, showing fields I want to show, hidin those I don't want to show. When I get page with "view" of the row of my datable, it starts with "form:" - how do I remove this? thanks in advance, Mar

[web2py] Re: java class path

2012-05-27 Thread Marian Siwiak
If someone would be looking for an answer: path can be presented as {{=URL()}}, however for me it worked only when I prepared jar archive. bare .class file is not sufficient. W dniu sobota, 26 maja 2012 15:28:42 UTC+2 użytkownik Marian Siwiak napisał: > > Hello, > > I am trying to add java apple

[web2py] Re: Wep2Py Database Tables

2012-05-27 Thread Horus
I know a bit about CAS single sign-on, however if each app is giving a different ACL database. Is the concept still being adhered to? I was under the assumption the single sign-on meant one (1) authentication gateway i.e. one auth database used by many applications. On Saturday, May 26, 2012 1:

[web2py] sqlite datetime problem?

2012-05-27 Thread Marian Siwiak
Hi, I try to populate database defined below: db.define_table('t_yeast', Field('f_gene_id', type='string', label=T('Gene Id')), Field('f_oid', type='string', label=T('Other IDs')), Field('f_l', type='integer', label=T('transcript length [codons] - L')),

Re: [web2py] Re: routes.py

2012-05-27 Thread Jonathan Lundell
On May 27, 2012, at 9:40 AM, chinakr wrote: > I tried > ('.*http://yueche.haijia.org.* /', '/yueche/default/index'), > but nothing I expected happened. Why? For simple domain-to-app mapping, you may find the parametric router a little easier to configure. routers = dict( domains = {

Re: [web2py] Re: Questions for an application with a large number of features and a large database.

2012-05-27 Thread Bruce Wade
Yes you can soft link however when you get to the point of multiple servers and upgrading code on each it is a pain. The site I`m working in is very large. I am now rewriting the code with a new technique in modules and using conditional if statements in side each module so you have 100% control o

[web2py] Find text

2012-05-27 Thread Hassan Alnatour
Dear ALL , I want to find every thing in the text like " EM " so its space EM space and make it an EM Best regards,

[web2py] Re: routes.py

2012-05-27 Thread chinakr
I tried ('.*http://yueche.haijia.org.* /', '/yueche/default/index'), but nothing I expected happened. Why? 在 2011年2月14日星期一UTC+8下午10时29分00秒,Wikus van de Merwe写道: > > The syntax for url with domains is a bit more complex than what you've > tried. > It's "[remote address]:[protocol]://[host]:[me

Re: [web2py] Re: How to prevent delete of a row with SQLFORM.grid -

2012-05-27 Thread Anthony
> > But isn't there a risk of a race condition because of the asynchronous > updates? What happens if the user clicks the delete button and immediately > clicks the next page link? > I suppose it's possible for the request for the next page to be served before the delete operation completes,

[web2py] Re: Scheduled Tasks and Google App Engine

2012-05-27 Thread howesc
right. the web2py cron/scheduler will not work on GAE (due to google restrictions). You have to use the GAE cron. note that i mark my cron handlers in app.yaml as admin only (which means only cron or a GAE administrator can request those URLs) cfh On Friday, May 25, 2012 1:49:15 PM UTC-7, Um

[web2py] Re: Questions for an application with a large number of features and a large database.

2012-05-27 Thread Cliff Kachinske
Yes, you can soft link individual files within the file system. You can even rename the target files so the tables load in the right order. It will work on Linux and OS-X and should work on all unix flavors. On Friday, May 25, 2012 3:25:37 PM UTC-4, David McKeone wrote: > > Cliff, > > Certainly

Re: [web2py] Re: How to prevent delete of a row with SQLFORM.grid -

2012-05-27 Thread Cliff Kachinske
I'm struggling a little bit with the notion of updating an index list via ajax vs. reloading the entire page. I guess I can see how it would be a better user experience to use ':eval' to just update the displayed rows and informational stuff like 'rows 40 through 60 of 237' or 'page 3 of 13.'

[web2py] Re: ondelete cascade on id attribute

2012-05-27 Thread Anthony
You can explicitly specify the id field of a table: Field('id', type='id', ...) And you can even give it a different name: Field('myid', type='id', ...) See http://web2py.com/books/default/chapter/29/6?search=named+id+field. But why do you want to set ondelete for an id field -- it's supposed

[web2py] Re: Anyone using BootSwatch with new web2py layout

2012-05-27 Thread Paolo Caruccio
A small look improvement . Please replace code for .icon-chevron-right in bootswatch.css with .icon-chevron-right { border-left: 4px solid #000; border-right: 4px solid transparent; border-bottom: 4px solid transparent; border-top: 4px solid transparent; content: ""; display: inline-

[web2py] ondelete cascade on id attribute

2012-05-27 Thread rahulserver
How should i specify ondelete='Cascade' on the id attribute of the parent table, since we do not usually specify the id attribute in web2py tables.

[web2py] Re: Anyone using BootSwatch with new web2py layout

2012-05-27 Thread Paolo Caruccio
Small patch - not deeply tested - to make the menu working when javascript is disabled. Il giorno venerdì 25 maggio 2012 22:06:38 UTC+2, Massimo Di Pierro ha scritto: > > I managed to fix it. Now the carets and class are added automatically via > JS and there is no need to tweak menus. > > Cons

[web2py] Re: Bootstrap modal and ajax

2012-05-27 Thread Annet
I solved the problem by moving the JavaScript code from right below {{extend calendar/index.html}} to right above {{extend 'calendar/index.html'}} {{if rows:}} ... {{pass}} $("a[data-toggle=modal]").click(function (e) { target = $(this).attr('data-target') url = $(this).att