Re: [web2py] Re: web2py.js error

2012-09-06 Thread Johann Spies
On 6 September 2012 19:20, Richard Vézina wrote: > grep : http://en.wikipedia.org/wiki/Grep > > Thanks. I am an experienced grep user. Fortunately on Debian there is a shortcut for grep -r (rgrep) which, combined with -l quickly shows in which files the regular expression is present. > But, y

Re: [web2py] Re: Can't store query in session

2012-09-06 Thread Johann Spies
On 7 September 2012 01:17, Limedrop wrote: > Johann, you should look at this slice... > > http://www.web2pyslices.com/slice/show/1489/save-query-in-session > > Does it do what you want? > > > Thanks. I will study and try it. Looks like something I can use. Regards Johann -- Because experienc

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

2012-09-06 Thread lucas
> > ok, so i turned on debug5 in the postgres.conf file and restarted it. > gives lots of entries. i then waited for that type ticket to arise again, > it did, and traced to logs to that date/time stamp. the entries are > below. i really can't see anything unusual except to say that it is

[web2py] How to add a web2py GUI for a background process ?

2012-09-06 Thread Andrew
How about messaging? Qpid.apache.org has a good broker implementation with python bindings. Your script could be a producer and web2py a consumer of a queue used for communicating events. Andrew --

[web2py] Re: Nit in manual (= should be ==)?

2012-09-06 Thread Anthony
Just fixed on github. Anthony On Thursday, September 6, 2012 10:55:48 PM UTC-4, Massimo Di Pierro wrote: > > yes > > On Thursday, 6 September 2012 21:10:36 UTC-5, MichaelF wrote: >> >> Section 7.8 (SQLFORM.grid and smartgrid) in the description of displaying >> parents and children using grid: >

Re: [web2py] little css issue and french translation

2012-09-06 Thread Massimo Di Pierro
:-) merci'. Send me a patch when you can. On Thursday, 6 September 2012 21:20:44 UTC-5, Don_X wrote: > > > "propulsé par" is definately the proper translation for powered by > > it is indeed nice to see french speaking folks here ... the french group > on the other hand has been inactive .. it

[web2py] Re: Nit in manual (= should be ==)?

2012-09-06 Thread Massimo Di Pierro
yes On Thursday, 6 September 2012 21:10:36 UTC-5, MichaelF wrote: > > Section 7.8 (SQLFORM.grid and smartgrid) in the description of displaying > parents and children using grid: > > SQLFORM.grid(db.parent,left=db.child.on(db.child.parent=db.parent.id)) > > The second '=' should be '==' yes? > -

[web2py] web2py 2.0.8 posted

2012-09-06 Thread Massimo Di Pierro
Minor bug fixes, some recent tickets closed and fixed a problem with the windows binary distribution. It should now run on XP and more recent versions of windows without pyhton pre-installed. Thanks Niphlod and Marin for help with windows. Massimo --

[web2py] When will "web2py Application Development Cookbook" be updated with grid/smartgrid?

2012-09-06 Thread MichaelF
When will "web2py Application Development Cookbook" be updated with grid/smartgrid? I purchased the book recently and was disappointed to see that neither SQLFORM.grid nor SQLFORM.smartgrid were mentioned. I assume that's because those are still 'beta' or experimental. Any thoughts on when the

Re: [web2py] little css issue and french translation

2012-09-06 Thread Don_X
"propulsé par" is definately the proper translation for powered by it is indeed nice to see french speaking folks here ... the french group on the other hand has been inactive .. it seems since last year ! There is the french translation for the latest version of the book in the works ! ... d

[web2py] Nit in manual (= should be ==)?

2012-09-06 Thread MichaelF
Section 7.8 (SQLFORM.grid and smartgrid) in the description of displaying parents and children using grid: SQLFORM.grid(db.parent,left=db.child.on(db.child.parent=db.parent.id)) The second '=' should be '==' yes? --

[web2py] Re: Hi, When will book with latest version modification be ready?

2012-09-06 Thread Massimo Di Pierro
Many of the new features are already described in the online version of the book. It will take about one month to produce a new printed version and pdf. On Thursday, 6 September 2012 17:40:00 UTC-5, immarker wrote: > > Hi, > I am new to web2py, when will book with latest version modification

[web2py] Re: invalid view (default/contribuyentes.html)

