[web2py] GAE 1.4.3 has support for mysql and sqlite?

2011-03-31 Thread robe...@captivation.com
Upgrading my GAE sdk this afternoon, I noticed a few new files in google_appengine/google/appengine/api: * rdbms.py * rdbms_mysqldb.py * rdbms_sqlite.py A little exploration through the files and a little googling didn't turn up much telling information. I know Google has promised hosted sql (http

[web2py] Re: MongoDB and Web2Py

2011-03-31 Thread David Marko
I'm also interested in testing ... David Marko

[web2py] Re: clean database

2011-03-31 Thread LightOfMooN
No, I'm using postgres On 1 апр, 02:08, Johann Spies wrote: > On 29 March 2011 15:13, LightOfMooN wrote: > > > Yes, thanks, it's good. > > > But first question stills opened: > > Is there a way to pack just app code? (to *.w2p) > > I think if you use sqlite as database, it is included but when y

[web2py] Re: Not sure of the etiquette for asking about an issue...

2011-03-31 Thread Mike Peper
Christian- Thanks for the reply, I am very sorry I could not respond sooner. Providing a full example for web2py issue #150 is hard, as my code runs against a MS SQL database (hence the "primarykey" kind of table definition instead of one that uses the normal "id" field for the key). Maybe if I

[web2py] Re: MongoDB and Web2Py

2011-03-31 Thread luckysmack
Alright. Well im still learning web2py, so in a couple weeks when i feel confident enough (im already familiar with mongo) ill drop another line here. I was just curious as to what was done so i knew if there was some where I could start. On Mar 31, 7:58 pm, Massimo Di Pierro wrote: > Lots of peo

[web2py] Re: DAL format= functionality

2011-03-31 Thread Gregory Hellings
Ah, it looks like virtual fields is exactly what I'm looking for. That way I can just call line.speaker.name and have that calculated off of the user's name, etc. Thanks! I knew I had to be missing something obvious to save me the effort. --Greg On Mar 31, 9:26 pm, Anthony wrote: > I think t

[web2py] Re: Compatibility issues between versions 1.89.5 and 1.94.6 with legacy applications

2011-03-31 Thread drayco
Hi Dr.Massimo Following your advice, we changed in the model, all of fields names that use upper case with lower case, and we use fake_migrate = True and now we work with web2py 1.94.6 Thank you very much. On Mar 31, 1:52 pm, drayco wrote: > Ok, We change to sexoworked and we got this > > Trac

[web2py] Question for mac users....

2011-03-31 Thread mart
Hey all, just installed postgreSQL on my mac, and before I agree to the last dialog and hit the button, Can a fellow mac user tell if he/she noticed any impact with agreeing to: `` Your shared memory configuration has been adjusted with new settings in /etc/sysctl.conf. Please re

[web2py] online book, image display error

2011-03-31 Thread niknok
For some reason or another, I couldn't get to view these images. In chapter 3, these are: index1.png, about.png Also in chapter 7:custom_errors.png FYI.

[web2py] Re: dashes in url

2011-03-31 Thread pbreit
I've come around a little bit on the default. The one thing where I could see defaulting to re-mapping is with the function since that's not going to work anyhow.

[web2py] Re: MongoDB and Web2Py

2011-03-31 Thread Massimo Di Pierro
Lots of people asked for support but nobody volunteered to help test it. If you are interested and can help with some regular tests we can make it work in relatively short time. Massimo On Mar 31, 9:09 pm, luckysmack wrote: > I have read a few older messages about mongoDB being made to work with

[web2py] Re: wizard error when creating the database

2011-03-31 Thread Massimo Di Pierro
That is a bug fixed in trunk. A leftover debug statement. Please remove that print statement. I will post a new web2py shortly. On Mar 31, 2:58 pm, Miguel wrote: > hello to all, today i upgraded to 1.94.6 using the admin interface, > after that i tryid to create a new project using the wizard, a

Re: [web2py] Re: in-line select for counting purpose

2011-03-31 Thread Joaquin Orbe
On Wed, Mar 30, 2011 at 6:56 PM, Massimo Di Pierro wrote: > yes. I do not know how to do it with one query. > > On Mar 30, 3:18 pm, Joaquin Orbe wrote: >> On Sat, Mar 26, 2011 at 6:30 PM, Massimo Di Pierro >> >> >> >> >> >> >> >> >> >> wrote: >> > You an have a nested select in place of a field.

