Re: [web2py] Re: available Databases and Tables empty in 2.0.6

2012-09-03 Thread Anthony
General warning: upgrading the framework does not update any of the framework specific files in the application folder, such as appadmin.py, appadmin.html, web2py_ajax.html, web2py.js, and the generic views, so when you upgrade, you may have to manually copy some of those files if they have

[web2py] Re: Buttons not styled the Bootstrap way.

2012-09-03 Thread Annet
Again, setting formstyle='bootstrap' might take care of that. I didn't want to repeat myself, I searched the group and read Massimo's announcement https://groups.google.com/forum/?fromgroups=#!topic/web2py/tmM5VbYcPrQ but couldn't find how the apply bootstrap form styles in web2py :-(

Re: [web2py] Re: web2py 2.0.2 is out

2012-09-03 Thread Annet
Hi Alec, Thanks for providing me with this code. Also will need to add in proper success ones as well. I'll get to it within a week then send a pull request I'll look forward to that. Kind regards, Annet --

[web2py] Re: 2.0.6 on GAE - Routing issues and ticket unrecoverable

2012-09-03 Thread Udi Milo
I've reinstalled the distribution and now I do get a ticket when I fabricate an error, but when I go to: http://127.0.0.1:8080/admin/default/ticket/welcome/127.0.0.1.2012-09-03.04-35-34.686f53b3-db23-4cf7-82bb-0af5c0eee05d I get: invalid function (default/admin) Which means that somehow it

[web2py] Re: Styling forms

2012-09-03 Thread Annet
Even when you do SQLFORM(..., formstyle='bootstrap') , the auto generated forms still come out looking very terrible. On Mac in Safari, Firefox and Chrome they don't look that bad. However, this code no longer adds a cancel and or reset button to the form:

[web2py] Re: grid - hiding reconds found count

2012-09-03 Thread Mandar Vaze
I understand this is quite old thread - posting so that it may be relevant for others .. While I was using about Version 2.00.0 (2012-07-26 06:06:10) dev from github, instead of *grid[0][2]* I had to use *grid[0][1]* When I upgraded to Version 2.0.2 (2012-08-30 04:08:18) stable - The above

[web2py] type='date' in form type='text'

2012-09-03 Thread Annet
In a table definition I have: Field('birthday',type='date',requires=IS_EMPTY_OR(IS_DATE(format='%Y-%m-%d')),represent = lambda v: v.strftime('%d/%m/%Y') if v else '') form=SQLFORM.factory(db.person, ...) renders a form in which the field birthday isn't of type date but of type text, as a

[web2py] Re: Styling forms

2012-09-03 Thread Anthony
However, this code no longer adds a cancel and or reset button to the form: form[0][-1][1].append(INPUT(_type=button,_value=Cancel,_onclick=javascript:history.go(-1);)) form[0][-1][1].append(INPUT(_type=reset,_value=Reset)) Why not? The structure of the bootstrap form is different

[web2py] Re: type='date' in form type='text'

2012-09-03 Thread Anthony
renders a form in which the field birthday isn't of type date but of type text, as a result this doesn't work: jQuery( .date ).datepicker({dateFormat: 'dd-mm-yy'}); For date fields, the type should be text -- the class is what gets set to date. In any case, the jQuery selector used above

[web2py] Re: grid - hiding reconds found count

2012-09-03 Thread Anthony
Actually, to make the code more clear and to avoid issues with changing subscripts, it's generally best to use the .elements() and .element() methods rather than subscripting. In the past, however, this didn't work if you needed to replace or remove an element, but now you can do that as well.

[web2py] tag counting

2012-09-03 Thread andrej burja
with this statement i get list of all the tags tags = db().select(db.t_tag.f_name,distinct=True) t_tag has only reference - value what is the fastest way to count number of appearances for every tag i would like to dipslay tag (number of objects wit that tag) andrej --

[web2py] internal error crash with newest 2.0.6 and old 1.99.2

2012-09-03 Thread lucas
i have been having a problem with users logging in or registering. web2py seems to crash on some level and returns an internal error after the user hits submit upon registering or logging in. i was initially getting the error on my web2py version installed of 1.99.2, so i updated to the

[web2py] Re: web2py 2.0.6 and JqueryUI

2012-09-03 Thread Annet
I am having an issue with jQueryUI auto complete in web2py 1.99.x it worked well in web2py 2.0.x it no longer calculates the position of the list correctly: ul class=ui-autocomplete ui-menu ui-widget ui-widget-content ui-corner-all role=listbox aria-activedescendant=ui-active-menuitem

