Re: [web2py] Re: REF: Change order of fields in a form??!

2013-01-04 Thread Roberto Perdomo
try changing font-style in web2py.css from web2py/applications/admin/static/codemirror/theme. Something like: .cm-s-web2py { line-height: 1.40em; font-family: "sans-serif"; /* set your font style here */ } 2013/1/5 Teddy Nyambe > Thanks, what about the ide font in web2py how do u change i

Re: [web2py] Re: REF: Change order of fields in a form??!

2013-01-04 Thread Teddy Nyambe
Thanks, what about the ide font in web2py how do u change it? On Jan 5, 2013 6:46 AM, "Christian Espinoza" wrote: > Is easy use a custom form instead of {{=form}}, then you can control > where put your input fields... > > {{=form.custom.begin}} > Image name: {{=form.custom.widget.name}} > Image f

[web2py] Multiple File Upload

2013-01-04 Thread weheh
Is multi-file upload still roll-your-own, a la: https://groups.google.com/forum/?fromgroups=#!searchin/web2py/multiple$20file$20upload/web2py/XpnUb2_MaRc/DkUOi4iDrPYJ or is there something native, as per proposals: https://groups.google.com/forum/?fromgroups=#!searchin/web2py/multi$20upload/web2py

[web2py] Re: Possible bug: DAL csv import "unable to parse csv file near ")": syntax error" BUT NO ")" in thefile

2013-01-04 Thread JoeCodeswell
Dear Massimo, You asked: > What's the difference between the two? * * *Answer: * *Double quotes* on the one that *worked*. *Single quotes* on the one that *didn't work*. Love and peace, Joe On Friday, January 4, 2013 4:54:01 PM UTC-8, Massimo Di Pierro wrote: > > What's the difference between

[web2py] Re: REF: Change order of fields in a form??!

2013-01-04 Thread Christian Espinoza
Is easy use a custom form instead of {{=form}}, then you can control where put your input fields... {{=form.custom.begin}} Image name: {{=form.custom.widget.name}} Image file: {{=form.custom.widget.file}} Click here to upload: {{=form.custom.submit}} {{=form.custom.end}} Reference: http://web2py

[web2py] Re: error when logging in using site domain

2013-01-04 Thread Ignacio Ocampo
Darry, I had the same problem, I post my solution at: http://nafiux.com/blog/2013/01/04/web2py-deploy-specific-app-with-apache-webserver/ In my case, the problem was caused by a bad RewriteRule configuration at my httpd.conf file. The correct configuration that I used is: DocumentRoot /

[web2py] Re: SQLFORM.grid Error, changes from 2.2.1 to 2.3.1 - 2.3.2

2013-01-04 Thread Christian Espinoza
The issue appears on windows and linux, the db is mysql, I will rewrite my code for the new SQLFORM.grid in order to use the GET vars that are now on the new version ... Actually I'm doing all work with session vars in order to run the pagination of the grid... El viernes, 4 de enero de 2013 19

Re: [web2py] Re: error in mysql ?

2013-01-04 Thread Christian Espinoza
Hi, I had a lot of problems like this when I was developing with sqlite, now my rule is develop from beginning with the final database what will run in production environment.. Christian. El viernes, 4 de enero de 2013 22:45:18 UTC-3, Michele Comitini escribió: > > I have no idea where the err

[web2py] Apache using 99% cpu, when web2py accessed using JQ-mobile - latest psycopyg2 used

2013-01-04 Thread Nik
I've posted the question on StackOverFlow too, but I thought this would be the correct place : http://stackoverflow.com/questions/14150481/web2py-premature-end-of-script-headers-wsgihandler-py-apache-eating-cpu-9 Here is the flow : 1.) User visits the default/index.html 2.) Accessing this index.h

[web2py] Re: RuntimeError: Using a recursive select but encountered a broken reference: auth_group

2013-01-04 Thread Ignacio Ocampo
Massimo, Thank you, I found the solution. I have wrong RewriteCond and RewriteRule parameters at httpd.conf I have a domain.com working with Apache, and I configured an alias /myapp that works to web2py framework. The good configuration for this case is. DocumentRoot /var/www/html Se

Re: [web2py] Re: error in mysql ?

2013-01-04 Thread Michele Comitini
I have no idea where the error happens. If it is not a in form submission "requires" is not considered... 2013/1/5 Derek > but wouldn't his 'requires=' catch this before it even gets to the db? > > > On Friday, January 4, 2013 3:51:30 PM UTC-7, Michele Comitini wrote: > >> Possible solutions: >