[web2py] Re: DAL format= functionality

2011-03-31 Thread Anthony
I think the format argument only alters the record representation in forms and SQLTABLE (which is used when a set or records is serialized in a view). If you're just doing a query and pulling an individual field value from a row, I don't think the format will be applied. See http://web2py.com/b

[web2py] MongoDB and Web2Py

2011-03-31 Thread luckysmack
I have read a few older messages about mongoDB being made to work with the DAL. But they all seem to be pretty dated and have not specified what was working and what wasnt. massimo menitoned that it may be ready by january of this year. But under the supported list it wasnt listed. So im just curio

[web2py] wizard error when creating the database

2011-03-31 Thread Miguel
hello to all, today i upgraded to 1.94.6 using the admin interface, after that i tryid to create a new project using the wizard, all went fine until Step 6: Generate app "monitoreando" This is the trace: Traceback (most recent call last): File "/home/www-data/web2py/gluon/restricted.py", line 1

[web2py] Re: ckeditor integration

2011-03-31 Thread skwasha
Latest frustration Now I have some validation questions. In my model I have a field defined as notnull=True. If I submit a blank field using just a regular textarea, I get the expected result that the field is not accepted and an error generated. However, when I submit a blank field using cke

Re: [web2py] Re: clean database

2011-03-31 Thread Jonathan Lundell
On Mar 31, 2011, at 4:26 PM, villas wrote: > > I believe the w2p file is just a standard zip file. If you want to > include a subset of files, I guess you could always make your own zip > file. They're tgz (gzipped tar). > > I sometimes just zip the app folder myself and unzip it on my other

[web2py] Re: clean database

2011-03-31 Thread villas
I believe the w2p file is just a standard zip file. If you want to include a subset of files, I guess you could always make your own zip file. I sometimes just zip the app folder myself and unzip it on my other computer when I'm working on something. In production my DB file is not available to

[web2py] Re: dashes in url

2011-03-31 Thread Anthony
OK, I think you make a good point. Leaving the current default behavior (i.e., automatic translation between underscores and hyphens) can actually cause things to break, whereas turning off the translation by default will merely result in ugly URLs (but nothing will break). That's probably a goo

Re: [web2py] code not working as expected. what am I doing wrong?

2011-03-31 Thread Martín Mulone
I don't know if this the problem, but check trunk, because there was a bug with widgets.checkboxes. 2011/3/31 niknok > Hello everyone. > > Is there anyone who could shed some light on this? > >1. There are two versions of the code below which I thought are > *functionally >the same,* b

[web2py] Re: dashes in url

2011-03-31 Thread VP
> The router assumes if you name your app with underscores that you *do* want > hyphens when the app name is displayed in a URL, and that does seem > reasonable. > > Best, > Anthony The problem is when I name my app with underscore but do not want hyphens in the URL. As mentioned above, an examp

[web2py] recaptcha or requires login for comments

2011-03-31 Thread elffikk
hi, I cannot find in the book how to use recaptcha with simple forms for now I need recaptcha or requires login for comments, any thoughts?

[web2py] Re: code not working as expected. what am I doing wrong?

2011-03-31 Thread pbreit
I had trouble following the code. My suggestion would be to radically simplify, get it working and then add in the complexity. For example, take out all the language stuff and just get the basic questionnaire working in one language. I also try to avoid shortcuts like "q = db.questionnaire" when

[web2py] Possible bug when viewing a plugin

2011-03-31 Thread Mr. Electronic
Hi In applications/admin/views/default/plugin.html it looks like it generates a wrong link for deletion of files: edit Delete this file (you will be asked to confirm deletion) plugin_layout/manager.html extends plugin_layout/layout.html

[web2py] code not working as expected. what am I doing wrong?

2011-03-31 Thread niknok
Hello everyone. Is there anyone who could shed some light on this? 1. There are two versions of the code below which I thought are functionally the same, but the better looking code (version 1) doesn't work as expected while ugly version 2 kinda works, browsing thro