Re: [web2py] Re: grid - hiding reconds found count

2012-09-03 Thread Mandar Vaze / मंदार वझे
Yes. Works !! This is great - much cleaner solution. Thanks Anthony -Mandar On Mon, Sep 3, 2012 at 2:05 PM, Anthony abasta...@gmail.com wrote: Actually, to make the code more clear and to avoid issues with changing subscripts, it's generally best to use the .elements() and .element()

[web2py] Re: tag counting

2012-09-03 Thread villas
Hi Andrej This is something I've also struggled with in all kinds of ways and I'd be interested in any other replies. Here is a way I found to count the frequency of a single integer tag. rows=db().select(db.mytable.tag) from collections import defaultdict d = defaultdict(int) for r in

[web2py] Re: web2py 2.0.2 is out

2012-09-03 Thread Martín Miranda
+1 ;) Excelent! I personally want to thank the major contributors to this release (in alphabetic order) Alan, Andrew, Anthony, Bruno, Christian, Dave, Dominic, Iceberg, Jonathan, Marc, Mariano, Marin, Martin, Mark, Michael, Michele, Niphlod, Patrick, Vladyslav, They spend many nights

[web2py] Re: type='date' in form type='text'

2012-09-03 Thread Annet
Hi Anthony, Thanks for your reply. If it isn't working, there's probably some other problem with the Javascript. class=input-xlarge appadmin doesn't have this problem: input type=text value= name=birthday id=person_birthday class=date select name=title id=person_title

Re: [web2py] Re: How to use the new cache-options with SQLFORM.grid?

2012-09-03 Thread Johann Spies
On 31 August 2012 13:07, Anthony abasta...@gmail.com wrote: FYI, grid now sets cacheable=True when doing selects: http://code.google.com/p/web2py/source/detail?r=6596fb84ed0fb49fa19879f80de5fb30ee4d0403. Still no caching option, though (I guess you can cache the output of the grid itself,

[web2py] .count(cache=(cache.ram,3600)) - problem

2012-09-03 Thread Johann Spies
In certain circumstances where I cannot exactly determine what is causing this, using this recent addition causes the psycopg2-driver to complain: One example: (db.akb_auth_sa_univ_link.year == item.year)).count(cache=(cache.ram,3600)) causes InternalError: current transaction is aborted,

[web2py] Re: type='date' in form type='text'

2012-09-03 Thread Anthony
I guess it's the bootstrap formstyle that's causing the problem it sets all class attributes to 'input-xlarge' Good catch. We should probably fix that. Anthony --

[web2py] PythonAnywhere, upgrading to latest Web2Py?

2012-09-03 Thread Hansel Dunlop
Hi all, One of the PythonAnywhere developers here. We are planning on updating our default version of Web2Py from 1.99.7 to the latest 2.02. This would only be for new installs. Since it is a jump in the major version number we were wondering if there was anything we should know? How is the

Re: [web2py] Code syntax highlighting in a post

2012-09-03 Thread Johann Spies
On 2 September 2012 22:55, shartha m.mirghorb...@gmail.com wrote: Could one of the administrators please turn on the code syntax highlighting as explained in this linkhttp://support.google.com/groups/bin/answer.py?hl=enanswer=1050526 ? Or if that's been done already, could somebody please

Re: [web2py] Re: Buttons not styled the Bootstrap way.

2012-09-03 Thread Johann Spies
On 3 September 2012 08:05, Annet anneve...@googlemail.com wrote: Again, setting formstyle='bootstrap' might take care of that. I didn't want to repeat myself, I searched the group and read Massimo's announcement https://groups.google.com/forum/?fromgroups=#!topic/web2py/tmM5VbYcPrQbut

[web2py] Re: Code syntax highlighting in a post

2012-09-03 Thread Anthony
It is turned on. Note, it only works in the web interface, but not when viewing on a mobile phone or tablet (unless you request the desktop app). Anthony On Sunday, September 2, 2012 4:55:44 PM UTC-4, shartha wrote: Could one of the administrators please turn on the code syntax

[web2py] Re: Scaling Web2py

2012-09-03 Thread howesc
yes, i manage a (seemingly to me) large application. 30-40 request per second average sustained 24 hours a day. that app is the data access API for an iOS app plus an accompanying website. some thoughts: - we use google app engine. on the up side it serves all my requests, on the downside

Re: [web2py] Using GAE Launcher - a beginner's question

