Re: [web2py] Re: LDAP Authentication never work

2018-06-13 Thread 黄祥
not sure why not work in your place, pls check the log (ldap server or web2py), i've tried from scratch work fine *env i used:* - web2py 2.16.1-stable - Python 2.7.15 - installed module python-ldap with pip install python-ldap - apacheds from scratch (https://directory.apache.org/apacheds) *step

Re: [web2py] fetching events from DB using fullcalendar javascript event calendar

2018-06-13 Thread Richard Vézina
Here I had showed how I was dealing with fullcalendar : https://groups.google.com/d/msg/web2py/GQFIMbNmp_M/ZiRHLUQ_UAAJ Good luck Richard On Sun, Jun 10, 2018 at 4:40 PM, Andrea Fae' wrote: > I'm using web2py and now I'm fetching all calendar events from db using > this code in a view: > > ev

[web2py] Is the web2py application upgrade or is it out of service?

2018-06-13 Thread Mohammad Rostami
Hello. I am Mohammad from Iran. I became interested in web2py and I want to learn it completely. I want to introduce it to Persian speakers.I'm going to create a website with web2py that has all the features, including the store, forum, wiki, blog, etc., and the subject is web2py. My question t

[web2py] Different values than expected in web2py.

2018-06-13 Thread sai kanthu
I have a python code which got executed through the spyder IDE. But, when I am integrating the same python code into the web2py framework then I am getting a value which is different from the value that I got through spyder. Can anyone please help me out in getting the consistent values in both

[web2py] IS_IN_DB with 2 tables

2018-06-13 Thread Guilherme Germano Silva
Hi guys, I've this tables: db.define_table('TipoUnidade', Field('TipoUnidadeDescricao'), format='%(TipoUnidadeDescricao)s' ) db.define_table('Produto', Field('ID_TipoUnidade', 'reference TipoUnidade', requires=IS_IN_SET(['Unidade',

[web2py] Re: Different values than expected in web2py.

2018-06-13 Thread Anthony
Please show your code and explain exactly how you are running it via spyder and web2py, as well as the Python versions you are using. Anthony On Wednesday, June 13, 2018 at 12:02:54 PM UTC-4, sai kanthu wrote: > > I have a python code which got executed through the spyder IDE. But, when > I am

[web2py] Re: Is the web2py application upgrade or is it out of service?

2018-06-13 Thread Anthony
If you are asking whether web2py is still under active development, the answer is yes. Anthony On Wednesday, June 13, 2018 at 12:02:22 PM UTC-4, Mohammad Rostami wrote: > > Hello. > I am Mohammad from Iran. > > I became interested in web2py and I want to learn it completely. I want > to introdu

[web2py] Re: IS_IN_DB with 2 tables

2018-06-13 Thread Anthony
> > db.SaidaProdutoEstoque.ID_EntradaProdutoEstoque.requires = > IS_IN_DB(db(db.EntradaProdutoEstoque.Ativo == True), > db.EntradaProdutoEstoque, db.EntradaProdutoEstoque._format) > > I want the table *SaidaProdutoEstoque* on field *ID_EntradaProdutoEstoque* > show > *Lote *and the product nam

[web2py] Re: IS_IN_DB with 2 tables

2018-06-13 Thread Guilherme Germano Silva
Worked, thank you! Em quarta-feira, 13 de junho de 2018 13:17:00 UTC-3, Anthony escreveu: > > db.SaidaProdutoEstoque.ID_EntradaProdutoEstoque.requires = >> IS_IN_DB(db(db.EntradaProdutoEstoque.Ativo == True), >> db.EntradaProdutoEstoque, db.EntradaProdutoEstoque._format) >> >> I want the table *

[web2py] return binary

2018-06-13 Thread lucas
hey all, this isn't written totally generally but here is a shot. i would like to return the raw binary data for an img src request and have it display properly on the html page. here is my code: the db.py table definition: db.define_table('png', Field('input_date', 'date', comment='form

[web2py] IS_IN_DB and SQLFORM edition

2018-06-13 Thread Diego Tostes
Hi, i have a table and i am using: Show_Room.product_id.requires = IS_IN_DB(db(Product), 'product.ref', '%(client_name)s - ref: %(ref)s') When i am using SQLFORM to edit a line of my table, the already persisted product_id is not selected and i have to select again. If i do not select the produ

[web2py] Re: IS_IN_DB and SQLFORM edition

2018-06-13 Thread Anthony
Please show you code and an example record. Is the existing value of product_id one that is no longer in the product.ref field? Anthony On Wednesday, June 13, 2018 at 5:35:37 PM UTC-4, Diego Tostes wrote: > > Hi, > > > i have a table and i am using: > > Show_Room.product_id.requires = IS_IN_DB(d

[web2py] Re: return binary

2018-06-13 Thread lucas
so, i've figured out that the entire blob stream is not being fully retrieved, only 29 of the 5513 bytes are being retrieved: in my debugging: here is an experimental / expanded of the above function::: table, id, field, stream, and d are all working. but the d[field] under stream.write(d[field

[web2py] Re: return binary

2018-06-13 Thread Dave S
On Wednesday, June 13, 2018 at 6:50:44 PM UTC-7, lucas wrote: > > so, i've figured out that the entire blob stream is not being fully > retrieved, only 29 of the 5513 bytes are being retrieved: > > in my debugging: here is an experimental / expanded of the above > function::: > table, id, field

[web2py] Re: return binary

2018-06-13 Thread lucas
PostGreSQL 9 which stores the png as direct raw non-escaped hex. AND i am trying a direct sql select by using psycopg2 right now. because using the DAL has been annoying. but i'd love to use it if i could. so i'm open to DAL methods. -- Resources: - http://web2py.com - http://web2py.com/bo

[web2py] Re: return binary

2018-06-13 Thread lucas
so this is what i got working wonderfully but using psycopg2 directly instead of the DAL. AGAIN, i would love to convert this back to the DAL for seemlessness and grace. def getbinary(): try: c = psycopg2.connect("dbname='tms' host='%s' user='%s' password='%s'" % ('localhost', 'use