[web2py] IS_NOT_IN_DB not working with Set?

2011-03-31 Thread szimszon
db.define_table( 'mail_domain', Field( 'domainname', 'string', label = 'Domain név',

[web2py] DAL format= functionality

2011-03-31 Thread Gregory Hellings
I have defined a custom auth.settings.table_user_name implementation that includes one extra field and specifies a value for the format argument. In this case format is a callback function which displays the user's name with extra formatting based on membership in certain auth groups. This option

Re: [web2py] Re: dashes in url

2011-03-31 Thread Anthony
On Thursday, March 31, 2011 4:04:31 PM UTC-4, Jonathan Lundell wrote: > > What if they want hyphens? While app names are indeed file names, they're > also used for other purposes within web2py. As somebody pointed out, they > might well appear in an import statement, in which case they'd need to

[web2py] Re: dashes in url

2011-03-31 Thread Anthony
On Thursday, March 31, 2011 3:52:47 PM UTC-4, VP wrote: > > > > I guess I can see leaving the default to re-map hyphens to underscores > but > > perhaps only on functions? > > YES. > > App names are file names, and people generally don't want to have > hyphens in their file names, which is th

Re: [web2py] Re: dashes in url

2011-03-31 Thread Jonathan Lundell
On Mar 31, 2011, at 1:02 PM, VP wrote: > > I should have written "directory names" instead of "file names" (even > though they are related). > > The conflict is apparent when web2py and other things (Apache, etc.) > work together. For example, Apache routes the static files whereas > web2py rout

Re: [web2py] Re: clean database

2011-03-31 Thread Johann Spies
On 29 March 2011 15:13, LightOfMooN wrote: > Yes, thanks, it's good. > > But first question stills opened: > Is there a way to pack just app code? (to *.w2p) > > I think if you use sqlite as database, it is included but when you use something like PostgreSQL or MySQL the data will not be part of

Re: [web2py] Re: dashes in url

2011-03-31 Thread Jonathan Lundell
On Mar 31, 2011, at 12:52 PM, VP wrote: > >> I guess I can see leaving the default to re-map hyphens to underscores but >> perhaps only on functions? > > YES. > > App names are file names, and people generally don't want to have > hyphens in their file names, which is the opposite of what they w

[web2py] Re: dashes in url

2011-03-31 Thread VP
I should have written "directory names" instead of "file names" (even though they are related). The conflict is apparent when web2py and other things (Apache, etc.) work together. For example, Apache routes the static files whereas web2py routes the dynamic things. When you say URL('static', 'st

[web2py] Re: Compatibility issues between versions 1.89.5 and 1.94.6 with legacy applications

2011-03-31 Thread drayco
Ok, We change to sexoworked and we got this Traceback (most recent call last): File "/home/drayco/web2py/gluon/restricted.py", line 189, in restricted exec ccode in environment File "/home/drayco/web2py/applications/init/models/db.py", line 334, in Field('subdireccion','string',requir

[web2py] Re: dashes in url

2011-03-31 Thread VP
> I guess I can see leaving the default to re-map hyphens to underscores but > perhaps only on functions? YES. App names are file names, and people generally don't want to have hyphens in their file names, which is the opposite of what they would want for URLs. As for app names, I think they sh

[web2py] Re: defining psycopg2

2011-03-31 Thread mart
Yup, you were right, couldn't import. so: * downloaded and installed psycopg2 for python 2.7 * bounced the web2py server Now, I get: ApptestApp * Index Welcome to my new app Thanks Massimo, you saved the day! now, if only only sapdb was as easy going ;). Speaki

Re: [web2py] Re: CVStash finally launched! Thanks for all the help :-)

2011-03-31 Thread Martín Mulone
I like it, perhaps you can add markmin support. 2011/3/31 Martín Mulone > great job. > > +1 > > > 2011/3/31 Massimo Di Pierro > >> +1 >> >> reposting the url: http://www.cvstash.com >> >> On Mar 31, 9:01 am, Arbie Samong wrote: >> > I ported the whole thing from django, took me like a couple o

Re: [web2py] Re: we need a few more good people!

2011-03-31 Thread Martín Mulone
Or we can make our app in web2py ;) 2011/3/31 Massimo Di Pierro > Yes. we have been getting more job requests that we can handle. There > should be a private job board, scrum tool to monitor progress, a code > repository, a contract/legal document repository, etc... eventually it > will all be d

[web2py] Re: ckeditor integration

2011-03-31 Thread skwasha
OK. Progress! I don't know why it doesn't work with the standard class='ckeditor' to replace the textarea. But by using CKEDITOR.replaceAll(); I can force it to load into my textarea. I'd still be interested to know if anyone else has had issues with the standard class based replacement not worki

[web2py] Re: Compatibility issues between versions 1.89.5 and 1.94.6 with legacy applications

2011-03-31 Thread Massimo Di Pierro
Did you also change the case in the model to make sure the same case is used consistently? On Mar 31, 2:29 pm, drayco wrote: > Thanks. > > We put fake_migrate = True at all and we got it define_table > > Traceback (most recent call last): >   File "/home/drayco/web2py/gluon/restricted.py", line 1

[web2py] Re: we need a few more good people!

2011-03-31 Thread Massimo Di Pierro
Yes. we have been getting more job requests that we can handle. There should be a private job board, scrum tool to monitor progress, a code repository, a contract/legal document repository, etc... eventually it will all be done. Probably by the end of the summer. What is important is that we are n

[web2py] Re: Compatibility issues between versions 1.89.5 and 1.94.6 with legacy applications

2011-03-31 Thread drayco
Thanks. We put fake_migrate = True at all and we got it define_table Traceback (most recent call last): File "/home/drayco/web2py/gluon/restricted.py", line 189, in restricted exec ccode in environment File "/home/drayco/web2py/applications/init/models/db.py", line 334, in Field('sub

[web2py] Re: we need a few more good people!

2011-03-31 Thread Ross Peoples
Wow, I got approved for this about 4 hours ago and I just received an email from someone a few minutes ago in my area asking for help to develop a project in web2py. Massimo, is a job board or similar a possibility with this site? I only ask because it looks like people are already using it to

[web2py] Re: Setting secure in A

2011-03-31 Thread David J.
I made a mistake it is defined in the 'action' parameter; On 3/31/11 3:12 PM, David J. wrote: A while back I inquired about adding scheme to URL; It works great; Thank you; I was wondering if it could be added to 'A()' as well; (Unless I missed something in the docs; I need to set scheme to '

[web2py] Setting secure in A

2011-03-31 Thread David J.
A while back I inquired about adding scheme to URL; It works great; Thank you; I was wondering if it could be added to 'A()' as well; (Unless I missed something in the docs; I need to set scheme to 'https';) I think this is important; For example in Auth() there is a helper method call 'navbar(

[web2py] Re: defining psycopg2

2011-03-31 Thread Massimo Di Pierro
open the web2py shell python web2py.py -S welcome -N and type >>> import psycopg2 does it work? My guess is not. Either psycopg2 is not installed propery or you have conflicting python versions. On Mar 31, 1:52 pm, mart wrote: > Hi, > > I'm trying to install web2py with postgreSQL 9.0.3 and g

[web2py] Re: Compatibility issues between versions 1.89.5 and 1.94.6 with legacy applications

2011-03-31 Thread Massimo Di Pierro
if mysql is not in case sensitive model, you just set all define_table(...,fake_migrate=True), make sure the table and fields are consistent everywhere, run it once (the .table will be rebuilt) and than remove the fake_migrate=True from the define_tables. On Mar 31, 2:00 pm, drayco wrote: > Sorry

[web2py] Re: Compatibility issues between versions 1.89.5 and 1.94.6 with legacy applications

2011-03-31 Thread drayco
Sorry, my bad, I view other older db. well, this is my true We have reviewed and benefs2.table SQL.LOG and we observe that the field sexoWorked is defined according to the model. We have reviewed all our model,controllers and views and we observe that the field sexoWorked is refer according

[web2py] defining psycopg2

2011-03-31 Thread mart
Hi, I'm trying to install web2py with postgreSQL 9.0.3 and getting this error when launching a test app: Traceback (most recent call last): File "C:\web\web_prod\web2py\gluon\restricted.py", line 188, in restricted exec ccode in environment File "C:/web/web_prod/web2py/applications/appTes

[web2py] Re: Compatibility issues between versions 1.89.5 and 1.94.6 with legacy applications

2011-03-31 Thread drayco
Please, we want you to help us confirm We have reviewed and benefs2.table SQL.LOG and we observe that the field sexoWorked is defined according to the model. However, when reviewing the MySQL database we see that the field is defined as sexoworked. As you say In this case it would be best to

[web2py] Re: Compatibility issues between versions 1.89.5 and 1.94.6 with legacy applications

2011-03-31 Thread Massimo Di Pierro
The problem is this: You defined Field('sexoWorked') but you are using "sexoworked" in your code. Some versions of web2py were forgiving about that but it resulted in a problem because SQL is not always case agnostic. You need to make sure you use the same case in the table definitions and in the

Re: [web2py] dashes in url

2011-03-31 Thread Jonathan Lundell
On Mar 31, 2011, at 10:44 AM, Anthony wrote: > What's the recommendation on app names? Should we aim for app names that are > valid Python names? If, for example, you want to import a module from another > app, does the app name have to be a valid Python name? That's a good point; I don't know.

[web2py] Compatibility issues between versions 1.89.5 and 1.94.6 with legacy applications

2011-03-31 Thread drayco
Good morning to all, our case is as follows, in the production site have web2py 1.89.5 and MySQL, all our applications are operating properly. Now we would like to upgrade to version 1.94.6, however we have compatibility issues with the new version of the dal, these are the details. db.define_tab

[web2py] Re: web2py is too slow to respond to pages

2011-03-31 Thread Teddy Limousin
thank you for your response guys. Yes you are right I think the hosting is the problem because when using the application in hours with slow traffic the application runs smoothly. regards, Teddy

Re: [web2py] Re: CVStash finally launched! Thanks for all the help :-)

2011-03-31 Thread Martín Mulone
great job. +1 2011/3/31 Massimo Di Pierro > +1 > > reposting the url: http://www.cvstash.com > > On Mar 31, 9:01 am, Arbie Samong wrote: > > I ported the whole thing from django, took me like a couple of days, > > and I'm really impressed on how it makes most of the tasks trivial, > > easy and

Re: [web2py] dashes in url

2011-03-31 Thread Anthony
What's the recommendation on app names? Should we aim for app names that are valid Python names? If, for example, you want to import a module from another app, does the app name have to be a valid Python name? On Thursday, March 31, 2011 1:25:30 PM UTC-4, Jonathan Lundell wrote: > On Mar 31, 20

Re: [web2py] dashes in url

2011-03-31 Thread Anthony
I would probably lean toward at least functions *and* controllers. I think it's common to have underscores (but probably not hyphens) in controller names (for example, any plugin controller that follows the "plugin_" naming convention). On Thursday, March 31, 2011 1:25:30 PM UTC-4, Jonathan Lun

Re: [web2py] dashes in url

2011-03-31 Thread Jonathan Lundell
On Mar 31, 2011, at 10:09 AM, pbreit wrote: > I guess I can see leaving the default to re-map hyphens to underscores but > perhaps only on controllers? Well, functions for sure. I'm not sure about applications and controllers.

Re: [web2py] dashes in url

2011-03-31 Thread pbreit
I guess I can see leaving the default to re-map hyphens to underscores but perhaps only on controllers?

Re: [web2py] dashes in url

2011-03-31 Thread pbreit
Sorry, I think I meant "functions".

[web2py] Re: we need a few more good people!

2011-03-31 Thread Massimo Di Pierro
When you apply, to be approved, there are two things you MUST do: - sign up (of course) - campaign to get votes (if nobody knows you applied you do not get votes, *) How to you campaign? write a short email to other web2py users who are approved members and tell them what you did with web2py (wha

[web2py] Re: dashes in url

2011-03-31 Thread Anthony
On Thursday, March 31, 2011 12:24:59 PM UTC-4, VP wrote: > > > Hyphen/dash is a minus sign. You can't define a Python variable or > function that has a hyphen/dash. It's syntactically incorrect. I do > not think it's web2py's place to automatically fix this syntactical > error. Note, web2

Re: [web2py] Re: dashes in url

2011-03-31 Thread Jonathan Lundell
On Mar 31, 2011, at 9:24 AM, VP wrote: > > Unless I misunderstand the issue at hand here, seriously, I do not > think this is web2py's scope to do this automatic mapping hyphens or > dashes to underscores. > > Hyphen/dash is a minus sign. You can't define a Python variable or > function that has

[web2py] Re: routing maps underscore to hyphens

2011-03-31 Thread Anthony
On Thursday, March 31, 2011 12:18:14 PM UTC-4, VP wrote: > > I am curious. I don't think people can define Python functions > (controllers) that have hyphens. Right? If their controllers can not > have hyphens, then why would web2py have to worry about mapping > hyphens to underscores in fun

Re: [web2py] Re: dashes in url

2011-03-31 Thread Jonathan Lundell
On Mar 31, 2011, at 9:27 AM, David J. wrote: > > It is optional; read the router.py docs. > > Jonathan mentioned that in his post. VP is suggesting the opposite default, and I think perhaps he's right. It causes too much confusion. > > > > On 3/31/11 12:24 PM, VP wrote: >> Unless I misunder

[web2py] Re: we need a few more good people!

2011-03-31 Thread Massimo Di Pierro
One more thing... undisclosed location is not a valid location. ;-)

Re: [web2py] Re: dashes in url

2011-03-31 Thread David J.
It is optional; read the router.py docs. Jonathan mentioned that in his post. On 3/31/11 12:24 PM, VP wrote: Unless I misunderstand the issue at hand here, seriously, I do not think this is web2py's scope to do this automatic mapping hyphens or dashes to underscores. Hyphen/dash is a minus s

[web2py] Re: dashes in url

2011-03-31 Thread VP
Unless I misunderstand the issue at hand here, seriously, I do not think this is web2py's scope to do this automatic mapping hyphens or dashes to underscores. Hyphen/dash is a minus sign. You can't define a Python variable or function that has a hyphen/dash. It's syntactically incorrect. I do

Re: [web2py] Re: routing maps underscore to hyphens

2011-03-31 Thread David J.
That is correct; you can not use a hyphen in a python function name. On 3/31/11 12:18 PM, VP wrote: I am curious. I don't think people can define Python functions (controllers) that have hyphens. Right? If their controllers can not have hyphens, then why would web2py have to worry about mapp

[web2py] Re: routing maps underscore to hyphens

2011-03-31 Thread VP
I am curious. I don't think people can define Python functions (controllers) that have hyphens. Right? If their controllers can not have hyphens, then why would web2py have to worry about mapping hyphens to underscores in function names(which appears to have undesirable side effects)? On Mar 3

[web2py] Re: Help update the web2py powered-by list

2011-03-31 Thread Anthony
Hi All, Another reminder to update the web2py powered-by list. Thanks. Anthony On Saturday, January 1, 2011 11:14:03 AM UTC-5, Anthony wrote: > Hi All, > > If you have created, maintain, or are aware of a website powered by web2py > that is not already on the powered-by list at > http://w

Re: [web2py] Re: dashes in url

2011-03-31 Thread David J
Thanks I will rename router.py.example to routes.py in the web 2 py root and then I can also make a copy in my app to do specific routing? On Mar 31, 2011 10:58 AM, "Jonathan Lundell" wrote: > On Mar 31, 2011, at 7:46 AM, David J. wrote: >> >> I missed that >> >> calling app/default/get_started >>

Re: [web2py] Re: strange behavior

2011-03-31 Thread Jonathan Lundell
On Mar 30, 2011, at 10:09 PM, VP wrote: > > Where would I issue this function call? Would it be easier if admin > is modified so as this call is issued whenever an app is created/ > deleted ? Massimo has added a reload_routes function to admin in the trunk. Can you give it a try? admin/defaul

Re: [web2py] Re: routing maps underscore to hyphens

2011-03-31 Thread Jonathan Lundell
On Mar 30, 2011, at 11:35 PM, pbreit wrote: > Perhaps at least it can be fixed to accept hyphens in the app name? The only > problem is with function names, correct? I'm pretty sure that controller names are a problem, too, and I'm not certain about application names. Function names are the mo

[web2py] Re: we need a few more good people!

2011-03-31 Thread Ross Peoples
I just added myself as well.

[web2py] Re: we need a few more good people!

2011-03-31 Thread Robert Kooij
Waiting for approval as well. :) By the way I ran into the following small typo's in the site, maybe someone can fix them: (1) Once logged in on the "Experts" page. (http://experts4solutions.com/e4s/default/experts) Typo in the title "Experts Pedning Approval" (2) (C) Footer still says 2010,

Re: [web2py] Re: dashes in url

2011-03-31 Thread Jonathan Lundell
On Mar 31, 2011, at 7:46 AM, David J. wrote: > > I missed that > > calling app/default/get_started > > works also; The hyphen-underscore translation works only if you're running the new router. > > > > On 3/31/11 10:31 AM, Ross Peoples wrote: >> web2py will automatically convert dashes to u

Re: [web2py] dashes in url

2011-03-31 Thread Jonathan Lundell
On Mar 31, 2011, at 7:30 AM, David J. wrote: > > Seeing that using a "-" in function names is invalid in python; > > I was wondering how I define in my controller "get-started" url; > > If I define in my controller > > def get-started(): > return dict() > > Its invalid; so I have to maybe

[web2py] Re: web2py is too slow to respond to pages

2011-03-31 Thread Ross Peoples
Plumo said it best. Hosting really makes a difference. You may want to try testing a very simple page to see how long it takes to load: def test(): return dict() If that controller takes a few seconds to come up, then you know something is wrong with your hosting. If you are having problems

Re: [web2py] Re: dashes in url

2011-03-31 Thread Ross Peoples
You should be able to go to http://127.0.0.1:8000/[appname]/[controller]/getting-started and have the page show up. Replace [appname] with the name of your application, and [controller] with the name of the controller. So if your application is named 'myapp' and you are using the 'default' cont

Re: [web2py] Re: dashes in url

2011-03-31 Thread David J.
I missed that calling app/default/get_started works also; On 3/31/11 10:31 AM, Ross Peoples wrote: web2py will automatically convert dashes to underscores for the function names, so: getting-started will become: def getting_started(): return dict()

Re: [web2py] Re: dashes in url

2011-03-31 Thread David J.
I checked this; I am using trunk; I am defining def get_started(): return dict() def features(): return dict() when I call /app/default/get-started I get invalid request; when I call /app/default/features It works perfectly; Maybe a bug? On 3/31/11 10:31 AM, Ross Peoples wrot

Re: [web2py] Re: dashes in url

2011-03-31 Thread David J.
Thanks I will try that; I get invalid request; but I will check again; perhaps I have a typo. On 3/31/11 10:31 AM, Ross Peoples wrote: web2py will automatically convert dashes to underscores for the function names, so: getting-started will become: def getting_started(): return dict()

[web2py] Re: dashes in url

2011-03-31 Thread Ross Peoples
web2py will automatically convert dashes to underscores for the function names, so: getting-started will become: def getting_started(): return dict()

Re: [web2py] Re: MSSQL Connection error on MacOS

2011-03-31 Thread Ross Peoples
Glad you were able to figure it out.

[web2py] dashes in url

2011-03-31 Thread David J.
Seeing that using a "-" in function names is invalid in python; I was wondering how I define in my controller "get-started" url; If I define in my controller def get-started(): return dict() Its invalid; so I have to maybe use routes.py to rewrite it to just getstarted()? Is this the r

Re: [web2py] Re: MSSQL Connection error on MacOS

2011-03-31 Thread Bruno Rocha
I solved the problem with HomeBrew brew install unixodbc brew install freetds after that you can set up your dsn in Utilities iODBC. Thank you. -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] On Thu, Mar 31, 2011 at 10:39 AM, Ross Peoples wrote: > Bruno, > > I too have had this pro

[web2py] Re: CVStash finally launched! Thanks for all the help :-)