2012-09-03 Thread howesc
if it was our app.example.yaml file from the latest release then please open a ticket to have us update the example file to work with the latest GAE launcher. thanks! cfh On Sunday, September 2, 2012 10:20:04 PM UTC-7, Andy W wrote: That fixed it - many thanks! On Sunday, September 2,

[web2py] Re: Classes in markmin

2012-09-03 Thread Massimo Di Pierro
I am not sure I understand why would you want to encapsulate a ul / in a div/. It seems redundant to me. Notice markmin has been greatly improved although the docs have not been updated. Here are some more features: http://web2py.googlecode.com/hg/gluon/contrib/markmin/markmin.html Anyway On

[web2py] Re: need a simple wiki...

2012-09-03 Thread Massimo Di Pierro
On Monday, 3 September 2012 00:51:47 UTC-5, Andrew W wrote: Hi Massimo, Some questions on auth.wiki, in anticipation of some details in the book. Have you finalised the syntax for adding components ? I think we can keep @{component:url} How do I embed media eg images? Do I follow

[web2py] Re: internal error crash with newest 2.0.6 and old 1.99.2

2012-09-03 Thread Massimo Di Pierro
Can you show us the action that causes the problem? I suspect you have something like this: def youraction() try: do something with db except: do something else ... For some reason do something with db fails and closes the db cursor. It should be def youraction()

[web2py] Re: PythonAnywhere, upgrading to latest Web2Py?

2012-09-03 Thread Massimo Di Pierro
Thank you Hansel, Do not use 2.0.2 because it has lots of issues. They have been fixed in 2.0.6 and I strongly suggest you us 2.0.6. It should not cause any problems. We will soon be releasing 2.1 with yet more speed improvements and features. You may want to week one more week. Massimo On

[web2py] Re: .count(cache=(cache.ram,3600)) - problem

2012-09-03 Thread Massimo Di Pierro
Can you help us? In dal.py there is a log_execute function. Can you add a print command in there to see what command is sent to the driver? On Monday, 3 September 2012 07:24:36 UTC-5, Johann Spies wrote: In certain circumstances where I cannot exactly determine what is causing this, using

[web2py] Re: Cannot login via web2py mobile admin (V 2.0.6)

2012-09-03 Thread Massimo Di Pierro
Ouch! Can can fix this. On Monday, 3 September 2012 07:27:33 UTC-5, Gerd wrote: Hi! First i want to thank Massimo and all the other contributors for their great work! I've found an issue: When trying to login to the admin interface via an iPhone the web2py mobile admin shows up, and

[web2py] Re: Cannot login via web2py mobile admin (V 2.0.6)

2012-09-03 Thread Massimo Di Pierro
Please check trunk. I think the problem is that admin requires https. On Monday, 3 September 2012 08:44:22 UTC-5, Massimo Di Pierro wrote: Ouch! Can can fix this. On Monday, 3 September 2012 07:27:33 UTC-5, Gerd wrote: Hi! First i want to thank Massimo and all the other contributors for

[web2py] Re: type='date' in form type='text'

2012-09-03 Thread Massimo Di Pierro
How? On Monday, 3 September 2012 07:41:01 UTC-5, Anthony wrote: I guess it's the bootstrap formstyle that's causing the problem it sets all class attributes to 'input-xlarge' Good catch. We should probably fix that. Anthony --

[web2py] Re: Scaling Web2py

2012-09-03 Thread Massimo Di Pierro
Did you try 2.0.6? Does everything work well for you? Do you notice any performance improvements? On Monday, 3 September 2012 08:07:09 UTC-5, howesc wrote: yes, i manage a (seemingly to me) large application. 30-40 request per second average sustained 24 hours a day. that app is the data

[web2py] Re: type='date' in form type='text'

2012-09-03 Thread Anthony
I just sent you a patch. On Monday, September 3, 2012 9:48:34 AM UTC-4, Massimo Di Pierro wrote: How? On Monday, 3 September 2012 07:41:01 UTC-5, Anthony wrote: I guess it's the bootstrap formstyle that's causing the problem it sets all class attributes to 'input-xlarge' Good catch.

[web2py] Re: web2py 2.0.6 and JqueryUI

2012-09-03 Thread LightDot
When you say that you are using the same jQueryUI files, does this mean the same old jQuery version? Version of jQuery bundled with web2py welcome app has changed between 1.99.x and 2.0.x, so if you're upgrading your existing app in any way, this might be a factor too. Regards, Ales On

