[web2py] Error in template.py

2010-05-07 Thread Jose
after updating this error occurs: line 514, in parse\nif name in self.lexers:\nTypeError: argument of type \'NoneType\' is not iterable\n' Jose

[web2py] Re: integer range select box

2010-05-15 Thread Jose
ps you? .requires = IS_IN_SET([x for x in range(1, 4)], zero=None) Jose

[web2py] crud.select and links

2010-05-15 Thread Jose
ry, fields=fields, ..., linkto=URL(r=request, f='read')) Jose

[web2py] Re: integer range select box

2010-05-15 Thread Jose
> > Why bother the [x for x in ...] ?  Just do >     requires = IS_IN_SET(range(1, 4)) You are right Jose

[web2py] Re: crud.select and links

2010-05-16 Thread Jose
On 15 mayo, 23:15, mdipierro wrote: > In the second case, does the list of fields include db.table.id? Yes, of course, in fact shows the id field, but without link. fields = my_table.fields rows = crud.select(my_table, query=query, fields=fields, ..., linkto=URL(r=request, f='read')) Jose

[web2py] Re: crud.select and links

2010-05-16 Thread Jose
On 16 mayo, 11:48, Jose wrote: > On 15 mayo, 23:15, mdipierro wrote: > > > In the second case, does the list of fields include db.table.id? > I understand, the fields list should be table.field instead of using only field Jose

[web2py] Re: hide id field in update or read-only forms

2010-05-18 Thread Jose
On 18 mayo, 06:59, Andrew Buchan wrote: > Hello, > > Very simple one today: > > SQLFORM(db.CAR_Report, record = CARId , readonly = True, fields = > ['Part_Number']) > > gives me a form showing: > > Id:                         1 > Part Number:         U5118 > > Thing is, I don't want the user to

[web2py] Charset problem

2010-05-20 Thread Jose
= DAL ("mssql ://..., db_codec = 'latin1') As I said in another thread with the parameter db_codec = 'latin1' I can see the contents of the database correctly. The problem I have is when I write, it seems not to respect the db_codec latin1 and use another. How do I fix this problem? Jose

[web2py] Cherokee-fastcgi server (error log)

2010-06-04 Thread Jose
e/web2py/gluon/contrib/gateways/fcgi.py", line 552, in write self._sendall(sock, header) File "/usr/home/web2py/gluon/contrib/gateways/fcgi.py", line 529, in _sendall sent = sock.send(data) socket.error: [Errno 32] Broken pipe How to solve this? Jose

[web2py] Re: Cherokee-fastcgi server (error log)

2010-06-05 Thread Jose
> > There is not much that we can do. The web server logs it. Probably > web2py logs it too. I have to enable log in fcgihandler.py. I'm going to do and see shows. Jose

[web2py] Keep the instance of a class during the session

2010-06-06 Thread Jose
) Save the state of the object in the database. I do not like. 4) ¿? How do you see this approach? What other alternative can be proposed? Regards Jose

[web2py] Re: Keep the instance of a class during the session

2010-06-07 Thread Jose
utes_value(),expiration_time) > > If the data is per user you can store it in session but you need to > pickle/unpickle it yourself. > Thank you very much, it worked well. I had thought of cache, but I thought it was only for functions and selec. Jose

[web2py] Re: Keep the instance of a class during the session

2010-06-09 Thread Jose
As I mentioned, with the object caching works well. When I create the object you pass as argument the db. The problem I have is that when I save something in the database fails me because the base is closed. ... File "/usr/home/jose/web2py/applications/py_ccu/modules/ incidencias.py"

[web2py] Re: Keep the instance of a class during the session

2010-06-09 Thread Jose
On 9 jun, 17:38, Jose wrote: > As I mentioned, with the object caching works well. > When I create the object you pass as argument the db. The problem I > have is that when I save something in the database fails me because > the base is closed. > > ... > File "/usr/hom

[web2py] error in trunk

2010-06-11 Thread Jose
: form=crud.create(db.TB) error: Traceback (most recent call last): File "/usr/home/jose/web2py/gluon/restricted.py", line 178, in restricted exec ccode in environment File "/usr/home/jose/web2py/applications/py_ccu/controllers/ appadmin.py", line 410, in

[web2py] Re: working with views or stored procedures.

2010-06-14 Thread Jose
I am working with a legacy database and am using many views, so as to bridging differences with tables. All the views will create a numeric id field for compatibility, but not in use. Jose