2011-03-31 Thread Massimo Di Pierro
+1 reposting the url: http://www.cvstash.com On Mar 31, 9:01 am, Arbie Samong wrote: > I ported the whole thing from django, took me like a couple of days, > and I'm really impressed on how it makes most of the tasks trivial, > easy and reliable. Most of the issues were having to make it work on

[web2py] Re: CVStash finally launched! Thanks for all the help :-)

2011-03-31 Thread Anthony
Nice. I added it to http://web2py.com/poweredby. Anthony On Thursday, March 31, 2011 10:01:41 AM UTC-4, Arbie Samong wrote: > I ported the whole thing from django, took me like a couple of days, > and I'm really impressed on how it makes most of the tasks trivial, > easy and reliable. Most of

[web2py] CVStash finally launched! Thanks for all the help :-)

2011-03-31 Thread Arbie Samong
I ported the whole thing from django, took me like a couple of days, and I'm really impressed on how it makes most of the tasks trivial, easy and reliable. Most of the issues were having to make it work on GAE, but no biggie. Just wanna thank Massimo and the rest of the web2py folks for being aweso

[web2py] Re: contrib.populate and uuid

2011-03-31 Thread Anthony
On Thursday, March 31, 2011 9:33:48 AM UTC-4, Massimo Di Pierro wrote: > > please do: > > db.define_table('person',Field('person_uuid', notnull=True, > writable=False, unique=True)) > db.person.person_uuid = lambda:str(uuid.uuid4())) It should be db.person.person_uuid.default = lambda:str(uu

[web2py] Re: proposal enhancing email_auth

2011-03-31 Thread szimszon
sent :) On márc. 31, 15:35, Massimo Di Pierro wrote: > ok. please send me an email with the modified time as an attachment. > > On Mar 31, 2:09 am, szimszon wrote: > > > > > > > > > I need email_auth for various domain names. Like @oregpreshaz.eu > > @kopaszhegy.hu... > > > But there is a limita