[web2py] Re: drop table cascade

2013-01-04 Thread Liang
drop('cascade') seems not working. On Wednesday, 4 February 2009 14:17:14 UTC+8, mdipierro wrote: > > give this a try. In trunk > > db.table.drop('cascade') > > On Feb 3, 11:40 pm, Baron wrote: > > thanks Massimo. > > > > On Feb 4, 3:28 pm, mdipierro wrote: > > > > > sorry, for now you ha

[web2py] How to import file within another directory of modules

2013-01-04 Thread Yasir Saleem
Hi all, In my modules directory, I created a new directory named "users" and create a python file "test_users.py" within "users" directory. The structure is like this: *my_application/modules/users/test_users.py* I know that files within modules directory can be imported simply by "*import fi

[web2py] Re: GAE + Cloud SQL: Tickets

2013-01-04 Thread Massimo Di Pierro
Admin is readonly on GAE and by default not deployed. On Friday, 4 January 2013 17:10:56 UTC-6, Alan Etkin wrote: > > El jueves, 3 de enero de 2013 11:31:45 UTC-3, Felipe Meirelles escribió: >> >> Well, the problem is when the ticket is saved, self.db points to > uri="google:sql://**:novello-

Re: [web2py] pulsar

2013-01-04 Thread Massimo Di Pierro
They say it runs on windows. If this is written in pure python could be used as a portable solution to tornado for websockets. On Friday, 4 January 2013 16:18:31 UTC-6, Niphlod wrote: > > nodejs vs gevent+monkey_patching allows you to USE "EV" (please bear with > me, from now on "EV" means just

[web2py] Re: RuntimeError: Using a recursive select but encountered a broken reference: auth_group

2013-01-04 Thread Massimo Di Pierro
Looking into this... On Friday, 4 January 2013 15:53:05 UTC-6, Ignacio Ocampo wrote: > > I've an app, I register and user and it's ok. > > I have 1 instance running with "python web2py.py" at port 8080 (for admin > console) ... and I have my httpd.conf configured with WSGI. > > Both work correctl

[web2py] Re: app about page

2013-01-04 Thread Massimo Di Pierro
It counts the lines of lines in the code (.html and .py files only). I use it to monitor when my students work on projects. On Friday, 4 January 2013 04:36:28 UTC-6, Ramos wrote: > > hello. > what does it mean the graph in the about page under Project progress? > > > Thank you > António > --

[web2py] Re: Possible bug: DAL csv import "unable to parse csv file near ")": syntax error" BUT NO ")" in thefile

2013-01-04 Thread Massimo Di Pierro
What's the difference between the two? On Friday, 4 January 2013 13:36:25 UTC-6, JoeCodeswell wrote: > > Hi Derek, > > Thanks for the reply. I just tried these 2 csv's: > 'iso','name','printable_name','iso3','numcode' > 'UY','URUGUAY','Uruguay','URY','858' > 'UZ','UZBEKISTAN','Uzbekistan','UZB','8

[web2py] Re: Putting apps together

2013-01-04 Thread Massimo Di Pierro
All apps are already CAS providers and consumers. Perhaps this helps: http://web2py.com/books/default/chapter/29/09#Central-Authentication-Service On Friday, 4 January 2013 09:14:34 UTC-6, Sverre wrote: > > I have an idea to write several applications or modules and put them > together. For ex

[web2py] Re: Uploading images

2013-01-04 Thread Massimo Di Pierro
yes row.update(avatar=db.tablename.avatar.store(request.post_vars['upload_field' ],filename='yourname.ext')) On Friday, 4 January 2013 00:36:31 UTC-6, Wonton wrote: > > Hello Massimo! > > I bypass the form.proccess because this is a web service used by an iOS > app. I do all frontend stuff in iO

[web2py] Re: Customizing select options in crud.create forms

