I found a trick to do that
as #anchor marked with [[anything]] is rendered as pspan
id='anything'/span/p ( which I am not sure if it is a good html pratice
)
BTW, I solved my problem on white spaces with CSS
[[br]] = span id=br I want br /
[[brbr]] = span id=brbr I want br /br /
plus
[[hr]] =
Duh... thanks a lot Thadeus!
I'm glad the people in this group are as helpful and understanding as
they are :)
On Aug 3, 9:10 pm, Thadeus Burgess thade...@thadeusb.com wrote:
crud.select is not a form. it is an SQLTABLE. You probably ment, form
= crud.create(db.Dinners), or form =
Can you post some stats?
Number of participants for example.
Massimo
On Aug 3, 2:01 pm, NetAdmin mr.netad...@gmail.com 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
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
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 rochacbr...@gmail.com wrote:
I saw this post - So ... you want to make and sell a closed source
windows exe web2py
The ul.../ul 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
thanks uploading
On Aug 3, 4:46 pm, Jonathan Lundell jlund...@pobox.com 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
Yes you can:
[[my reference #id1]]
[[id1]] referenced material
On Aug 3, 11:56 pm, Bruno Rocha rochacbr...@gmail.com 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
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 rochacbr...@gmail.com wrote:
Thanks Massimo,
template function is very well, but raises an error ticket when passing
'None' in
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 ul , /ul
- most
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
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 stef.mien...@gmail.com
Date: Wed, 04 Aug 2010 10:39:48 +0200
Local: Wed, Aug
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 mdipie...@cs.depaul.edu wrote:
This is a good point.
to
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 (tags:
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
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
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.id0
tags_d = db(db.tag.id0).select(cache=(cache.ram,600)).as_dict()
message_d = db(query).select().as_dict()
links =
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 cog...@gmail.com 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
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=coursescourseid=438deptmne=CSC
(4 credit hours)
They are both available online.
The
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
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
The number of participants was two.
Mr.NetAdmin
On Wed, Aug 4, 2010 at 2:49 AM, mdipierro mdipie...@cs.depaul.edu wrote:
Can you post some stats?
Number of participants for example.
Massimo
On Aug 3, 2:01 pm, NetAdmin mr.netad...@gmail.com wrote:
Hello All,
The winners of the
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 mdipie...@cs.depaul.edu wrote:
How
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:
br/br/
{{=searchForm}}
br/br/
{{=DIV(_id='searchResults')}
In controller:
if
Sorry, I am so stupid... I forgotten about anchors
Thanks again
2010/8/4 mdipierro mdipie...@cs.depaul.edu
Yes you can:
[[my reference #id1]]
[[id1]] referenced material
On Aug 3, 11:56 pm, Bruno Rocha rochacbr...@gmail.com wrote:
Useful suggestion:
markmin currently does not allow
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
Next time we need a money prize. ;-)
On Aug 4, 6:22 am, Mr admin mr.netad...@gmail.com wrote:
The number of participants was two.
Mr.NetAdmin
On Wed, Aug 4, 2010 at 2:49 AM, mdipierro mdipie...@cs.depaul.edu wrote:
Can you post some stats?
Number of participants for example.
Massimo
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 losts
The first place prize was $100 dollars, 2nd place was $50
On Wed, Aug 4, 2010 at 8:13 AM, mdipierro mdipie...@cs.depaul.edu wrote:
Next time we need a money prize. ;-)
On Aug 4, 6:22 am, Mr admin mr.netad...@gmail.com wrote:
The number of participants was two.
Mr.NetAdmin
On Wed,
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 mdipie...@cs.depaul.edu wrote:
def callback():
mapping=[
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
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
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,
I updated info at the following url:
http://wiki.developers.facebook.com/index.php/User:Python#web2py
Seems like participants play only if they win!!! ;-)
2010/8/4 Mr admin mr.netad...@gmail.com:
The first place prize was $100 dollars, 2nd place was $50
On Wed, Aug 4, 2010 at 8:13 AM, mdipierro mdipie...@cs.depaul.edu wrote:
Next time we need a money prize. ;-)
On Aug 4, 6:22 am, Mr
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 dulip.withan...@gmail.com wrote:
yes. it shows incorrectly in the browser.
On Aug 2, 7:13 pm,
Great application InstantPress!
What is the website of this competition?
I did not know about it
On 4 ago, 15:55, NetAdmin mr.netad...@gmail.com wrote:
Hello Web2py Users!
After careful consideration of the entire list of entries...
( actually the only entry )
the winning entry was submitted
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 goldenboy...@gmail.com wrote:
Great application InstantPress!
What is the website of this competition?
I did not know about it
On 4 ago, 15:55,
That is a good looking app!
On Aug 3, 12:01 pm, NetAdmin mr.netad...@gmail.com 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
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 mr.netad...@gmail.com wrote:
I did all of the promotion through messages on this group.
( Search for the word
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.
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
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 @@
Original Message
Subject:[ANN] Websourcebrowser 0.4a released
Date: Wed, 04 Aug 2010 22:41:42 +0200
From: Stefan Schwarzer sschwar...@sschwarzer.net
Reply-To: python-l...@python.org
Organization: 11 Internet AG
To:
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
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 vidul.r...@gmail.com wrote:
Hi Massimo,
I sent you an email with a Mercurial diff about retrieve_(username/
password) settings and captcha:
diff -r 3e0d95c0a0d5
this is on our todo list
On Aug 4, 4:19 pm, Lasiaf fai...@altlimit.com 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
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='html.../html', )
- DAL([uri1, uri2, uri3]) for load
It is going down to zero ??
was 1.84.1, than 1.85. and now it is 1.82???
2010/8/4 mdipierro mdipie...@cs.depaul.edu
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
-
I got confused because of this thread..
http://groups.google.com/group/web2py/browse_thread/thread/a1e2b8443ada7198/5e20279c2ba66d88?lnk=gstq=
*1.84*#5e20279c2ba66d88
Sorry...
2010/8/4 Bruno Rocha rochacbr...@gmail.com
It is going down to zero ??
was 1.84.1, than 1.85. and now it is 1.82???
You had me panic for a second. LOL
On Aug 4, 7:11 pm, Bruno Rocha rochacbr...@gmail.com 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 rochacbr...@gmail.com
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
Found it: http://web2py.com/examples/default/version
Tks
2010/8/4 Bruno Rocha rochacbr...@gmail.com
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
Thank you, Massimo!
On Aug 5, 12:39 am, mdipierro mdipie...@cs.depaul.edu 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 vidul.r...@gmail.com wrote:
Hi Massimo,
I sent you an email with a
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
55 matches
Mail list logo