[web2py] Re: please check 1.84.0 (beta)

2010-08-29 Thread mart
tried few things on mac os. 1. downloaded src, tried to run on python 2.6 (i put in /Applications/ web2py_184/) started to run, put in the password then i got a "page could not be found" error (I thought maybe it wants a "web2py" folder... so changed the folder name, same problem. 2. changed .ba

Re: [web2py] Re: please check 1.84.0 (beta)

2010-08-29 Thread Albert Abril
I tested web2py_src.zip on a Mac 10.6.4 with Python 2.6.1 and runs without problems. On Sun, Aug 29, 2010 at 9:02 AM, mart wrote: > tried few things on mac os. > > 1. downloaded src, tried to run on python 2.6 (i put in /Applications/ > web2py_184/) started to run, put in the password then i go

Re: [web2py] Scaffolding app with Twitter OAuth1.0a auth

2010-08-29 Thread Albert Abril
:) Thank you! On Sun, Aug 29, 2010 at 1:45 AM, Michele Comitini < michele.comit...@gmail.com> wrote: > Hello all, > > I've uploaded a scaffolding app as example of authentication with > twitter oauth. You can find source code here: > > > https://code.google.com/r/michelecomitini-facebookaccess/s

[web2py] Re: please check 1.84.0 (beta)

2010-08-29 Thread Martin.Mulone
Seem no problem with source in linux, python 2.6 ubuntu 10.04. On Aug 29, 2:20 am, mdipierro wrote: > http://web2py.com/examples/static/nightly/web2py_src.ziphttp://web2py.com/examples/static/nightly/web2py_win.ziphttp://web2py.com/examples/static/nightly/web2py_osx.zip

[web2py] Re: Some questions about embedding debugging ...

2010-08-29 Thread Michael Ellis
I do all my development in a web2py instance running under winpdb on OS X 10.6. It's been a huge help to always have instant access to debugging and so far, I haven't seen any significant slowdown in performance. Winpdb can be a bit of a pain to install because of the WxPython dependencies, but t

[web2py] Re: fail to install project

2010-08-29 Thread mdipierro
I do not know about the specific project. It is the first time I hear about it. Here are the general instructions for installing w2p files. 1) download web2py form http://web2py.com/examples/default/download 2) unzip it and start it (there is not installation process) 3) choose an administrator p

[web2py] Re: please check 1.84.0 (beta)

2010-08-29 Thread mdipierro
@qqsaqq I think I fixed that problem. Could you try again? @mart are those problems specific about 2.7? Could you check again and, if they are still there, explain them in more details? Massimo On Aug 29, 6:38 am, "Martin.Mulone" wrote: > Seem no problem with source in linux, python 2.6 ubuntu

[web2py] Re: Table migration problems with Sqlite

2010-08-29 Thread Álvaro J . Iradier
I think if the migration can't be done, it would be better an error or exception than a warning. If the changes in the DB can't be migrated, it's better for the developer to know the problem and find an alternate way. I'll try and send you a patch, and then we can decide if it's better to give a w

Re: [web2py] Re: please check 1.84.0 (beta)

2010-08-29 Thread Bruno Rocha
I am running Mac Snow Leopard and .app version, i Got: web2py Error An unexpected error has occurred during execution of the main script ImportError: No module named config 2010/8/29 mdipierro > @qqsaqq > > I think I fixed that problem. Could you try again? > > @mart > are those problems s

[web2py] Re: please check 1.84.0 (beta)

2010-08-29 Thread mdipierro
try again. I think I just fixed that. On Aug 29, 8:50 am, Bruno Rocha wrote: > I am running Mac Snow Leopard and .app version, i Got: > > web2py Error > An unexpected error has occurred during execution of the main script > > ImportError: No module named config > > 2010/8/29 mdipierro > > > > >

[web2py] Re: Table migration problems with Sqlite

2010-08-29 Thread mdipierro
> If it's not possible to drop columns in Sqlite, what about creating a > new temp table, inserting data from old table into the new one, > removing the old table and renaming the temp table into the old > table's name? That would allow this kind of migrations in Sqlite. I > could try this too, an

Re: [web2py] Re: please check 1.84.0 (beta)

2010-08-29 Thread Bruno Rocha
Source code version runs very well in the same MAcOS Snow Leopard! I gonna try the .app, ( 27 MB in .app X 3.7 in src) it is a hard difference! 2010/8/29 mdipierro > try again. I think I just fixed that. > > On Aug 29, 8:50 am, Bruno Rocha wrote: > > I am running Mac Snow Leopard and .app vers