[web2py] Re: working with views or stored procedures.

2010-06-15 Thread Jose
On 15 jun, 05:12, Sky wrote: > Thank you Jose, > but I couldn't find out if you used define_table or not? > can you drop me a piece of your code? > i get 'invalid query' error when i query on my views. > They are declared in the same way that a real table. Then yo

[web2py] change the encoding

2010-06-24 Thread Jose
Hi, How can I change the encoding of the files edited with the editor's own web2py? Rgards, Jose

[web2py] Re: change the encoding

2010-06-25 Thread Jose
On 24 jun, 13:27, mdipierro wrote: > I do not know if that is possible > I need to save files to latin1 instead of utf8 (apparently default). I know I can use iconv, but it gets annoying having to do so. Regards Jose

[web2py] Re: change the encoding

2010-06-25 Thread Jose
thank Mr.netadmin, I use FreeBSD and my shell is csh. % Echo $ LANG es_ES.ISO8859-1 ISO8859-1 is Latin1, but coding of files created corresponds to utf-8. Jose

[web2py] Re: change the encoding

2010-06-25 Thread Jose
On 25 jun, 18:24, NetAdmin wrote: > OK, > > I use Linux and vi > Here are my settings > >   scroll=11           ttyfast >   fileencoding=utf-8 >   fileencodings=ucs-bom,utf-8,default,latin1 >   runtimepath=~/.vim,/var/lib/vim/addons,/usr/share/vim/vimfiles,/usr/ > share/vim/ > vim71,/usr/share/v

[web2py] bug in SQLFORM?

2010-06-26 Thread Jose
I have the following code: if form.accepts(request.vars, session): response.flash = int(form.vars.id) #id = int(form.vars.id) #doc = tb_documentos[id] #doc.update_record(estado=1) #redirect(url_expediente) elif form.errors: ..

[web2py] Re: bug in SQLFORM?

2010-06-26 Thread Jose
The id returned in the testing are: 263226 263228 263230 263232 263234 ... It is seen that increase in twos. If I go from the admin, the IDs are correct. Jose

[web2py] Re: bug in SQLFORM?

2010-06-27 Thread Jose
h = type(form.vars.id) return The only change made to the table that gives the problem is that it triggers have been defined, but this should not affect anything. Anyway I will check with the administrator. Jose

[web2py] Re: bug in SQLFORM?

2010-06-27 Thread Jose
e this [1] and [2]. Web2py use "SELECT @@IDENTITY;" to get the id. In my case, the trigger does not do an insert into another table, but it makes an update in another table. Then the problem that is mentioned in the links that showed not apply. Jose [1] http://msdn.microsoft.c

[web2py] Re: bug in SQLFORM?

2010-06-27 Thread Jose
On 27 jun, 12:51, mdipierro wrote: > should we consider this a bug and use > > SELECT SCOPE_INDETITY() > > ? I do not know MSSQLServer, especially regarding the different versions. Here [1] there is another alternative: SELECT IDENT_CURRENT ('tablename');. Someone who knows more about you can

[web2py] patch to dal [Re: bug in SQLFORM?]

2010-06-27 Thread Jose
Replacing this: self._db._execute('SELECT @@IDENTITY;') whit: self._db._execute("SELECT IDENT_CURRENT('%s');"%self._tablename) for me it worked in a SQLServer 2000 server I do not know for other versions of SQLServer. With SELECT SCOPE_IDENTITY() there was an error because it was not recognized

[web2py] Re: patch to dal [Re: bug in SQLFORM?]

2010-06-28 Thread Jose
On 27 jun, 16:29, mdipierro wrote: > Anybody opposed to this change? > > Massimo > Me I correct myself, I said before that SCOPE_IDENTITY () not working, but I had a typo. I think SCOPE_IDENTITY () is the right choice, because IDENT_CURRENT is out of session. SCOPE_IDENTITY () works correctly.

[web2py] Re: patch to dal [Re: bug in SQLFORM?]

2010-06-28 Thread Jose
The code should look like: self._db._execute('SELECT SCOPE_IDENTITY();') Jose

[web2py] Re: patch to dal [Re: bug in SQLFORM?]

2010-06-30 Thread Jose
and retrieves the ID, someone inserts another record, the ID obtained will be incorrect. I know that the probability is very small, but it can happen. For example: Postgres use: "select currval ('tablename_id_Seq')" similarly the other engines. Jose