[web2py] bug http.py / mod_wsgi

2012-09-03 Thread Corne Dickens
situation: apache / mod_wsgi reproduce: in routes.py routes_onerror = [('appname/*','/appname/error/index')] controllers/error.py response.status = request.vars.code return dict() setting response.status is here to make sure that I keep the same status code.. This results in mod_wsgi

[web2py] Re: type='date' in form type='text'

2012-09-03 Thread Anthony
Note, this should now be fixed in trunk -- try it if you get a chance. Anthony On Monday, September 3, 2012 7:13:09 AM UTC-4, Annet wrote: Hi Anthony, Thanks for your reply. If it isn't working, there's probably some other problem with the Javascript. class=input-xlarge appadmin

Re: [web2py] Re: 2.0.6 on GAE - Routing issues and ticket unrecoverable

2012-09-03 Thread Jonathan Lundell
On 2 Sep 2012, at 9:48 PM, Udi Milo udim...@gmail.com wrote: I've reinstalled the distribution and now I do get a ticket when I fabricate an error, but when I go to: http://127.0.0.1:8080/admin/default/ticket/welcome/127.0.0.1.2012-09-03.04-35-34.686f53b3-db23-4cf7-82bb-0af5c0eee05d I

[web2py] Redirect to https (V 2.0.6)

2012-09-03 Thread Gerd
Hi! Another issues/whishes: - In the welcome app, is it possible to redirect to https rather then http when clicking on the button named Administrative interface - When creating a new app via the admin interface New simple application, i receive following error: unable to create application

[web2py] Re: Cannot login via web2py mobile admin (V 2.0.6)

2012-09-03 Thread Gerd
I've used https on the iphone Am Montag, 3. September 2012 15:47:35 UTC+2 schrieb Massimo Di Pierro: Please check trunk. I think the problem is that admin requires https. On Monday, 3 September 2012 08:44:22 UTC-5, Massimo Di Pierro wrote: Ouch! Can can fix this. On Monday, 3 September

[web2py] Re: internal error crash with newest 2.0.6 and old 1.99.2

2012-09-03 Thread lucas
ok, i have tons of db() accesses throughout a few thousand lines of code. thinking out loud, but since it has to do with session and/or logging in and registering, then i can begin with the initial screens wherein the cookies or such may be reset and such. i have a few ideas of where, and

[web2py] Re: Scaling Web2py

2012-09-03 Thread David Marko
Great!! The first set of questions ... some are maybe too private, you see ... API for iOS ### does it mean that you dont use views, just endering data to JSON, and data representation is done in iOS app? 30-40 request per second average sustained 24 hours a day. ### have you tried how high

Re: [web2py] Re: Scaling Web2py

2012-09-03 Thread Jonathan Lundell
On 3 Sep 2012, at 7:42 AM, David Marko dma...@tiscali.cz wrote: Great!! The first set of questions ... some are maybe too private, you see ... API for iOS ### does it mean that you dont use views, just endering data to JSON, and data representation is done in iOS app? 30-40 request per

[web2py] Redirect to https (V 2.0.6)

2012-09-03 Thread Andrew W
In your web2py directory type in touch NEWINSTALL and then restart web2py. It recreates the file you need. It should be there, unless it was deleted. --

Re: [web2py] Classes in markmin

2012-09-03 Thread vinicius...@gmail.com
But is there some tool to generate offline docs, like Sphinx, using themes and linking local pages? That's what I'm looking for. -- Vinicius Assef On 09/03/2012 01:54 AM, Bruno Rocha wrote: There is markmin2pdf and markmin2html on gluon.contrib

[web2py] _custom_commit

2012-09-03 Thread Corne Dickens
See https://groups.google.com/forum/?fromgroups#!topic/web2py-developers/pSF3WbO2B5o _custom_commit is commented out right now.. (is this intentionally? And if so, what would be the way to call a custom commit now in case your not using DAL?) --

[web2py] Re: _custom_commit

2012-09-03 Thread Anthony
Looks like the old code is commented, but the logic was simply moved to dal.BaseAdapter.close_all_instances, so should still work. Anthony On Monday, September 3, 2012 11:03:05 AM UTC-4, Corne Dickens wrote: See

[web2py] Re: PythonAnywhere, upgrading to latest Web2Py?

