[web2py] Re: deploying web2py on IIS

2011-09-07 Thread Web2Py Freak
why cant i use SQLite ??

Re: [web2py] appadmin and db.Table definition

2011-09-07 Thread Manuele
On 05/09/2011 21:21, pbreit wrote: Is there some reason your table definitions depart so significantly from what is shown in the docs? what do you mean?

[web2py] Module Object has no attribute SSL - running from trunk in windows - No SSL?

2011-09-07 Thread António Ramos
hello i was trying to run web2by from trunk in windows using ssl port python.exe c:\web2pymercurial\web2py -i 10.0.0.100 -p 443 -c cert.cert -k cert.key -N and got the error Module Object has no attribute SSL what is missing?

[web2py] Re: contrib module for cache stored in redis

2011-09-07 Thread Niphlod
I think to have it covered Is it the "natural" behaviuor to have class istantiated for every call to @cache ? In this way it's needed a "hack" to reuse the connection storing the connection object in @cache.ram

[web2py] Re: Using a lambda to set a default

2011-09-07 Thread Ray (a.k.a. Iceberg)
On Sep 7, 3:00 am, Lennon wrote: > I'm try to use a lambda to set a default value based on a value in > another table.  Here is my model: > > db.define_table('trip_instance', timestamp, sos_table, >     Field('trip_type_id',  db.trip_type, label='Trip Type', > widget=trip_select_widget, requires =

Re: [web2py] Re: Using a lambda to set a default

2011-09-07 Thread Michele Comitini
In the controller: db.trip_instance.trip_type.default= mic 2011/9/7 Ray (a.k.a. Iceberg) : > On Sep 7, 3:00 am, Lennon wrote: >> I'm try to use a lambda to set a default value based on a value in >> another table.  Here is my model: >> >> db.define_table('trip_instance', timestamp, sos_table,

Re: [web2py] Re: short but useful facebook api info

2011-09-07 Thread Michele Comitini
Nice! mic 2011/9/7 Massimo Di Pierro : > Please send me a patch. Make sure it includes is own license (MIT, BSD > or LGPL). > > On Sep 6, 6:07 pm, Bruno Rocha wrote: >> There is no dependency, I just put fbconsole.py in my /modules and did >> something like this: >> >>     import fbconsole >>  

Re: [web2py] Re: blog post on web2py + db2

2011-09-07 Thread António Ramos
ProgrammingError: ('42000', '[42000] [IBM][Controlador ODBC do iSeries Access][DB2 UDB]SQL0551 - Not authorized to object AUTH_USER in MYLIB type *FILE. (-551) (SQLExecDirectW)') 2011/9/7 Omi Chiba > >How about using auth with as400 users. Is it possible? > I'm not sure about it since I'm stil

[web2py] Re: Date Picker Widget

2011-09-07 Thread annet
> Very nice style annet! Thanks. > I think we should make the headers gray and replace calendar.css in welcome > app Good idea. I didn't restyle the time-picker part though just the date- picker, so that probably needs some attention? Kind regards, Annet

[web2py] fluxflex cron question

2011-09-07 Thread ion_hdd
in crontab file I have this: 35 19 * * 1-5 root *default/mmail in default controller def mmail(): mail.send('x...@gmail.com','message','subject') on my own machine cron seems to work (it send me an email), but same app installed on fluxflex does not .. can anyone give me a suggestion, please

Re: [web2py] Re: testing scheduler in windows

2011-09-07 Thread Martín Mulone
http://code.google.com/p/web2py/issues/detail?id=411 2011/9/5 Brian M > OK, I've got the scheduler reliably (I think) working now under Linux - I > just changed my patch mentioned above a bit to make it so that WEB2PY_PATH > would work even if you didn't launch from the same folder as web2py is

[web2py] Re: Iterate through form.vars