[web2py] Re: please check 1.84.0 (beta)

2010-08-29 Thread mdipierro
the problem (missing config) is not in course but in packaging binaries. It should now be there. Massimo On Aug 29, 8:57 am, Bruno Rocha wrote: > Source code version runs very well in the same MAcOS Snow Leopard! > > I gonna try the .app, ( 27 MB in .app X 3.7 in src) it is a hard difference! >

Re: [web2py] Re: please check 1.84.0 (beta)

2010-08-29 Thread Bruno Rocha
OK, .app is running in Mac Os with no problem. 2010/8/29 mdipierro > the problem (missing config) is not in course but in packaging > binaries. It should now be there. > > Massimo > > On Aug 29, 8:57 am, Bruno Rocha wrote: > > Source code version runs very well in the same MAcOS Snow Leopard! >

[web2py] Getting extended permissions on Facebook auth

2010-08-29 Thread Narendran
Hello, I'm using the latest Facebook oauth module specified in this thread: http://groups.google.com/group/web2py/browse_thread/thread/a5d981ad6f2174e9/f0e9505ced78c653?lnk=gst&q=narendran#f0e9505ced78c653 I'd like to request access to extended user profile (email address and other info) during au

[web2py] Re: Field default

2010-08-29 Thread Kevin
> To illustrate in Field() you > have a length argument that puts a length constraint at the database level i.e > the actual field definition (CHAR(10)). At the form level you also have > IS_LENGTH which is used by SQLFORM to perform basically the same function. Ah, but just as you wanted to do so

[web2py] Re: please check 1.84.0 (beta)

2010-08-29 Thread qqsaqq
> I think I fixed that problem. Could you try again? Yes, you fixed it. Starts up like a charm now. Thank you. On Aug 29, 3:43 pm, mdipierro wrote: > @qqsaqq > > I think I fixed that problem. Could you try again? > > @mart > are those problems specific about 2.7? Could you check again and, if >

Re: [web2py] Re: please check 1.84.0 (beta)

2010-08-29 Thread Jonathan Lundell
On Aug 29, 2010, at 12:02 AM, mart wrote: > > 2. changed .bash_profile to point to python 2.7 (even if nor > recommended, 1.83 worked just fine on 2.7 for me). This time got the > 'No handlers could be found for logger "web2py"' error and returned > the terminal to the cursor (web2py stopped immed

Re: [web2py] Re: tree like references for web2py Hl7 application

2010-08-29 Thread Debebe Asefa
Massimo: Reminder : Do forget me, it is important I finish this project ASAP to move to the next one.I am waiting you answer for the above question, if you need the code again, I will send you, this approach makes Web2py HL7 menu lean. Debebe On Wed, Aug 18, 2010 at 9:12 PM, mdipierro wrote:

[web2py] Re: tree like references for web2py Hl7 application

2010-08-29 Thread mdipierro
Hello Debebe, I apologize. If I understand your question as well as the context 1) get latest web2py (1.83.1 or later) 2) install plugin_wiki as explained in chapter 13 of the book. 3) Then create the following action: def getrecord(): tablename=request.args(0) if not tablename i

[web2py] Re: tree like references for web2py Hl7 application

2010-08-29 Thread mdipierro
errata: Hello Debebe, I apologize. If I understand your question as well as the context 1) get latest web2py (1.83.1 or later) 2) install plugin_wiki as explained in chapter 13 of the book. 3) Then create the following action: def getrecord(): tablename=request.args(0) if not ta

[web2py] Re: Field default

2010-08-29 Thread mdipierro
If you specify a ``field.length`` ('string defaults to 512) you get a default validator that will give errors if you try to insert more than ``length`` chars. By doing this you write code that is not portable. Why? How is this different in practice than doing ``default=request.now``? Massimo O

[web2py] Re: please check 1.84.0 (beta)

2010-08-29 Thread mart
So, I just downloaded the src from http://web2py.com/examples/static/nightly/web2py_src.zip, just in case there are changes since last night. I am on mac os 10.6.4 and this is what I get (copied from terminal): macmart:web2py_184 mart$ python web2py.py Warning: web2py requires Python 2.4, 2.5 (re

Re: [web2py] Re: please check 1.84.0 (beta)

2010-08-29 Thread Jonathan Lundell
On Aug 29, 2010, at 9:46 AM, mart wrote: > > So, I just downloaded the src from > http://web2py.com/examples/static/nightly/web2py_src.zip, > just in case there are changes since last night. I am on mac os 10.6.4 > and this is what I get (copied from terminal): > > macmart:web2py_184 mart$ pytho

Re: [web2py] Re: please check 1.84.0 (beta)

2010-08-29 Thread Jonathan Lundell
On Aug 29, 2010, at 9:46 AM, mart wrote: > > So, we still notice the same error "No handlers could be found for > logger "web2py"" and the I am brought back to the terminal cursor. There may be two problems here. One is that the "no handlers" message may be normal, but shouldn't result in term

[web2py] Re: please check 1.84.0 (beta)

2010-08-29 Thread mart
Working great now! Thanks for that :) On Aug 29, 1:06 pm, Jonathan Lundell wrote: > On Aug 29, 2010, at 9:46 AM, mart wrote: > > > > > > > So, I just downloaded the src > > fromhttp://web2py.com/examples/static/nightly/web2py_src.zip, > > just in case there are changes since last night. I am on