[web2py] Re: patch to dal [Re: bug in SQLFORM?]

2010-06-30 Thread Jose
On 30 jun, 14:04, mdipierro wrote: > If that can happen, than it is wrong. My understainding is that > because we are in a transaction, before the insert is committed we get > the id of the last record. > Okay, but "I believe" that everything about AUTO_INCREMENT fields are out of the transacti

[web2py] local_import

2010-07-02 Thread Jose
I have problems with local_import in the latest version of the trunk. Jose

[web2py] Re: local_import

2010-07-02 Thread Jose
Sorry, I did not put what the problem. I saw in the log of changes that had something new with Imports and thought I had to do with it. The problem is that no matter the form directly. This started to happen with the changes to the trunk between yesterday and today. Jose

[web2py] Re: local_import

2010-07-02 Thread Jose
r: 'module' object has no attribute 'MyClass' You understand? This worked well until yesterday, after upgrading from the trunk, started the error. Jose

[web2py] Re: local_import

2010-07-02 Thread Jose
Now works! Thanks

[web2py] Re: local_import

2010-07-03 Thread Jose
On 3 jul, 08:05, Iceberg wrote: > Sorry gentlemen, I don't get it. > > First of all, the new implementation, even with the latest bugfix, > does not use the "force" parameter at all, neither python reload(). I > reckon that Jose did not test the reload fea

[web2py] Fastcgi vs uwsgi

2010-07-09 Thread Jose
? Should I run faster? Jose

[web2py] Re: Fastcgi vs uwsgi

2010-07-09 Thread Jose
I comment if I have a problem. The first impression after the change, was running faster. Jose

[web2py] Re: Fastcgi vs uwsgi

2010-07-09 Thread Jose
unixODBC-2.3.0 * py26-pyodbc-2.1.5 Web2py: Version 1.79.2 (2010-06-08 22:45:26) Regards Jose

[web2py] Re: local_import

2010-07-12 Thread Jose
ldos.modules.reportes The trunk version works well with both Cherokee and the server itself. Regards Jose

[web2py] Re: web2py 1.80.1 is OUT

2010-07-12 Thread Jose
Please look at the thread [1] showing the error. [1] http://groups.google.com/group/web2py/t/74578224649d6804 Jose

[web2py] Re: local_import

2010-07-12 Thread Jose
On 12 jul, 16:32, mdipierro wrote: > 1.80.1 is supposed to be identical to trunk. (!?) > > Do you have this file: applications/sueldos/modules/reportes.py > No, the error does not occur due to missing module. Now I know how to avoid it, but do not know why it happens. The steps are: 1) Downloa

[web2py] Re: Fastcgi vs uwsgi

2010-07-13 Thread Jose
The following was taken from [1]. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Web2Py web2py does not work well on multiple application environment so you have to use it as the only WSGI application of the uWSGI server. Use thi

[web2py] Bug in post-1.79.2 versions

2010-07-14 Thread Jose
{{=r.id}} | {{=r.nombre}} {{=A('[editar]', _href=URL(r=request, f='editararchivo', args=[r.id]))}} {{pass}} When I edit a record I get the following error: Traceback (most recent call last): File "/usr/home/jose/web2py/gluon/restricted.py", line 178, in restri

[web2py] Re: How to get a new record ID using SQLFORM

2010-07-14 Thread Jose
uest.vars, session): id = form.vars.id Jose

[web2py] Re: Bug in post-1.79.2 versions

2010-07-14 Thread Jose
Ok, now work well. Jose

[web2py] Bug in 1.81.1

2010-07-16 Thread Jose
When I use auth.define_tables(username=True) fails Traceback (most recent call last): File "/usr/home/jose/web2py/gluon/restricted.py", line 178, in restricted exec ccode in environment File "/usr/home/jose/web2py/applications/csr/models/db.py", line 30, in

[web2py] Re: Bug in 1.81.1

2010-07-17 Thread Jose
The error I mentioned in my first post still appears. Traceback (most recent call last): File "/usr/home/jose/web2py/gluon/restricted.py", line 178, in restricted exec ccode in environment File "/usr/home/jose/web2py/applications/csr/models/db.py", line 31, in

[web2py] Re: Need help with query

2010-07-24 Thread Jose
On 24 jul, 19:01, weheh wrote: > I have a list, x, with allowed values for field table.x. Is there a > succinct way to do something like this? > > db(db.table.x in x).select() Hi, You must use the operator Belongs. Please see here [1] Regards Jose [1] http://www.web2py.com/