2013-01-04 Thread Massimo Di Pierro
db.engine.company.requires = IS_IN_DB(db(db.company.approved == True),'company.id','%(name)s') On Thursday, 3 January 2013 23:36:18 UTC-6, Dave Cenker wrote: > > I have a set of models defined as follows: > > db.define_table('company', > Field('name'), > Field('symbol'), > Field('approved',

[web2py] Re: Returning a token for Android app authentication

2013-01-04 Thread Mark Li
Would it be necessary to connect to the same web2py session? To my understanding, connecting to the same session would be necessary if the session contained Auth information indicating whether or not a user was logged in. However, using auth.login_bare(), I only return a token on login success,

[web2py] Re: error when logging in using site domain

2013-01-04 Thread Ignacio Ocampo
I have the same problem, do you have resolved it? Thanks. On Wednesday, January 2, 2013 7:38:47 PM UTC-6, dr_eeves wrote: > > Hi, > > I have been developing a web application using web2py. Most of the > development has been done using the included development text editor (which > has been great

Re: [web2py] Re: error in mysql ?

2013-01-04 Thread Derek
but wouldn't his 'requires=' catch this before it even gets to the db? On Friday, January 4, 2013 3:51:30 PM UTC-7, Michele Comitini wrote: > > Possible solutions: > > 1. Probably Bruno Rocha can help you better, so you can try to post a > issue on github. > 2. You can find what is the "parent_id

[web2py] Re: GAE + Cloud SQL: Tickets

2013-01-04 Thread Alan Etkin
El jueves, 3 de enero de 2013 11:31:45 UTC-3, Felipe Meirelles escribió: > > Well, the problem is when the ticket is saved, self.db points to uri="google:sql://**:novello-solutionworkshop:novello-solutionworkshop/novello_test"> > > but when load() is called, it points to . AFAIK admin is d

[web2py] Re: SQLFORM.grid Error, changes from 2.2.1 to 2.3.1 - 2.3.2

2013-01-04 Thread Alan Etkin
El viernes, 4 de enero de 2013 19:23:35 UTC-3, Christian Espinoza escribió: > > Hi, In all my webapps I'm working with SQLFORM.grid, and testing with the > new versions I got this error: For debugging, perhaps it would be of help if you could post the relevant part of the app that builds the se

Re: [web2py] Re: error in mysql ?

2013-01-04 Thread Michele Comitini
Possible solutions: 1. Probably Bruno Rocha can help you better, so you can try to post a issue on github. 2. You can find what is the "parent_id" you are trying to insert then create an appropriate record with the needed "id". 3. In case you don't have anything of value in the database just clean

[web2py] Re: error in mysql ?

2013-01-04 Thread samuel bonilla
I can do to fix this problem ? El jueves, 3 de enero de 2013 20:30:53 UTC-5, samuel bonilla escribió: > > this is the error > > (1452, 'Cannot add or update a > child row: a foreign key constraint fails > (`samuel$otra`.`article_category`, CONSTRAINT `article_category_ibfk_1` > FOREIGN KEY (`

[web2py] Re: upload from Edit page

2013-01-04 Thread ArNew
Thanks for the link for multiple attachments. But I am not trying to implement multiple attachments here. Just single attachment from the edit page. On Sunday, December 30, 2012 1:09:59 PM UTC-8, Alan Etkin wrote: > > I suspect you're trying to give a multi-file upload in-the-same-page > soluti

[web2py] Customizing select options in crud.create forms

2013-01-04 Thread Dave Cenker
I have a set of models defined as follows: db.define_table('company', Field('name'), Field('symbol'), Field('approved', 'boolean')) db.define_table('locomotive', Field('manufacturer'), Field('model'), Field('approved', 'boolean'), db.define_table('engine', Field('company', db.compa

Re: [web2py] Re: error in mysql ?

2013-01-04 Thread Michele Comitini
sqlite has no runtime referencial integrity checks, hence you don't get the error. Mysql points out that there is a referential integrity issue in the database. 2013/1/4 samuel bonilla > I'm developing an application based in movuca ( > https://github.com/rochacbruno/Movuca) with sqlite works

[web2py] SQLFORM.grid Error, changes from 2.2.1 to 2.3.1 - 2.3.2

2013-01-04 Thread Christian Espinoza
Hi, In all my webapps I'm working with SQLFORM.grid, and testing with the new versions I got this error: must be string, not listVERSIÓNweb2py™(2, 3, 2, datetime.datetime(2012, 12, 17, 15, 3, 30), 'stable')PythonPython 2.7.3: C:\Python27\python.exeTRACEBACK 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. Tra

[web2py] Re: error in mysql ?

2013-01-04 Thread samuel bonilla
I'm developing an application based in movuca (https://github.com/rochacbruno/Movuca) with sqlite works fine, but when I use mysql generates this error .. I'm doing something wrong? El jueves, 3 de enero de 2013 20:30:53 UTC-5, samuel bonilla escribió: > > this is the error > > (1452, 'Cannot

Re: [web2py] pulsar

2013-01-04 Thread Niphlod
nodejs vs gevent+monkey_patching allows you to USE "EV" (please bear with me, from now on "EV" means just a programming pattern - google for that): apis, websockets, streaming, etc. usually are the best fit for that. Everything that needs either: - a lot of concurrent connections - a lot of ope

[web2py] RuntimeError: Using a recursive select but encountered a broken reference: auth_group

2013-01-04 Thread Ignacio Ocampo
I've an app, I register and user and it's ok. I have 1 instance running with "python web2py.py" at port 8080 (for admin console) ... and I have my httpd.conf configured with WSGI. Both work correctly, but when I try to login in the normal instance (at port 80), I get an error "RuntimeError: Usi

[web2py] Re: web2py reference documentation

2013-01-04 Thread Derek
You can look at this Epydoc: http://www.web2py.com/examples/static/epydoc/index.html On Friday, January 4, 2013 1:37:03 PM UTC-7, rh wrote: > > Hello, > > I have downloaded all ~100 MBs of the docs locally and can browse them > fine. (although I only wanted the latest english docs I got multiple

[web2py] web2py don't create or update tables and fields

2013-01-04 Thread Ignacio Ocampo
I have a weird problem with web2py. It can't create or update tables in MySql. Although I'm using auth.define_tables(username=False, signature=False). I only need to refresh my web browser for changes take effect, right? What am I doing wrong? Thank you. --

[web2py] Re: app about page

2013-01-04 Thread Derek
You are talking about this? http://fluxodecaixa.com.br/ On Friday, January 4, 2013 3:36:28 AM UTC-7, Ramos wrote: > > hello. > what does it mean the graph in the about page under Project progress? > > > Thank you > António > --

[web2py] Re: Possible bug: DAL csv import "unable to parse csv file near ")": syntax error" BUT NO ")" in thefile

2013-01-04 Thread JoeCodeswell
Hi Derek, Thanks for the reply. I just tried these 2 csv's: 'iso','name','printable_name','iso3','numcode' 'UY','URUGUAY','Uruguay','URY','858' 'UZ','UZBEKISTAN','Uzbekistan','UZB','860' 'VU','VANUATU','Vanuatu','VUT','548' 'VE','VENEZUELA','Venezuela','VEN','862' 'VN','VIET NAM','Viet Nam','VNM',

[web2py] Re: Possible bug: DAL csv import "unable to parse csv file near ")": syntax error" BUT NO ")" in thefile

2013-01-04 Thread Derek
You need to have the column names in the first line of the csv. On Friday, January 4, 2013 10:30:08 AM UTC-7, JoeCodeswell wrote: > > i am using Version 2.3.2 (2012-12-17 15:03:30) stable > sorry for no mentioning that before. > > Love and peace, > Joe > > On Friday, January 4, 2013 9:14:53 AM UT

Re: [web2py] pulsar

2013-01-04 Thread Vasile Ermicioi
thank you for your thoughts, may be there are scenarios where evented frameworks shine, but nodejs is a web framework, so in this scenario the main advantage is that requests don't block each other, so my question is regarding only this scenario: what advantage of using nodejs over gevent monkey p

[web2py] Re: Possible bug: DAL csv import "unable to parse csv file near ")": syntax error" BUT NO ")" in thefile

2013-01-04 Thread JoeCodeswell
i am using Version 2.3.2 (2012-12-17 15:03:30) stable sorry for no mentioning that before. Love and peace, Joe On Friday, January 4, 2013 9:14:53 AM UTC-8, JoeCodeswell wrote: > > Dear web2py, > > I am working my way thru the ajax-live-search-auto-complete web2pyslice. > Instead of using insert

[web2py] Possible bug: DAL csv import "unable to parse csv file near ")": syntax error" BUT NO ")" in thefile

2013-01-04 Thread JoeCodeswell
Dear web2py, I am working my way thru the ajax-live-search-auto-complete web2pyslice. Instead of using inserts, i thought i'd use csv to populate the db. When i upload, I get an error flash that says: > "unable to parse csv file near ")": syntax error" BUT THERE'S NO ")" right parenthesis i

Re: [web2py] pulsar

2013-01-04 Thread Niphlod
because for really exploiting evented frameworks you need to code "evented-ly" also your app. Programming languages (also big frameworks like e.g. twisted) that "by default" have strong support for actors, events, light threads, and so on (and also for that reason, generally harder to grasp-cre

Re: [web2py] pulsar

2013-01-04 Thread Vasile Ermicioi
a while ago I saw vert.x (it is on top of jvm) , now that, and a question raised in my mind: why do I need nodejs or evented frameworks, if importing gevent and monkey patching makes everything non blocking? celery and other goods are already in web2py frameworks, so what are your thoughts? --

[web2py] for code snippets

2013-01-04 Thread webpypy
Hae a look at : http://codestagram.com/ --

[web2py] Re: Chapter 8.1.2: Example PGP Encryption doees not work

2013-01-04 Thread Niphlod
according to gluon/tools.py code, the only imports done are from pyme import core, errors from pyme.constants.sig import mode Il giorno venerdì 4 gennaio 2013 17:10:27 UTC+1, mweissen ha scritto: > > Hi, > > I have tried the example from the book chapter 8.1.2 > > from gpgme import pgp > mail.s

Re: [web2py] Update codemirror to V3 on admin

2013-01-04 Thread Mariano Reingart
Thanks! I'll see this ASAP. Best regards, Mariano Reingart http://www.sistemasagiles.com.ar http://reingart.blogspot.com On Fri, Jan 4, 2013 at 4:18 AM, Roberto Perdomo wrote: > Is a good idea, i see that Mariano edited the file ajax_editor.js, is a > great idea integrate this to mi changes. >

[web2py] Chapter 8.1.2: Example PGP Encryption doees not work

2013-01-04 Thread Martin Weissenboeck
Hi, I have tried the example from the book chapter 8.1.2 from gpgme import pgp mail.settings.cipher_type = 'gpg' mail.settings.sign = True mail.settings.sign_passphrase = 'your passphrase' mail.settings.encrypt = True I have tried different things: import gpgme import pyme No errors! But from

[web2py] Re: session[id]

2013-01-04 Thread Annet
Hi Derek, It seems to me that you are storing data in the session which should > actually be linked to the auth_user table. > No, this has nothing to do with Auth, it's about a node drive application, with data needed in every view stored in session. Kind regards, Annet --

Re: [web2py] pulsar

2013-01-04 Thread Niphlod
yep. Benchmarks apart, if "reacts" in an evented way could be the only thing working like that in Windows natively (a user a while ago posted in this list a repackage of tornado called motor that worked very well too. Sadly, not really largely supported). I'm curious about the implications of r

[web2py] Putting apps together

2013-01-04 Thread Sverre
I have an idea to write several applications or modules and put them together. For example a central authentication app and a maintenance app. Should I do severals apps or programming modules? How would you do this? --

Re: [web2py] pulsar

2013-01-04 Thread Alec Taylor
Interesting. Would be useful to also compare it with other similar—or subset covering—functionality frameworks such as: - Tornado - Twisted Matrix Or any of these frameworks: http://wiki.python.org/moin/Concurrency#Frameworks On

Re: [web2py] pulsar

2013-01-04 Thread António Ramos
Is this like nodejs? 2013/1/4 Massimo Di Pierro > http://packages.python.org/pulsar/overview.html > > -- > > > > --

[web2py] pulsar

2013-01-04 Thread Massimo Di Pierro
http://packages.python.org/pulsar/overview.html --

[web2py] Re: REF: Change order of fields in a form??!

2013-01-04 Thread Anthony
SQLFORM takes a "fields" argument, which can be a list of field names to include in the order you want them. Anthony On Friday, January 4, 2013 2:22:51 AM UTC-5, software.ted wrote: > > How do you change the order of the form after it has been created using: > > form = SQLFORM(db.table) > > Also

[web2py] Re: nothing happens after custom form submission

2013-01-04 Thread ajith c t
Hi all, I got the solution. I changed the def myregister() function into def register(). Its working fine now. Previously it wasn't working, and the only thing I did new was just doing a clean from admin site menu. There is no point in clearing your browser history or restarting your shell. T

Re: [web2py] Re: error in mysql ?

2013-01-04 Thread Michele Comitini
I try to translate... Seems that the new line is referencing a non existent element. As far as I understand the table is a self referencing table. article_category.parent_id -> article_category.id parent_id has a value that is not equal to any id of article_category mic 2013/1/4 Massimo Di

[web2py] app about page

2013-01-04 Thread António Ramos
hello. what does it mean the graph in the about page under Project progress? Thank you António --