Re: [web2py] Re: please check 1.84.0 (beta)

2010-08-29 Thread Jonathan Lundell
On Aug 29, 2010, at 10:26 AM, mart wrote: > > Working great now! Thanks for that :) A favor, please, Mart. In main.py, you'll find this logging init code: logpath = os.path.join(web2py_path, "logging.conf") if os.path.exists(logpath): logging.config.fileConfig(os.path.join(web2py_path, "logg

[web2py] Re: please check 1.84.0 (beta)

2010-08-29 Thread mart
hey Jonathan, renamed logging.conf to logging_x.conf, modified main.py, and re-ran web2py. Worked great for me! :) Thanks, Mart :) On Aug 29, 1:42 pm, Jonathan Lundell wrote: > On Aug 29, 2010, at 10:26 AM, mart wrote: > > > > > Working great now! Thanks for that :) > > A favor, please, Mart. I

Re: [web2py] Re: Field default

2010-08-29 Thread Adrian Klaver
On Saturday 28 August 2010 10:04:28 pm mdipierro wrote: > You cannot use default=Expression('CURRENT_DATE',db=db) I.e. have the > default date inserted by the database and, at the same time, validate > the field at the web2py level (before) the record is communicated by > the database. The field h

[web2py] Re: Field default

2010-08-29 Thread mdipierro
ok. This may be a bug. I will look into it. On Aug 29, 1:27 pm, Adrian Klaver wrote: > On Saturday 28 August 2010 10:04:28 pm mdipierro wrote: > > > You cannot use default=Expression('CURRENT_DATE',db=db) I.e. have the > > default date inserted by the database and, at the same time, validate > >

Re: [web2py] Re: Field default

2010-08-29 Thread Adrian Klaver
On Sunday 29 August 2010 7:41:37 am Kevin wrote: > > To illustrate in Field() you > > have a length argument that puts a length constraint at the database > > level i.e the actual field definition (CHAR(10)). At the form level you > > also have IS_LENGTH which is used by SQLFORM to perform basicall

Re: [web2py] Re: Field default

2010-08-29 Thread Adrian Klaver
On Sunday 29 August 2010 9:18:16 am mdipierro wrote: > If you specify a ``field.length`` ('string defaults to 512) you get a > default validator that will give errors if you try to insert more than > ``length`` chars. > > By doing this you write code that is not portable. Why? How is this > differe

Re: [web2py] Re: please check 1.84.0 (beta)

2010-08-29 Thread Jonathan Lundell
On Aug 29, 2010, at 11:12 AM, mart wrote: > > hey Jonathan, > > renamed logging.conf to logging_x.conf, modified main.py, and re-ran > web2py. Worked great for me! :) Thanks, I appreciate it. > > Thanks, > Mart :) > > On Aug 29, 1:42 pm, Jonathan Lundell wrote: >> On Aug 29, 2010, at 10:26 A

Re: [web2py] Getting extended permissions on Facebook auth

2010-08-29 Thread Michele Comitini
Hi Narendran, Thanks for testing. If you can send a path I'll be happy to include it, I will take care of trying to keep compatibiltity, but do not worry much about it, since FB claims oauth2.0 (which is still a draft) compat, but they do not follow the spec in too many points, they are also stuc

Re: [web2py] Getting extended permissions on Facebook auth

2010-08-29 Thread Michele Comitini
Just to show you how they care about compat. http://forum.developers.facebook.com/viewtopic.php?pid=250804#p250804 Twitter also claimed they were going on beta test OAuth2.0 before summer, asked about status of things, I had no answer. I guess it is not first in their schedule... We could event

[web2py] Re: ANN: first pre-alfa release (v0.2) of Web2Py_CC