2012-09-03 Thread Hansel Dunlop
Thanks Massimo, We definitely heed your advice! Cheers Hansel On Monday, 3 September 2012 14:41:19 UTC+1, Massimo Di Pierro wrote: Thank you Hansel, Do not use 2.0.2 because it has lots of issues. They have been fixed in 2.0.6 and I strongly suggest you us 2.0.6. It should not cause

[web2py] Re: How to add Row object to Rows

2012-09-03 Thread andrej burja
what if i want newrows to contain only duplicates? i want to display only rows which are in rows1 AND rows2 andrej On Tuesday, June 5, 2012 7:22:11 PM UTC+2, Anthony wrote: I think you can do: myrows.records.append(myrow) Note, I don't think this is part of the documented API, so probably

[web2py] Flash File and Routes

2012-09-03 Thread Andrew Evans
Hello I have a flash file that requires that the files associated with it be in the same directory as views/default/index.html I did a bit of research and read that I can have the view look like it is in static or the static files look like they are in the views by using routes.py although I am

[web2py] Display Image

2012-09-03 Thread BlueShadow
I know this question has been asked multiple times but I still can't get it to work. I got a table containing an image name: db.define_table('Images', Field('Name',length=512), Field('Image','upload'), Field('Source',db.Source), format = '%(Name)s' # important )

[web2py] Re: web2py book on github

2012-09-03 Thread Mandar Vaze
On Saturday, September 1, 2012 10:30:49 PM UTC+5:30, Massimo Di Pierro wrote: The web2py book app has been rewritten http://www.web2py.com/book Does this mean the PDF is also (automatically) updated ? I checked online, the PDF still says Build Date December 2011 -Mandar --

[web2py] Re: How to add Row object to Rows

2012-09-03 Thread Anthony
rows1.records = [r for r in rows1.records if r in rows2.records] Anthony On Monday, September 3, 2012 11:59:41 AM UTC-4, andrej burja wrote: what if i want newrows to contain only duplicates? i want to display only rows which are in rows1 AND rows2 andrej On Tuesday, June 5, 2012 7:22:11

[web2py] Re: Display Image

2012-09-03 Thread Anthony
First, are all these functions in the same controller? If not, be sure to specify the controller in URL(). Also, what does your download() function look like? Anthony On Monday, September 3, 2012 12:32:19 PM UTC-4, BlueShadow wrote: I know this question has been asked multiple times but I

[web2py] Re: Flash File and Routes

2012-09-03 Thread Anthony
On Monday, September 3, 2012 12:08:20 PM UTC-4, Andrew Evans wrote: Hello I have a flash file that requires that the files associated with it be in the same directory as views/default/index.html Why do they have to be in that particular folder? Why not just whatever folder contains the

[web2py] Re: Cannot login via web2py mobile admin (V 2.0.6)

2012-09-03 Thread Massimo Di Pierro
I do not have an iphone but Android connects fine with https. Are you saying iPhones do not do https? On Monday, 3 September 2012 09:37:13 UTC-5, Gerd wrote: I've used https on the iphone Am Montag, 3. September 2012 15:47:35 UTC+2 schrieb Massimo Di Pierro: Please check trunk. I think the

[web2py] Re: internal error crash with newest 2.0.6 and old 1.99.2

2012-09-03 Thread Massimo Di Pierro
The problem is this. Suppose you try do something that the db does not allow. For example insert a duplicate record or invalid sql etc. The database server will complain and expects you to rollback the transaction. If you do not rollback and try any other db operation, it will close the

Re: [web2py] Classes in markmin

2012-09-03 Thread Massimo Di Pierro
markmin can be compared to reST (they are both markup languages) Sphinx is an application to generate documents and does not directly compare. Yet markmin2html and markmin2pdf do 90% of what Sphinx does. They do not enforce a convention on how you link documents. You can create your own

[web2py] Re: _custom_commit

2012-09-03 Thread Massimo Di Pierro
yes but it is response.custom_commit, not response._custom_commit. On Monday, 3 September 2012 10:19:40 UTC-5, Anthony wrote: Looks like the old code is commented, but the logic was simply moved to dal.BaseAdapter.close_all_instances, so should still work. Anthony On Monday, September 3,

[web2py] Re: PythonAnywhere, upgrading to latest Web2Py?

2012-09-03 Thread Massimo Di Pierro
BTW. Great work with PythonAnywhere. :-) On Monday, 3 September 2012 10:29:06 UTC-5, Hansel Dunlop wrote: Thanks Massimo, We definitely heed your advice! Cheers Hansel On Monday, 3 September 2012 14:41:19 UTC+1, Massimo Di Pierro wrote: Thank you Hansel, Do not use 2.0.2 because

