Problem solved. Thanks.
Kind regards,
Annet.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group
I think Jason is right, Vim is a text editor and pydiction is a
dictionary file. I had a look at Vim a few days ago, and found the
naming rather confusing. To me auto-completion is related to the user,
I would call vim's completion feature code-completing, related to the
developer. I guess they ca
No comments on this ?
/R
On Jun 24, 3:09 pm, Robert Marklund wrote:
> I upgraded to web2py 1.64.3 and then:
>
> crud started to set its own table name
> if request.extension != 'html':
> (_session, _formname) = (None, None)
> else:
> (_session, _formna
replace
{{=body}}
with
{{=TAG[''](*[P(p) for p in body.split('\n')]) }}
or, if you want to allow HTML tags in texts
{{=XML(body.replace('\n',''),sanitize=True)}}
of you want to allow WIKI syntax
{{from gluon.contrib.markdown import WIKI}}
{{=WIK(body)}}
Massimo
On Jun 25, 9
I've got datatables working well.
After installing the app do csv import via appadmin to have some data
to play with.
you find csv example data in the /private folder.
Unfortunately I've not got jEditable working. My js sucks ;-)
Is anyone here able to help getting also jEditable working ?
app +
...
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to
web2py+unsubscr...@googlegr
I am not sure that is what he is looking for.
Are you looking to get autocomplete for commands as your program right?
Perhaps this?
http://www.web2py.com/AlterEgo/default/show/178
-
j
On Thu, 2009-06-25 at 10:11 -0700, Yannick wrote:
> Hello,
>
> I think you can just create an Ajax from the fro
I would like to retain the the spacing information (next line, /n)
when I retrieve text data from the database.
for example, when I put following into a form
test
test
test
this is what I get out of the database in the views.
test test test
I'd like it retrieve
test
test
test
here is my cod
Please note the corrected URLs:
http://www.web2py.com/examples/static/cookbook2.pdf.zip
http://www.web2py.com/examples/static/cookbook2.key.zip
http://www.web2py.com/examples/static/cookbook2.ppt.zip
On Thu, Jun 25, 2009 at 7:03 PM, mdipierro wrote:
>
> I have re-uplodad the slides here in pdf
that was fast :)
thank you for help - now i can code calmly
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe fr
I have re-uplodad the slides here in pdf, keynote and powerpoint
http://www.webp2py.com/examples/static/cookbook2.pdf.zip
http://www.webp2py.com/examples/static/cookbook2.key.zip
http://www.webp2py.com/examples/static/cookbook2.ppt.zip
feel free to use them as you see fit. If you are giving a pr
db=SQLDB(,pool_size=10)
will do connection pooling and connections will be reused
db.define_table(,migrate=False)
it will not attempt to create the table if you know it there and you
have not changed it.
It will be much faster.
Massimo
On Jun 25, 6:46 pm, kuba wrote:
> Hi guy
Hi guys,
I am total newbie to web2py, and one thing really irritates me.
As i noticed every time I refresh application in web browser db.py and
any other file in models dir are executed. In tutorial it states that
whole db initialization should be specified there and as I understand
during this p
Just to report back, both proposals got accepted in some form, so it's
first row for web2py people :)
@fpp: if you need anything with regard to web2py and/or Maemo, let me
know so we could get organized in time
On Jun 23, 7:59 pm, fpp wrote:
> On 23 juin, 02:01, mdipierro wrote:
>
> > Well don
ok, then i have to wait... thanks
On 25 Jun., 15:06, mdipierro wrote:
> xml import? do not know. not a priority.
>
> On Jun 25, 1:44 am, pk wrote:
>
> > puh it`s to tricky...
> > i think i have to wait still there is a function to read the same xml
> > (for updating my tables)
> > which i gener
This looks really useful. Thanks for writing it. I'm trying to import
some existing python modules that have logging calls into a web2py
app. Just putting log.py into my models directory helps some, but I'm
not seeing any messages from my existing modules with level lower than
logging.ERROR. I am
Thx it worked like a charm.
/R
On Jun 25, 6:32 pm, johann.scheibelho...@easytouch-edv.com wrote:
> out of my head the following should work
>
> result = db(db.images.id>0).select(\
> left=[db.image_info.on(db.image_info.image_id==db.images.id),\
> db.image_keyword.on(db.image_keyword
In the controller:
focus=SCRIPT("$(document).ready(function() { $('#clubbyplace').focus
() } )")
...
return dict(..., focus=focus)
and in the view somewhere:
{{=focus}}
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Gro
http://kolodvor.net/2008/01/17/set-focus-on-first-field-with-jquery/
On Jun 25, 10:55 am, annet wrote:
> In a function I have the following line of code:
>
> form=form_factory(SQLField('plaats',requires=IS_NOT_EMPTY
> (),widget=lambda self, value:INPUT
> (_type='text',_id='clubbyplace',_class='a
Hello mate,
I just wonder what will be the best design approach in order to
implement a "News Feed" like in Twitter or Facebook using web2py...
Initially the general approach will be to read in the DB the "News" of
all the friends of a user and display them on his profile every few
second, but I
Hello,
I think you can just create an Ajax from the front end and call an
Auto complete action the return value from DB (if needed) :
Like your action can be something like this:
def autoComplete():
q=''
if request.vars:
q=request.vars.q
if not q:
return q
rows= #
out of my head the following should work
result = db(db.images.id>0).select(\
left=[db.image_info.on(db.image_info.image_id==db.images.id),\
db.image_keyword.on(db.image_keyword.image_id==db.images.id),\
db.keyword.on(db.keyword.id==db.image_keyword.keyword_id)])
Hans
web2py@googlegr
Annet,
Take a look at Fran's suggestion on another problem --
http://groups.google.com/group/web2py/t/360c47ff872043d9?hl=en
You might be able to rework it for your solution. Use the beginning
date as your first query. Then iterate looking for matches in the
second query for those events in rang
that didnt do it.
And i would like to doit with one query if possible.
my db looks like this:
db.define_table('images',
SQLField('posted_on','datetime', default=request.now,
writable=False, readable=False),
SQLField('posted_by', db.auth_user, writable=False,
readable=False),
S
In a function I have the following line of code:
form=form_factory(SQLField('plaats',requires=IS_NOT_EMPTY
(),widget=lambda self, value:INPUT
(_type='text',_id='clubbyplace',_class='ac_input',_name='plaats',requires=self.requires)))
When the view is displayed I would like the input field to have
Massimo,
I work on Mac OS X Leopard Server for both development and production,
so problem solved. Thanks.
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post
Try the trunk and the following customizations:
auth.messages.invalid_email = 'Invalid email'
auth.messages.invalid_login = 'Invalid login'
auth.messages.invalid_user = 'Invalid user'
auth.messages.is_empty = "Cannot be empty"
auth.messages.mismatched_passw
>>> python "range" but in reverse
>Just find replace into this:
>tel = {"SPQ": "3[1,0-3]", "SPQ": "70(1-3)" }
this is exactly what I was thinking of and asking about, thx once
again. And, yes, this is me to blame ;)
--
Kuba
On Thu, Jun 25, 2009 at 8:23 AM, Trollkarlen wrote:
>
> Cleaner one
yes. execpt that or (|) does not work on GAE.
On Jun 25, 10:14 am, annet wrote:
> In a function I have:
>
> events=db((db.event.from_datum>=fromdate)&
> (db.event.from_datum<=todate).select()
>
> The problem is that some events last more than one day, they have both
> a from_date and to_date. In
In a function I have:
events=db((db.event.from_datum>=fromdate)&
(db.event.from_datum<=todate).select()
The problem is that some events last more than one day, they have both
a from_date and to_date. In the view the user selects a date an the
number of weeks he wants to see the events for. For
you need to run from source and install MySQLdb
On Jun 25, 8:28 am, Stefan wrote:
> I want to add y mysql database.
> When I start the framework it says
>
> WARNING:root:importing mysqlite3.dbapi2 as sqlite3
> What does it mean?
>
> Which library do i need to use mysql ?
> When I start it only
I want to add y mysql database.
When I start the framework it says
WARNING:root:importing mysqlite3.dbapi2 as sqlite3
What does it mean?
Which library do i need to use mysql ?
When I start it only shows that it loads
Database drivers available: SQLite2, Postgre
Thanks!
(Pythen newby)
--~--
Hi,
I'm new with python and web2py.
I'm just wondering if it is possible for me to get "auto-complete" to
be used for web2py.
Usually what I do for other python modules is by using pydiction and
use vim to get the
auto-complete feature.
However since the modules inside web2py are not registered
I want to add y mysql database.
When I start the framework it says
WARNING:root:importing mysqlite3.dbapi2 as sqlite3
What does it mean?
Which library do i need to use mysql ?
When I start it only shows that it loads
Database drivers available: SQLite2, Postgre
Thanks!
(Pythen newby)
--~--
Nice. A couple of notes though:
On Jun 25, 2:23 am, Trollkarlen wrote:
> Cleaner one:
>
> Just find replace into this:
> tel = {"SPQ": "3[1,0-3]", "SPQ": "70(1-3)" }
it only works with square brackets so
the second entry, "70(1-3)", will not work.
>
> def get_operator(number):
> import re
> fo
Now we know who to blame with our telephones start ringing in the
middle of the night!
--~--~-~--~~~---~--~~
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@googlegr
Maybe I'm wrong but I think Robert needs a left join. something like...
result = db(db.images.id==db.image_info.image_id).select(\
left=[db.keyword.on(db.keyword.id==db.image_keyword.keyword_id)])
web2py@googlegroups.com schrieb am 25.06.2009 15:19:50:
>
> On Jun 25, 1:51 pm, Robert Mar
ad3) this because how web2py maps its ID field. if we also map ID to a
second field (like id2), we can overcome some id limitations.
ad4) GAE has some sort of joins (via references), but otherwise indeed
no joins. A GAE database scheme should work with this restriction in
mind so joins are not ne
On Jun 25, 1:51 pm, Robert Marklund wrote:
> I would like to do a join but get results even if it was unsucessfull.
> Like this
> query = (db.images.id == db.image_info.image_id) &
> (db.images.id==db.image_keyword.image_id)
> & \
> (db.keyword.id==db.image_keyword.keyword_id)
> I
good point. these two strings come from the validators and do not have
customization. Will fix that.
On Jun 25, 7:35 am, "Sebastian E. Ovide"
wrote:
> Hi,
>
> Using Auth.change_password I noticed that if the 2 password do not match
> web2py is giving the message "invalid expression!" and if the
I do not know PHP but I think
$_SERVER["REQUEST_URI"]
is the same of
request.env.request_uri
URL(r=request,args=request,.args)
there is no equivalent of script name.
On Jun 25, 5:29 am, Fran wrote:
> On Jun 25, 7:52 am, "Md.Mahbubur Rasheed"
> wrote:
>
> > What is the equivalent of php $_SE
xml import? do not know. not a priority.
On Jun 25, 1:44 am, pk wrote:
> puh it`s to tricky...
> i think i have to wait still there is a function to read the same xml
> (for updating my tables)
> which i generate automaticaly in my code.
> massimo, when do you think will you release this functio
fantastic!
On Jun 25, 1:23 am, Trollkarlen wrote:
> Cleaner one:
>
> Just find replace into this:
> tel = {"SPQ": "3[1,0-3]", "SPQ": "70(1-3)" }
>
> def get_operator(number):
> import re
> for key, value in tel:
> if re.match(value, number):
> return key
>
> pre-compile the re before with
Thanks Alexey
On Jun 25, 1:23 am, Alexei Vinidiktov
wrote:
> I'm glad to report that 'password2' is now accepted by web2py auth in
> revision 1072.
>
> Tested on my local Ubuntu box.
>
>
>
> On Thu, Jun 25, 2009 at 12:42 PM, mdipierro wrote:
>
> > I may have just fixed it. Could you please check
Can this be the same problem as I described in the "web2py 1.64.3"
mail.
/R
On Jun 25, 6:02 am, mdipierro wrote:
> Please email me this (again?) so that I can reproduce the problem.
>
> Massimo
>
> On Jun 24, 10:51 pm, Yannick wrote:
>
> > Hello Massimo,
> > Sorry to bother but was wondering i
I would like to do a join but get results even if it was unsucessfull.
Like this
query = (db.images.id == db.image_info.image_id) &
(db.images.id==db.image_keyword.image_id)
& \
(db.keyword.id==db.image_keyword.keyword_id)
I want to get the resulting rows even doe no keywords exis
Hi,
Using Auth.change_password I noticed that if the 2 password do not match
web2py is giving the message "invalid expression!" and if the password is
not valid the message is "value not in database!". Is it possible to change
those strings with some more user friendly ones ?
thanks
Sebastian E.
Trying to attach the file in this posting.
Hans
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this grou
Richard,
the following solution works for me in production without any
problems. I use it for periodic, unattended functions (cron). I've
send Massimo the code in case he wants to include it into web2py or
make it available as optional add-on download.
Hans
'''
To use the per application log
Massimo, thanks for the great new slides. However, could you please
change the slides to black text on a white background? That way, we
can print the presentation without burning through an ink/toner
cartridge?
--~--~-~--~~~---~--~~
You received this message because
On Jun 25, 7:52 am, "Md.Mahbubur Rasheed"
wrote:
> What is the equivalent of php $_SERVER ???
I think
$_SERVER["REQUEST_URI"]
is replaced by
URL(r=request)
$_SERVER["SCRIPT_NAME"]
is replaced by
URL(r=request, c='script_name', f='function_within_script')
F
--~--~-~--~~-
51 matches
Mail list logo