2010-08-29 Thread qqsaqq
firstly, thank you very much for your work! I'm trying to get web2py_cc running (on Win7 64bit with Python 2.6.6 32bit), but I'm not quite there. Two short notes on the dependencies: - scince one dependency you mention on your site is psutil, you need a 32bit version of Python. Apparently, you

Re: [web2py] Scaffolding app with Twitter OAuth1.0a auth

2010-08-29 Thread Albert Abril
Just a question: what do you use for post a tweet, read statuses... ? Thanks in advance. On Sun, Aug 29, 2010 at 12:39 PM, Albert Abril wrote: > :) Thank you! > > > On Sun, Aug 29, 2010 at 1:45 AM, Michele Comitini < > michele.comit...@gmail.com> wrote: > >> Hello all, >> >> I've uploaded a scaff

[web2py] web2py clone question - applications/welcome/ABOUT' is inside repo 'applications/welcome'

2010-08-29 Thread Chris Steel
I created a clone of Web2py in order to make some contributions. When I ran hg status after making some minor changes to default/user.html in the Welcome application I got the following message: hg status abort: path 'applications/welcome/ABOUT' is inside repo 'applications/welcome' Do I need t

[web2py] Re: Field default

2010-08-29 Thread mdipierro
Please try trunk again On Aug 29, 1:27 pm, Adrian Klaver wrote: > On Saturday 28 August 2010 10:04:28 pm mdipierro wrote: > > > You cannot use default=Expression('CURRENT_DATE',db=db) I.e. have the > > default date inserted by the database and, at the same time, validate > > the field at the web2

[web2py] Re: please check 1.84.0 (beta)

2010-08-29 Thread mdipierro
OK ,please check the nightly built again. Massimo On Aug 29, 3:40 pm, Jonathan Lundell wrote: > On Aug 29, 2010, at 11:12 AM, mart wrote: > > > > > hey Jonathan, > > > renamed logging.conf to logging_x.conf, modified main.py, and re-ran > > web2py. Worked great for me! :) > > Thanks, I appreciat

[web2py] Re: please check 1.84.0 (beta)

2010-08-29 Thread mart
Any time :) On Aug 29, 4:40 pm, Jonathan Lundell wrote: > On Aug 29, 2010, at 11:12 AM, mart wrote: > > > > > hey Jonathan, > > > renamed logging.conf to logging_x.conf, modified main.py, and re-ran > > web2py. Worked great for me! :) > > Thanks, I appreciate it. > > > > > Thanks, > > Mart :) > >

[web2py] Re: please check 1.84.0 (beta)

2010-08-29 Thread mdipierro
I made a major change to the migration code that "partially" fix a problem with mysql, firebird and oracle. Since they do not allow multiple ALTER TABLE per transaction it was possible to get the DB in an inconsistent state and web2py would get confused. Now web2py does not get confused any more an

[web2py] Re: please check 1.84.0 (beta)

2010-08-29 Thread mart
Just downloaded src from same location. All is working great :) however... i am still weeing the warning 'No handlers could be found for logger "web2py"' thanks, Mart :) On Aug 29, 6:34 pm, mart wrote: > Any time :) > > On Aug 29, 4:40 pm, Jonathan Lundell wrote: > > > On Aug 29, 2010, at 11:1

[web2py] Re: Field default

2010-08-29 Thread mdipierro
:-) 1) If you have db.define_table('a',Field('b',length=40)) add you do db.a.insert(b='bla'*100) the string gets truncated but if you try to insert something longer tha 40chars via form you get a validation error. length=512 if not specified otherwise. 2) now you can do both: db.def

[web2py] Re: web2py clone question - applications/welcome/ABOUT' is inside repo 'applications/welcome'

2010-08-29 Thread mdipierro
I think hg does not support nested repos. Massimo On Aug 29, 5:18 pm, Chris Steel wrote: > I created a clone of Web2py in order to make some contributions. > > When I ran hg status after making some minor changes to default/user.html in > the Welcome application I got the following message: > >

[web2py] Re: ANN: first pre-alfa release (v0.2) of Web2Py_CC

2010-08-29 Thread mdipierro
BTW I hope you'll forgive me for this: http://www.reddit.com/r/Python/comments/d6ks8/web2py_cc_console_ide/ But you have been on the top of the python page for the entire day http://www.reddit.com/r/Python/ If you had any doubt, this means there is lots of interest in your project. m

Re: [web2py] Re: please check 1.84.0 (beta)

2010-08-29 Thread Jonathan Lundell
On Aug 29, 2010, at 3:40 PM, mart wrote: > > Just downloaded src from same location. All is working great :) > however... i am still weeing the warning 'No handlers could be found > for logger "web2py"' Do have a logging.conf, and/or do you see the change in main.py? > > > thanks, > Mart :) >