[web2py] Re: 2.02 Table name in smartgrid changed...

2012-09-03 Thread Stanislav Stankevich
I'm new in web2py, but really excited with the one. Thanks to Massimo Di Pierro. IMHO when I hided the breadcramb with CSS I lost nothing because the parents' positions are shown in the child tables. пятница, 31 августа 2012 г., 18:59:38 UTC+4 пользователь Adi написал: trunk works for the

[web2py] Re: type='date' in form type='text'

2012-09-03 Thread Annet
Hi Anthony, Note, this should now be fixed in trunk -- try it if you get a chance. Thanks for fixing this issue right away. I just gave it a try and all fields have the right class now. Kind regards, Annet. --

Re: [web2py] Re: available Databases and Tables empty in 2.0.6

2012-09-03 Thread Annet
General warning: upgrading the framework does not update any of the framework specific files in the application folder, such as appadmin.py, appadmin.html, web2py_ajax.html, web2py.js, and the generic views, so when you upgrade, you may have to manually copy some of those files if they

Re: [web2py] Re: Flash File and Routes

2012-09-03 Thread Andrew Evans
I am really not sure why they have to be like that But I did a test on my local system I put the flash files and xml files etc in a separate directory and I put index.html outside of that directory changed all the references to the swf and css file and it would not work... Any ideas On Mon,

[web2py] Re: _custom_commit

2012-09-03 Thread Corne Dickens
I don't mind thad it's custom_commit instead of _custom_commit, but using the old one doesn't trigger an exception (its valid code), so nobody will notice anything right away.. --

Re: [web2py] Re: Flash File and Routes

2012-09-03 Thread Andrew Evans
I think because there are some hard coded values in the flash file but since I can't change the file (cause of my version of flash) its causing a problem But I don't know what the hard coded values could be. The only values in the flash file were references to the xml and images folder Would

[web2py] Re: Display Image

2012-09-03 Thread BlueShadow
The Tables are in db.py(model) def Article(): is in default.py(controler) and the image Tag is in default/views/Article.html I had no download function. I'm so stupid^^ no wonder it didn't work thanks anthony your help isalways really good. It works now For anyone reading this with the same

Re: [web2py] Re: Flash File and Routes

2012-09-03 Thread Anthony
Can you show your code? How are you referencing those files in index.html? On Monday, September 3, 2012 1:30:27 PM UTC-4, Andrew Evans wrote: I am really not sure why they have to be like that But I did a test on my local system I put the flash files and xml files etc in a separate

[web2py] Re: _custom_commit

2012-09-03 Thread Massimo Di Pierro
The fact is we are trying to slim web2py and this is an undocumented parameter. The change was made long ago. On Monday, 3 September 2012 12:34:26 UTC-5, Corne Dickens wrote: I don't mind thad it's custom_commit instead of _custom_commit, but using the old one doesn't trigger an exception

[web2py] Re: web2py book on github

2012-09-03 Thread Massimo Di Pierro
Planning to add that by the end of the week. On Monday, 3 September 2012 11:41:56 UTC-5, Mandar Vaze wrote: On Saturday, September 1, 2012 10:30:49 PM UTC+5:30, Massimo Di Pierro wrote: The web2py book app has been rewritten http://www.web2py.com/book Does this mean the PDF is

[web2py] SQLFORM.grid CSS help

2012-09-03 Thread Massimo Di Pierro
Right now the gird console (defined in sqlhtml.py) looks like [add] [input ] [search] [clear] [hidden popup] (records found ...) but some times it shows up as [add] [input ...] [search] [clear] [hidden popup] (records found ...) I would like it to

Re: [web2py] Re: web2py book on github

2012-09-03 Thread Martín Mulone
Thanks massimo, this is a huge advance!, and the app is also very cool. I started translation to spanish based on fork (29-english), here https://github.com/mulonemartin/web2py-book. 2012/9/3 Massimo Di Pierro massimo.dipie...@gmail.com Planning to add that by the end of the week. On Monday,

[web2py] web2py 2.0.6/trunk appadmin ctrl+S not saving in FireFox

2012-09-03 Thread Brian M
Finally getting around to testing the new 2.0.x release from trunk and have spotted one issue so far - when editing a file in appadmin the ctrl+S shortcut isn't working in FireFox (v15.0 on Windows7) I instead get the browser's file save dialog. For that matter even clicking the Save icon

[web2py] Re: web2py 2.0.6/trunk appadmin ctrl+S not saving in FireFox

