wow this is all great stuff, it sounds like my concerns are overblown.
Honestly after reviewing all the features of the GAE api i was deeply
concerned about any DAL that supports SQL being of use on GAE but your
insistence and knowledge of the subject reassures me that I'm not
barking up the wrong
Hi Massimo,
I hope this helps.
Example 1 :
form = SQLFORM.factory(
Field('fromyr', requires=[IS_INT_IN_RANGE
(1950,2000,error_message='Allowed Years, 1950-2000')],label='*
Enrolled - From Year'),
Field('toyr', requires=[IS_INT_IN_RANGE
(1950,2000,error_message='Allowed Years,
1950-2000')],l
I am creating a file (pdf actually) that is being generating in
memory.
I could save it and then grab it, but we all know there has to be a
better way. How do I make a file like object downloadable with
web2py?
Regards,
Jason
--~--~-~--~~~---~--~~
You received this
I believe there is no overhead issue. I have been able to move all of
the SQL tables into a module
so that they persist across requests. And in the module, I wrapped the
table creates in an if() statement
which checks to see if the table already exists.
I changed db.py to just have wrapper methods
sorry. I do not understand. Can you provide an example?
On Sep 30, 10:44 pm, ed wrote:
> Sorry Massimo for mixing up my question. What I mean is, when there is
> an error in validating a variable and response.flash is used it
> returns an empty form with the error message. If possible I would li
OK. check trunk.
On Sep 30, 10:33 pm, mdipierro wrote:
> None I can think of. Let me look into this.
>
> On Sep 30, 10:16 pm, Jose wrote:
>
> > On 30 sep, 21:28, mdipierro wrote:
>
> > > db.table.myField.requires=IS_LENGTH(20)
> > > to have it validated.
>
> > if I have the following:
>
> > db
Sorry Massimo for mixing up my question. What I mean is, when there is
an error in validating a variable and response.flash is used it
returns an empty form with the error message. If possible I would like
to return the error message with a filled form like in validators
IS_IN_DB, etc.. Thanks aga
None I can think of. Let me look into this.
On Sep 30, 10:16 pm, Jose wrote:
> On 30 sep, 21:28, mdipierro wrote:
>
> > db.table.myField.requires=IS_LENGTH(20)
> > to have it validated.
>
> if I have the following:
>
> db.define_table('mytable',
> Field('myfield', length=10),
> )
>
> and I
On 30 sep, 21:28, mdipierro wrote:
> db.table.myField.requires=IS_LENGTH(20)
> to have it validated.
>
if I have the following:
db.define_table('mytable',
Field('myfield', length=10),
)
and I introduce a string of length greater than 10 the validator is
enabled.
But on the following:
d
Great. Do you think this is worth creating a Session.is_new function
from?
On Sep 30, 9:40 pm, mdipierro wrote:
> correction. Try this instead:
>
> response.cookies.get(response.session_id_name,None) !=
> response.session_id
>
> is True if the session is new, False otherwise
>
> On Sep 30, 9:37
correction. Try this instead:
response.cookies.get(response.session_id_name,None) !=
response.session_id
is True if the session is new, False otherwise
On Sep 30, 9:37 pm, mdipierro wrote:
> No but you can use:
>
> request.cookies.has_key(response.session_id_name)
>
> On Sep 30, 8:47 pm, "mr.f
No but you can use:
request.cookies.has_key(response.session_id_name)
On Sep 30, 8:47 pm, "mr.freeze" wrote:
> Asp.net and java have convenience functions for this. Does web2py? I
> can't find it.
>
> Thanks!
> Nathan
--~--~-~--~~~---~--~~
You received this mess
Asp.net and java have convenience functions for this. Does web2py? I
can't find it.
Thanks!
Nathan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@go
http://www.web2py.com/appliances/default/show/55
On Sep 30, 7:27 pm, mdipierro wrote:
> I will post it asap.
>
> On Sep 30, 5:42 pm, Tim Michelsen wrote:
>
> > Hi,
> > please see my comment here:http://vimeo.com/6782736
>
> > Please create a page (sub-pag of documentation on main web2py) and po
db.table.myField.requires=IS_LENGTH(20)
to have it validated.
On Sep 30, 7:11 pm, Jose wrote:
> Hi,
>
> I have a field such as: Field ( 'myField', length = 20).
>
> Hopefully, when someone completes the form, whether to enter text when
> you save the framework truncated after 20 characters and n
I will post it asap.
On Sep 30, 5:42 pm, Tim Michelsen wrote:
> Hi,
> please see my comment here:http://vimeo.com/6782736
>
> Please create a page (sub-pag of documentation on main web2py) and post
> all appliances that you use in the videos.
> This could help learning along these videos a lot.
> One entity group per web2py object, lack of list property support,
> etc. dooms the current implementation to "small" web sites. If db.py
> has no tables, will the "Web2py also re-evaluates your model
> definition" overhead vanish?
Yes, and to be practical, there is not much overhead. I was t
Hi,
I have a field such as: Field ( 'myField', length = 20).
Hopefully, when someone completes the form, whether to enter text when
you save the framework truncated after 20 characters and not a
failure.
It's a bug?
Jose
--~--~-~--~~~---~--~~
You received this m
> to this point i don't think there are many people sweating bullets over the
> portability of their app engine apps
I'm not sweating over it, but this is still important for me because
my client may later want their GAE app migrated to a personal server.
Also I don't want to be locked into GAE
I've also got a need to support uploading multiple files (perhaps
hundreds at a time) and arranging for each of them to result in a new
database record. What's the recommended way to do this?
Thanks,
Mike
On Sep 13, 11:35 am, ab wrote:
> This will require changes in this jquery plugin.
>
> Prob
Developers in the two different paradigms SQL vs GAE have different
concerns. I have no knowledge of all the things that the web2py DAL
does but it seems to me it has a few purposes that are great in the
world of SQL databses but either moot or a hinderence in terms of App
Engine.
they are :
1:
Sure, will do!
On Wed, Sep 30, 2009 at 5:51 PM, mdipierro wrote:
>
> Yes. If you send me a patch to do this I will take it.
> Thank you for reporting the issue.
>
> On Sep 30, 2:38 pm, Dmitri Zagidulin wrote:
>> I have a web2py app (running on Ubuntu Linux) that has to connect to a
>> MS SQL Se
Hi,
please see my comment here:
http://vimeo.com/6782736
Please create a page (sub-pag of documentation on main web2py) and post
all appliances that you use in the videos.
This could help learning along these videos a lot.
Thanks,
Timmie
--~--~-~--~~~---~--~~
Y
This is ok but you should change one thing:
if rows:
form.errors = "Ja existe um preco com essa categoria
de cliente e este produto !"
should be
if rows:
form.errors.produto = "Ja existe um preco com essa
categoria de cliente e este produto !"
fo
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
And I think this has more to do with "concept" of what constitutes a layer
than anything else;
If you think about network boundaries, then the three layers can be referred
to as:
- presentation;
- business logic;
- persistence layer;
So - with web apps / thin client (ignoring Flex as a rich clie
I used google translate and I am not sure I understand everything.
Normally you have the 3 layers: mode+view+controller but they do not
have to map 1-1-1.
You can have 10-1-1, 1-10-10,1-10-1 etc.
For exanple you can have one controller action display results from
different tables depending on a
One entity group per web2py object, lack of list property support,
etc. dooms the current implementation to "small" web sites. If db.py
has no tables, will the "Web2py also re-evaluates your model
definition" overhead vanish?
--~--~-~--~~~---~--~~
You received this
Yes. If you send me a patch to do this I will take it.
Thank you for reporting the issue.
On Sep 30, 2:38 pm, Dmitri Zagidulin wrote:
> I have a web2py app (running on Ubuntu Linux) that has to connect to a
> MS SQL Server.
> I installed pyodbc, and the FreeTDS ODBC driver.
> I defined a driver
Sorry, I did not mean to say I do not believe you.
I meant to say that either I do not understand the question or
something else is going on in your code.
I just did the following test:
a new app
def test1: return repr(dict(request.vars))
@auth.requires_login()
def test2: return repr(dict(requ
Thanks very much - this exactly answers my question.
On Sep 30, 2:49 pm, Jose wrote:
> On 30 sep, 17:41, MichaelT wrote:
>
>
>
> > Hi,
>
> > ** I think I made a mistake and first created a topic instead of a
> > post. Rookie mistake, Sorry for dupe. ***
>
> > I'm trying to understand what I hav
I did - nothing shows what I am looking for.
On Sep 30, 1:46 pm, Yarko Tymciurak wrote:
> For starters, have a look at the opening page of the FORMS AND VALIDATORS
> section of the manual (P.181 onhttp://www.web2py.com/examples/default/docs)
>
> On Wed, Sep 30, 2009 at 12:34 PM, MichaelT wrote:
Then how do I account for the fact that (while being logged in) if I
remove the requires_login() decorator, I can access the vars inside
the function,
but if I put back the decorator, I cannot see the vars? And, similarly
- if I don't have requires_login, args get loaded into the args
dictionary,
No te preocupes yo hablo español (idioma natal seguro mi inglés
también es malo XD), lo que me preocupa al hacer esto es no obedecer
las 3 capas. Según lo que siempre he visto es que la vista le pasa
datos al controlador y de ahi la pasas al modelo. Lo que he visto en
web2py es que el controlador
I am sure that is not the case. If you submit vars to a function that
requires login and you are not login you are redirected to login (in
this case vars are lost, args are not), but if you are logged in the
function works normally and the vars are in request.vars.
On Sep 30, 2:28 pm, Dmitri Zagi
I have a web2py app (running on Ubuntu Linux) that has to connect to a
MS SQL Server.
I installed pyodbc, and the FreeTDS ODBC driver.
I defined a driver in odbcinst.ini, etc, etc. And could now connect
from the command line, via isql, to the remote database.
In web2py, the following connection s
It looks like functions that are decorated with auth.requires_login()
are not receiving their request.vars dictionary from the url.
For example, say I have an auth-protected function in a controller:
@auth.requires_login()
def index():
"""
Login-protected index page
"""
response.
ahh i finally understand the difference between svn and git/mercurial
now :-) I'll try it out
On Sep 30, 2:24 pm, Yarko Tymciurak wrote:
> On Wed, Sep 30, 2009 at 2:04 PM, AndrewLoot wrote:
>
>
>
> > ok can you explain that setup a bit more for me maybe im confused on
> > it but i want to mainta
BTW, this should work great with JPolite without need to modify
existing jPolite code.
Massimo
On Sep 30, 2:12 pm, Massimo Di Pierro wrote:
> Here is the code:
>
> web2py.app.a0.w2p
> 89KViewDownload
>
>
--~--~-~--~~~---~--~~
You received this message because yo
On Wed, Sep 30, 2009 at 2:04 PM, AndrewLoot wrote:
>
> ok can you explain that setup a bit more for me maybe im confused on
> it but i want to maintain my code in my own svn and pull in web2py but
> maintain my own mods to web2py. what you have sounds like you're just
> never committing to a repos
No problem, if I find more videos about web2py that are interesting
enough to show here I will post them.
Regards,
Pynthon
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group,
Bytecode caching helps, but the GAE Model (_tableobj) is reconstructed
on every request for every table. The GAE Model __metaclass__ works
by scanning the Model for properties, and these scans happen on every
request. GAE Model was designed to be scanned once, and then module
cached, and reused
You did not. You have nothing to apologize for. It is good you
mentioned that video to us.
On Sep 30, 2:15 pm, Pynthon wrote:
> You mean the video? No, I did not create it. I'm just someone who is
> looking at the web2py mailing list sometimes because I can't choose
> beside web2py and ASP.NET b
You mean the video? No, I did not create it. I'm just someone who is
looking at the web2py mailing list sometimes because I can't choose
beside web2py and ASP.NET but that is another story. A few days ago I
started with creating a Dutch web2py tutorial but when I see some
examples of the new book
ok can you explain that setup a bit more for me maybe im confused on
it but i want to maintain my code in my own svn and pull in web2py but
maintain my own mods to web2py. what you have sounds like you're just
never committing to a repository.
On Sep 30, 12:40 pm, "mr.freeze" wrote:
> I use Subc
fact of the matter is tho that the app does run properly from command
line which would imply there is nothing wrong with the files or my
build process. I guess ill just live with manually running form the
command line if i want to access the admin section which i dont'
really use that much anyway.
> 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),
You need to add two field to db.auth_user
Field
('last_login','datetime',default=request.now,writable=False,readable=False)
Field
('last_ip',default=request.env.remote_addr,writable=False,readable=False)
that stores the time of last login, update it at every request in
model
if auth.user and re
Those settings are correct, I can send mail from my application, but when I
try to go to page /init/default/user/retrieve_password I get the flash
message Function disabled.
Kenneth
On Wed, Sep 30, 2009 at 4:35 PM, mdipierro wrote:
>
> you have to configure your email smtp server
>
> mail=Mai
I have many users with differents roles.
Those users gave their passwords and username to others.
I use auth and it allows to the
people login in to the application with the same user at the same time
with different pc with different ip.
And I don't want that happen.
Please, Can anybody help me?
On 30 sep, 17:41, MichaelT wrote:
> Hi,
>
> ** I think I made a mistake and first created a topic instead of a
> post. Rookie mistake, Sorry for dupe. ***
>
> I'm trying to understand what I have to do and what can be done
> automatically with FORM (not SQLFORM).
>
> I want to create a form tha
> so i guess the next question is, do i have anything to worry about
> when using web2py on app engine per data model efficiency?
I am not sure what you are asking exactly.
If you use several tables and references, without list properties and
batch get, you would see the N+1 query problem de-re
Just to verify, this is enforced at the application level and is not a
true composite primary key at the database level, correct?
On Sep 30, 1:04 pm, mdipierro wrote:
> The easiest way is:
>
> db.table.produto_id.requires=IS_NOT_IN_DB(db
> (db.table.categoria_id==request.vars.categoria_id),'tab
On Sep 30, 1:01 pm, Robin B wrote:
> > so i guess the next question is, do i have anything to worry about
> > when using web2py on app engine per data model efficiency?
>
> I am not sure what you are asking exactly.
>
> If you use several tables and references, without list properties and
> batch
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')
Massimo
On Sep 30, 11:38 am, Leandro - ProfessionalIT
wrote:
> Hi,
>
> I have a table with this fields:
>
>id
>categoria_cliente_id
>produto_id
For starters, have a look at the opening page of the FORMS AND VALIDATORS
section of the manual (P.181 on http://www.web2py.com/examples/default/docs)
On Wed, Sep 30, 2009 at 12:34 PM, MichaelT wrote:
>
> Hi,
> I'm trying to understand what I have to do and what can be done
> automatically with
Hi,
** I think I made a mistake and first created a topic instead of a
post. Rookie mistake, Sorry for dupe. ***
I'm trying to understand what I have to do and what can be done
automatically with FORM (not SQLFORM).
I want to create a form that is the same functionally as SQLFORM,
meaning the f
Hi,
I'm trying to understand what I have to do and what can be done
automatically with FORM (not SQLFORM).
I want to create a form that is the same functionally as SQLFORM,
meaning the fields from related tables are populated as drop down
buttons, etc. But I don't want to use SQLFORM.
Can FORM p
I use Subclipse. If you modify a module, it won't get overwritten
when updating.
On Sep 30, 12:15 pm, AndrewLoot wrote:
> but how do you keep the web2py code base up to date, o don't want ot
> manually copy files over... what if the code-base losses some old
> files then i have them laying arou
if you use bzr, then "bzr merge" will do this for you;
in svn, I think "svn merge" does the same.
On Wed, Sep 30, 2009 at 12:15 PM, AndrewLoot wrote:
>
> but how do you keep the web2py code base up to date, o don't want ot
> manually copy files over... what if the code-base losses some old
> file
Sophie -
It may help to think about the dataflow in web2py (you can follow the
diagram on P. 6 of the manual found at
http://www.web2py.com/examples/default/docs):
[] A request comes into the server, and gets passed to web2py:main();
[] main validates the path/url, and then selects the applicat
so i guess the next question is, do i have anything to worry about
when using web2py on app engine per data model efficiency?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this grou
but how do you keep the web2py code base up to date, o don't want ot
manually copy files over... what if the code-base losses some old
files then i have them laying around. Im thinking of another approach
but a build process that combines separate projects of web2py and my
code for web2py seems to
I actually use that implementation right now that Mr. Freeze suggests.
Works great :)
-Thadeus
On Tue, Sep 29, 2009 at 10:16 PM, mr.freeze wrote:
>
> hmac with MD5 digest is the default but choosing a different one is
> recommended as it has known weaknesses.
>
> On Sep 29, 9:05 pm, mengu
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
I run Eclipse/PyDev with the svn trunk with no problems. Perhaps your
build process is breaking it somehow?
On Sep 30, 11:52 am, AndrewLoot wrote:
> > I would check your debug configuration in Eclipse and make sure you
> > are passing the same arguments as the command line.
>
> yes it is and I'
> I would check your debug configuration in Eclipse and make sure you
> are passing the same arguments as the command line.
yes it is and I've tried with no parameters and with -a '' -p
The only difference i can imagine is that eclipse is using a different
python environment that is not con
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
II can help you translate this example but can you explain in words
what id does? I am not 100% sure.
>
> public void processRequest(HttpServletRequest request,
> HttpServletResponse response) throws IOException,
> ServletException
> {
> String resource= ""
No shame. Did you make it? I think you are explaining something
important. web2py is was originally designed to be a tool for teaching
and I am happy you are using it this way.
On Sep 30, 9:21 am, Pynthon Pynthon wrote:
> Ah, sorry guys *shame*. My fault... Thanks for making this clear guys!
>
>
Hi i am new is web2py, and im very confused. this is what i do in java
but i dont know how to do this in web2py. For example, here i have my
form, but in web2py the form is in the controller? and tha labels are
in the model?
And in web2py i dont do insert statement. someone could help me? how
can
> Massimo or anyone familiar with app engine, i am beginning development
> with bot app engine and web2py and have reviewed much of the google io
> videos especially those by bret slatkin regarding how to work with the
> app engine datastore properly. I hope but am guessing it is probably
> not th
For your information. There is a refined version later. (And that's
why I suggest add it into scaffold welcome app, this way people can
easily get a latest version.)
The new version uses RotatingFileHandler so that you need not worry
the log file grows up unlimitedly, and the log file can be view
Ah, sorry guys *shame*. My fault... Thanks for making this clear guys!
2009/9/30 mdipierro
>
> Yes, this is a good video explaining a general concept. He is not
> using web2py auth which does not have the vulnerability he engineered.
> I posted a comment to the video explaining this.
>
> On Sep
I would check your debug configuration in Eclipse and make sure you
are passing the same arguments as the command line.
On Sep 30, 2:27 am, AndrewLoot wrote:
> i cant tell what the difference is between running web2py from my
> eclipse run config in pydev but when i click the admin panel link i
I have a framework but it works on php there is a way to insert this code
into web2py?
Sophie
2009/9/30 Richard
>
> I've also been researching how to do this using Paypal.
>
> I first looked at these Python projects:
> http://code.google.com/p/pypaypal/
> http://python.pastebin.com/f782d48d9
>
you have to configure your email smtp server
mail=Mail()
mail.server='host:port'
mail.sender=''
mail.login='username:password'
auth.settings.mailer=mail
otherwise it does not know how to email you.
On Sep 30, 5:48 am, GhostRider wrote:
> Hello list,
>
> just started using web2py and now I
Yes, this is a good video explaining a general concept. He is not
using web2py auth which does not have the vulnerability he engineered.
I posted a comment to the video explaining this.
On Sep 30, 8:18 am, carlo wrote:
> I think it is showing just known things: clear passwords over unsecure
> ch
Hello list,
just started using web2py and now I hit the wall with the retrieve
password function.
How do I enable that function?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to thi
I think it is showing just known things: clear passwords over unsecure
channels can be easily sniffed. Or did I miss something?
carlo
On 30 Set, 12:20, Pynthon wrote:
> Hello everyone
>
> I am ill and I was lying in bed with my iPod Touch. However I searched
> on Youtube for some stuff until I
I am thinking that either jsonrpclib or web2py has trouble with the
echo method, but not sure how to trace it down...
On Sep 28, 8:02 pm, Sceva wrote:
> I am trying to test the jsonrpc service on the web2py server.
>
> I am using the simple jsonrpc client found athttp://lkcl.net/jsonrpclib.tgz,
Thanks! :)
--~--~-~--~~~---~--~~
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...@googlegro
Thanks! :)
--~--~-~--~~~---~--~~
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...@googlegr
Hello everyone
I am ill and I was lying in bed with my iPod Touch. However I searched
on Youtube for some stuff until I saw this video:
http://www.youtube.com/watch?v=5ZLmRMLo6HI
That guys uses Web2py right? First I thought it was Massimo but
Massimo only uploads videos with his real name. Does
thanks for the answer, Massimo.
for legacy reason, the password i have in the db are stored as apache
passwords
(...because those passwords are also used to authenticated user for
different services using apache [svn, wiki, etc...])
i therefore developed a custom login method (added to
auth.sett
i cant tell what the difference is between running web2py from my
eclipse run config in pydev but when i click the admin panel link i
get a ticket (below), when i click the ticket link i get another
ticket. Has anyone had this problem with thier eclipse/pydev setup?
When i run from command line it
86 matches
Mail list logo