[web2py] Re: Symlinked Application Issue

2012-09-04 Thread pbreit
Should work. Might need to restart web2py. On Monday, September 3, 2012 4:02:10 PM UTC-7, Alex H wrote: In my Applications directory, I have created a symlink to another directory, e.g. ... ln -s ~/dev/python/web2py-book web2py-book The created symlink operates correctly, however the

[web2py] Re: web2pyslices for Android

2012-09-04 Thread David Marko
Very nice. Just curisous, what did you use, is it completely native, or hybrid using PhoneGap, Trigger.io or something? David Dne úterý, 4. září 2012 1:46:16 UTC+2 rochacbruno napsal(a): Hi, I just published a beta version of web2pyslices reader for Android:

Re: [web2py] Re: web2pyslices for Android

2012-09-04 Thread Bruno Rocha
That is just a RSS reader with local storage for favorites, read/unread etc.. --

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

2012-09-04 Thread Johann Spies
On 3 September 2012 15:42, Massimo Di Pierro massimo.dipie...@gmail.comwrote: 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? I will do so - maybe a bit later today. I have some other work with higher

[web2py] Re: Symlinked Application Issue

2012-09-04 Thread amphisia pui
Hi Alex, It works but try to remove the - character from target application name: I met the same issue resolved changing ./web2py/applications/web2py-book in ./web2py/applications/web2py-book AP Il giorno martedì 4 settembre 2012 01:02:10 UTC+2, Alex H ha scritto: In my Applications

[web2py] Re: Symlinked Application Issue

2012-09-04 Thread amphisia pui
Errata corrige I met the same issue resolved changing ./web2py/applications/web2py-book in ./web2py/applications/web2pybook Il giorno martedì 4 settembre 2012 09:01:03 UTC+2, amphisia pui ha scritto: Hi Alex, It works but try to remove the - character from target application name: I met

Re: [web2py] Tweet this and web2py forms. How do I design this?

2012-09-04 Thread Alec Taylor
Maybe what you're looking for is a self-populating javascript modal with a tweet this button. That should be trivial to implement by appending the write information to the twitter URL. (see share code for correct URL) On 31/08/2012 6:42 AM, Pystar aitoehi...@gmail.com wrote: But I am only using

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

2012-09-04 Thread Gerd
The iphone also connects well with https --

[web2py] Re: web2py 2.0.6 and JqueryUI

2012-09-04 Thread Annet
The issue has something to do with web2py. In 1.99.7 jQuery 1.7.1 jQuery UI 1.8.20 ... the date and auto complete field do work: input type=text value= name=birthday id=no_table_birthday class=date hasDatepicker input id=no_table_locality class=string ui-autocomplete-input type=text value=

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

2012-09-04 Thread Niphlod
let's resume the relevant thread on web2py-developers ? Il giorno lunedì 3 settembre 2012 23:17:34 UTC+2, Massimo Di Pierro ha scritto: Suggestions? On Monday, 3 September 2012 14:55:44 UTC-5, Niphlod wrote: another victim of cache-busting ^_^. I really hope we'll include something to

[web2py] Re: Bootstrap and custom forms and widgets

2012-09-04 Thread Niphlod
the code is out there on github.com/niphlod/w2p_tvseries, but included in web2py 2.0.6 there is other code for bootstrap-compatible forms Il giorno martedì 4 settembre 2012 05:03:59 UTC+2, Alec Taylor ha scritto: Hi Niphlod, Now that web2py 2 has been released, could you release the code for

[web2py] newsletter use case

2012-09-04 Thread Marco Prosperi
hello, I would like to manage a newsletter from my web2py application. I'm already able to send html mails from it but I have 2 questions: - it's better to store my contacts in auth_user or in dedicated table? If I use auth_user I would have all the features to let access to some parts of my

Re: [web2py] How to use DAL with effective dated queries

2012-09-04 Thread Niphlod
definitely. I don't have time to test at the moment a vanilla DAL solution, but if you use 2.0.6 you can use db.executesql(your query, fields=[db.person.EmployeeID, db.person.name]) and get back a normal rows object. Il giorno martedì 4 settembre 2012 09:23:43 UTC+2, Remco Boerma ha scritto:

[web2py] web2py 2.0.6 performance improvement