[web2py] Error in the trunk

2010-02-15 Thread Jose
Massimo, After updating the following error occurs: File "/usr/home/jose/w2p/gluon/tools.py", line 2970 elif dt.days > 21: ^ SyntaxError: invalid syntax Jose -- You received this message because you are subscribed to the Google Groups "web2py-users" group

[web2py] Re: Error in the trunk

2010-02-15 Thread Jose
On 16 feb, 01:20, Jose wrote: > Massimo, > > After updating the following error occurs: > > File "/usr/home/jose/w2p/gluon/tools.py", line 2970 >     elif dt.days > 21: >        ^ > SyntaxError: invalid syntax > > Jose Missing parenthesis in T(&#

[web2py] A comment about transactions

2010-02-16 Thread Jose
misinterpretation. [1] http://web2py.com/book/default/section/6/4 Jose -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2p

[web2py] ajax

2010-02-19 Thread Jose
how to this [1] with webpy? [1] http://www.vimeo.com/9526668 -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googleg

[web2py] Re: ajax

2010-02-20 Thread Jose
Thank Massimo, when inserted in company works well, but not in person. Jose -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email

[web2py] Re: ajax

2010-02-20 Thread Jose
On 20 feb, 14:54, mdipierro wrote: > What behavior do you see? Can I see the model? > The behavior after the submit is normal, but when I go to see the table person are not records. Tested on FreeBSD and Windows The code corresponds to the last posted by you [1] [1] http://www.pastebin.com/m

[web2py] Re: ajax

2010-02-20 Thread Jose
On 20 feb, 16:25, mdipierro wrote: > which version of web2py? > In windows the latest binary. In FreeBSD, the trunc version (1 hour ago) -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups

[web2py] Re: ajax

2010-02-20 Thread Jose
On 20 feb, 17:01, mdipierro wrote: > If I understand what you tell me. > You click on create and get the modal > add a new organization > submit it (does the modal close?) > go back to person form > there is nothing in the dropdown. No. I added the company, after you submit, it closes the modal

[web2py] Re: ajax

2010-02-20 Thread Jose
On 20 feb, 17:49, mdipierro wrote: > I am not sure what you refer to is a bug. I think that is the > workflow. Every time you submit the form you get a new empty form. > > Make sure the table definitions are models not controller and use > appadmin to see if the records are in the table. They sh

[web2py] Re: ajax

2010-02-20 Thread Jose
#def ajax_create and #db.person.organization.comment = ajax_create(db.person.organization, title='Add an Org.') and now I could add the record. Jose -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@g

[web2py] [1/2 OT] Help with jquery and ajax

2010-02-26 Thread Jose
played correctly, but when you click again not hide. Any idea what is wrong. Jose -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email

[web2py] Re: [1/2 OT] Help with jquery and ajax

2010-02-26 Thread Jose
On 26 feb, 18:50, Thadeus Burgess wrote: > try it in firebug. > It works. There was an error, apparently some browsers allow. I changed it: [Marcas] for this: {{div_id='marcas%d'%r.id}} {{div_id2='#%s'%div_id}} [Marcas] Jose -- You received this message bec

[web2py] Re: zen html

2010-03-01 Thread Jose
On 1 mar, 18:28, mdipierro wrote: > zencoding is now in trunk. > Ctrl + s not working It's going to save the page. Jose -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...

[web2py] error in tools.py (in trunk)

2010-03-03 Thread Jose
in line 1033 and 1227 captcha = self.settings.register_captcha or self.settings.captcha Jose -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this g

[web2py] Re: DAL problems on Firebird 2.1 (DROP COLUMN DOES NOT WORK)

2010-03-06 Thread Jose
l > DROP col instead of  ALTER TABLE tbl DROP COLUMN col this worked well. Perhaps in an update error was introduced. Jose -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com.

[web2py] Re: DAL problems on Firebird 2.1 (DROP COLUMN DOES NOT WORK)

2010-03-06 Thread Jose
On 6 mar, 15:36, salbefe wrote: > I'm using the latest version from mercurial repository. > I sent a patch to Massimo. Jose -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...

[web2py] Re: no more cherrypy wsgiserver

2010-03-12 Thread Jose
2 2010] [error] WARNING:root:unable to import Rocket [Fri Mar 12 15:25:25 2010] [error] WARNING:root:unable to import Rocket Jose -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.c