2011-09-07 Thread Anthony
form.vars (as well as request.vars) is an instance of the Storage class, which inherits from dict (see http://web2py.com/book/default/chapter/04#request for some details about Storage objects). So, you can use regular Python dict methods on form.vars. For example, to get a list of the values of

[web2py] Web2py Book typo? Database-Validators: IS_EMPTY_OR

2011-09-07 Thread juanduke
Hi! Reading the validators section, it says: IS_NULL_OR Deprecated, an alias for IS_EMPTY_OR described below. IS_EMPTY_OR Sometimes you need to allow empty values on a field along with other requirements. For example a field may be a date but it can also be empty. The IS_EMPTY_OR validator allows

[web2py] billing app

2011-09-07 Thread niknok
is there any billing component among the web2py appliances that can be used as a base or a billing appliance? Just wondering if there's any such code out there before starting from scratch. Thanks.

Re: [web2py] Web2py Book typo? Database-Validators: IS_EMPTY_OR

2011-09-07 Thread Bruno Rocha
Both will work. http://zerp.ly/rochacbruno Em 07/09/2011 10:36, "juanduke" escreveu: > Hi! > Reading the validators section, it says: > > IS_NULL_OR > Deprecated, an alias for IS_EMPTY_OR described below. > > IS_EMPTY_OR > Sometimes you need to allow empty values on a field along with other > req

[web2py] select box size (height) : how to change in View

2011-09-07 Thread Vineet
I wish to render a select box with size="3" sothat it will display 3 items (instead of default size 1) I specified it in View as under-- opt1 opt2 opt3 etc. But its height(size) remains unaltered (1). It displays a scrollbar though. The same code, if tested in a standalone

[web2py] Re: Iterate through form.vars

2011-09-07 Thread DenesL
arr = [ form.vars['x%s'%x] for x in range(3) ] On Sep 6, 11:48 pm, Noel Villamor wrote: > Code: > if form.accepts(request.vars, session): >     arr = ['a','b','c'] >     for i in range(3): >         arr[i] = form.vars.x > > Desired: > In the for loop, I wanted to have >         arr[0] = form

[web2py] Re: How to customise the reset password function

2011-09-07 Thread Dave H
Thanks for your replies - I've decided to roll my own in the end, as I also need to scope the user lookup inside an account. It's not too complicated to adapt the code in the Auth module as it's quite straightforward. Cheers Dave On Sep 3, 9:04 pm, Anthony wrote: > Maybe something like this: > >

[web2py] Re: blog post on web2py + db2

2011-09-07 Thread DenesL
If I remember correctly from my tests a couple of years ago, the AS400 for some reason wants to journal the files (tables) created thru ODBC. No journal is required when reading from existing tables. Looking at the files in my WEB2PY library I see a data area specifying the name of the journal:

[web2py] Re: Web2py Book typo? Database-Validators: IS_EMPTY_OR

2011-09-07 Thread juanduke
Thanks for the reply Bruno. I tryied both ways, and works perfectly. But, if the book says that IS_NULL_OR is deprecated, don't you think, it will be better to show a "un-deprecated" example? IMHO will be less confusing. bye. PS: sorry again for my bad english. On 7 sep, 10:43, Bruno Rocha wro

[web2py] Re: How to customise the reset password function

2011-09-07 Thread Anthony
I'm not sure if this is relevant to what you're doing, but you might also check out web2py's new multi-tenant functionality, which might enable you to use Auth but maintain separate accounts for different groups of users: https://groups.google.com/d/topic/web2py/NrvxeWQJvH0/discussion Anthony

[web2py] searching the group posts

2011-09-07 Thread DenesL
The new Google groups search seems to work much better than the old groups one. It is at the top of the page of https://groups.google.com/forum/#!forum/web2py

Re: [web2py] Re: blog post on web2py + db2

2011-09-07 Thread Jim Steil
No journaling is required if you change the commit mode to Commit Immediate (*NONE) as shown in the blog post. -Jim On 9/7/2011 9:06 AM, DenesL wrote: If I remember correctly from my tests a couple of years ago, the AS400 for some reason wants to journal the files (tables) created thru ODB

Re: [web2py] Re: Date Picker Widget

2011-09-07 Thread Richard Vézina
I had made it style too a wild ago, so I share : .calendar{ z-index: 99; position: relative; display: none; border-right: 1px solid #65605e; border-left: 1px solid #65605e; border-bottom: 1px solid #65605e; font-size: 11px; color: #008aff; cursor: default; b

[web2py] Re: Using a lambda to set a default

2011-09-07 Thread Lennon
When using a computed field and SQLForm I was able to get the computed field to show up in the form by specifying the fields for the SQLForm, but whenever I submitted a value for the computed field, it always got overwritten by the computed Lambda. I only want the value "computed" when the field i

Re: [web2py] Re: Date Picker Widget

2011-09-07 Thread Richard Vézina
Finally, I think I had correct the little glitch... There is maybe some line that are not use full, like the one that include a .png file... Richard On Wed, Sep 7, 2011 at 10:51 AM, Richard Vézina wrote: > I had made it style too a wild ago, so I share : > > .calendar{ > z-index: 99; >

[web2py] Cron Jobs with Linode or Web2py?

2011-09-07 Thread Lennon
I'm hosting my web2py application with Apache on a Linode server and I need to schedule some tasks. They are simple email sending tasks with minimal db querying but could eventually be sending hundreds of emails at a time in case that makes a difference. Seemingly I could either do this through t

[web2py] Re: Web2py Book typo? Database-Validators: IS_EMPTY_OR

2011-09-07 Thread villas
You are right, it is really a typo but I see it has already been corrected in the online version of the book. http://web2py.com/book/default/chapter/07#Validators The online version has had many corrections and additions since the printed book was published a year ago, and it is therefore m

[web2py] SQLFORM.factory and Submit value

2011-09-07 Thread Massimiliano
Hi all, I've a form generated by SQLFORM.factory How do I change the Submit value to have a more explicative sentence? Is there a way? Thank you -- Massimiliano

[web2py] Re: SQLFORM.factory and Submit value

2011-09-07 Thread Massimiliano
I've found the way :-) form = SQLFORM.factory( Field(...), table_name=..., submit_button='Your value' ) Thank you On Wed, Sep 7, 2011 at 5:16 PM, Massimiliano wrote: > Hi all, > > I've a form generated by SQLFORM.factory > > How do I change the Submit value to have a more explicative sentence?

[web2py] Re: Web2py Book typo? Database-Validators: IS_EMPTY_OR

2011-09-07 Thread juanduke
Hi, Villas: When I report the typo, I was reading the online version of the book. Also, I'm still reading the typo, (recently refreshed page), maybe something is caching, I'll retry later. Bye. On 7 sep, 12:10, villas wrote: > You are right,  it is really a typo but I see it has already been co

[web2py] Re: Using a lambda to set a default

2011-09-07 Thread Anthony
On Wednesday, September 7, 2011 10:55:22 AM UTC-4, Lennon wrote: > > When using a computed field and SQLForm I was able to get the computed > field to show up in the form by specifying the fields for the SQLForm, > but whenever I submitted a value for the computed field, it always got > overwrit

Re: [web2py] Re: Date Picker Widget

2011-09-07 Thread Richard Vézina
I just make it better and grayed it : .calendar{ z-index: 99; position: relative; display: none; border-right: 1px solid #808080; border-left: 1px solid #808080; border-bottom: 1px solid #808080; font-size: 11px; color: #9A9A9A; cursor: default; background:

[web2py] Saving Site or App specific data: Use a special db table with one huge record?

2011-09-07 Thread Rufus
For site persistant data, is it customary to put it in a database table with one large record? There are some statistical things I'd like to keep track of on the site. Is it standard practice to define one data table that has one large record containing the information?, for instance: Number v

Re: [web2py] Re: Published my collection of plugins

2011-09-07 Thread Richard Vézina
Hello Kenji, You will maybe find the code of the actual datepicker here : http://www.dynarch.com/projects/calendar/ If you clic on the "?" when the datepicker popup you will have the disclaimer of the author of the plugin... Richard On Tue, Sep 6, 2011 at 8:59 PM, kenji4569 wrote: > > After i

[web2py] form.accepts returning false

2011-09-07 Thread Christopher Baron
Hi web2py users, When trying to update a row in a database table using the appadmin interface, it does not work. The same page returns with the original values. In the appadmin controller, form.accepts is returning false - this may have to do with a hack I've made to the controllers.appadmin.py

[web2py] datepicker js littles issues first day name of week don't get hilite class and build up hilite and active class when mouse over buttons

2011-09-07 Thread Richard
Hello, I notice that the datepicker js is not setting the hilite class properly to the first day name of the week when passing over it. Also when passing over the buttons ("?" and the "x") the js adds hilite class and active class as long as it detect movement, so there is a build up of hilite cl

[web2py] Re: blog post on web2py + db2

2011-09-07 Thread Omi Chiba
Antonio, You can contact me personally to solve the issue because it's really a setting on your AS400. Are you AS400 guy ? If so, you can send me the screen shot for the following. WRKOBJ QSYS/MYLIB Opt 2=Edit authority By default, *public shulld be *CHANGE and authorization list = *NONE. If yo

[web2py] Re: form.accepts returning false

2011-09-07 Thread Rufus
Did you look at form.errors to find out why it returns false? If form.errors doesn't exist, the accepts() method didn't see it as having been submitted, and will return false. See Example 28 in http://web2py.com/examples/default/examples for the three cases: unsubmitted, submitted no error, s

[web2py] accessing webserver

2011-09-07 Thread patrick moon
I've been able to get everything working...jquery/json/ web2py..ect...however, I can't seem to connect to the webserver from another computer. Everything is working locally right now. Can someone point me to possible steps to take to figure this out? Thanks

[web2py] Re: form.accepts returning false

2011-09-07 Thread Christopher Baron
Form.errors is an empty storage object. So... it was unsubmitted ? How is this possible when I'm using the controllers/appadmin.py that comes with web2py ? On Sep 7, 2:01 pm, Rufus wrote: > Did you look at form.errors to find out why it returns false? > > If form.errors doesn't exist, the accep

[web2py] Re: accessing webserver

2011-09-07 Thread Ross Peoples
If you are running web2py from the command line, you have to tell it to listen to connections from other computers. This is a security measure. http://web2py.com/book/default/chapter/03?search=0.0.0.0 Or if you aren't using the GUI version, then your string would look something like this: pyth

[web2py] matplotlib output

2011-09-07 Thread Richard
Dear all, On the Mac it ran but on windows I can't get started and do not get an plot in an applications using: In Controllers/default def index(): import os import numpy as np import matplotlib import matplotlib.pyplot as plt matplotlib.use('Agg') x = np.arange(0, 5,

[web2py] widget for list:reference field in SQLFORM

2011-09-07 Thread monotasker
In a form generated by SQLFORM I'm finding that a list:reference field is represented with a single list-box. What I expected based on the section on list: in the manual was a series of select boxes. Was I reading the manual wrong? If not, does anyone know why I might be getting the wrong widget pr

[web2py] Re: matplotlib output

2011-09-07 Thread Anthony
On Wednesday, September 7, 2011 3:35:23 PM UTC-4, Richard wrote: > > > > Should be URL('static','mp1.png'). Anthony

Re: [web2py] matplotlib output

2011-09-07 Thread Richard Vézina
Look at the os.path.join() There is particularity regarding the OS you should taking in account when you want your command works everywhere... Look in the python doc about that. Richard On Wed, Sep 7, 2011 at 3:35 PM, Richard wrote: > Dear all, > > On the Mac it ran but on windows I can't get

[web2py] Re: widget for list:reference field in SQLFORM

2011-09-07 Thread Anthony
No, you should not get a series of select boxes, just a single multi-select box, like this: http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_select_multiple. The book states that a list:reference field "produces a SELECT/OPTIONmultiple drop-box". Anthony On Wednesday, September 7, 201

Re: [web2py] Re: matplotlib output

2011-09-07 Thread Richard Dijkstra
Only adding the .png extention is not sufficient. outputfile = os.path.join(request.folder,'static','mp1.png') plt.savefig(outputfile,format='png') Outfile from Matplotlib Besides this issue; is using a temporarily file a mature solution or is streaming preferrable? Richard Op 7-9-201

[web2py] Re: Bug: Text field length default limit to 512 characters ?

2011-09-07 Thread Massimo Di Pierro
This is fixed in trunk anyway. On Sep 6, 10:53 pm, Noel Villamor wrote: > Do an explicit length declaration in your model definition: > >     Field('txt','text', length=65536), > > Look here: > > http://www.web2py.com/book/default/chapter/06?search=Field+constructor > > On Sep 7, 3:10 pm, toan75

[web2py] Re: form.accepts returning false

2011-09-07 Thread Cliff
If your form doesn't have the default hidden fields, the controller assumes it's a resubmit and fails silently. Check out the book, Chapter 7, SQLFORMS. But why would you want to do this? On Sep 7, 2:05 pm, Christopher Baron wrote: > Hi web2py users, > > When trying to update a row in a databas

[web2py] Re: contrib module for cache stored in redis

2011-09-07 Thread Massimo Di Pierro
not necessarily but keep in mind there may be multi servers accessing the same cache storage and each of the, may have concurrent requests to access the same object. As long as you can deal with that, no problem. On Sep 7, 4:50 am, Niphlod wrote: > I think to have it covered > > Is it the "na

[web2py] Re: form.accepts returning false

2011-09-07 Thread Christopher Baron
I don't believe I've taken the hidden fields out. The only thing I've changed in controllers/appadmin.py deals with redirection based on a remote user. I've written my own workaround, so I guess no one has to spend any more time dealing with this. Thanks for the assistance. On Sep 7, 3:11 pm, C

[web2py] Re: Saving Site or App specific data: Use a special db table with one huge record?

2011-09-07 Thread Massimo Di Pierro
I have done it. Just make sure you retrieve it once and cache. Do not retrieve every value only when needed. On Sep 7, 12:13 pm, Rufus wrote: > For site persistant data, is it customary to put it > in a database table with one large record? > > There are some statistical things I'd  like to keep

Re: [web2py] Re: matplotlib output

2011-09-07 Thread Anthony
Have you confirmed that the file is actually getting saved in the expected location? Are you able to run the matplotlib code and save the file outside of web2py? On Wednesday, September 7, 2011 4:05:08 PM UTC-4, Richard wrote: > > Only adding the .png extention is not sufficient. > > outputfil

[web2py] Re: appadmin and db.Table definition

2011-09-07 Thread Cliff
I think he means to ask why you are putting the table def in a class? Much simpler to let the DAL do the work. On Sep 7, 4:40 am, Manuele wrote: > On 05/09/2011 21:21, pbreit wrote:> Is there some reason your table > definitions depart so significantly from what is shown in the docs? > > what d

[web2py] form.custom - record is not created

2011-09-07 Thread Omi Chiba
I'm creating a simple twitter like app for fun. To submit worked with {{=form}} and now I'm using form.custom.xxx for customization. It works fine if I comment out the following from default.py but form.vars will be empty and the record will not be created with the two lines. if form.accepts(requ

[web2py] Re: contrib module for cache stored in redis

2011-09-07 Thread Niphlod
Hum, best way to test it ? start 2 web2py instances with a cached query, let's say, and hit them with ab ? In theory the connection object to redis is itself a connection pool, so there won't be problems. I always defined cache (and see it defined) in models, where it gets executed on every reques

Re: [web2py] Re: matplotlib output

2011-09-07 Thread Richard Dijkstra
Anthony, plt.savefig('c:\web2py\outputfile.png',format='png') does me give an accessable png-file Op 7-9-2011 22:20, Anthony schreef: Have you confirmed that the file is actually getting saved in the expected location? Are you able to run the matplotlib code and save the file outside of w

[web2py] Re: form.custom - record is not created

2011-09-07 Thread Anthony
If you are using crud, you should not do form.accepts -- crud.create will handle the form.accepts for you. See http://web2py.com/book/default/chapter/07#CRUD. Anthony On Wednesday, September 7, 2011 4:29:24 PM UTC-4, Omi Chiba wrote: > > I'm creating a simple twitter like app for fun. To submit

Re: [web2py] Re: matplotlib output

2011-09-07 Thread Anthony
But does plt.savefig(os.path.join(request.folder,'static','mp1.png'),format='png') result in a file being saved in c:\web2py\applications\your_app\static\? On Wednesday, September 7, 2011 4:38:13 PM UTC-4, Richard wrote: > > Anthony, > > plt.savefig('c:\web2py\outputfile.png',format='png')

[web2py] Re: form.custom - record is not created

2011-09-07 Thread Omi Chiba
Thank you, Anthony ! I still want to do "redirect(URL())" if the entry is accepted. Can you explain what condition I should use instead of form.accepts in default.py ? It's necessary to refresh the list on the page. On Sep 7, 3:40 pm, Anthony wrote: > If you are using crud, you should not do fo

Re: [web2py] Re: form.custom - record is not created

2011-09-07 Thread Jim Steil
Just add the 'next' parameter to the crud.create statement. You can see the details here: http://www.web2py.com/book/default/chapter/07#CRUD Scroll down and look under Methods. -Jim On 9/7/2011 3:51 PM, Omi Chiba wrote: Thank you, Anthony ! I still want to do "redirect(URL())" if the en

[web2py] Re: blog post on web2py + db2

2011-09-07 Thread DenesL
Thanks Jim. On Sep 7, 10:18 am, Jim Steil wrote: > No journaling is required if you change the commit mode to Commit > Immediate (*NONE) as shown in the blog post. > >      -Jim >

[web2py] Re: form.custom - record is not created

2011-09-07 Thread Omi Chiba
Awsome !! I replaced with this and it work! form = crud.create(db.comment, next=URL('')) On Sep 7, 3:54 pm, Jim Steil wrote: > Just add the 'next' parameter to the crud.create statement. > > You can see the details here: > > http://www.web2py.com/book/default/chapter/07#CRUD > > Scroll down and l

[web2py] Error running sqlform.grid from trunk

2011-09-07 Thread Jim Steil
Hi I'm getting the following: Traceback(most recent call last): File"C:\dev\trunk\web2py\gluon\restricted.py",line194,inrestricted execccodeinenvironment File"C:/dev/trunk/web2py/applications/FoodPantry/controllers/default.py"

[web2py] Re: widget for list:reference field in SQLFORM

2011-09-07 Thread monotasker
OK. That description confused me in the book (I'm not used to describing multi-select boxes as a 'drop-box' so I assumed it meant drop-down). Thanks. I think it would be more usable if the default widget were something like the one used in the app-creation wizard for table and field creation: 1) p

Re: [web2py] Re: matplotlib output

2011-09-07 Thread Richard Dijkstra
Yes it does :) Op 7 sep 2011, om 22:43 heeft Anthony het volgende geschreven: > But does > plt.savefig(os.path.join(request.folder,'static','mp1.png'),format='png') > result in a file being saved in c:\web2py\applications\your_app\static\? > > > On Wednesday, September 7, 2011 4:38:13 PM UTC

Re: [web2py] Error running sqlform.grid from trunk

2011-09-07 Thread Martín Mulone
I think is a bug, please report it: http://code.google.com/p/web2py/issues/list 2011/9/7 Jim Steil > Hi > > I'm getting the following: > > Traceback (most recent call last): > File "C:\dev\trunk\web2py\gluon\restricted.py", line 194, in restricted > exec ccode in environment > File "C:/

Re: [web2py] Error running sqlform.grid from trunk

2011-09-07 Thread Jim Steil
Submitted - http://code.google.com/p/web2py/issues/detail?id=412 -Jim On 9/7/2011 4:25 PM, Martín Mulone wrote: I think is a bug, please report it: http://code.google.com/p/web2py/issues/list 2011/9/7 Jim Steil mailto:j...@qlf.com>> Hi I'm getting the following: Traceback(m

Re: [web2py] Re: matplotlib output

2011-09-07 Thread Richard Dijkstra
Looking closer an output window appears and the console gives errors on the sequence of calling matplotlib.backends: I'll check first. Op 7 sep 2011, om 22:43 heeft Anthony het volgende geschreven: > But does > plt.savefig(os.path.join(request.folder,'static','mp1.png'),format='png') > resu

[web2py] Re: widget for list:reference field in SQLFORM

2011-09-07 Thread Anthony
Since developers will have different preferences for multiselect widgets and it is so easy to plug something in on the client side, I'm not sure the framework needs to commit to a particular widget. Here are a few good options: http://www.erichynds.com/examples/jquery-ui-multiselect-widget/demo

[web2py] Re: Iterate through form.vars

2011-09-07 Thread Noel Villamor
Thanks for the info Anthony. Denes, you just added a trick to my python arsenal. TY. Noel

[web2py] Re: accessing webserver

2011-09-07 Thread Christopher Steel
Hi Patrick, a few more detail would help nail down the issue. Are you running the default webserver or Apache..., what OS are you using to host... C

[web2py] Re: List widget issue when invalid form

2011-09-07 Thread rdmurphy
Hi Massimo and web2py team, Just following up on this issue. If you guys agree it's a bug I can open a ticket for it. Thanks Ryan On Aug 29, 4:03 pm, rdmurphy wrote: > Hi everyone, > Since it's my first post, I'd like to first say great framework to the > whole team. I'm really enjoying using i

[web2py] Re: Date Picker Widget

2011-09-07 Thread Christopher Steel
+1 excellent look annet. Has anyone checked this in IE? I really like it, a lot Chris

[web2py] About the welcome app

2011-09-07 Thread António Ramos
Just my opinion guys. I hate the welcome app Every time i think of it i think it should be deleted.No ofense please. Its useless in my opinion. Not delete but changed! The only time i read the screen was the first time i installed web2py. But i was so happy that i never read all the text to the

Re: [web2py] About the welcome app

2011-09-07 Thread Bruno Rocha
I do not like it so much, I hate superfish menu and gray colors. So, I have my own boilerplate which I use to bootstrat every web2py project I work. Welcome app is useful just for people to know that web2py is running well. But the problem is when too much people use it without styling. I think

[web2py] message when login required

2011-09-07 Thread Chris Steel
A long time ago someone talked about adding a message parameter to @auth.requires_login() so that a message could be passed but it does not seem to be working: Example: @auth.requires_login(message=T('You need to be log in to perform this action')) def blog_create_entry: bla bla bla retur

[web2py] Re: appadmin and db.Table definition

2011-09-07 Thread pbreit
Yeah, I was just wondering why your table definitions don't look more like this: db.define_table('page', Field ('title'), Field ('body', 'text'), Field

[web2py] Re: About the welcome app

2011-09-07 Thread pbreit
I certainly would not call it useless. It provides a bit of information about how pages get rendered as well as some useful links. Do you have any suggestions for how to improve?

[web2py] Re: form.accepts returning false

2011-09-07 Thread Cliff
Okay. You can verify what you are getting back from the browser by putting print request.post_vars in your controller right after the call to form.accepts(). Assuming you are using Rocket, the output will show up in the terminal window where you started web2py.py. On Sep 7, 4:15 pm, Christophe

[web2py] Re: Cron Jobs with Linode or Web2py?

2011-09-07 Thread pbreit
I think you're going to want to eventually end up using the system's cron. Struggled to figure out the best commands to put in my crontab and ended up with a smal hack: */1 * * * * wget http://localhost/cron/mail_queue >/dev/null 2>&1 That calls the function "mail_queue" in my "cron.py" control

[web2py] using twitter bootstratp in base.css

2011-09-07 Thread Anaconda
would it be wise to use twitterbootstrap in place of base.css for a tiny app I am building? I am just looking for general opinions as I am a relatively new developer. Regards

[web2py] CAS Auth with HTTPS

2011-09-07 Thread Bruno de Oliva Bemfica
Hello everyone. I was taking a look at the JASIG CAS specifications, and I saw two interesting things: 1 - The CAS protocol *requires* HTTPS. I'm trying to use jasig phpCAS as a cas client of my web2py app and it's not workings. When I try to open the php page, the page tries to redirect to a HTTP

Re: [web2py] using twitter bootstratp in base.css

2011-09-07 Thread Bruno Rocha
As far as I know twitter bootstrap is not just a css, it include a set of patterns for classes and some javascript. css are built with saas or less (or something like this) I guess that including its css in welcome app will create a great confusion, or will not work at all. Someone needs to create

Re: [web2py] Re: appadmin and db.Table definition

2011-09-07 Thread Bruno Rocha
Also, from book.http://web2py.com/book/default/chapter/06#Dependencies *Table* represents a database table. You do not directly instantiate Table; instead,DAL.define_table instantiates it. 1. db.define_table('mytable', Field ('myfield')

[web2py] Re: using twitter bootstratp in base.css

2011-09-07 Thread Anaconda
thanks bruno , I am playing around with it right now, it does cause some confusion but I have been removing some stuff out of base.CSS so it its working a bit better now. Sep 7, 6:46 pm, Bruno Rocha wrote: > As far as I know twitter bootstrap is not just a css, it include a set of > patterns for

[web2py] Re: Building a non-trivial SOAP service using web2py

2011-09-07 Thread David Mitchell
Bump On 6 September 2011 19:13, David Mitchell wrote: > Hello all, > > I'm looking at using web2py to build a SOAP service to work as a test > harness for an infrastructure upgrade we're planning. Unfortunately, all > the web2py SOAP info I've found has been trivial services such as adding 2 >

[web2py] Re: contrib module for cache stored in redis

2011-09-07 Thread Massimo Di Pierro
You can create a global object in the module and use a flag in the global object (connected=True or False). On Sep 7, 3:35 pm, Niphlod wrote: > Hum, best way to test it ? > start 2 web2py instances with a cached query, let's say, and hit them > with ab ? > In theory the connection object to redis

[web2py] Re: List widget issue when invalid form

2011-09-07 Thread Massimo Di Pierro
I think it is a bug. Please check this is not already fixed in trunk, if not please open a ticket. thanks for the work of tracking down the problem. On Sep 7, 4:58 pm, rdmurphy wrote: > Hi Massimo and web2py team, > Just following up on this issue. If you guys agree it's a bug I can > open a tick

[web2py] web2py received 2011 BOSSIE Award by InfoWorld.com

2011-09-07 Thread wwwgong
Congratulations! more details from here: http://www.infoworld.com/d/open-source-software/bossie-awards-2011-the-best-open-source-application-development-software-171759-0¤t=10&last=1#slideshowTop

[web2py] Re: web2py received 2011 BOSSIE Award by InfoWorld.com

2011-09-07 Thread Anthony
Congratulations! On Wednesday, September 7, 2011 10:59:46 PM UTC-4, wwwgong wrote: > > Congratulations! > > more details from here: > > http://www.infoworld.com/d/open-source-software/bossie-awards-2011-the-best-open-source-application-development-software-171759-0¤t=10&last=1#slideshowTop > >

Re: [web2py] web2py received 2011 BOSSIE Award by InfoWorld.com

2011-09-07 Thread appydev
[?] 2011/9/7 wwwgong > Congratulations! > > more details from here: > > http://www.infoworld.com/d/open-source-software/bossie-awards-2011-the-best-open-source-application-development-software-171759-0¤t=10&last=1#slideshowTop > <<330.gif>>

Re: [web2py] using twitter bootstratp in base.css

2011-09-07 Thread Anthony
On Wednesday, September 7, 2011 9:46:31 PM UTC-4, rochacbruno wrote: > > I have my jquery-ui + html5boilerplate + 960.gs + jquerymobile bootstrap > app made on top of welcome. > Have you made that available somewhere?

Re: [web2py] Re: appadmin and db.Table definition

2011-09-07 Thread Anthony
Though the book also describes directly instantiating Table when creating a dummy table for inheritence purposes (http://web2py.com/book/default/chapter/06#Table-Inheritance), which is how it is being used in this case. On Wednesday, September 7, 2011 9:55:06 PM UTC-4, rochacbruno wrote: > > Al

[web2py] Re: Date Picker Widget

2011-09-07 Thread Rahul
This set of widgets is something I needed a lot for my apps. Thanks these look very good. On Sep 7, 6:06 pm, Christopher Steel wrote: > +1 excellent look annet. Has anyone checked this in IE? > > I really like it, a lot > > Chris