2012-09-03 Thread Niphlod
I'm on ff 15 but on linux and it works okdid you try to ctrl+R the page to reload all the cached files ? On Monday, September 3, 2012 8:35:30 PM UTC+2, Brian M wrote: Finally getting around to testing the new 2.0.x release from trunk and have spotted one issue so far - when editing a

[web2py] Re: SQLFORM.grid CSS help

2012-09-03 Thread Niphlod
you mean always two rows, with two columns every row, i.e. always: row1-col1: input row1-col2:search clear row2-col1: addrow2-col2: records found ? On Monday, September 3, 2012 8:17:51 PM UTC+2, Massimo Di Pierro wrote: Right now the gird console (defined in sqlhtml.py) looks like

[web2py] Possible regression in DAL?

2012-09-03 Thread Carlos Correia
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, After updating to trunk (Version 2.0.6 (2012-09-03 10:18:10) stable), I started getting the following error in executesql(): In [1]: db.executesql( 'truncate auth_event' ) -

[web2py] Re: Checking for upgrades isn't working as I expected (1.99.7 installed)

2012-09-03 Thread Don_X
Hello Tim, Welcome to web2py-users group ! Considering that you are new ! and probably you have not developed any apps yet in your web2py installation ( the 1.99.7 ) ... you can simply make a new install of the latest stable version ( now is the 2.0.5 ) ... under another folder if you want !

Re: [web2py] Re: web2py book on github

2012-09-03 Thread Massimo Di Pierro
Mind that I believe there is already around a spanish translation of the 3rd edition. There is also this version translated by google: https://dl.dropbox.com/u/18065445/web2py/web2py_manual_es.pdf and this one translated in portuguese by google:

Re: [web2py] Re: Flash File and Routes