[web2py] Re: no more cherrypy wsgiserver

2010-03-12 Thread Jose
On 12 mar, 21:48, Timothy Farrell wrote: > I'm not sure how you upgraded, but make sure you have a rocket.py in > your gluon folder. > $ hg pull $ hg update -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to

[web2py] master-detail

2010-03-13 Thread Jose
aster[1] >>> a at 0x37f8fc34>, 'name': 'A', 'id': 1, 'delete_record': at 0x37f8f80c>, 'detail': }> >>> b = a.detail >>> b.select() Traceback (most recent call last): File "", line 1, in F

[web2py] Re: master-detail

2010-03-13 Thread Jose
On 13 mar, 16:42, mdipierro wrote: > This should work in the normal console but it is a known problem in > the web based shell. There is some timeout issue that closes the DB. I > will investigate more. Ok, thank. Jose -- You received this message because you are subscribed to t

[web2py] Re: edit_area 0.8.1.1 ctl+s works

2010-03-17 Thread Jose
SO Freebsd. In opera works fine, but in firefox fails, try to save the page as html Jose -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group,

[web2py] virtualfields

2010-03-17 Thread Jose
D&q=http://groups.google.com/group/web2py/browse_thread/thread/d59ee3d6c2e6d836&usg=AFQjCNFpArFjqca6GqxppSFICblEp7hwGg Jose -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To u

[web2py] Re: virtualfields

2010-03-17 Thread Jose
On 17 mar, 23:25, Thadeus Burgess wrote: > http://thadeusb.com/weblog/view/web2py_virtualfields_as_an_orm_an_sql... > > -Thadeus Thank Thadeus, excellent. Jose -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post

[web2py] Re: virtualfields

2010-03-17 Thread Jose
tal(self): return self.item_total * self.tax_percentage def tax(self): return self.total() - self.item_total db.sales.virtualfields.append(Sales()) in contrrolers/default.py def sales(): rows = db(db.sales.id>0).select() return dict(rows=rows) when accessing sales Traceback

[web2py] Re: virtualfields

2010-03-17 Thread Jose
On 17 mar, 23:54, Jose wrote: > Fails, > > in model/db.py > > db.define_table('sales', >     Field('item'), >     Field('item_total', 'double'), >     Field('tax_percentage', 'double'), >     Field(&#

[web2py] Re: virtualfields

2010-03-17 Thread Jose
ales()) works well, but what I meant is that you must write the name of the table: return self.sales.item_total * self.sales.tax_percentage if not set, the same error occurs Jose -- You received this message because you are subscribed to the Google Groups "web2py-users&quo

[web2py] About LOAD

2010-03-22 Thread Jose
(url='http://www.google.com')}} I will not display anything. With other applications web2py works fine. Jose [1] http://gluonframework.wordpress.com/2010/03/07/web2py-ajax-and-forms/ -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To

[web2py] Re: About LOAD

2010-03-22 Thread Jose
On 22 mar, 17:56, mdipierro wrote: > You can LOAD(url='anything') but anything must return a component, not > entire page with ... How the browsers response to an > inside another is unpredictable. Ok, thank. -- You received this message because you are subscribed to the Google Groups "web

[web2py] upload and LOAD

2010-03-24 Thread Jose
ords (idem for the 3 forms). Where that leaves only one form, insert the record, but not upload the file, only saves the field nombre Jose -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@

[web2py] Re: upload and LOAD

2010-03-24 Thread Jose
a bit, just wanted to see if they could. Anyway, with a single form that does not work, do not upload file: Form 1 {{=LOAD('default', 'form_doc', ajax=True, ajax_trap=True)}} Jose -- You received this message because you are subscribed to the Google Groups "web2py-user

[web2py] Re: upload and LOAD

2010-03-24 Thread Jose
On 24 mar, 20:17, mdipierro wrote: > That is a bug. The problem is that it is not technically a web2py bug > but a limitation of jquery.submit. I think there is a jquery plugin to > extend the jquery.submit functionality to multipart forms. If you find > it and try it, let us know. Maybe this [

[web2py] Re: new SQLFORM

2010-03-24 Thread Jose
maybe this is causing problems when the parameter deletable=True Error: File "/usr/home/jose/w2p/gluon/sqlhtml.py", line 748, in __init__ col3.get(self.FIELDKEY_DELETE_RECORD, '')) TypeError: append() takes exactly one argument (3 given someone could review Jose -

[web2py] Re: new SQLFORM

2010-03-24 Thread Jose
I sent a patch to Massimo -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit t

[web2py] Help with a query

2010-03-29 Thread Jose
1] qry1 = (db.t2.f22.f12 == 10) rows = db(qry1).select(db.t2.ALL) How would be the simplest way to query? Jose -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscri

[web2py] Re: Help with a query

2010-03-30 Thread Jose
Yes, that's what I did, I used left join. This is what we would use them if the query would have made with pure sql. Knowing that I can do the following: row = db.t2[n] print row.f22.f11 print row.f22.f12 DAL thought would solve the query in the same way. Thank you. Jose -- You recei

[web2py] Re: web2pyslices hacked or problem?

2010-04-02 Thread Jose
> is same problem from other people? It works well for me, tested in Opera, Firefox and Konqueror. Jose -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscr

[web2py] left join problem

2010-04-05 Thread Jose
. File "/usr/home/jose/w2p/gluon/sql.py", line 1067, in self._execute = lambda *a, **b: self._cursor.execute(*a, **b) ProgrammingError: (-104, 'isc_dsql_prepare: \n Dynamic SQL Error\n SQL error code = -104\n Token unknown - line 1, column 258\n )') Before the upgrade

[web2py] Re: left join problem

2010-04-05 Thread Jose
ues=keepvalues): Jose -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, vis

[web2py] Re: left join problem

2010-04-05 Thread Jose
On 5 abr, 17:59, mdipierro wrote: > One more try please. Now, it works well! Thank you. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email

[web2py] Presentation of web2py

2010-04-14 Thread Jose
Hi, For a presentation of web2py talk I've suggested them to include a comparison with other technologies and highlight the advantages over technologies such as asp.net. and PHP. Please could you help me with this. Thanks Jose -- To unsubscribe, reply using "remove me" as the subject.

[web2py] Re: web2py on IDE

2010-04-16 Thread Jose
y > mengu Where can I see some of what you've done? Jose -- Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en

[web2py] Authenticate against the users defined at the server database

2010-04-22 Thread Jose
Hi, there any way to authenticate against the users defined at the server database? That is, pass user and password in db = DAL (...) Regards, Jose -- Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en

[web2py] Re: Authenticate against the users defined at the server database

2010-04-22 Thread Jose
On 22 abr, 13:06, mdipierro wrote: > db = DAL('postgres://username:passw...@hostname:port/dbname') I meant to enter user and password from a form Jose -- Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en

[web2py] Re: Authenticate against the users defined at the server database

2010-04-22 Thread Jose
as validated when there is a database server with registered users at the server level (not at the table as is the case auth_user), and are already assigned permissions to tables, views, processes, etc in the database. Jose -- Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en

[web2py] background process

2010-04-28 Thread Jose
s, it may take several minutes to several hours. Is correct to do this in the context of a web application? Regards, Jose

[web2py] Re: background process

2010-04-28 Thread Jose
it must be the user who launches the process. Running the script as you said, how to access the same to application context: db, session, etc. I use subprocess to run? Jose

[web2py] Re: background process

2010-04-28 Thread Jose
On 28 abr, 18:31, Jose wrote: > > Running the script as you said, how to access the same to application > context: db, session, etc. I said nothing, I just read the output of python web2py.py -h Jose

[web2py] Re: background process

2010-04-28 Thread Jose
on %s/web2py.py -S py_ccu -M -R %s"%(os.getcwd(), script) subprocess.Popen(comando, shell=True) redirect(URL(r=request, f='a_function')) As always, excellent web2py Jose

[web2py] Re: background process

2010-04-28 Thread Jose
One more question. The model is imported with-M, but I do not know is how to pass session to the script. Jose

[web2py] Re: background process

2010-04-28 Thread Jose
On 28 abr, 20:39, Jose wrote: > One more question. > > The model is imported with-M, but I do not know is how to pass session > to the script. > > Jose I answer myself. I used pickle. Jose

[web2py] Re: post-insert processing

2010-08-14 Thread Jose
, session): category = form.vars.category #code here ... redirect(a_url) elif form.errors: response.flash = 'errors' return dict(form=form) Option 2 using onaccept: http://www.web2py.com/book/default/chapter/07 Jose

  1   2   3   4   5   6   7   >