2012-09-06 Thread Anthony
Is contribuyentes.html inside the /views/default folder, or just inside /views (it belongs in the former)? Anthony On Thursday, September 6, 2012 3:48:26 PM UTC-4, ocascante wrote: > > Hi, i am new in web2py. > > I have web2py 2.07 installed in my linux mint 13 computer. I used the > script ava

Re: [web2py] invalid view (default/contribuyentes.html)

2012-09-06 Thread Bruno Rocha
that should be under */views/default/contribuyentes.html* On Thu, Sep 6, 2012 at 4:48 PM, ocascante wrote: > Hi, i am new in web2py. > > I have web2py 2.07 installed in my linux mint 13 computer. I used the > script available in google to install it. > > Now, i have a problem that i don't unders

[web2py] Re: Can't store query in session

2012-09-06 Thread Limedrop
Johann, you should look at this slice... http://www.web2pyslices.com/slice/show/1489/save-query-in-session Does it do what you want? On Friday, September 7, 2012 12:40:44 AM UTC+12, Massimo Di Pierro wrote: > > You cannot store a query in a session. > > On Thursday, 6 September 2012 04:26:57 U

[web2py] Hi, When will book with latest version modification be ready?

2012-09-06 Thread immarker
Hi, I am new to web2py, when will book with latest version modification be ready? Thanks David Xiao --

[web2py] Re: I can't display a thumbnail?

2012-09-06 Thread BlueShadow
So I changed it to this: def makeThumbnail(dbtable,ImageID,size=(200,200)): try: thisImage=db(dbtable.id==ImageID).select()[0] import os, uuid except: print "Error while loading libraries" return try: from PIL import Image except: p

[web2py] invalid view (default/contribuyentes.html)

2012-09-06 Thread ocascante
Hi, i am new in web2py. I have web2py 2.07 installed in my linux mint 13 computer. I used the script available in google to install it. Now, i have a problem that i don't understand. First I have in the default.py this: def contribuyentes(): grid = SQLFORM.smartgrid(db.contribuyentes)

[web2py] Re: I can't display a thumbnail?

2012-09-06 Thread Anthony
On Thursday, September 6, 2012 4:23:50 PM UTC-4, BlueShadow wrote: > > the link directs to this group Anthony. > Yes, I know, but I noticed you're code didn't implement that solution so was wondering if you had tried it. > I didn't try: > thisImage.update_record(thumb=db.Images.thumb.store(im

[web2py] Re: Checkbox widget with divs?

2012-09-06 Thread Anthony
Oops, sorry. I'll edit the original. On Thursday, September 6, 2012 3:54:30 PM UTC-4, Mike Girard wrote: > > That worked perfectly with one minor alteration: 'formstyle' to 'style' > > widget=lambda f, v: SQLFORM.widgets.checkboxes.widget(f, v, style='divs') > > On Thursday, September 6, 2012 3:40

[web2py] Re: Ajax LOAD

2012-09-06 Thread Anthony
LOAD(..., content=[whatever you want]) Note, "content" can be an HTML helper, including an image element. Anthony On Thursday, September 6, 2012 4:17:03 PM UTC-4, Hassan Alnatour wrote: > > Dear ALL, > > how can i change the "loading.." word that appears when i use this > {{=LOAD()}} ?? > > Be

[web2py] Re: I can't display a thumbnail?

2012-09-06 Thread BlueShadow
the link directs to this group Anthony. I didn't try: thisImage.update_record(thumb=db.Images.thumb.store(im, filename= 'thumbnail.jpg')) this would store the thumb directly in the database? On Thursday, September 6, 2012 9:53:22 PM UTC+2, Anthony wrote: > > Did you try this method: > https://gr

[web2py] Re: response.stream and web2py_component

2012-09-06 Thread Anthony
My response from Stack Overflow: jQuery('#rep_type').change(function(){ window.open('{{=URL('reports', 'form_query')}}' + '/' + jQuery(this).val()); }); If you want the file to download as an attachment, don't use a component. A component creates a div for displaying content, but you just want

[web2py] Ajax LOAD

2012-09-06 Thread Hassan Alnatour
Dear ALL, how can i change the "loading.." word that appears when i use this {{=LOAD()}} ?? Best Regards, --