2012-09-03 Thread Andrew Evans
Thank you for your help Anthony the code in the head section link rel=stylesheet href={{=URL('static','piecemakerCSS.css')}} type=text/css / script type=text/javascript src={{=URL('static', 'js/swfobject.js')}}/script script type=text/javascript swfobject.embedSWF({{=URL('static',

[web2py] Re: SQLFORM.grid CSS help

2012-09-03 Thread Massimo Di Pierro
No always two rows, no cols but records found should be on the same row as [add] but right-aligned. On Monday, 3 September 2012 13:54:18 UTC-5, Niphlod wrote: you mean always two rows, with two columns every row, i.e. always: row1-col1: input row1-col2:search clear row2-col1: add

[web2py] Re: Limit Length column

2012-09-03 Thread Fabiano Faver
Se for somente para por um limite maximo. Há os parametros maxtextlenght, um limita todas as colunas para o mesmo e o outro você passa um dicionário com os campos e os limites. Mas se for para setar um tamanho fixo para as colunas creio que será necessario usar CSS. Em segunda-feira, 3 de

[web2py] Re: Possible regression in DAL?

2012-09-03 Thread Massimo Di Pierro
we did remove a try... except in there that would have caused more problems. Check out latest trunk and try: db.executesql('truncate auth_event',fetch=False) else it expect the query to return something. On Monday, 3 September 2012 14:01:57 UTC-5, Carlos Correia wrote: -BEGIN PGP

[web2py] Re: How to persist session data for user across browsers

2012-09-03 Thread monotasker
Thanks, that's probably the way to go. On Sunday, September 2, 2012 12:20:13 AM UTC-4, Anthony wrote: As long as you're storing the session object, rather than trying to point to the old session file, why not just write the session contents into the new session? Anthony On Saturday,

[web2py] Re: Checking for upgrades isn't working as I expected (1.99.7 installed)

2012-09-03 Thread Massimo Di Pierro
There is a bug in 1.99.7 that prevents automatic upgrades. This is fixed in 2.0.x but you cannot upgrade from the older versions via the web. Anyway, upgrade consists in unzipping new version over old version. On Thursday, 30 August 2012 07:29:19 UTC-5, Tim Richardson wrote: I'm a new user

Re: [web2py] Re: How to persist session data for user across browsers

2012-09-03 Thread monotasker
Perfect. Thanks for providing the snippet. I haven't used the cache methods yet, and this saves me a lot of time. Ian On Sunday, September 2, 2012 2:28:14 AM UTC-4, rochacbruno wrote: I think you can use cache. user_data = cache.ram(user_data_%s % auth.user_id, lambda : dict(field=value,

[web2py] Re: SQLFORM.grid CSS help

2012-09-03 Thread Niphlod
gotcha, but I can't do without modifyng sqlhtml.py Added also a few px of margin to align search and clear to the input, made it look similar to the add, back Co., enlarged the search input a little bit (a requirement from all my users) On Monday, September 3, 2012 9:12:00 PM UTC+2, Massimo

[web2py] Re: web2py book on github

2012-09-03 Thread Don_X
Massimo, Just a suggestion : In the various scripts included in the packages .. I realized that by default : the default file rewritten for apache for example, contain Deny from all in various portion of the sh scripts ( for ubuntu, fedora, etc .. ) I recommend to make them Allow from all

Re: [web2py] Re: web2py book on github

2012-09-03 Thread Martín Mulone
I know but it's not in markmin, and make changes and sync is a hell pain. Google translation is funny, is not serious. 2012/9/3 Massimo Di Pierro massimo.dipie...@gmail.com Mind that I believe there is already around a spanish translation of the 3rd edition. There is also this version

[web2py] how to display html entities from a db field in a form without escaping.

2012-09-03 Thread Jose C
I've spent a couple of hours googling and rtfm-ing but can't seem to find a clean way of doing this. I have a legacy database with various fields containing known, safe html text (e.g. `this amp; that` and things like apostrophes e.g. `John#39;s place`). I need to use a number of these

Re: [web2py] Re: How to persist session data for user across browsers

2012-09-03 Thread Anthony
You might need to occasionally clear out old data so the cache doesn't grow indefinitely. Anthony On Monday, September 3, 2012 3:19:17 PM UTC-4, monotasker wrote: Perfect. Thanks for providing the snippet. I haven't used the cache methods yet, and this saves me a lot of time. Ian On

[web2py] Twitter account for @web2py

2012-09-03 Thread Luther Goh Lu Feng
I just noticed that the twitter account has been very inactive :o Is there any reason for that? Anyway to improve the situation? https://twitter.com/web2py --

Re: [web2py] Re: web2py book on github

2012-09-03 Thread Bruno Rocha
Martin, I am doing the same for portuguese. Which number did you named your spanish version? 36-spanish-work-in-progress ? I forked and I will put a 37-portuguese-work-in-progress On Mon, Sep 3, 2012 at 4:27 PM, Martín Mulone mulone.mar...@gmail.comwrote: I know but it's not in markmin, and

Re: [web2py] Re: web2py book on github

2012-09-03 Thread Alfonso de la Guarda
Massimo, The Latinux people translate the book (spanish) however no sources available and also there is a lot of new features with the new versions, maybe you can ask to them for open the sources and publish (Ricardo Strusberg surely can do), if not we need to start a new translation. Saludos,

Re: [web2py] Re: web2py book on github

2012-09-03 Thread Martín Mulone
I'm using 36, but this can be changed very easy in the app. 2012/9/3 Bruno Rocha rochacbr...@gmail.com Martin, I am doing the same for portuguese. Which number did you named your spanish version? 36-spanish-work-in-progress ? I forked and I will put a 37-portuguese-work-in-progress On

[web2py] Re: SQLFORM.grid CSS help

2012-09-03 Thread Massimo Di Pierro
When I click on the [input] search field, and the popup appears, the [add] button moves to the right of the popup. :-( On Monday, 3 September 2012 14:24:26 UTC-5, Niphlod wrote: gotcha, but I can't do without modifyng sqlhtml.py Added also a few px of margin to align search and clear to the

Re: [web2py] Re: web2py book on github

2012-09-03 Thread António Ramos
I wish you could make the table of contents fixed so i dont have to scroooll all way to the top to change to another chapter. Best regards António 2012/9/3 Martín Mulone mulone.mar...@gmail.com I'm using 36, but this can be changed very easy in the app. 2012/9/3 Bruno Rocha

[web2py] Re: SQLFORM.grid CSS help

2012-09-03 Thread Niphlod
that should definitely not happen. tested on ff and chromium. that happened before I switched from .web2py_console form { width: 100%; display: inline; vertical-align: middle; margin: 0 0 0 5px; } to .web2py_console form { width: 100%; display: inline-block;

[web2py] Re: How to persist session data for user across browsers

2012-09-03 Thread Jose C
Just a thought... cache.ram does have the potential drawback that if your server goes down, you lose that 24 hour history. May or may not be a problem in your situation - if it is then use something like cache_in_ram_and_disk() https://web2py.com/books/default/chapter/29/04 to give you some

  1   2   >