[web2py] Re: we need a few more good people!

2011-03-31 Thread Mengu
i'm still waiting an approval. i'm in turkey. :) On Mar 31, 3:05 am, Massimo Di Pierro wrote: > http://experts4solutions.com/e4s/default/experts

[web2py] Re: MSSQL Connection error on MacOS

2011-03-31 Thread Ross Peoples
Bruno, I too have had this problem. It seems as if Mac OS X has some real problems connecting to MSSQL, which isn't too much of a surprise I guess. The way that I develop on Mac OS X may be crazy or over-complicated, but I find it works well for me: I set up a Ubuntu Server virtual machine in

[web2py] Re: GSOC 2011 - BioChemical Reaction Network Visualization - web2py

2011-03-31 Thread Massimo Di Pierro
done. can you summarize for us, what is done, what needs to be done. On Mar 31, 5:23 am, selecta wrote: > we are still looking for people that help us with Idea3 > if you do not want to join you could help us find someone with web2py > skills by retweeting this > message:http://twitter.com/#!/r

[web2py] Re: proposal enhancing email_auth

2011-03-31 Thread Massimo Di Pierro
ok. please send me an email with the modified time as an attachment. On Mar 31, 2:09 am, szimszon wrote: > I need email_auth for various domain names. Like @oregpreshaz.eu > @kopaszhegy.hu... > > But there is a limitation in email_auth: > >         if not email[-len(domain):]==domain: >          

[web2py] Re: "requires" outside field definition - unexpected behaviour

2011-03-31 Thread Massimo Di Pierro
it will be ignored but the SQLFORM.factory is a form and it must be able to take arguments of any name to build the attributes. On Mar 31, 1:50 am, niknok wrote: > I have something like: > > form=SQLFORM.factory( >             Field('f1', requires=IS_IN_SET(choices)), >             Field('f2'),

[web2py] Re: contrib.populate and uuid

2011-03-31 Thread Massimo Di Pierro
please do: db.define_table('person',Field('person_uuid', notnull=True, writable=False, unique=True)) db.person.person_uuid = lambda:str(uuid.uuid4()) from gluon.contrib.populate import populate populate(db.person, 50) else the default is set the same for all records. On Mar 31, 1:49 am, niknok

[web2py] Re: upload field change filename

2011-03-31 Thread Manuele Pesenti
Il 31/03/2011 12:46, Manuele Pesenti ha scritto: Hi *, is there a way to modify the file name with whom a file is stored in the filesystem using an upload field? I tryied in this way but without success: this answer to my quest thankyou anyway :) http://groups.google.com/group/web2py/browse_

  1   2   >