Re: [web2py] ANN: first pre-alfa release (v0.2) of Web2Py_CC

2010-08-29 Thread Jose Bastidas
Congratulations for your first pre-alfa release.

[web2py] have you used web2py for teaching?

2010-08-29 Thread mdipierro
If you use or have used web2py for teaching please let me know. The deadline for SIGCSE 2011 papers is next week. I am thinking of submitting a paper about the use of web2py as a teaching tool. If you have used web2py, you are welcome to be a coauthor of the paper but let me know before Sept 3. I

[web2py] Re: please check 1.84.0 (beta)

2010-08-29 Thread mart
hey again... So, I should have looked a little deeper earlier when I saw it working but still getting the error/warning... so, not too sure what's happening right now (will deeper later this evening). but for now. I synced the src from same location specified at the beginning of the thread. extr

Re: [web2py] Re: please check 1.84.0 (beta)

2010-08-29 Thread Jonathan Lundell
On Aug 29, 2010, at 6:24 PM, mart wrote: > > hey again... > > So, I should have looked a little deeper earlier when I saw it working > but still getting the error/warning... > > so, not too sure what's happening right now (will deeper later this > evening). > > but for now. I synced the src fro

[web2py] Re: have you used web2py for teaching?

2010-08-29 Thread mart
As mentioned a few weeks ago, I have been web2py, to teach my daughter some basic concepts... does that count ? (probably not, but thought I'd mention it)... been thinking lately about using web2py for educational purposes, but aimed at the kids the kids (because, I think they may be smarter than w

Re: [web2py] have you used web2py for teaching?

2010-08-29 Thread Bruno Rocha
As you know, I teach web2py in Brazil in "download" section on http://www.web2pybrasil.com.br you can find the material for download ( * in *Portuguese*) Here is the book used for the training -> http://migre.me/1aD8o Here is the app developed in the class -> http://dl.dropbox.com/u/830444/web2

[web2py] dbio=False + autocomplete field = Error

2010-08-29 Thread Tito Garrido
Hi Folks, I'm trying to validade a form before sending it. There is a hidden field and an autocomplete field on the form and there is what I get: % repr(invalid_fieldnames) SyntaxError: invalid field names: ['_autocomplete_nome_aux'] *Function argument list: (self=}>, **fields={'_autocomple

Re: [web2py] have you used web2py for teaching?

2010-08-29 Thread Alfonso de la Guarda
I am using web2py for teaching in Perú, in fact, i am also helping to latinux for the spanish translation of the book. Is a good framework to teach MVC. Glas to help you. Saludos, Alfonso de la Guarda Centro Open Source(COS) http://www.cos-la.net http://alfonsod

[web2py] Re: web2py clone question - applications/welcome/ABOUT' is inside repo 'applications/welcome'

2010-08-29 Thread Chris S
You can use subrepos (http://mercurial.selenic.com/wiki/ Subrepositories?action=show&redirect=subrepos) in mercurial. Though I have only messed with it out of curiosity I can't say I've used it extensively. On Aug 29, 5:52 pm, mdipierro wrote: > I think hg does not support nested repos. > > Ma

[web2py] Re: fail to install project

2010-08-29 Thread lddn...@gmail.com
I use web2py on window 7 version and test with python 2.5 and 2.7 but also fail to install the rlcs, lcs or mini_app (at step 7 on the right column, at the Upload & install packed application section). I also unzip and get the w2p file and try to install too. Last time, I also fail to install insta

[web2py] Re: fail to install project

2010-08-29 Thread mdipierro
You should contact the author. I have never see that app before. If you do not get help from him, I will be happy to look more into it. What errors, specifically do you get? On Aug 29, 11:46 pm, "lddn...@gmail.com" wrote: > I use web2py on window 7 version and test with python 2.5 and 2.7 but > a

Re: [web2py] Re: fail to install project

2010-08-29 Thread Bruno Rocha
I Like the community translation implemented in this app . I installed here, no errors! 2010/8/30 mdipierro > You should contact the author. I have never see that app before. If > you do not get help from him, I will be happy to look more into it. > What errors, specifically do you get? > > On

[web2py] Re: fail to install project

2010-08-29 Thread Nhan Le
It says that "Unable to install application ..." Thanks for your answer, Im contacting the author. On Aug 30, 11:51 am, mdipierro wrote: > You should contact the author. I have never see that app before. If > you do not get help from him, I will be happy to look more into it. > What errors, speci