[web2py] Condition in view weird behaviour

2012-07-06 Thread Annet
In a view I have the following code: div class=span4 box box-pad radius-small {{if session.cal.lesrooster or session.cal.event_list or session.cal.cursusrooster:}} {{include 'site/calendar.html'}} {{pass}} {{include 'site/promoUnit.html'}} /div !-- /span -- Despite

Re: [web2py] Re: How to install web2py on webfaction

2012-07-06 Thread khuc viet Cuong
hi dont put your thing into there, coz we dont know how web2py made its password so it never works quickdirty: 1- Run web2py on your local computer; give it a password when it asks. 2- Go to web2py folder on local computer; copy the file: parameters_8000.py, to a new place and rename it to :

Re: [web2py] Re: Minimum memory requirements?

2012-07-06 Thread Vasile Ermicioi
never saw such error, but multiple interpreter mode could mean you didn't installed uwsgi using specific python ( in my case, I used python2.7) wget http://projects.unbit.it/downloads/uwsgi-xx.tar.gz tar xvzf uwsgi-xx.tar.gz cd uwsgi-xx /home/myusername/bin/python2.7 uwsgiconfig.py --build mv

[web2py] How to use twitter bootstrap style

2012-07-06 Thread orsomannaro
In a SQLFORM form I set: buttons = [ INPUT(_type='submit', _value='go', _class='btn btn-primary'), INPUT(_type='button', _value='info', _class='btn btn-info'), ] but buttons have not bootstrap style (btn-primary button are not blue, there are no space between the two button). My be I must

[web2py] Re: How to use twitter bootstrap style

2012-07-06 Thread Annet
This works for me: In web2py_ajax.html: response.files.insert(3,URL('static','js/bootstrap.min.js')) response.files.insert(4,URL('static','css/bootstrap.min.css')) and in the function: form=SQLFORM(..) form.element(_type='submit')['_class']='btn btn-primary'

Re: [web2py] Re: How to use twitter bootstrap style

