Massimo,
Despite being a product and not a tool, the business plan of OpenERP
is very interesting.
I think that "Regional/Country Departments" of the Association can
provide more global visibility to Web2Py.
IMHO, a business plan to this association can have a "certification
program" with t
Friend,
I don't know, but I think that this problem can be a bug, because
run OK in SQLite but generate this errors in GAE.
In my case, I'm using the crud.create() to generate the input FORM
then I do not know why the orderby is being called.
In db.py I have this field in the table "cont
Friends,
Another informationlocally with SQLite works perfectly, but in
the GAE these errors happening.
Any Idea ?
Friends,
I tried these two solutions:
http://groups.google.com/group/web2py/browse_thread/thread/2f7465d678f24949/eaa0a076fcbded09?lnk=gst&q=conditional+is_in_db#eaa0a076fcbded09
http://groups.google.com/group/web2py/browse_thread/thread/8b69f3919c0d25c9/d44394e0527d3a74?lnk=gst&q=condit
Friends,
In my app running in GAE I'm receiving a error message when display/
create CRUD Create form.
In db.py:
db.define_table('conta_corrente',
Field('conta_corrente_pai','reference conta_corrente',
label=T('Conta Corrente Pai')),
Field('descricao','string', length=255, default='',
Now I know the problem and the solution
Let's go:
In db.py I put this:
Field('data_hora','datetime', default=now,
requires=[IS_DATETIME(format='%d-%m-%Y %H:%M'), IS_NOT_IN_DB(db,
'agenda.data_hora')], unique=True, label=T('Data/Hora')),
and in web2py_ajax.html I customize the default date
Master Massimo,
just a detail: This form still not saved a data because this error
in submit and looking in GAE dataviewer I see that the kind/table
agenda not was created / not exist.
I think in disable the requires and insert a record and after re-
enable this requires, because IMHO this r
Hi Friends,
I'm developing a 'calendar' (agenda in portuguese) app and this app
is deployed in GAE.
My db.py
# the data_hora field have a brazilian format and I cannot have two
records in the same data/time (only a event in a date/time)
db.define_table('agenda',
Field('data_hora','datetime
Master Massimo,
Perfect !, you are right !.
Follow the correct configuration to solve this(my) problem(sent
mail) in this situation: app deployed in GAE and domain managed by
Google Apps:
in db.py
mail=Mail()
mail.settings.server='gae'
mail.settings.sender='yourMailAcc
Hello Friends,
Sorry to re-open the topic, but as my problem is relative
Well, I have my app deployed in GAE and I'm using the Google Apps
Standard to manage my domain. Follow my configurations:
In db.py:
mail=Mail()
mail.settings.server='gae'
mail.settings.sender='adminis
Thadeus,
Sorry by my dummie question...but how to use your librarie in my
apps deployed in GAE ?
Thanks,
Leandro.
Hi Alexey,
sorry, map = define table in models.py.
-- Leandro.
--
To unsubscribe, reply using "remove me" as the subject.
Friends,
I have a situation where I can have a dog that I don't know your
father and mother. How to resolve this ? for example, a dog that I buy
in a shop.
db.define_table('dog',
Field('name'),
Field('father_id','reference dog'),
Field('mother_id','reference dog'))
How to map thi
Hi Friends,
In the documentation of gdata-python-client library I have this:
"
Using the gdata-python-client library
Google offers a Google Data Python client library that simplifies
token management and requesting data from specific Google Data APIs.
We recently released a version of this libra
Friends,
I'm developing my blog with the powerfull web2py. This blog is
running in GAE and to create/edit my posts I use the CFKeditor. This
give me rich content in my post, because for me, CKFeditor is a great
tool. it also allows you to have a 'module manager' quite easy for the
end user to cr
Massimo,
After update my web2py with the last source version(tar.gz) I'm
receiving this error message:
OperationalError: parameter "standard_conforming_strings" cannot be
changed
Ps: My database is postgreSQL.
--
You received this message because you are subscribed to the Google Group
Massimo,
> db.define_table('product cost',
> Field('quote_products_id', db.quote_products, requires=IS_IN_DB
> (db,
> 'quote_products.id', lambda row: row.product.description')),
This field generate a error of string expected.
> Field('quote_products_id', db.quote_products, requi
Hello Miguel,
> There's some problem with the "noticia" view since the html of the news body
> is rendering as text.
Thanks, I forget of XML() function in this page.
> Congratulations on the site.
Thank you. Some details I still have to review and another ideas to a
second moment, as comment in
Friends,
I have this situation:
My customers quote products and all products in the quote has a
separated cost. The sum of all cost for all products of a quote is the
price of product for this customer.
To map this scenario, I have these tables:
a) customer:
db.define_table('customer',
Friends,
The new site in web2py made by my company: ProfessionalIT.
KZero Consultoria: http://www.kzeroconsultoria.com.br
-- Leandro.
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send em
OK.
Thanks
-- Leandro.
--
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 thi
Sorry master by my ignorance, but do you have a example to me ?
-- Leandro.
--
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+unsu
Hi,
I have a table (pampa_produto) with many fields (and many
records), but when I try show only two fields of this table in a page
in GAE, ever show me ALL fields of the table.
In my controller:
myfields = [db.pampa_produto.id, db.pampa_produto.codigo,
db.pampa_produto.nome_compra]
> 1) XML(post.content) is vulenrable to XSS injections. Do XML
> (post.content,sanitize=True) instead.
I'll do it
> 2) XML(post.content[0:500]) may (and will) truncate some tags. What if
> for example post content[0:500]='bla bla ... bla http://groups.google.com/group/web2py?hl=en.
Great Master Thadeus !, perfect ! solved my problem !.
Thank you very much !
-- Leandro.
--
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 t
> To solve this problem I thought of two solutions:
>
> 1) Break the post in determined number of the words, but this has a
> problem:
> - Break the formatation of my index page.
>
> I implemented this to test but as the content field is a field
> that accepts html tags if I put a "re
Hi,
Well, I am developing my blog and in my index page I have the latest
05 posts. This posts can be big and I think that a good idea is
"break" the content and put a link "read more" to read the full
content of the post.
To solve this problem I thought of two solutions:
1) Break the post i
Thadeus,
You're right, this is the best way to have a category web2py to insert
the planetplanet.
-- Leandro.
--
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 thi
Hello David,
On Dec 31 2009, 5:32 pm, villas wrote:
> >> I vote in a planet, web2py-planet
>
> Could you specify the URL please. My google search returned "Kpax",
> but that was described as "a CMS from another planet" so it can't be
> that one!
I believe there is still this project ... then this
I vote in a planet, web2py-planet
--
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,
Hi Thadeus,
How do you do to show the posts in determined category where you
have two or more words in the name of you category ? I'm looking in
your blog now and see this in : http://web2py.thadeusb.com/weblog/category/Web
Development
Do you can show me the code of controller of categoy func
Hi,
Solved with this (remove the ' character)
category_name = request.get_vars.category_name
category_name = category_name[1:category_name.rfind("'")]
Thanks by all help .
-- Leandro.
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To pos
Master Massimo,
On Dec 30, 5:59 pm, mdipierro wrote:
> 1) GAE rules. Here is a quick fix.
>
> posts = db((db.posts.category == cat.id)).select(db.posts.ALL).sort
> (lambda r['created'],reverse=True)
Perfect !, this code solved this problem.
> 2) Try one of these variations
>
> if request.args[0
Friends,
I have two Problems in my blog App (running in GAE).
1) In the code that generate the RSS by category:
- It's run but only if I don't put the orderby declaration in
db.select() method but
I need to sort my posts by ~created(DESC created) date to
generate my RSS feeds.
Massimo,
Ok, I will follow your suggestion.
--
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
Perfect ! now I have a sitemap generated by the my Web2Py app.
Thank's for all help.
--
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
web
On Dec 23, 1:50 pm, mdipierro wrote:
> I need to see the actual code.
Master, follow my dummie code:
def sitemap():
import os
from gluon.myregex import regex_expose
# Statics URLs
ctldir = os.path.join(request.folder,"controllers")
ctls=os.listdir(ctldir)
Friends,
I implemented in the default controller a function called sitemap()
that have all logic to generate the sitemap.xml file, but I don't know
how to escape a string into a XML.
My sitemap() function:
def sitemap():
sitemap_xml = ''
'''
Here the logic to generate the content
''
Well, I'm trying implement this script(http://toncar.cz/opensource/
sitemap_gen.html) and integrate it how a plugin or use the cron to
auto-generate the sitemap.xml file.
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, sen
How to implement this in Web2Py ?
--
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,
Good, very good !
--
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 this grou
This is possible ? Run e-Store Appliance in GAE or exists another e-
Commerce application made with Web2Py ?
--
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
Massimo,
> def twitter():
> session.forget()
> session._unlock(response)
> import gluon.tools
> import gluon.contrib.simplejson as sj
> from google.appengine.api.urlfetch import fetch
> #page = gluon.tools.fetch('http://twitter.com/web2py?
> format=j
Massimo,
> from google.appengine.api.urlfetch import fetch
> def my test():
> page = fetch('http://twitter.com/
> web2py',payload='format=json').content
> return page
>
> do you get JSON?
>
> Massimo
This function run OK (http://www.leandro.inf.br/init/default/my_test),
then I try change
On Nov 23, 3:06 pm, mdipierro wrote:
> Sorry to do this to you
Hey Master no problems ! I love Web2Py and I think our community is
very caring.
> try:
>
> def my test():
> import gluon.tools
> page = gluon.tools.fetch('http://twitter.com/web2py?format=json')
> return page
>
> se
Master Massimo,
Sorry, I forget of this detail. That dummie !.
The GAE log:
In FILE: /base/data/home/apps/leandro-inf/1.337957566746262675/
applications/init/controllers/default.py
Traceback (most recent call last):
File "/base/data/home/apps/leandro-inf/1.337957566746262675/gluon/
restri
; session._unlock(response)
> import gluon.tools
> import gluon.contrib.simplejson as sj
> page = gluon.tools.fetch('http://twitter.com/web2py?format=json')
> return sj.loads(page)['#timeline']
>
> and see what error you get in the GAE log.
>
Hi wes,
I copy and paste your suggestion em my controller/page, but I
still receive the message: 'Unable to download'. I don't know, but I
think that this feature don't run in GAE.
Thanks by your help.
-- Leandro.
--~--~-~--~~~---~--~~
You received this messa
Hi,
I'm trying to implement the feature that show the 'tweets' of my
twitter account in the index page of my blog(hosted in GAE) based in
the code of admin controller, but it don't run !. In my tests it can't
connect with twitter. It's a bug/bad implementation of my controller
or the GAE don't a
Massimo,
You are right !, I need insert a data to create the tables. What I
did was create an application called init and upload to the GAE, then
I went to see in the "Data View" and the tables were not shown. I
register a user and all tables show in Data View.
Sorry by my dummie question.
On Oct 28, 7:09 pm, mdipierro wrote:
> I think it does so only after you insert some data in it. Did you try?
>
Master,
Sorry by my stupid question...but how to insert a data if the table
not exists ?
-- Leandro.
--~--~-~--~~~---~--~~
You received this messag
Hi,
I'm testing a new app in GAE but after upload the app, it don't
create the tables.
Any idea ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py
Perfect ! Massimo.
-- Leandro
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to
web2py+u
Hi,
I have a custom form and I need show the table.id in this format:
0 in the page. How to do this ?
Ex:
{{=form.custom.label.id}}
{{=form.custom.widget.id}}
This show me: 1
But I need that show me in this way: 1
Any idea ?
--~--~-~--~~~---
Work's fine !
Thanks Massimo.
-- Leandro.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email
Thanks master Massimo !.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to
web2py+unsubsc
Friends,
I don't know if it's the best way, but this solved my problem:
In controller:
def create_tabela_preco():
form = crud.create(db.pampa_tabelapreco, next=URL(r = request,f =
'tabelas_preco'), onvalidation=valida_tabela_preco, message=T("Record
Created !"))
return dict(f
> The easiest way is:
>
> db.table.produto_id.requires=IS_NOT_IN_DB(db
> (db.table.categoria_id==request.vars.categoria_id),'table.produto_id')
My table:
db.define_table('pampa_tabelapreco',
Field('categoria',db.pampa_categoriacliente),
Field('produto',db.pampa_produto),
Sophie,
I'm a Java programmer too, then I can help you !.
First,
In the file db.py you map your table, in this case the table
that the class StoreBean map. In this class(StoreBean) you have the
fields(properties) and the getters and setters to this fields.
In Web2Py you don't
Hi,
I have a table with this fields:
id
categoria_cliente_id
produto_id
preco
Well, I need to implement a constraint where the fields
categoria_cliente_id + produto_id are unique. for example:
id - categoria_cliente_id - produto_id - preco
01 01
mdipierro,
But, how to get this value in a create crud form ?
Two questions, that can resolve my problem:
1) The create crud method has a "pre-action" where I can manipulate
this value ?
If yes:
2) How to set this value in a form generated by a
crud.create method ?
> Question Number = 02 (get the last(max)(where the questionary_id=1)
> value of this field + 1)
Well, in a crud create form I have this questionary_id, it is shown
how a html select field.
--~--~-~--~~~---~--~~
You received this message because you are
Joe,
I have a table(in my ER) 'questionary' with fields: (id, name,
created_date, description) a table 'questions' with the fields (id,
id_questionary, number_question, question, answer). Well, in the field
number_question I want that in a "create operation" it receive your
last value + 1, for
Hi,
I need create a field in my table that receive the last value + 1
when I create a new record. For example to a questions table. In this
table I have a ID and a number of question field.
--~--~-~--~~~---~--~~
You received this message because you are subscr
thanks !, now run !
- Leandro.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to
web2py+
Hi,
I'm trying use Aptana IDE with web2py but when I run web2py.py in
IDE I receive a message that the port is in use, but I don't have
another application running in this port.
Any idea ?
--~--~-~--~~~---~--~~
You received this message because you are s
Hi,
I have two apps in my Web2Py:
init - default website.
blog - my personal blog.
I need of this mapping:
www.mysite.com ( the default index page )
point to init/default/index
www.mysite.com/company ( a company page )
Why I love Web2Py ? because this ! simple and elegant !
Perfect Massimo !.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsu
For example, in model I do this:
db.define_table('unidades',
SQLField('sigla','string', length=3, default=''),
SQLField('descricao','string', length=150, default=''),
migrate=False)
db.unidades.sigla.requires=IS_NOT_EMPTY()
db.unidades.descricao.requires=IS_NOT_EMPTY()
unidades_labels
Perfect !
- Leandro.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to
web2py+unsubscr.
I'm tryng this:
db.define_table('ni',
SQLField('cliente',db.clientes),
SQLField('desenho',db.desenhos),
SQLField('descricao','text'),
SQLField('componente','string', length=03, default='Não'),
SQLField('origem_materia_prima','string', length=10,
default='Cliente'),
SQLFiel
Hi Thadeu,
I think that your structure is better.
I'll try this solution.
Leandro.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups
Thank's FRAN !
I'll try this solution.
Leandro.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send
I have this fields for the NI table:
ni
part_number
customer_id
of_id
picture_id
description
is_kit
ni_01
ni_02
ni_03
ni_04
How to Implement a field "search" to search in all content of my
website ?, any idea ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.co
Congratulations !!! Jon.
Very good !.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to
w
in the GAE ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to
web2py+unsubscr...@googleg
A
It's clean and more WEB 2.0 style.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to
we
Perfect !,
Thanks masters.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to
web2py+unsub
Hi friends,
I have this case:
# Model
SQLField('aceita','string', default='Sim'))
db.pampa_classificacaocliente.aceita.requires=[IS_NOT_EMPTY(),
IS_IN_SET(['Sim', 'Não'])]
# Controller
form=SQLFORM(db.pampa_classificacaocliente,rows[0],fie
Hi,
It's possible import a SQL Schemma Database into a model.py ?
I have a big legacy database(with many tables) and I want generate
the model class from database( If this possbile !).
Any idea ?
--~--~-~--~~~---~--~~
You received this message because you ar
Ok, Fran
Now, I have all information to resolve my problem and my questions !.
Thanks for the all respost.
Leandro.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send e
> This works though :)
> form = crud.create(db.table)
> form['_class'] = 'myclass'
> form['_id'] = 'myid'
>
Perfect, this works fine.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to th
> NB The default IDs are already very CSS-friendly, so you should be
> able to make use of those & not need to define your own.
>
> Going back to the original question I see you were looking at the
> output of crud.select() which *does* support the custom attributes I
> highlighted earlier, so t
Fran,
> > 1) In the action default/data/select/"table_name" the generated
> > output is a HTML table with all records and columns of the
> > "table_name". Well, if I want hide some columns
>
> db.table.field.readable = False
This resolve the problem.
>
> > and implement a pagination in the
Hi,
I'm sorry by my stupid questions and by terrible english , but...
I want to personalize the behavior and the Layout of CRUD
funcionality, about this, I have Three questions:
1) In the action default/data/select/"table_name" the generated
output is a HTML table with all records and c
This is my site:
http://www.professionalit.com.br (for now, without access to the
Google database.)
This is my blog:
http://www.professionalit.com.br/blog (with access to the Google
database.)
If not logged in Google Account, this link redirect to login in a
Google Account. I think th
Only more a question:
- any visitor who comes to my blog will need to login?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroup
Hello,
I'm porting my blog(a web2py app) to Google App Engine.
When I run my blog application and open my browser(http://localhost:
8080/blog), I receive this message:
Sign in with your google account.(point to authentication link of
google )
Well, how to avoid this behavior?
--
db.categories.category_name,db.categories.category_tip)
> })
>
> On Jun 22, 9:20 am, ProfessionalIT wrote:
>
> > Hans,
>
> > I Have this code:
>
> > def get_post_cats(post_id):
> > cats=db((db.posts.id == post_id) & (db.posts.post_cate
ed
> to perform a join.
>
> On Mon, Jun 22, 2009 at 6:20 PM, ProfessionalIT wrote:
Hans,
Thanks, your suggestion is very good.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework"
Hans,
I Have this code:
def get_post_cats(post_id):
cats=db((db.posts.id == post_id) & (db.posts.post_category ==
db.categories.id)).select(db.categories.ALL)
items=[]
for cat in cats:
item="%(name)s" % {'app':request.application, 'cat':cat.category_name,
'name':cat.cat
Hello,
How to simulate a JOIN in Google App Engine ?
I Know that the GAE don't support JOINS then how to simulate
this ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To pos
Hello,
This is my first post in the group and I have a simple question:
How to run more then one web2py application in Google App Engine ?
I did a web2py application called init ( it is the default web2py
application / the website of my company and It works fine in GAE, see
in action
94 matches
Mail list logo