Hi All,
Recently started using web2py and python. I am developing a web application.
The authorization scenario is like this:
There is a super user who can access anything. (Essentially he can
create/update/delete categories apart from everything else)
There is a category manager who can update t
Thank you, Massimo!
On Aug 5, 12:39 am, mdipierro wrote:
> Sorry I forgot. It is in trunk now. Please check it. Now I have to
> revise the book once more. :-(
>
> On Aug 4, 3:55 pm, Vidul Petrov wrote:
>
>
>
> > Hi Massimo,
>
> > I sent you an email with a Mercurial diff about retrieve_(username
Found it: http://web2py.com/examples/default/version
Tks
2010/8/4 Bruno Rocha
> LOL
>
> Really sorry when I read the thread mentioned above got the number on the
> head, I even mentioned as being the current version on my site. (just
> corrected)
>
> web2py use a crawler to pull the version inf
LOL
Really sorry when I read the thread mentioned above got the number on the
head, I even mentioned as being the current version on my site. (just
corrected)
web2py use a crawler to pull the version information directly to the
appadmin. it is possible to embed in any other place?
I i'll take a
You had me panic for a second. LOL
On Aug 4, 7:11 pm, Bruno Rocha wrote:
> I got confused because of this
> thread..http://groups.google.com/group/web2py/browse_thread/thread/a1e2b8443a...
> *1.84*#5e20279c2ba66d88
>
> Sorry...
>
> 2010/8/4 Bruno Rocha
>
>
>
> > It is going down to zero ??
>
>
I got confused because of this thread..
http://groups.google.com/group/web2py/browse_thread/thread/a1e2b8443ada7198/5e20279c2ba66d88?lnk=gst&q=
*1.84*#5e20279c2ba66d88
Sorry...
2010/8/4 Bruno Rocha
> It is going down to zero ??
>
> was 1.84.1, than 1.85. and now it is 1.82???
>
> 2010/8/4 mdip
It is going down to zero ??
was 1.84.1, than 1.85. and now it is 1.82???
2010/8/4 mdipierro
> Changelog
>
> #1.82.1
> - new template system supports {{block}}, thanks Thadeus
> - new db.table(id,[field=value]) and db.table(query) syntax to get
> first matching record
> - URL('index') (no more r
Changelog
#1.82.1
- new template system supports {{block}}, thanks Thadeus
- new db.table(id,[field=value]) and db.table(query) syntax to get
first matching record
- URL('index') (no more r=request), thanks Thadeus
- mail.send(message='...', )
- DAL([uri1, uri2, uri3]) for load balancing
- @se
this is on our todo list
On Aug 4, 4:19 pm, Lasiaf wrote:
> Hi,
>
> I'm new to web2py and python.
> Here is what I wanna accomplish:
> I want to have routes.py in each application, so I can make separate
> applications with different set of routes, because I will be hosting
> it in a shared hosti
Sorry I forgot. It is in trunk now. Please check it. Now I have to
revise the book once more. :-(
On Aug 4, 3:55 pm, Vidul Petrov wrote:
> Hi Massimo,
>
> I sent you an email with a Mercurial diff about retrieve_(username/
> password) settings and captcha:
>
> diff -r 3e0d95c0a0d5 gluon/tools.py
Hi,
I'm new to web2py and python.
Here is what I wanna accomplish:
I want to have routes.py in each application, so I can make separate
applications with different set of routes, because I will be hosting
it in a shared hosting and they have limited inodes of 50,000. So I
just want to keep a copy
Original Message
Subject:[ANN] Websourcebrowser 0.4a released
Date: Wed, 04 Aug 2010 22:41:42 +0200
From: Stefan Schwarzer
Reply-To: python-l...@python.org
Organization: 1&1 Internet AG
To: comp-lang-python-annou...@moderators.isc.org
Newsgroups: com
Hi Massimo,
I sent you an email with a Mercurial diff about retrieve_(username/
password) settings and captcha:
diff -r 3e0d95c0a0d5 gluon/tools.py
--- a/gluon/tools.pySun Aug 01 04:53:46 2010 -0500
+++ b/gluon/tools.pySun Aug 01 18:38:00 2010 +0300
@@ -804,6 +804,8 @@
self.setti
Everyone at some point has this thought. But there is a big down side
to generating all the html in code, it makes the application hard to
skin. I can skin a web2py application in half and hour not including
cleaning up the menus with any template I come across. I do like
generate the html I am gra
Yes, thanks Mr Admin and Martin.
On Aug 4, 2:54 pm, mdipierro wrote:
> Mr Admin did a good job at advertising on the list. Perhpas I should
> have helped him more with twitter etc. Well. Next time.
>
> I want to point out that Mr Admin is using his own money to pay for
> the prizes so we all owe
Mr Admin did a good job at advertising on the list. Perhpas I should
have helped him more with twitter etc. Well. Next time.
I want to point out that Mr Admin is using his own money to pay for
the prizes so we all owe him a big thank you.
We got InstantPress out of it and that is fantastic.
Mass
Congrats to InstantPress, it's really great.
Too bad few were aware of this competition. Next time, it would be
great if it was stickied in the group.
On Aug 4, 6:52 pm, NetAdmin wrote:
> I did all of the promotion through messages on this group.
> ( Search for the word "Exhibition" )
>
> Mr.NetA
That is a good looking app!
On Aug 3, 12:01 pm, NetAdmin wrote:
> Hello All,
>
> The winners of the Web2py Application Exhibition have been e-mailed,
> and I'm waiting for their replies before posting the results.
>
> Mr.NetAdmin
I did all of the promotion through messages on this group.
( Search for the word "Exhibition" )
Mr.NetAdmin
On Aug 4, 11:44 am, GoldenTiger wrote:
> Great application InstantPress!
> What is the website of this competition?
> I did not know about it
>
> On 4 ago, 15:55, NetAdmin wrote:
>
> >
Great application InstantPress!
What is the website of this competition?
I did not know about it
On 4 ago, 15:55, NetAdmin wrote:
> Hello Web2py Users!
>
> After careful consideration of the entire list of entries...
> ( actually the only entry )
> the winning entry was submitted by Martin Mulone
I hope that you have checked the language settings of your browser and
you have used the admin part for updating languages, before
translating the field . I hope it helps
Sarados
On 3 Αύγ, 14:35, max wrote:
> yes. it shows incorrectly in the browser.
>
> On Aug 2, 7:13 pm, Jason Brower wrote:
>
Seems like participants play only if they win!!! ;-)
2010/8/4 Mr admin :
> The first place prize was $100 dollars, 2nd place was $50
>
>
>
> On Wed, Aug 4, 2010 at 8:13 AM, mdipierro wrote:
>>
>> Next time we need a money prize. ;-)
>>
>> On Aug 4, 6:22 am, Mr admin wrote:
>> > The number of pa
I updated info at the following url:
http://wiki.developers.facebook.com/index.php/User:Python#web2py
Interesting approach !
Should be a good intermediate step, ...
... what I was thinking of (don't know yet if it's possible at all ;-)
... is a wysiwyg html editor combined with a syntax highlighter (for the
embedded Python code)
here is a first attempt, I'm making for totally other project,
t
Hello Web2py Users!
After careful consideration of the entire list of entries...
( actually the only entry )
the winning entry was submitted by Martin Mulone of Entre Rios,
Argentina.
Martin enjoys music, programming in python, soccer and sailing.
His entry, Instant-Press, which is a blogging app
As my application's views have become more complex, I've also been
considering the same questions concerning Python vs HTML coding. I've
tried using the helpers but my brain finds the stacks of parentheses
even more confusing than HTML closing tags. Currently, I'm defining
functions in my views t
There was a little problem with the code, but, for once, i managed to
solve it on my own!
userid had to be 'userid'
values['userid']=auth.user_id
Thanks for all the help!
On Aug 4, 4:12 pm, mdipierro wrote:
> def callback():
> mapping=[
> ('fielda%i','typ_ptyx'),
> ('field
The first place prize was $100 dollars, 2nd place was $50
On Wed, Aug 4, 2010 at 8:13 AM, mdipierro wrote:
> Next time we need a money prize. ;-)
>
> On Aug 4, 6:22 am, Mr admin wrote:
> > The number of participants was two.
> >
> > Mr.NetAdmin
> >
> > On Wed, Aug 4, 2010 at 2:49 AM, mdipierr
Yes but that only works in the earlier "welcome" scaffold shipped with
web2py 1.79.x or so.
The latest web2py's "welcome" uses SuperFish menu (
http://users.tpg.com.au/j_birch/plugins/superfish/ ), which is
supposed to be capable for that too, but in fact the out-of-box
welcome/static/base.css los
Next time we need a money prize. ;-)
On Aug 4, 6:22 am, Mr admin wrote:
> The number of participants was two.
>
> Mr.NetAdmin
>
> On Wed, Aug 4, 2010 at 2:49 AM, mdipierro wrote:
> > Can you post some stats?
> > Number of participants for example.
>
> > Massimo
>
> > On Aug 3, 2:01 pm, NetAdmin
def callback():
mapping=[
('fielda%i','typ_ptyx'),
('fieldb%i','idryma'),
('fieldc%i','sxolh'),
('fieldd%i','titlos'),
('fielde%i','polh_xwra'),
('fieldf%i','etos')]
for i in range(1,100):
values = dict((field,request.vars[key%i]) for key, field in
mapping
Sorry, I am so stupid... I forgotten about anchors
Thanks again
2010/8/4 mdipierro
> Yes you can:
>
> [[my reference #id1]]
>
> [[id1]] referenced material
>
> On Aug 3, 11:56 pm, Bruno Rocha wrote:
> > Useful suggestion:
> >
> > markmin currently does not allow the creation of references to l
Hi, how do I make the 'accepts' function of a form update some other
part of a form? I can do it with a specific button, but want the
validation provided by the 'accepts' function too
In View:
{{=searchForm}}
{{=DIV(_id='searchResults')}
In controller:
if searchForm.accepts(request.vars,
This works fine, except for one thing; i also need to add the userid
to the database so i can associate the records in the database to a
registered user...i suspect it's a really easy fix, but i just can't
figure it out...
Thanks
On Aug 4, 1:49 pm, mdipierro wrote:
> How about this?
>
> def call
The number of participants was two.
Mr.NetAdmin
On Wed, Aug 4, 2010 at 2:49 AM, mdipierro wrote:
> Can you post some stats?
> Number of participants for example.
>
> Massimo
>
> On Aug 3, 2:01 pm, NetAdmin wrote:
> > Hello All,
> >
> > The winners of the Web2py Application Exhibition have bee
How about this?
def callback():
mapping=[
('fielda%i','typ_ptyx'),
('fieldb%i','idryma'),
('fieldc%i','sxolh'),
('fieldd%i','titlos'),
('fielde%i','polh_xwra'),
('fieldf%i','etos')]
for i in range(1,100):
values = dict((field,request.vars[key%i]) for key,
For now, this is the db model:
db.define_table('ekped',
Field('userid'), # From db.auth_user.id
Field('typ_ptyx'),
Field('idryma'),
Field('sxolh'),
Field('titlos'),
Field('polh_xwra'),
Field('etos'))
And the form->db field mapping should be like this(N is a num
I am teaching two classes on web2py this fall:
http://www.cdm.depaul.edu/ipd/Programs/Pages/WebDevelopmentwithPython.aspx
(2 credit hours)
http://mycti.cti.depaul.edu/programs/courses.asp?section=courses&courseid=438&deptmne=CSC
(4 credit hours)
They are both available online.
The
I can send an example. Can you described the model and how input
fields should be mapped into db fields?
On Aug 4, 4:50 am, cogarg wrote:
> Thanks for the reply, i will look into replacing the add/remove
> functions with that jquery code, but i('ll) still have the same
> issue;
> I can't figure o
That is a difference between NoSQL and RDBS.
In web2py you can do it with one query+code but I would to it with
three queries and cache:
query = db.message.id>0
tags_d = db(db.tag.id>0).select(cache=(cache.ram,600)).as_dict()
message_d = db(query).select().as_dict()
links = db(db.tagging.message.
Thanks for the reply, i will look into replacing the add/remove
functions with that jquery code, but i('ll) still have the same
issue;
I can't figure out how to make a controller that will process the
whole form and insert all the fields in a database.
I'm trying to write a loop to manually insert
And how do you solve this in general? It seems to me very common
thing. How to do it to minimalize database queries? (iIm not a SQL
guy, my Job is Lotus Notes development) and recently I did project
with MongoDB, which has quite different approach for this case)
David
On 4 srp, 11:29, mdipierro
The problem is that there is no SQL query that allows you to return
something like this. Once you get
returns items in a way that gives me result like this:
1. message text 01 (tags: tag01)
2. message text 01 (tags: tag03)
3. message text 02 (tags: tag03)
4. message text 02 (tags: tag05)
5. messag
How to define DAL query to retrieve items and theirs tags? I have
following tables:
'message' <--> 'tagging'(maty-to-many between message and tag tables)
<---> 'tag'
How to retrieve list of all mesages and their assotiated tags so I can
list messages in a view like this:
1. message text 01 (tag
Current way is good enough , it gives programmers choices.
Many of us want to code in HTML as Long as they are static
.
May be pure python templating system which can be enable from response.view
On Wed, Aug 4, 2010 at 3:40 PM, mdipierro wrote:
> This is a good point.
>
> to do it with the curre
This is a good point.
to do it with the current web2py the code at best would look like
this:
Stef Mientki
View profile Translate to Translated (View Original)
More options Aug 4, 3:39 am
From: Stef Mientki
Date: Wed, 04 Aug 2010 10:39:48 +0200
Local: Wed, Aug 4 2010 3:39 am
Subject
You are free to write it the way you want. You don't you do that?
{{=DIV(HR(),H1('README'),UL(LI(T('blah'}}
I think, though, that using wrappers gives lower perfomance so you'll be
consuming more CPU.
Otherwise - no objections to your method.
On Wed, Aug 4, 2010 at 12:39 PM, Stef Mientki wrote
please forgive my ignorance,
but I wonder why views are not written in Python, instead of html ( see
comparison below of te first
part of default\index.html.
The advantage of using Python:
- the user can stick to 1 language
- no redundant information in the closing tags, like ,
- most editors
Please check the cube2py on google code.
I did not fix the problem with the error but now template=None should
not appear anymore.
On Aug 3, 10:48 pm, Bruno Rocha wrote:
> Thanks Massimo,
>
> template function is very well, but raises an error ticket when passing
> 'None' in http:.../templa
Yes you can:
[[my reference #id1]]
[[id1]] referenced material
On Aug 3, 11:56 pm, Bruno Rocha wrote:
> Useful suggestion:
>
> markmin currently does not allow the creation of references to links, this
> is very useful when the written material might be used for printing as
> well. thus present
thanks uploading
On Aug 3, 4:46 pm, Jonathan Lundell wrote:
> On Aug 3, 2010, at 7:48 AM, Jonathan Lundell wrote:
>
>
>
> > On Aug 3, 2010, at 5:33 AM, Niphlod wrote:
>
> >> +1 for this method, is pretty standard in other frameworks too.
> >> Also, according tohttp://www.w3.org/TR/XMLHttpRequest
The ... code in Django in web2py translates with
{{=MENU(response.menu)}}
where (using the data in your example)
response.menu=[
('Home',request.function=='home',URL(r=request,f='home'),[]),
('Store Information',request.function=='info',URL(r=request,f=info'),
[]),
]
The latter code can go
Yes. The only issue here is that plugin_wiki has triple license,
including BSD therefore your closed source app must say it is based on
plugin wiki.
On Aug 3, 4:15 pm, Bruno Rocha wrote:
> I saw this post - > "So ... you want to make and sell a closed source
> windows exe web2py app? Http://bit.l
You can do
myrows = gaelike(db.().select(),text)
if you define:
def gaelike(rows,text):
def condition(row):
return len([k for k,v in row.items() if isinstance(v,str)
and text in v])>0
return rows.find(condition)
On Aug 3, 2:53 pm, Bruno Rocha wrote:
> 'Bad Engli
Can you post some stats?
Number of participants for example.
Massimo
On Aug 3, 2:01 pm, NetAdmin wrote:
> Hello All,
>
> The winners of the Web2py Application Exhibition have been e-mailed,
> and I'm waiting for their replies before posting the results.
>
> Mr.NetAdmin
55 matches
Mail list logo