2012-07-06 Thread orsomannaro
Il 06/07/2012 10:52, Annet ha scritto: This works for me: but not for me :( my web2py_ajax.html (I tried several changes): ... {{ response.files.insert(0,URL('static','js/jquery.js')) response.files.insert(1,URL('static','css/calendar.css'))

Re: [web2py] Re: How to use twitter bootstrap style

2012-07-06 Thread stefaan
and this change a lot of things but not buttons style, so I think that's not the corrects way ... Not sure if it would solve your problem, but sometimes you need to clear the browser cache to see the effect of changes in css.

[web2py] Re: Web Development Introduction Based On Web2py

2012-07-06 Thread Luc Chase
Marco, What does 'very low level' subject matter mean in this context? Is that to mean 'very detailed'? -- Luc. On Tuesday, 20 December 2011 18:33:21 UTC, ma...@rockiger.com wrote: I published the first 3 chapters of my web development tutorial at http://killer-web-development.com It's

[web2py] Re: debugging procedure

2012-07-06 Thread MJo
On Saturday, June 30, 2012 5:38:46 PM UTC+3, Cliff Kachinske wrote: Yes, the debugger is there on the application page. Works very well. Latest Version 2.00.0 (2012-07-04 23:30:47) dev version is broken. While accessing http://127.0.0.1:8000/admin/debug/interact it gives invalid view

[web2py] Multiple login pages - weird behaviour

2012-07-06 Thread Marek Mollin
I ran into very odd behaviour on web2py side. Say I have an application and want my login in several places (templates are different so I cannot just do some creative routing). Structure for logins goes like that. /appname/order/signin /appname/signin/index /appname/place/signin I setup my

Re: [web2py] Re: Standalone DAL leaves mysql connections opened

2012-07-06 Thread Daniel Gonzale
I will try this weekend. Massimo did you received the code of the apllication? Thanks everyone El 06/07/2012, a las 04:32, Massimo Di Pierro massimo.dipie...@gmail.com escribió: Looks like I prematurely close the issue. There is now a db.close() in trunk. Please check it out. massimo

[web2py] Re: Multiple login pages - weird behaviour

2012-07-06 Thread Marek Mollin
I understand it should work, but have hardtime debugging it. Just need ideas where to look for this wierd redirection. W dniu piątek, 6 lipca 2012 12:51:05 UTC+2 użytkownik Marek Mollin napisał: I ran into very odd behaviour on web2py side. Say I have an application and want my login in

[web2py] web2py vs ROR

2012-07-06 Thread murtaza52
Hi, I am considering three frameworks for developing our commercial applications- 1) web2py (choice #1) 2) ROR 3) Play framework While my research I was intrigued by Massimo's post where he says that he would pick ROR over any of the current python frameworks. My question is how does web2py

[web2py] Re: MySQL migration fails adding unique=

2012-07-06 Thread juaneduardo
Ok. This is a problem only with Mysql? with ProgreSQL too? Eduardo El jueves, 5 de julio de 2012 22:40:56 UTC-4, Massimo Di Pierro escribió: It is not like that field level migrations do not work. They work if, for example you change a field type. They do not work it you change an

[web2py] Re: Multiple login pages - weird behaviour

2012-07-06 Thread Marin Pranjić
Hello Marek, can you please try: auth.settings.controller = 'order' or: auth = Auth(..., controller = 'order') Regards, Marin Dana petak, 6. srpnja 2012. 12:51:05 UTC+2, korisnik Marek Mollin napisao je: I ran into very odd behaviour on web2py side. Say I have an application and

Re: [web2py] please help us test web2py

2012-07-06 Thread Bruno Rocha
today I will test all my apps then I report here. http://zerp.ly/rochacbruno Em 06/07/2012 01:52, Massimo Di Pierro massimo.dipie...@gmail.com escreveu: There are many changes in DAL. If you use MySQL or MSSQL or PostgreSQL please help us check the new trunk did not break anything. We have

[web2py] Re: Multiple login pages - weird behaviour

2012-07-06 Thread Marek Mollin
Works splendid! Also as an inline within controller W dniu piątek, 6 lipca 2012 13:51:39 UTC+2 użytkownik Marin Pranjić napisał: Hello Marek, can you please try: auth.settings.controller = 'order' or: auth = Auth(..., controller = 'order') Regards, Marin Dana petak, 6. srpnja

Re: [web2py] please help us test web2py

2012-07-06 Thread vinicius...@gmail.com
Could you, please, tell us what should be tested? What has changed? By the way, what is salt password? I searched dictionary, but didn't find a good translation. Sorry my poor English. -- Vinicius Assef On 07/06/2012 01:52 AM, Massimo Di Pierro wrote: There are many changes in DAL. If you

[web2py] Select with text field

2012-07-06 Thread Marcello
Hello all, I have a table with two text fields. I'm trying to make a select with about 7,000 records in a console. My memory goes up, until full, and then the process is killed If I comment those text fields in the table definition and try again, it run the select without problem. In the

Re: [web2py] web2py vs ROR

2012-07-06 Thread ANIKET KADAM
nice question, but i thing i like in web2py is the installation process its so simple but in rails it somewhat u know less easy than web2py. On Fri, Jul 6, 2012 at 10:28 AM, murtaza52 murtaza.hus...@sevenolives.comwrote: Hi, I am considering three frameworks for developing our commercial

Re: [web2py] please help us test web2py

2012-07-06 Thread Alec Taylor
By the way, what is salt password? I searched dictionary, but didn't find a good translation. Sorry my poor English. http://en.wikipedia.org/wiki/Salt_%28cryptography%29 Basically means adding some padding to increase the strength of the encryption without having the user create a longer

Re: [web2py] Re: Web Development Introduction Based On Web2py

2012-07-06 Thread Luc Chase
OK so you mean from beginner level. Thanks. I as soon as the sites is accessible again I will try to give you good feedback. On Jul 6, 2012 11:18 AM, Luc Chase l...@lucchase.com wrote: Marco, What does 'very low level' subject matter mean in this context? Is that to mean 'very detailed'? --

Re: [web2py] please help us test web2py

2012-07-06 Thread Richard Vézina
I try and report back! Richard On Fri, Jul 6, 2012 at 8:59 AM, Alec Taylor alec.tayl...@gmail.com wrote: By the way, what is salt password? I searched dictionary, but didn't find a good translation. Sorry my poor English. http://en.wikipedia.org/wiki/Salt_%28cryptography%29 Basically

Re: [web2py] Select with text field

2012-07-06 Thread Richard Vézina
What the nature of the data in size? Could you show us your select statment? Richard On Fri, Jul 6, 2012 at 8:41 AM, Marcello parro...@gmail.com wrote: Hello all, I have a table with two text fields. I'm trying to make a select with about 7,000 records in a console. My memory goes up,

Re: [web2py] web2py vs ROR

2012-07-06 Thread Vasile Ermicioi
he would pick ROR over any of the current python frameworks http://www.ruby-forum.com/topic/209343 not over *any*, but over *most* your affirmation is misleading

Re: [web2py] Re: Thinking of building a bug tracker...

2012-07-06 Thread Richard Vézina
I am pretty sure those things are pretty easy to implement... Why not just add them in the issue on google code and if someone has time he could just work on it. Massimo can't support all the app he create to show us the way to go and ask for poeple to take paternity of project to make sure they

[web2py] can CAS provider use a different database to apps?

2012-07-06 Thread Horus
I desire to have multiple apps. one of them will be a CAS provider My questions are: 1. Can these app have different databases i.e db = DAL('postgres://user:password@localhost:5432/cas', migrate=True), db = DAL('postgres://user:password@localhost:5432/db1', migrate=True), db =

Re: [web2py] please help us test web2py

2012-07-06 Thread Richard Vézina
Hello, This line in my app failed with type 'exceptions.KeyError' '*table_name*' dblabels_en = cache.ram('dblabels_en', lambda: dict([(r.*table_name* + r.column_name, r.column_name_en_ui)\ for r in db().select(db.dict_database.ALL)]), time_expire=3600) Is the way row

Re: [web2py] please help us test web2py

2012-07-06 Thread Richard Vézina
What I have to do to make it works : for r in db().select(db.dict_database.ALL): print r['dict_database.table_name'] I have to use the table name and the field name as key to get row field data, the worst is that it needs double quoting the table name and field name and quote both... It

Re: [web2py] Condition in view weird behaviour

2012-07-06 Thread Richard Vézina
Seems a little bug in template parser to me! Richard On Fri, Jul 6, 2012 at 3:17 AM, Annet anneve...@googlemail.com wrote: In a view I have the following code: div class=span4 box box-pad radius-small {{if session.cal.lesrooster or session.cal.event_list or session.cal.cursusrooster:}}

[web2py] Re: How to use twitter bootstrap style

2012-07-06 Thread orsomannaro
Il 06/07/2012 10:31, orsomannaro ha scritto: In a SQLFORM form I set: buttons = [ INPUT(_type='submit', _value='go', _class='btn btn-primary'), INPUT(_type='button', _value='info', _class='btn btn-info'), ] but buttons have not bootstrap style (btn-primary button are not blue, there are no

[web2py] Re: Condition in view weird behaviour

2012-07-06 Thread Anthony
{{include ...}} is not Python code but a web2py template language directive, so it is processed *before* any Python is processed. So, the content of site/calendar.html will be included in the parsed template no matter what. However, that content will still end up inside an if block, so should

Re: [web2py] Select with text field

2012-07-06 Thread Marcello Parra
Hello, Richard, I save 2 HTML pages. SELECT processo.id, processo.na, processo.na_limpo, processo.nu, processo.nu_limpo, processo.html, processo.html1, processo.processado, processo.processado2, processo.processado_dia, processo.origem, processo.classe, processo.fase, processo.assunto,

Re: [web2py] Select with text field

2012-07-06 Thread Richard Vézina
Are you running this request as raw SQL with executesql?? http://web2py.com/books/default/chapter/29/6#executesql If your request is slow at backend level, maybe you have a problem with your design... What is your backend? Richard On Fri, Jul 6, 2012 at 11:12 AM, Marcello Parra

[web2py] Re: can CAS provider use a different database to apps?

2012-07-06 Thread Horus
Additionally... I currently have three apps, including CAS server the case server app also contain other tables db.define_table('base_tags', Field('name', 'string', label='Tag', length=64, required=True, notnull=True), format='%(name)s' ) and

Re: [web2py] [Version 1.96.4] DAL timing issue.

2012-07-06 Thread Richard Vézina
Thought that db().select(db.table.ALL) was better, sorry for miss leading you Santiago. Richard On Thu, Jul 5, 2012 at 5:43 PM, Anthony abasta...@gmail.com wrote: Also, your request should not be : db().select(db.voting_center**) instead of db(db.voting_center).**select() If he wants to

[web2py] Re: can CAS provider use a different database to apps?

2012-07-06 Thread David Marko
Well CAS is for central authentication, not for sharing database tables ... . The error you got simply says that your second app cant see tables from cas provider app.

[web2py] Re: Condition in view weird behaviour

2012-07-06 Thread Annet
Are you saying it is getting rendered even when the if condition is False? Yes, this is what happens. Despite session.cal.lesrooster, session.cal.event_list and session.cal.cursusrooster being False, site/calendar.html is being included. When I replace {{include

Re: [web2py] Select with text field

2012-07-06 Thread Marcello Parra
I'm not using executesql... I'm trying just: query = q_processos.select() It seems to load all data from database... On Fri, Jul 6, 2012 at 12:40 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: Are you running this request as raw SQL with executesql??

[web2py] Re: How to use twitter bootstrap style

2012-07-06 Thread Annet
To change the value of a button, this should work: form.element(_type='submit')['_value']='Login' To add the info button: form[0][-1][1].append(INPUT(_type=button,_value=Info,_onclick=document.location='%s' %URL('function'))) To add the classes: form.element(_type='submit')['_class']='btn

[web2py] Re: can CAS provider use a different database to apps?

2012-07-06 Thread Horus
Yes I understand CAS is for central auth, so i have let the cas provider be the app that takes care of login, registration, signup, what have you; as it should the tables are being created, so I am assuming that the other apps should be able to access the tables if they exist all in the same

[web2py] Re: Web2py hanging with no errors in the log

2012-07-06 Thread msmagoo
Unfortunately those logs did not tell me anything I didn't already know. Besides errors that came up while I was developing and testing, there was nothing new in there. The application is still crashing once a day and nothing in the console output or the error page of the site have told me

[web2py] paymentech: post request

2012-07-06 Thread Adi
Could anyone please advise if I'm doing this correctly? I'm trying to post a request to Paymentech gateway. When I try the link in a browser, it responds fine (https://orbitalvar1.paymentech.net/authorize:443), but using post as bellow returns an error. Most likely I'm doing something wrong,

Re: [web2py] html5 background video script

2012-07-06 Thread howesc
i use jPlayer and it's timing events to track a variety of statistics around audio that i play. i suspect it works just as well for video. On Thursday, July 5, 2012 3:01:46 AM UTC-7, encompass wrote: There are usually javascript plugins that you can have handle any function you like when

Re: [web2py] Re: can CAS provider use a different database to apps?

2012-07-06 Thread vinicius...@gmail.com
Short answer: manually. You cannot connect (join or make a relation) fields among different databases. On 07/06/2012 02:16 PM, Horus wrote: Yes I understand CAS is for central auth, so i have let the cas provider be the app that takes care of login, registration, signup, what have you; as

Re: [web2py] Select with text field

2012-07-06 Thread vinicius...@gmail.com
How much data (in KB ou MB) are loaded into these text fields? Could you show us your model file where you execute this define_table()? (aka db.py) On 07/06/2012 02:04 PM, Marcello Parra wrote: I'm not using executesql... I'm trying just: query = q_processos.select() It seems to load

[web2py] Re: web2py vs ROR

2012-07-06 Thread pbreit
I think the main thing is that Rails is much more prevalent and so easier to sell to other team members, recruits, etc. Web2py is much easier to use.

Re: [web2py] please help us test web2py

2012-07-06 Thread Alec Taylor
On Fri, Jul 6, 2012 at 2:52 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: There are many changes in DAL. If you use MySQL or MSSQL or PostgreSQL please help us check the new trunk did not break anything. We have salted password auth = Auth(...,salt=True). Check it out. We also have

[web2py] Re: web2py vs ROR

2012-07-06 Thread Cliff Kachinske
I tried ROR. As a relative noob to both Python and Ruby I will testify that Python allows much more concise and readable code. This means less typing and easier debugging. This means, in turn, that the time from project start to final payment checkpoint is shorter and the ongoing maintenance

Re: [web2py] Re: can CAS provider use a different database to apps?

2012-07-06 Thread Horus
Right viniciusban i agree. i don't want to perform joins across databases explicitly i have never seen that in SQL BUT I can use the user id from the CAS provider to refer to other tables in a database let's say the *CAS* provider has this table called *auth_user* with a field called *id*.

[web2py] Re: Web2py hanging with no errors in the log

2012-07-06 Thread Cliff Kachinske
An infinite loop causes this behavior. Don't Ask Me How I Know This :). Also, with Postgres, I *think* this has happened because certain migrations cause existing data in a field to fail a new constraint. This would happen if you make notnull=True on a field that already contains null.

Re: [web2py] Re: can CAS provider use a different database to apps?

2012-07-06 Thread Horus
*I will put all my tables in one app and call it a day!* On Friday, July 6, 2012 2:40:32 PM UTC-4, Horus wrote: Right viniciusban i agree. i don't want to perform joins across databases explicitly i have never seen that in SQL BUT I can use the user id from the CAS provider to refer to

[web2py] Anyone using Sunburnt for Apache SOLR access from web2py?

2012-07-06 Thread David Marko
Anyone using Sunburnt for Apache SOLR access from web2py? ( http://opensource.timetric.com/sunburnt ) Any caveats I should expect or no problems on the path? (I mean sunburt vs./in web2py) Thank you ... David

[web2py] Website running extremely slow

2012-07-06 Thread wdtatenh
My website is deployed on webfaction. I've compiled the application before uploading. Doesn't seem to matter what page is requested, we're talking about 3 to 5 seconds to download (I have high speed internet). Any thoughts? When I go to the normal webfaction admin pages, I don't have these

Re: [web2py] Re: can CAS provider use a different database to apps?

2012-07-06 Thread vinicius...@gmail.com
That's a good question, Horus. :-/ I haven't tried that. Theoretically, db_cas.base_tags field could be referenced because it needs the db object. Let us know about your progress on it. -- Vinicius Assef On 07/06/2012 03:40 PM, Horus wrote: Right viniciusban i agree. i don't want to

[web2py] Re: Saving an image from another database into your database

2012-07-06 Thread Massimo Di Pierro
Notice that these two lines: Field('image_file','blob'), Field('image_upload','upload',uploadfield= Field('image_file','blob')) should be Field('image_file','blob'), Field('image_upload','upload',uploadfield= 'image_file'), or simply Field('image_upload','upload',uploadfield=

Re: [web2py] Re: Standalone DAL leaves mysql connections opened

2012-07-06 Thread Massimo Di Pierro
I do not recall. Can you resend it please. My personal inbox is a bit messy. On Friday, 6 July 2012 05:51:04 UTC-5, demetrio wrote: I will try this weekend. Massimo did you received the code of the apllication? Thanks everyone El 06/07/2012, a las 04:32, Massimo Di Pierro

[web2py] Re: MySQL migration fails adding unique=

2012-07-06 Thread Massimo Di Pierro
What I said was wrong. I had to look at the source code and what it does is a bit more complex. If the SQL used for the original field definition is different than the SQL that would be used to define the field in the current model: If sqlite: ignore it elif the field type is 'reference',

Re: [web2py] please help us test web2py

2012-07-06 Thread Massimo Di Pierro
I have reverted one of the changes and this should now work. What I need to know is make sure we did not break backward compatibility. On Friday, 6 July 2012 09:23:15 UTC-5, Richard wrote: What I have to do to make it works : for r in db().select(db.dict_database.ALL): print

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

2012-07-06 Thread Ricardo A . Salgado
I'm dealing with the same situation, however, I wonder if there is a way to do that in a more general fashion, like simply: @service.soap('GetQuote1', returns={'result':dict}, args={'symbol':str}) ... .. . and then: return someDictVariable

[web2py] Re: please help us test web2py

2012-07-06 Thread Omi Chiba
Tested DAL for MSSQL and it works fine ! I noticed other things... 1. button look for the welcome app What Paolo changed (Change button look back to previous regular link style) is not applied. https://groups.google.com/forum/#!topic/web2py/qZn1TQqgWCk 2. Remove Share link from welcome app I

[web2py] Re: web2py vs ROR

2012-07-06 Thread Massimo Di Pierro
As pointed out what I said is that I would pick ROR of most python frameworks. In general I prefer to program in Python rather then Ruby. Indentation makes the code more readable and there are more libraries. Ruby is used in Rails but not much else. Python is used for all kind of things

[web2py] Re: new feature in trunk ... help test

2012-07-06 Thread Fabiano Faver
Will it be implemented in 2.0? I would like to use something like this, but I don`t know how to do it yet. Any tips that I can build a manager_group that can manage who belongs to the other groups? Em domingo, 29 de janeiro de 2012 23h17min06s UTC-2, Massimo Di Pierro escreveu:

[web2py] bug in markmin (?)

2012-07-06 Thread Jose
Referring to the thread: new feature in trunk: better markmin if my text is: @{borro/default/test} [app/controller/function] markmin returns: http://127.0.0.1:8000/borro/default/borro/default/test [http://127.0.0.1:8000/app/controller/app/controller/function] Jose

Re: [web2py] Re: Standalone DAL leaves mysql connections opened

2012-07-06 Thread Daniel Gonzalez Zaballos
Mail with the code sended :) 2012/7/6 Massimo Di Pierro massimo.dipie...@gmail.com: I do not recall. Can you resend it please. My personal inbox is a bit messy. On Friday, 6 July 2012 05:51:04 UTC-5, demetrio wrote: I will try this weekend. Massimo did you received the code of the

Re: [web2py] Best deployment scenario under Windows

2012-07-06 Thread Jim S
Thanks for that Richard. I took your advice and got it working with Apache, mod_wsgi, mod_ssl, and redirection. I have it set now so all activity is forced to SSL and created my own certificate. Easy step-by-step instructions for the cert creation I found here:

[web2py] Re: Website running extremely slow

2012-07-06 Thread LightDot
Just by the sounds of it, I doubt lack of memory would cause such behaviour. Can't say what would though, without knowing what your application does and how is it programmed to do that. There is basically no information to troubleshoot with. Regards On Friday, July 6, 2012 8:51:38 PM UTC+2,

[web2py] Re: Saving an image from another database into your database

2012-07-06 Thread RCTYCO
I believe i found my problem. The problem is with MySQL. I noticed in the MySQL._db._adapter.uploads_in_blob = FALSE. The database adapter doesn't allow uploads_in_blob. MySQLAdapter* *inherents the uploads_in_blob of FALSE from BaseAdapter. Do you know why the uploads_in_blob isn't set to

[web2py] Re: Website running extremely slow

2012-07-06 Thread Matt
Are migrations enabled? In your db.py try changing your DAL to explicitly turn it off. I.e. DAL('CONNECTION STRING', migrate_enabled = False, fake_migrate_all = False) Might do the trick, Matt On Saturday, July 7, 2012 6:51:38 AM UTC+12, wdtatenh wrote: My website is deployed on webfaction.

Re: [web2py] Re: Website running extremely slow

2012-07-06 Thread Bruce Wade
How many tables do you have defined in db.py? On Fri, Jul 6, 2012 at 2:32 PM, Matt mjwat...@gmail.com wrote: Are migrations enabled? In your db.py try changing your DAL to explicitly turn it off. I.e. DAL('CONNECTION STRING', migrate_enabled = False, fake_migrate_all = False) Might do the

Re: [web2py] Best deployment scenario under Windows

2012-07-06 Thread Richard Vézina
On Fri, Jul 6, 2012 at 4:44 PM, Jim S j...@qlf.com wrote: Thanks for that Richard. I took your advice and got it working with Apache, mod_wsgi, mod_ssl, and redirection. I have it set now so all activity is forced to SSL and created my own certificate. Easy step-by-step instructions for

[web2py] Re: [web2py:7053] Re: UnicodeDecodeError when using GAE datastore

2012-07-06 Thread Matt
Hi Massimo, What's the current state of this particular problem? I'm having similar issues at the moment. For me it's occurring when windows users are cutting and pasting text into web2py forms which contain cp1252 encoded characters. I've mentioned this in a very recent posting.

[web2py] Re: Best practice using scheduler as a task queue?

2012-07-06 Thread Michael Toomim
This is a nice solution, and clever, thanks! The upside (compared to postgres locks, as discussed above) is this works for any database. The downside is it creates a whole new table. On Thursday, July 5, 2012 2:49:36 PM UTC-7, nick name wrote: This might have been solved in this week, but in

[web2py] Re: bug in markmin (?)

2012-07-06 Thread Massimo Di Pierro
This is correct. It expacts function/a/r/g/s or /app/controller/function On Friday, 6 July 2012 15:28:01 UTC-5, Jose wrote: Referring to the thread: new feature in trunk: better markmin if my text is: @{borro/default/test} [app/controller/function] markmin returns:

[web2py] Re: Saving an image from another database into your database

2012-07-06 Thread Massimo Di Pierro
That only sets the default behavior. Only on systems that do not have a writable filesystem (like on GAE and couchdb) files go in blob by default. On relational databases, uploads are stored in files, not in blobs (by default). On Friday, 6 July 2012 16:22:36 UTC-5, RCTYCO wrote: I believe

[web2py] Re: bug in markmin (?)

2012-07-06 Thread Jose
Hi Massimo I do not understand. I am giving you just that app/controller/function, but the url that creates, is not correct: app/controller/app/controller/function repeats app and controller. Another thing, this does not work for me: embed:@{} Jose

[web2py] Re: Website running extremely slow

2012-07-06 Thread pbreit
I actually think memory could definitely be the culprit. On a VPS I switched from 256mb to 512mb and noticed a dramatic improvement. I'm not really sure how to check my system's memory usage, though. I'd be surprised if it were migrations or tables. Have you tried just running welcome or

[web2py] Re: Alternative to Janrain: in pure Python

2012-07-06 Thread Demian Brecht
Since the OP, I've also added handling and examples for: - GitHub - Stack Exchange - Instagram - bitly

[web2py] How to use button instead of input in SQLForm

2012-07-06 Thread Andrew Evans
Hello I am trying to figure out how to replace the submit button in SQLFORM I would like to replace with button id=px-submit type=submitUpload/button and add button id=px-clear type=resetClear/button My controller is def index(): form = SQLFORM(db.music2) if

Re: [web2py] Re: [Version 1.96.4] DAL timing issue.

2012-07-06 Thread Anthony
Hmm, not sure what's going on. What happens if you remove the virtual field? On Thursday, July 5, 2012 5:25:55 PM UTC-4, Santiago wrote: db.executesql(db(db.voting_center)._select()) takes only a few seconds It has one virtual field, but it is lazy. I think it is not necessary, but I'm

[web2py] Re: How to use button instead of input in SQLForm

2012-07-06 Thread Massimo Di Pierro
try form[0][-1][1].components = [ TAG.button('Upload', _id=px-submit,_type=submit), TAG.button('Clear',_id=px-clear,_type=reset), ] or you can use a custom form. On Friday, 6 July 2012 17:09:41 UTC-5, Andrew Evans wrote: Hello I am trying to figure out how to replace the submit button in

[web2py] Re: bug in markmin (?)

2012-07-06 Thread Massimo Di Pierro
The comment in markmin2html.py is incorrect. The behaviour is correct. The syntax is not @{app/controller/function} the syntax is @{function/args} The 'app/controller/' part is put in automatically. That is the all point. When you use markmin you are not supposed to know the name of the app

[web2py] Re: Web2py hanging with no errors in the log

2012-07-06 Thread Maggs
That's an excellent theory and would make total sense, except I can't see where there could possibly be an infinite loop as I only loop through objects or db results. And I'm using mysql, not postgres. And I have verified that there are no nulls where I have a notnull=True set just to be sure.

[web2py] Re: bug in markmin (?)

2012-07-06 Thread Jose
Ok, I understand. Thank you very much Jose

[web2py] Re: Condition in view weird behaviour

2012-07-06 Thread Anthony
I cannot reproduce the problem. If I create a condition that fails, the content of the included file does not display. Are you absolutely certain the condition is evaluating to False and/or the content in question is being included? Maybe pack and attach a minimal app that reproduces the

[web2py] Re: {{=LOAD()}} and JavaScript function

2012-07-06 Thread Anthony
OK, now I see. Maybe just add a call to web2py_component() to the document ready handler: {{if show_tab:}} script type=text/javascript $(document).ready(function(){ web2py_component('{{=URL('site', show_function, args=session.id)}}',show_tab ); $('a[href=#{{=show_tab}}]').tab('show'); });

[web2py] Re: Alternative to Janrain: in pure Python

2012-07-06 Thread Massimo Di Pierro
Hello Demian, I do not understand your comment. Is there code we can look at? On Friday, 6 July 2012 10:36:57 UTC-5, Demian Brecht wrote: Since the OP, I've also added handling and examples for: - GitHub - Stack Exchange - Instagram - bitly

Re: [web2py] Re: Standalone DAL leaves mysql connections opened

2012-07-06 Thread Massimo Di Pierro
Meanwhile, can you check the new db.close() in trunk? On Friday, 6 July 2012 15:40:57 UTC-5, demetrio wrote: Mail with the code sended :) 2012/7/6 Massimo Di Pierro massimo.dipie...@gmail.com: I do not recall. Can you resend it please. My personal inbox is a bit messy. On

[web2py] Re: please help us test web2py

2012-07-06 Thread Massimo Di Pierro
On Friday, 6 July 2012 14:48:31 UTC-5, Omi Chiba wrote: Tested DAL for MSSQL and it works fine ! I noticed other things... 1. button look for the welcome app What Paolo changed (Change button look back to previous regular link style) is not applied.

Re: [web2py] File name too long?

2012-07-06 Thread Jonathan Lundell
On 6 Jul 2012, at 6:42 PM, Bruno Rocha wrote: Recently, many users of a social site which uses Movu.ca (http://www.menuvegano.com.br) are trying to upload pictures taken from facebook, and that pictures has long file names, which leads in to this kind of error: File name limits are

Re: [web2py] File name too long?

2012-07-06 Thread Bruno Rocha
Ubuntu server 11.04 On Fri, Jul 6, 2012 at 10:50 PM, Jonathan Lundell jlund...@pobox.comwrote: On 6 Jul 2012, at 6:42 PM, Bruno Rocha wrote: Recently, many users of a social site which uses Movu.ca ( http://www.menuvegano.com.br) are trying to upload pictures taken from facebook, and that

Re: [web2py] File name too long?

2012-07-06 Thread Bruno Rocha
Ubuntu server 11.04 and Postgres On Fri, Jul 6, 2012 at 11:12 PM, Bruno Rocha rochacbr...@gmail.com wrote: Ubuntu server 11.04 On Fri, Jul 6, 2012 at 10:50 PM, Jonathan Lundell jlund...@pobox.comwrote: On 6 Jul 2012, at 6:42 PM, Bruno Rocha wrote: Recently, many users of a social site

[web2py] Re: File name too long?

2012-07-06 Thread Massimo Di Pierro
If you set the length attribute of the uploadfield the filename will be truncated accordingly. As jonathan says, the length of uploadfield is filesystem dependent. Set it to 128 or 256 to be safe. On Friday, 6 July 2012 20:42:50 UTC-5, rochacbruno wrote: Hi! Recently, many users of a

Re: [web2py] Customizing Auth to work with legacy db app

2012-07-06 Thread Jerry
Hi Vinicius, Thank you for the informed response and relating your experiences. You have great ideas for dealing with this issue and helped me decide how to proceed. I will try to customize Auth and use it as you have done. Muchas gracias Senor!! Jerry. On Thursday, July 5, 2012 4:24:30 PM

[web2py] Re: File name too long?

2012-07-06 Thread Anthony
If you set the length attribute of the uploadfield the filename will be truncated accordingly. As jonathan says, the length of uploadfield is filesystem dependent. Set it to 128 or 256 to be safe. Currently, it defaults to 512 characters (same as a string field).

Re: [web2py] Re: File name too long?

2012-07-06 Thread Jonathan Lundell
On 6 Jul 2012, at 8:26 PM, Anthony wrote: If you set the length attribute of the uploadfield the filename will be truncated accordingly. As jonathan says, the length of uploadfield is filesystem dependent. Set it to 128 or 256 to be safe. Currently, it defaults to 512 characters (same as

Re: [web2py] Re: File name too long?

2012-07-06 Thread Anthony
Also, keep in mind that the encoding doubles the original filename length, plus the table name, field name, and a 16 character uuid fragment are added. Anthony