2012-09-04 Thread Mark Kirkwood
Just a quick thank you - updated my (still alpha) cat breeding application ( http://www.egyptianmau.co.nz/pedigree/ ) from 1.99.7 to 2.06 - a very noticeable improvement in performance even running in CGI mode - very nice work! --

Re: [web2py] How to use DAL with effective dated queries

2012-09-04 Thread Remco Boerma
Thanks a lot! I hope you do find the time to write a pure DAL query, because i'm so eager to know how it can be done! But first i have a workaround that i'll be able to use... Op dinsdag 4 september 2012 10:06:08 UTC+2 schreef Niphlod het volgende: definitely. I don't have time to test at

Re: [web2py] Re: Bootstrap and custom forms and widgets

2012-09-04 Thread Alec Taylor
Thanks, but I can't seem to find anything in the release about how to use bootstrap with forms: https://groups.google.com/forum/#!topic/web2py/0Uk5b34LUsc (Note that I'm using crud.create and crud.update) On Tue, Sep 4, 2012 at 5:45 PM, Niphlod niph...@gmail.com wrote: the code is out there on

Re: [web2py] Re: sqlform.grid search widget

2012-09-04 Thread peter
Here is an update on the search widget. The solution above does not work if the found results spread over several pages. The search is lost on the extra pages. The solution to this is to change all occurrences of 'search_text' appear in the request with 'keywords' def search_form(self,url):

Re: [web2py] XML Webservice

2012-09-04 Thread hasan alnator
Dear ALec , when i go to the link i gave you before , i can see some XML data but i dont understand what is the viewing problem you are talking about ? and why wold a table filed interrupter Viewing as XML as long as i am returning an object that has all the date ? Best Regards, On Sun, Sep 2,

Re: [web2py] Re: sqlform.grid search widget