[web2py] Re: Checkbox widget with divs?

2012-09-06 Thread Mike Girard
That worked perfectly with one minor alteration: 'formstyle' to 'style' widget=lambda f, v: SQLFORM.widgets.checkboxes.widget(f, v, style='divs') On Thursday, September 6, 2012 3:40:45 PM UTC-4, Anthony wrote: > > Try > > widget=lambda f, v: SQLFORM.widgets.checkboxes.widget(f, v, formstyle= > 'd

[web2py] Re: I can't display a thumbnail?

2012-09-06 Thread Anthony
Did you try this method: https://groups.google.com/d/msg/web2py/tgZRofX0RgY/rHMBUkYws1wJ On Thursday, September 6, 2012 1:19:06 PM UTC-4, BlueShadow wrote: > > So I made an application containing just pa page to upload the image, make > an article and display the article. > It shows the original

[web2py] Re: Checkbox widget with divs?

2012-09-06 Thread Anthony
Try widget=lambda f, v: SQLFORM.widgets.checkboxes.widget(f, v, formstyle='divs' ) Anthony --

[web2py] Checkbox widget with divs?

2012-09-06 Thread Mike Girard
The book says that the checkbox widget takes a 'style' argument for which 'divs' is a possible value. What modification is required in the following code? Thanks. form = SQLFORM.factory( Field('test', type='string', requires=IS_IN_DB(db, db.person.name_url, '%(name)s',

[web2py] Re: How to add a web2py GUI for a background process ?

2012-09-06 Thread Massimo Di Pierro
b) you can try web2py cron @reboot but only work well if you use rocket (the built-in web server). Otherwise you should a different mechanism. a) you may want to look at this example: https://github.com/web2py/web2py/blob/master/applications/admin/controllers/gae.py#L69 It only works if yo

[web2py] Re: response.stream and web2py_component

2012-09-06 Thread Massimo Di Pierro
I think you should use On Thursday, 6 September 2012 11:48:56 UTC-5, maverick wrote: > > Hello! > I want to stream a file as an attachment in the response. I have this > function: > def form_query(): > response.flash = str(request.args(0)) > response.generic_patterns = ['load

[web2py] Re: web2py 2.0.2 is out

2012-09-06 Thread bapster
Today I downloaded 2.0.7 for Windows and am running it under Windows XP Professional, service pack 3. It seems to work fine, although I've only done very cursory testing. --

[web2py] response.stream and web2py_component

2012-09-06 Thread maverick
Hello! I want to stream a file as an attachment in the response. I have this function: def form_query(): response.flash = str(request.args(0)) response.generic_patterns = ['load'] response.headers['Content-Type'] = gluon.contenttype.contenttype('.txt') response.hea

[web2py] How to add a web2py GUI for a background process ?

2012-09-06 Thread ban
This is my scenario: I'm writing an unsupervised python script that continuously listens for 'alarms' coming from some network 'entities'. Whenever an alarm is received, the script automatically takes some actions on the affected entity to mitigate the alarm cause. Since there can be hund

Re: [web2py] Re: Sort order for related table grids in SQLFORM.smartgrid

2012-09-06 Thread Stanislav Stankevich
Wow, really great! It would be a good idea to put this example to the book. I'm just begining to understend the Python strength after VBA. Thanks четверг, 22 декабря 2011 г., 17:41:17 UTC+4 пользователь Jim S написал: > > Are you passing a dict to the orderby parm? > > Here is an example of one I

[web2py] Re: Ticket issued in Book Search

2012-09-06 Thread Massimo Di Pierro
thanks for reporting it. Fixed. On Thursday, 6 September 2012 12:41:48 UTC-5, Andrew W wrote: > > Type in auth.wiki in the book's search field. > > P.s. keen to learn more about auth.wiki. > --

[web2py] Ticket issued in Book Search

2012-09-06 Thread Andrew W
Type in auth.wiki in the book's search field. P.s. keen to learn more about auth.wiki. --

Re: [web2py] Re: web2py.js error

2012-09-06 Thread Richard Vézina
grep : http://en.wikipedia.org/wiki/Grep But, you can't just delete de plugin? Anthony was right about chosen, that the jQuery plugin I was talking about. Richard On Thu, Sep 6, 2012 at 3:32 AM, Johann Spies wrote: > On 5 September 2012 18:27, Anthony wrote: > >> On Wednesday, September 5,

Re: [web2py] Why would I use DIV classes/helpers, over an html template?

2012-09-06 Thread pbreit
Same for me. I never (very, very rarely) use HTML helpers in controllers and only use URL() in views. I try to limit the logic I put in views but love that I have full Python if necessary. On Thursday, September 6, 2012 12:20:38 AM UTC-7, Marin Pranjić wrote: > > You should use helpers (DIV &

Re: [web2py] Re: Some executesql questions

2012-09-06 Thread Michele Comitini
> > http://pybrary.net/pg8000/dbapi.html > > You can pass parametric arguments but you cannot change the style these > arguments are referred to in the SQL. Yet this is probably not too > important. > The deal with those drivers that support the specs is that you do not need to care about python <-

[web2py] Re: Some executesql questions

2012-09-06 Thread Massimo Di Pierro
I misunderstood the question. Anthony is correct there is the placeholder argument. What is missing is a way to specify the format of the parametric arguments according to http://www.python.org/dev/peps/pep-0249/ specs as handled by the parameterstyle attribute of pg8000: *http://pybrary.net/pg

[web2py] Re: Some executesql questions

2012-09-06 Thread Mike Girard
"The db.executesql() method takes a "placeholders" argument, which can be a list, tuple, or dictionary of positional or named parameters to be filled in the query. This is the first thing mentioned in the docstring." Doh! I swear I go selectively blind in a masochistic desire to make a fool of

[web2py] Re: Some executesql questions

2012-09-06 Thread Anthony
On Thursday, September 6, 2012 10:38:29 AM UTC-4, Mike Girard wrote: > > 1. Is there a way to pass in parameters to the sql, in accordance with the > psycopg2 recommendation? I don't see anything in the docstring about that. > Does it matter? The db.executesql() method takes a "placeholders" ar

[web2py] Re: Some executesql questions

2012-09-06 Thread Massimo Di Pierro
Not yet. There should be. On Thursday, 6 September 2012 09:38:29 UTC-5, Mike Girard wrote: > > 1. Is there a way to pass in parameters to the sql, in accordance with the > psycopg2 recommendation? I don't see anything in the docstring about that. > Does it matter? > 2. Do the sql execution times

[web2py] Some executesql questions

2012-09-06 Thread Mike Girard
1. Is there a way to pass in parameters to the sql, in accordance with the psycopg2 recommendation? I don't see anything in the docstring about that. Does it matter? 2. Do the sql execution times reported by the toolbar include anything besides the execution time of the actual database query? Qu

[web2py] Re: web2py 2.0.2 is out

2012-09-06 Thread Massimo Di Pierro
If you download and install this: http://www.microsoft.com/en-us/download/details.aspx?id=29 does it help? On Wednesday, 5 September 2012 07:29:51 UTC-5, pradeep cs wrote: > > Hi, > > Is there any problem with windows binaries for XP, i tried installing the > new version 2.0.7 on XP it is not w

Re: [web2py] sqlform.grid and query conditions

2012-09-06 Thread Anthony
How about http://web2py.com/books/default/chapter/29/06#Common-filters or http://web2py.com/books/default/chapter/29/06#Common-fields-and-multi-tenancy ? Anthony On Wednesday, September 5, 2012 8:48:49 PM UTC-4, Kevin C wrote: > > We did something similar but it feels very hackish, considering

Re: [web2py] Re: DB Migration (sqlite->pgsql) Problems with 1.99.7 - 2.0.6 - 2.0.7 Versions

2012-09-06 Thread Massimo Di Pierro
Are you getting errors with both psycopg2 and pg8000? Are these errors new with 2.0.7? On Thursday, 6 September 2012 09:09:42 UTC-5, Christian Espinoza wrote: > > The last one was with psycopg2, this is the last value of command using * > pg8000:* > > SELECT auth_group.id, auth_group.role, auth

Re: [web2py] Re: DB Migration (sqlite->pgsql) Problems with 1.99.7 - 2.0.6 - 2.0.7 Versions

2012-09-06 Thread Massimo DiPierro
Again… what is wrong with the generated SQL? I do not know how to fix it if I do not understand why postgres is complaining. Massimo On Sep 6, 2012, at 9:09 AM, Christian Espinoza wrote: > The last one was with psycopg2, this is the last value of command using > pg8000: > > SELECT auth_grou

Re: [web2py] Re: web2py login redirect

2012-09-06 Thread Vid Ogris
Yes. Thank you 2012/9/6 Anthony > I assume this means you > found it? > > > On Thursday, September 6, 2012 2:42:06 AM UTC-4, Yebach wrote: >> >> I searched if I call the auth.register() function, but i don't. not in >> view, not in controler not in mo

Re: [web2py] Re: DB Migration (sqlite->pgsql) Problems with 1.99.7 - 2.0.6 - 2.0.7 Versions

2012-09-06 Thread Christian Espinoza
The last one was with psycopg2, this is the last value of command using * pg8000:* SELECT auth_group.id, auth_group.role, auth_group.description FROM auth_group WHERE (auth_group.id > 0) ORDER BY auth_group.id LIMIT 1 OFFSET 0; The failure appears when I try to init some values in a empty postg

[web2py] Re: web2py login redirect

2012-09-06 Thread Anthony
I assume this means you found it? On Thursday, September 6, 2012 2:42:06 AM UTC-4, Yebach wrote: > > I searched if I call the auth.register() function, but i don't. not in > view, not in controler not in model. I have absolutely no idea what could >

[web2py] Re: Override auth.login()?

2012-09-06 Thread Anthony
You could put all that in a function within the user() function or imported from a module: def custom_login_form(form): [code to manipulate form] login_form = auth.login() custom_login_form(login_form) Or as Massimo suggests, you can just build a custom form in the view. If you need the fo

Re: [web2py] Re: DB Migration (sqlite->pgsql) Problems with 1.99.7 - 2.0.6 - 2.0.7 Versions

2012-09-06 Thread Massimo DiPierro
So, what is wrong with those SQL? I think web2py is generating the correct ones. What am I missing? On Sep 6, 2012, at 8:40 AM, Christian Espinoza wrote: > Massimo, > > SELECT auth_user.id, auth_user.username, auth_user.first_name, > auth_user.last_name,\ > auth_user.sede_id, auth_user.email,

Re: [web2py] Re: DB Migration (sqlite->pgsql) Problems with 1.99.7 - 2.0.6 - 2.0.7 Versions

2012-09-06 Thread Christian Espinoza
Massimo, SELECT auth_user.id, auth_user.username, auth_user.first_name, auth_user.last_name,\ auth_user.sede_id, auth_user.email, auth_user.estado, auth_user.password, auth_user.created_on, auth_user.modified_on, auth_user.registration_key,\ auth_user.reset_password_key, auth_user.registration_id

[web2py] Re: Why would I use DIV classes/helpers, over an html template?

2012-09-06 Thread Anthony
You may find this helpful: http://stackoverflow.com/questions/8091487/what-are-the-benefits-of-building-html-markup-with-html-helpers-in-web2py/8095585#8095585 Anthony On Thursday, September 6, 2012 1:30:03 AM UTC-4, luckysmack wrote: > > Traditionally, for html templates, I would do something l

[web2py] Re: Can't store query in session

2012-09-06 Thread Massimo Di Pierro
You cannot store a query in a session. On Thursday, 6 September 2012 04:26:57 UTC-5, Johann Spies wrote: > > I have been using session a lot to store queries. > > This morning with the following query: > > (((akb_doccenter.publication_date = '2012') AND (akb_doccenter_category.uuid > = akb_docce

[web2py] Re: Why would I use DIV classes/helpers, over an html template?

2012-09-06 Thread Massimo Di Pierro
As others have already stated. This PHP ** *Hello * ** translates in this web2py: ** *Hello {{= name }}* ** You use helpers when html must be geneted programmatically to avoid concatenating strings which can cause XSS vulnerabilities. For example: {{=SELECT(*[OPTION(option) for optio

[web2py] Re: Override auth.login()?

2012-09-06 Thread Massimo Di Pierro
I would just edit the user.html and add {{if request.args(0)=='login':}} {{=form.custom.begin}} ... the rest of your custom form. {{=form.custom.end}} {{pass}} On Wednesday, 5 September 2012 23:51:22 UTC-5, Alec Taylor wrote: > > I want to override the default auth.login(), so wherever auth.logi

Re: [web2py] compute fields do not show up in SQLFORM view form

2012-09-06 Thread Massimo Di Pierro
Please open a ticket and this will be easy to fix. On Wednesday, 5 September 2012 19:55:17 UTC-5, Alan Etkin wrote: > > El miércoles, 5 de septiembre de 2012 12:51:06 UTC-3, Massimo Di Pierro > escribió: >> >> yes please. Did this work in 1.99.7? >> >> > Ok, the current way is the same as in 1.9

Re: [web2py] Re: DB Migration (sqlite->pgsql) Problems with 1.99.7 - 2.0.6 - 2.0.7 Versions

2012-09-06 Thread Massimo Di Pierro
Can you add a print command after command = a[0] I want to know what is the invalid command. The ticket only shows part if it. On Wednesday, 5 September 2012 17:27:49 UTC-5, Christian Espinoza wrote: > > Hi Massimo, this is: > > *File /opt/web-apps/web2py/gluon/dal.py in log_execute at line

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

2012-09-06 Thread Michele Comitini
lucas, I think you can try looking in postgresql logs. Change your postgresql.conf configuration file so that it logs all the queries or at least all the queries that cause errors. Instructions are inside the postgresql.conf comments. Then restart postgresql and check the logs. It will not giv

Re: [web2py] [OT} Has anyone tried Ninja IDE before?

2012-09-06 Thread Alfonso de la Guarda
Hi, Well currently i have start to use it is a great editor with the basic (and minimum) features and great autocomplete with plugin support, however some bugs are annoying I'll give a chance and also help to improve it... (In someways remember me pycharm, in fact will be the obvious a

Re: [web2py] Re: [OT} Has anyone tried Ninja IDE before?

2012-09-06 Thread António Ramos
Is it better than sublime text 2? 2012/9/6 Luther Goh Lu Feng > Oh. When did you encounter this bug? Are you still using it? > > > On Thursday, September 6, 2012 5:42:29 PM UTC+8, Gregg Branquinho wrote: >> >> I really enjoyed as it enforces pep.. which is quite cool.. but it has >> some bigs

[web2py] Re: [OT} Has anyone tried Ninja IDE before?

2012-09-06 Thread Luther Goh Lu Feng
Oh. When did you encounter this bug? Are you still using it? On Thursday, September 6, 2012 5:42:29 PM UTC+8, Gregg Branquinho wrote: > > I really enjoyed as it enforces pep.. which is quite cool.. but it has > some bigs that cause systax collaping to malfunction which started to bug > me.. > >

Re: [web2py] Re: Limit Length column

2012-09-06 Thread Anthony
No, you can add an id to the grid (or wrap it in a div with an I'd), and then add the id to the CSS selector. Anthony On Thursday, September 6, 2012 1:32:42 AM UTC-4, Mandar Vaze wrote: > > Anthony, > > I guess the following will apply to ALL the sqlform.grid in the app, > correct ? > Generall

Re: [web2py] Can't store query in session

2012-09-06 Thread Johann Spies
On 6 September 2012 11:26, Johann Spies wrote: > I have been using session a lot to store queries. > Actually this statement is wrong. I have been storing the variables in the session necessary to build a query. Trying a shortcut (storing the query itself in the sesison) is not working althou

[web2py] Re: Connecting to external databases

2012-09-06 Thread Andrew W
Don't forget to "migrate=False" if you go to external databases. --

[web2py] Re: Connecting to external databases

2012-09-06 Thread Gregg Branquinho
It was a little tricky with the instance of MS sql Server and you have to use forward slashed and back slashes but this works db_mssql = DAL('mssql://user:pass@SERVER\INSTANCE/DatabaseName') db_mssql = DAL('mssql://user:pass@SERVER\SQLEXPRESS/DATABASE') On Thursday, September 6, 2012 11:41:21

Re: [web2py] Why would I use DIV classes/helpers, over an html template?

2012-09-06 Thread villas
IMO the other reasons for using DIV helpers etc in a template might be: (a) if the code looks clearer, (b) if it is shorter to type. It seems to work really well sometimes when I have a loop in a template. Just personal taste really. On Thursday, September 6, 2012 8:20:38 AM UTC+1, Marin Pr

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

2012-09-06 Thread lucas
the ticket frequency seems to be increasing. i put in regular linux cron to restart the httpd service in the morning, as well as, delete the sessions under that application. but i have been figuring out that if only occurs upon login, assuming the user is registered. and it seems to have som

[web2py] Re: [OT} Has anyone tried Ninja IDE before?

2012-09-06 Thread Gregg Branquinho
I really enjoyed as it enforces pep.. which is quite cool.. but it has some bigs that cause systax collaping to malfunction which started to bug me.. On Thursday, September 6, 2012 11:16:56 AM UTC+2, Luther Goh Lu Feng wrote: > > I just discovered this FOSS project and wonder if anyone has used i

[web2py] Re: Connecting to external databases

2012-09-06 Thread Gregg Branquinho
Yeahm I am very tentative as I this is my first time working web2py and I was worried intoduciny and error in db.py would stop the admin interface from running.. After reading the code it seem it won't.. Still cant get the conneciton open but that is probally a sql server problem.. On Thursday

[web2py] Can't store query in session

2012-09-06 Thread Johann Spies
I have been using session a lot to store queries. This morning with the following query: (((akb_doccenter.publication_date = '2012') AND (akb_doccenter_category.uuid = akb_doccenter.category)) AND (akb_doccenter_location.uuid = akb_doccenter. location)) I get the following when I try to do s

[web2py] [OT} Has anyone tried Ninja IDE before?

2012-09-06 Thread Luther Goh Lu Feng
I just discovered this FOSS project and wonder if anyone has used it and is able to give a quick opinion about it. http://ninja-ide.org/ --

[web2py] Re: Connecting to external databases

2012-09-06 Thread Niphlod
yep. Wouldn't it be faster if you just try that out ? On Thursday, September 6, 2012 10:12:56 AM UTC+2, Gregg Branquinho wrote: > > is it as simple as adding new global dabase objects in the db.py ? > > On Wednesday, 5 September 2012 22:18:37 UTC+2, Niphlod wrote: >> >> if you want to use the dal

[web2py] Re: NewBie Question about crud.create

2012-09-06 Thread tommasot
Il giorno mercoledì 5 settembre 2012 17:09:41 UTC+2, tommasot ha scritto: > > I have the following code in the controller about record creation > > *form = crud.create(db.anno,next='list_anno')* > > This is the model,how you can see is very simple :) > > *db.define_table('anno', > Field('desc

[web2py] Re: Connecting to external databases

2012-09-06 Thread Gregg Branquinho
is it as simple as adding new global dabase objects in the db.py ? On Wednesday, 5 September 2012 22:18:37 UTC+2, Niphlod wrote: > > if you want to use the dal to retrieve data from your databases you should > connect to them. > > dbmysql = DAL('mysql://...') > dbmmsql = DAL('mssql://...') > > Wh

[web2py] Re: NewBie Question about crud.create

2012-09-06 Thread tommasot
I need to verify if 'incorso' field is True for the new record created,after this check i need to set all other records in False,The 'incorso 'Field' is the equivalent for the current year in English Il giorno mercoledì 5 settembre 2012 18:34:48 UTC+2, Anthony ha scritto: > > Do you want to mani

Re: [web2py] Re: web2py.js error

2012-09-06 Thread Johann Spies
On 5 September 2012 18:27, Anthony wrote: > On Wednesday, September 5, 2012 11:57:23 AM UTC-4, Johann Spies wrote: > >> On 5 September 2012 16:10, Richard Vézina wrote: >> >>> For me chosen has keep working properly.. >> >> >> What is 'chosen' in this context? >> > > Probably http://harvesthq.g

[web2py] Re: Start web2py as windows service with ssl

2012-09-06 Thread Geo
First of all thansk for the answer, About the parameters_442.py, sorry that was a typo, I have the 443. Following your instructions I have changed the options.py this way: ... ip = socket.gethostbyname(socket.gethostname()) port = 8000 interfaces=[(ip,port)] interfaces.append((ip,443,'server.key'

Re: [web2py] Why would I use DIV classes/helpers, over an html template?

2012-09-06 Thread Marin Pranjić
You should use helpers (DIV & others) inside controllers. In views, it's better to use raw html. Only exception is URL helper which should be always used. One advantage of using helpers in controllers is serverside DOM: http://web2py.com/books/default/chapter/29/05#Server-side-DOM-and-parsing On