2012-09-04 Thread peter
Sorry the previous email did not contain the final version. Here it is. def search_form(self,url): form = FORM('', INPUT(_name='keywords',_value=request.get_vars.keywords, _style='width:200px;', _id='keywords'),

[web2py] lock files left in 2.0.6 distribution

2012-09-04 Thread Nico Zanferrari
Using the welcome application from 2.0.6 windows distribution, I've found a warning regarding old lock files present in: web2py\applications\welcome\cache It's just a warning, but I think it's better to remove these files from web2py_win.zip sources. Nico --

[web2py] alphabetic search and sqlform.grid

2012-09-04 Thread peter
In a previous post I showed a solution for a more google like search for SQLFORM.grid - sqlform.grid *search* *widget*https://groups.google.com/forum/?fromgroups=#!searchin/web2py/search$20widget/web2py/9_1ECdKHKUo/-KRWzsr01cIJ . I have now extended this to allow alphabetic searches by

Re: [web2py] Re: Bootstrap and custom forms and widgets

2012-09-04 Thread Niphlod
should be formstyle='bootstrap', the same way you use formstyle=divs , ul, etc Il giorno martedì 4 settembre 2012 10:34:07 UTC+2, Alec Taylor ha scritto: Thanks, but I can't seem to find anything in the release about how to use bootstrap with forms:

Re: [web2py] Re: Bootstrap and custom forms and widgets

2012-09-04 Thread Alec Taylor
Unfortunately that didn't work: type 'exceptions.TypeError' create() got an unexpected keyword argument 'formstyle'type 'exceptions.TypeError' update() got an unexpected keyword argument 'formstyle' On Tue, Sep 4, 2012 at 7:31 PM, Niphlod niph...@gmail.com wrote: should be

[web2py] return TABLE(*[TR(k, v) for k, v in form.errors.items()])

2012-09-04 Thread Hassan Alnatour
Dear ALL , I need help to understand this return , can anyone explain it to me please ? return TABLE(*[TR(k, v) for k, v in form.errors.items()]) --

[web2py] Re: web editor problems with 2.0.2

2012-09-04 Thread Nico Zanferrari
I have a similar problem, with web2py 2.0.6 on Windows 7 32 bit and*Internet Explorer 8 * on the same PC. But after the initial page like the one attached, the editor immediately modify the code on a single line only. If I change the code, save and exit, I can see the problem again on another

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

2012-09-04 Thread Jose C
OK. but test whether you need db.table.field.filter_in = lambda text: cgi.escape(text) #1 or not, anyway. Thanks Massimo, I don't need it as there is no write back to those tables. --

[web2py] Re: return TABLE(*[TR(k, v) for k, v in form.errors.items()])

2012-09-04 Thread villas
Returns an HTML table constructed from the dict of form errors. [TR(k, v) for k, v in form.errors.items()] Iterates through the dict and creates a table row TR for each dict item. The TR assumes that each item would be a TD, so that doesn't need to be explicit. The square brackets [] indicate a

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

2012-09-04 Thread Jose C
IS_IN_DB(db, db.regions.id, lambda r: XML(r.region), orderby='sort_order',multiple =True) That should do what you want and is simpler than my earlier solution Great stuff, Anthony. It does indeed achieve the same result and is cleaner when applying to multiple different fields.

Re: [web2py] Re: Bootstrap and custom forms and widgets

2012-09-04 Thread Anthony
For Crud, it's a setting: crud.settings.formstyle = 'bootstrap' Anthony On Tuesday, September 4, 2012 5:36:55 AM UTC-4, Alec Taylor wrote: Unfortunately that didn't work: type 'exceptions.TypeError' create() got an unexpected keyword argument 'formstyle' type 'exceptions.TypeError'

[web2py] textarea syntax highlight

2012-09-04 Thread elvitto
How to setup a TEXTAREA that allows python syntax highlight (real time) ? Thanks ! --

[web2py] Source install fail

2012-09-04 Thread Joe Repka
I tried 'python setup.py install' in the downloaded source directory for 2.0.6 but got 'error: package directory 'gluon/contrib/pyfpdf' does not exist' Any help would be grandly appreciated. --

[web2py] Multiple submit buttons using selectable in SQLFORM.grid

2012-09-04 Thread Johan
I am using selectable in SQLFORM.grid to create checkboxes and a submit button, it's working fine. But I would like to have two submit buttons where each button calls a different function, depending on if the checkboxes is checked or not. Is that possible? --

[web2py] Responsive website (my first one, built using web2py)

2012-09-04 Thread Neil Harding
I just made my first website using responsive coding style, I modified web2py so that I can use DEFER(URL(),alt text) and it will load from 320/ 480/ 640/ sub directories depending on the client resolution. It seems to work ok, anyone got any feedback? I also added a SKYPE which does callto:

[web2py] How to share static files between apps?

2012-09-04 Thread Jemes Hsu
What's the best way to share static files between apps? Let say I have 'wiki' and 'blog' applications both using the same css: \applications \wiki \blog \static \css\bootstrap.min.css if the css file is within an app I just use URL('static','css/bootstrap.min.css') to get the css

[web2py] Re: Source install fail

2012-09-04 Thread Massimo Di Pierro
The package was renamed fpdf On Monday, 3 September 2012 23:38:10 UTC-5, Joe Repka wrote: I tried 'python setup.py install' in the downloaded source directory for 2.0.6 but got 'error: package directory 'gluon/contrib/pyfpdf' does not exist' Any help would be grandly appreciated. --

[web2py] Re: textarea syntax highlight

2012-09-04 Thread Massimo Di Pierro
You need to use something like ace or codemirror or editarea. They have plugins that understands various languages. On Tuesday, 4 September 2012 00:08:07 UTC-5, elvitto wrote: How to setup a TEXTAREA that allows python syntax highlight (real time) ? Thanks ! --

[web2py] Re: lock files left in 2.0.6 distribution

2012-09-04 Thread Massimo Di Pierro
good catch. Thanks. On Tuesday, 4 September 2012 04:22:01 UTC-5, Nico Zanferrari wrote: Using the welcome application from 2.0.6 windows distribution, I've found a warning regarding old lock files present in: web2py\applications\welcome\cache It's just a warning, but I think it's better

[web2py] Re: Responsive website (my first one, built using web2py)

2012-09-04 Thread Alan
responsive layouts are pretty amazing, working through my own design at the moment after following the guide below: http://webdesign.tutsplus.com/tutorials/complete-websites/building-a-responsive-layout-with-skeleton-navigation/ might want to take a look so that the menu alters to a select

[web2py] Re: web2pyslices for Android

2012-09-04 Thread Fabiano Faver
Esta rodando muito em no meu galaxy nexus. Android 4.1.1 Navegabilidade está bacana. Em segunda-feira, 3 de setembro de 2012 20h46min12s UTC-3, rochacbruno escreveu: Hi, I just published a beta version of web2pyslices reader for Android:

[web2py] Re: How to share static files between apps?

2012-09-04 Thread Massimo Di Pierro
In web2py apps should packable separately therefore each app should contain the files it needs. You can symlink the static folders to pretend you have two when you infact you have one. On Tuesday, 4 September 2012 07:03:42 UTC-5, Jemes Hsu wrote: What's the best way to share static files

[web2py] Re: How to share static files between apps?

2012-09-04 Thread Anthony
Another option is to keep the shared static files in one of the apps and just have URLs from the other app point there (e.g., if you have /wiki/static/css/styles.css, in the blog app, use URL('wiki', 'static', 'css/styles.css')). Anthony On Tuesday, September 4, 2012 8:03:42 AM UTC-4, Jemes

[web2py] Re: Responsive website (my first one, built using web2py)

2012-09-04 Thread Anthony
There's also this: https://github.com/angeloc/web2py-responsivekit On Tuesday, September 4, 2012 12:42:18 AM UTC-4, Neil Harding wrote: I just made my first website using responsive coding style, I modified web2py so that I can use DEFER(URL(),alt text) and it will load from 320/ 480/ 640/

Re: [web2py] Re: Bootstrap and custom forms and widgets

2012-09-04 Thread Anthony
Also, you can now create your own formstyle function, which should take the form object and a list of field tuples (each field tuple includes the id, label, controls, and comment for the field) and return the DOM you want displayed in the form (i.e., the part that goes inside form/form).

[web2py] Re: How to share static files between apps?

2012-09-04 Thread Jemes Hsu
This solution will do. Thanks On Tuesday, September 4, 2012 8:46:44 PM UTC+8, Anthony wrote: Another option is to keep the shared static files in one of the apps and just have URLs from the other app point there (e.g., if you have /wiki/static/css/styles.css, in the blog app, use

Re: [web2py] Re: How to share static files between apps?

2012-09-04 Thread Michele Comitini
Anthony solution is preferable since it also helps client caching. mic Il giorno 04/set/2012 15:20, Jemes Hsu jemes...@gmail.com ha scritto: This solution will do. Thanks On Tuesday, September 4, 2012 8:46:44 PM UTC+8, Anthony wrote: Another option is to keep the shared static files in one

Re: [web2py] Re: [Announcement] web2py powered app Vocabilis.NET

2012-09-04 Thread Alexei Vinidiktov
Hi David Thanks for your kind words. I'm glad you liked it. I'm using the standard web2py html layout template for all parts of the site other than the page where the actual application is located. For the latter I use the standard Adobe Flex theme. By the way, I'm the sole creator of the

[web2py] web2py login and register forms as part of main page

2012-09-04 Thread Yebach
Hello I would like to create a login/register forms as part of a current page not to be redirected to a new page where you login or register and then be redirected back to the main page. Now I have auth.navbar() but that one takes you to a new page any suggestion?? Thank you --

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

2012-09-04 Thread Jim S
I'm having the same issue as well with second level display -Jim On Friday, August 31, 2012 9:59:38 AM UTC-5, Adi wrote: trunk works for the first level, but doesn't when i drill down into the second level... (image attached) also it used to display all breadcrumbs in the same line...

[web2py] Re: Symlinked Application Issue

2012-09-04 Thread Alex H
Removing the '-' from the target name works. Many thanks AP! On Tuesday, September 4, 2012 5:01:03 PM UTC+10, amphisia pui wrote: Hi Alex, It works but try to remove the - character from target application name: I met the same issue resolved changing ./web2py/applications/web2py-book

[web2py] Auth.wiki(). Issue with wiki_page.html compute

2012-09-04 Thread Andrew W
(Starting a new post for this issue, mentioned in thread of a simple wiki) Issue: On edit of an existing page, the wiki_page.body is being updated correctly, but wiki_page.html does not change, it's compute function does not get called. I've added some print statements and markmin_render()

[web2py] Re: web2py login and register forms as part of main page

2012-09-04 Thread Anthony
auth.login() and auth.register() generate and process the login and register forms, respectively. You main page function could return those forms and include them in the view. Anthony On Tuesday, September 4, 2012 9:56:36 AM UTC-4, Yebach wrote: Hello I would like to create a

[web2py] Can't Import library

2012-09-04 Thread BlueShadow
Hi, I like to import the PIL library in My web2py application. I did install it under my windows mashine. when I open the Python(idle) guy i can write import PIL withot an error. but using this code in web2py: try: from PIL import Image except: print Error while Importing

Re: [web2py] Arrays and json

2012-09-04 Thread Jonathan Lundell
On 4 Sep 2012, at 7:04 AM, Hassan Alnatour halna...@gardeniatelco.com wrote: I am trying to use a data table called jtable , it uses arrays and return it as json .. now i have the php code for it : //Get records from database $result = mysql_query(SELECT * FROM people;); //Add all

Re: [web2py] Can't Import library

2012-09-04 Thread Marin Pranjić
Do you use web2py source code or windows binary? On Tue, Sep 4, 2012 at 4:33 PM, BlueShadow kevin.bet...@gmail.com wrote: Hi, I like to import the PIL library in My web2py application. I did install it under my windows mashine. when I open the Python(idle) guy i can write import PIL withot

[web2py] Re: web2pyslices for Android

2012-09-04 Thread Eduardo Félix
Parabéns Bruno, Ficou muito show! Tenho um motorola xoom com android 4.02 e tá rodando perfeito!!! Em segunda-feira, 3 de setembro de 2012 20h46min12s UTC-3, rochacbruno escreveu: Hi, I just published a beta version of web2pyslices reader for Android:

[web2py] administrative interface editor

2012-09-04 Thread caps.i.sin
Hello all I have a question about the administrative interface editor : On my current web2py version (2.03), when I edit a file (for example a controller) I press [ctrl + S] to save it. If there is an error, the background color of Last saved on: field is yellow instead of green. On the

Re: [web2py] Re: [Announcement] web2py powered app Vocabilis.NET

2012-09-04 Thread Alan Etkin
Congratulations for a great work. The text-to-speech feature is very impressive also. Would you mind telling what technology did you use for that feature (in case there aren't comercial issues of course) On Tuesday, September 4, 2012 10:51:44 AM UTC-3, Alexei Vinidiktov wrote: Hi David

[web2py] Updated cheatsheet

2012-09-04 Thread Massimo Di Pierro
http://web2py.com/examples/static/web2py_cheatsheet.pdf --

[web2py] Re: Auth Decorator / Model Question.

2012-09-04 Thread Massimo Di Pierro
Can you make a more concrete example. Not Sure I understand what users_id refers to. On Monday, 3 September 2012 22:43:10 UTC-5, Kevin C wrote: The title isn't very descriptive, but I hope this paragraph clears things up. Basically we are creating a basic SaaS app. Users will log in at

Re: [web2py] Can't Import library

2012-09-04 Thread BlueShadow
the binary On Tuesday, September 4, 2012 4:42:21 PM UTC+2, Marin Pranjić wrote: Do you use web2py source code or windows binary? On Tue, Sep 4, 2012 at 4:33 PM, BlueShadow kevin@gmail.comjavascript: wrote: Hi, I like to import the PIL library in My web2py application. I did install

[web2py] Re: SQLFORM.grid CSS help

2012-09-04 Thread Massimo Di Pierro
People are not supposed to update static files in old apps, that is why the grid contains alignment info but not other style info. On the other side we do not guaranteed backward compatibility for the grid look and feel. It should be possible to generate a grid console with the right alignment

Re: [web2py] Re: Twitter account for @web2py

2012-09-04 Thread Massimo Di Pierro
I cannot figure out how to sign up for cotweet. :-( On Monday, 3 September 2012 15:45:14 UTC-5, Luther Goh Lu Feng wrote: I think it is also possible to give trusted and active members of the community access to the twitter account via some service like cotweet. On Tuesday, September 4,

Re: [web2py] Re: Twitter account for @web2py

2012-09-04 Thread David | StyleFlare
Don't tweet commit messages, that is really very annoying. Releases are fine. On 9/4/12 11:21 AM, Massimo Di Pierro wrote: I cannot figure out how to sign up for cotweet. :-( On Monday, 3 September 2012 15:45:14 UTC-5, Luther Goh Lu Feng wrote: I think it is also possible to give

Re: [web2py] Re: [Announcement] web2py powered app Vocabilis.NET

2012-09-04 Thread Alexei Vinidiktov
Thanks, Alan! At first I was planning on using Microsoft Translate API but they are not currently accepting payments from residents of Russia. So I had to choose something different. Currently I'm using the unofficial Google Text to Speech API. If there are issues with the use of this unofficial

Re: [web2py] Re: [Announcement] web2py powered app Vocabilis.NET

2012-09-04 Thread wwwgong
Thanks for sharing your web site. I am interested in using it to teach Chinese. It would be good if you can post a youtube video on how to your site. Wen On Friday, August 31, 2012 8:52:01 AM UTC-4, Alexei Vinidiktov wrote: That would be great! :) On Fri, Aug 31, 2012 at 3:04 AM, Massimo

Re: [web2py] Can't Import library

2012-09-04 Thread Anthony
The binary version of web2py includes its own Python interpreter, so it doesn't use your machine's Python and doesn't see any modules installed there. If you run web2py from source, you can take advantage of everything in your machine's Python installation. Anthony On Tuesday, September 4,

Re: [web2py] Re: web2py 2.0.6 and JqueryUI

2012-09-04 Thread Kevin Miller
Ok I found my problem that I spoke of earler. It was the version of jquery. I was using jquery 1.7.2 before with no problems. When I upgraded to web2py 2.0.6, it came with Jquery 1.8.0 and that was causing the problem. So I just copied the older version jquery and all is ok for now. JQuery UI

Re: [web2py] Re: Twitter account for @web2py

2012-09-04 Thread Massimo Di Pierro
Do not worry. On Tuesday, 4 September 2012 10:26:52 UTC-5, David J wrote: Don't tweet commit messages, that is really very annoying. Releases are fine. On 9/4/12 11:21 AM, Massimo Di Pierro wrote: I cannot figure out how to sign up for cotweet. :-( On Monday, 3 September 2012

[web2py] Re: SQLFORM.grid CSS help

2012-09-04 Thread Niphlod
I'll try to work that out but it's gonna take more time. Il giorno martedì 4 settembre 2012 17:19:16 UTC+2, Massimo Di Pierro ha scritto: People are not supposed to update static files in old apps, that is why the grid contains alignment info but not other style info. On the other side we

[web2py] Re: Updated cheatsheet

2012-09-04 Thread stefaan
Very useful! Thanks. (p.s. I noticed a small typo: VirutualHost instead of VirtualHost in two places) --

[web2py] Re: Display Image

2012-09-04 Thread BlueShadow
Its working fine now. So I thought why not expand it create a thumbnail and displaying it. to reduce loading speed of the website. So I used this nice code from web2py slices: def makeThumbnail(dbtable,ImageID,size=(150,150)): try: thisImage=db(dbtable.id==ImageID).select()[0]

[web2py] Code editor on the administrative interface

2012-09-04 Thread caps.i.sin
Dear all, I have a question about the code editor on the administrative interface : When I edit a code (for example a controller) I save it with [Ctrl + S]. If there are any errors on my python code, the field Last saved on has a yellow background. On my previous web2py version, when I had an

[web2py] Could we add testRunner capabilities to admin testing interface?

2012-09-04 Thread Marek Mollin
Hey, I really love testing in admin. I mean its out-of-thebox zero conf one click doctesting. I love it. I dont have to get into massive unittest module(which is great, but for differently scoped applications). However there is one thing I love in testRunner. The ability to replicate a db and

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

2012-09-04 Thread Mandar Vaze
Bruno : Thanks for the tip. The upgrade was broken (for me at least) on 2.0.2 I didn't get notification to upgrade to 2.0.6 (It would remain stuck in checking for upgrades) Your suggestion worked well. -Mandar On Tuesday, September 4, 2012 4:45:27 AM UTC+5:30, rochacbruno wrote: If you have

Re: [web2py] Re: Bootstrap and custom forms and widgets

2012-09-04 Thread Alec Taylor
Thanks, in that case I think I've found a bug in that formstyle setting. Around my submit button it has drawn a white rectangle; I've been able to extract it into a test-case: http://jsfiddle.net/AlecTaylor/7whPt/ On Tue, Sep 4, 2012 at 11:09 PM, Anthony abasta...@gmail.com wrote: Also, you

[web2py] postgres problem at register user ?

2012-09-04 Thread Bogdan Buneci
Hi there, I tried to use postgresql driver pg8000 with postgresql-9.1 but registration of a new user in the app failed with this error. *class 'gluon.contrib.pg8000.errors.ProgrammingError' ('ERROR', '42703', 'column email_field does not exist')* the sql query that failed: 2012-09-04

[web2py] required option in Field

2012-09-04 Thread Denis Rykov
I use the following Field definition: Field('admin_unit', required=True, label='Region'), But when I create new row through smartgrid interface and leave this field empty - validation error not appears and record creates in database. If see table in database you can see that 'admin_unit' field

[web2py] web2py 2.0.6 getting table fields

2012-09-04 Thread lcamara
Hey, With 1.99.7 I was using this code to get all of the table fields: table_foo_fields = (db.foo.get(field) for field in db.foo.fields) I did this because I wanted to inspect the fields, to know if a field was writable, etc. Now I get: AttributeError: 'Table' object has no attribute 'get'

[web2py] unique and notnull options not applies to foreign key field

2012-09-04 Thread Denis Rykov
I would like make one to one tables relation. For example: db.define_table('contract', Field('num', unique=True, notnull=True'), ... db.define_table('student', Field('contract', db.contract, unique=True, notnull=True, label='Договор'), But unique and notnull options doesnt reflects

Re: [web2py] Updated cheatsheet

2012-09-04 Thread Bruno Rocha
Small question.. cache.ram.clear(regex='*') will clear the whole cache? --

Re: [web2py] Re: Bootstrap and custom forms and widgets

2012-09-04 Thread Anthony
I don't think it's a bug. The submit button is in a div with class form-actions, and bootstrap.css defines the background color of that class as whiteSmoke. You can override that with your own CSS rule for the form-actions class. Anthony On Tuesday, September 4, 2012 1:18:13 PM UTC-4, Alec

[web2py] Re: unique and notnull options not applies to foreign key field

2012-09-04 Thread Anthony
db.define_table('contract', Field('num', unique=True, notnull=True'), ... db.define_table('student', Field('contract', db.contract, unique=True, notnull=True, label='Договор'), But unique and notnull options doesnt reflects in database. In generally, how I can make one to

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

2012-09-04 Thread lucas
well, i am still having this fatal crash after login. i simplified my code, especially in layout.html to remove all instances of db, auth, and session. or checking for not None if i must like in session. i also scanned and checked index() and other start up pages or functions. are there

[web2py] Re: Updated cheatsheet

2012-09-04 Thread apps in tables
We all respect your copyleft. On Tuesday, September 4, 2012 6:12:03 PM UTC+3, Massimo Di Pierro wrote: http://web2py.com/examples/static/web2py_cheatsheet.pdf --

[web2py] Re: web2py 2.0.6 getting table fields

2012-09-04 Thread Anthony
Even before 2.0, this probably would have been the preferred way to do it: (db.foo[field] for field in db.foo.fields) Anthony On Tuesday, September 4, 2012 1:44:51 PM UTC-4, lcamara wrote: Hey, With 1.99.7 I was using this code to get all of the table fields: table_foo_fields =

[web2py] Re: Code editor on the administrative interface

2012-09-04 Thread Massimo Di Pierro
Please open a ticket and we will try restore previous behavior On Tuesday, 4 September 2012 12:06:02 UTC-5, caps.i.sin wrote: Dear all, I have a question about the code editor on the administrative interface : When I edit a code (for example a controller) I save it with [Ctrl + S]. If

[web2py] Re: Could we add testRunner capabilities to admin testing interface?

2012-09-04 Thread Massimo Di Pierro
Perhaps this can help. In your models: if request.function == '_TEST': db = DAL('sqlite://testdb.sqlite') else: db = DAL('sqlite://production.sqlite') On Tuesday, 4 September 2012 12:08:26 UTC-5, Marek Mollin wrote: Hey, I really love testing in admin. I mean its out-of-thebox zero

Re: [web2py] Updated cheatsheet

2012-09-04 Thread Niphlod
regex is applied with match. clear all the keys, i.e., match everything, is achieved with .* (for the regex undergrads, . means anything, * means repeated = times). In the code there is a special case for clear(regex=None): it will delete all keys, without scanning all keys one by one and

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

2012-09-04 Thread Massimo Di Pierro
When you say crash you meat a ticket, right? Try delete all of your session files. On Tuesday, 4 September 2012 13:11:23 UTC-5, lucas wrote: well, i am still having this fatal crash after login. i simplified my code, especially in layout.html to remove all instances of db, auth, and

Re: [web2py] Updated cheatsheet

2012-09-04 Thread Bruno Rocha
So I assume cache.ram.clear() will do the job ? --

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

2012-09-04 Thread lucas
yes, i mean ticket, sorry. should i just delete the session manually or should i do it programmatically? --

Re: [web2py] Re: Twitter account for @web2py

2012-09-04 Thread Luther Goh Lu Feng
Oops I am so sorry Massimo. Seems that cotweet became a paid service earlier this year. Maybe someone can recommend a free alternative? On Tuesday, September 4, 2012 11:57:31 PM UTC+8, Massimo Di Pierro wrote: Do not worry. On Tuesday, 4 September 2012 10:26:52 UTC-5, David J wrote:

[web2py] Validating form fields manually

2012-09-04 Thread Daniel Gonzalez
Hi, In my application I have a form with (among other data), the following two fields: - channel: a set with three possible values: voicemail, sipaddress or phone. - destination: a string, the meaningf of which depends on the value of channel. I have the problem that I attach a

Re: [web2py] Re: Twitter account for @web2py

2012-09-04 Thread Bruno Rocha
There is a free option.. I manage the web2py facebook page, (also Massimo and Anthony are added as co-managers), facebook can tweet automatically from page -- twitter. So we can add more people to page management and all publications by page will go to twitter. Just need to enter there, go to

Re: [web2py] Validating form fields manually

2012-09-04 Thread Bruno Rocha
this: def validate_my_form(form) if form.vars.channel == foo: form.errors.channel = This channel is not valid if form.process(onvalidation=validate_my_form).accepted: # do whatever here *Bruno Cezar Rocha** - @rochacbruno* rochacbr...@gmail.com | Mobile: +55 (11) 99210-8821

Re: [web2py] Updated cheatsheet

2012-09-04 Thread Niphlod
Watching the code, yes. PS: you can inspect with cache.ram.storage the actual dict cache. On Tuesday, September 4, 2012 8:33:53 PM UTC+2, rochacbruno wrote: So I assume cache.ram.clear() will do the job ? --

Re: [web2py] Re: Twitter account for @web2py

2012-09-04 Thread Pystar
whats the link to the web2py facebook page? On Tuesday, September 4, 2012 8:13:20 PM UTC+1, rochacbruno wrote: There is a free option.. I manage the web2py facebook page, (also Massimo and Anthony are added as co-managers), facebook can tweet automatically from page -- twitter. So we can

Re: [web2py] Web2Py with real time data

2012-09-04 Thread Richard Vézina
Are you aware of comet_messaging.py in gluon/contrib? There is a video from Bruno that show how use it : http://vimeo.com/38972256 It use websocket, so only work with up to date browser. Richard On Mon, Sep 3, 2012 at 9:13 PM, luckysmack luckysm...@gmail.com wrote: I'm curious if anyone has

Re: [web2py] How to customize datepicker?

2012-09-04 Thread Richard Vézina
You have this alternative : http://dev.s-cubism.com/plugin_anytime_widget Not sure it does 2 months neither. Richard On Tue, Sep 4, 2012 at 1:57 AM, lyn2py lyn...@gmail.com wrote: I would like to have the date picker display 2 months instead of the default 1 month. And optionally, change

Re: [web2py] Tweet this and web2py forms. How do I design this?

2012-09-04 Thread Pystar
can you point me to any tips or hints? I really appreciate On Tuesday, September 4, 2012 8:03:08 AM UTC+1, Alec Taylor wrote: Maybe what you're looking for is a self-populating javascript modal with a tweet this button. That should be trivial to implement by appending the write information

  1   2   >