Can someone else help here?
Thanks,
Hans
On 24 Mrz., 15:02, johann.scheibelho...@easytouch-edv.com wrote:
> Yarko,
>
> thank you for your support on this.
> I was obviously not good in describing the problem well. Sorry for
> that. Let me try to rephrase it from an different point of view.
>
> L
Hi Massimo,
As one of my app becomes more complex, its controllers and views
contains more and more code. So I assume it takes more time for web2py
to parse them on the fly. Then I notice that if I compile my app, all
controllers are in their pyc format, even all html views are
translated into co
Em Quarta-feira 25 Março 2009, às 07:38:45, Iceberg escreveu:
> Hi Massimo,
>
> As one of my app becomes more complex, its controllers and views
> contains more and more code. So I assume it takes more time for web2py
> to parse them on the fly. Then I notice that if I compile my app, all
> contro
Hi Anand,
On Mar 25, 6:37 am, Anand Vaidya wrote:
> Also, the SSL cert problem does not look good.
> I saw godaddy is offering a 3-year 256-bit strength SSL Cert for
> I am willing to pay for it if the project would agree to use it.
As far as I know, Massimo is underway with buying a new SSL
Hi Massimo,
On Mar 24, 5:03 pm, mdipierro wrote:
> I have the copyright on the book but I also have an understanding that
> I would not give it away for free or it will go out of print. Creators
> of other framework make their living by consulting. I make my living
> in the academic. A publishe
Adding web2py to Freshmeat was a great initiative, Anand! Kutos! :-)
--Jonathan
--~--~-~--~~~---~--~~
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
On Mar 25, 8:17 pm, Jonathan B wrote:
> Adding web2py to Freshmeat was a great initiative, Anand! Kutos! :-)
Thanks Jonathan.
>
> --Jonathan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
mdipierro To: web2py
09 March 2009
[web2py:17722] Sqlite disaster
For a production site I suggest using postgresql.
I have seen very bad failures of sqlite when for example you run out
of disk space. Complete database corruption.
-
Hi Ed...
I'm no expert but here's what I'm doing for the URL,
url: '../controller/function1'
Here's a more complete example...I know there a several places where
more web2py-esqe helpers or style would help but this is how I first
mocked up jqGrid.
myview.html
==
{{extend 'layout.html
Can you please email it to me as an attachment? Thanks.
On Mar 24, 11:16 pm, "mr.freeze" wrote:
> This just adds a convenience link to view the page when editing a
> view. It avoids some mousing around and clicking:
>
> Index: applications/admin/controllers/default.py
>
No time but I could use something like this as part of the conference
management app.
On Mar 24, 11:36 pm, Steve Shephed wrote:
> Anyone interested in a small project to create an autoresponder like
> aweber.com with a few mods and including an AJAX look and feel.
> Let me know your development
My suggestion is use the validators for the drop box only, define
def my_check(form):
if db( (db.shapecolormonth.shapename==form.vars.shapename) &
(db.shapecolormonth.shapecolor==form.vars.shapecolor) &
(db.shapecolormonth.month==form.vars.month) ).count():
fo
Ok, could you try replacing your web2py/gluon/contrib/cron.py with
http://bazaar.launchpad.net/%7Eachipa/web2py/cron/download/head%3A/cron.py-20090112034952-715v6lgr679gwzuf-7/cron.py
and report back if this makes any difference ?
On Mar 25, 5:03 am, Iceberg wrote:
> Sure.
>
> My crontab:
>
>
I will look into this
On Mar 25, 6:11 am, Douglas Soares de Andrade
wrote:
> Em Quarta-feira 25 Março 2009, às 07:38:45, Iceberg escreveu:
>
>
>
> > Hi Massimo,
>
> > As one of my app becomes more complex, its controllers and views
> > contains more and more code. So I assume it takes more time
Yes, this is a good idea. any objections?
On Mar 25, 7:08 am, Jonathan B wrote:
> Hi Massimo,
>
> On Mar 24, 5:03 pm, mdipierro wrote:
>
> > I have the copyright on the book but I also have an understanding that
> > I would not give it away for free or it will go out of print. Creators
> > of o
I understand. Thanks Anand.
On Mar 25, 7:39 am, Anand Vaidya wrote:
> On Mar 25, 8:17 pm, Jonathan B wrote:
>
> > Adding web2py to Freshmeat was a great initiative, Anand! Kutos! :-)
>
> Thanks Jonathan.
>
>
>
> > --Jonathan
--~--~-~--~~~---~--~~
You received th
A thought after this and watching your latest video and quite a bit of
scrolling. You might want to put in some anchors into sessions, so you
don't scroll as much after editing. When going somewhere from appadmin
(edit a view, controller, test, whatever) it is likely you will want
to do something
sqlite is not a client server database this means:
1) the entire database is locked when a connection is open, has no
concurrency whatsoever
2) it will become slow with large number of records
3) it gets corrupted if you run out of disk space
4) does not provide a way to backup the database when
Hi Folks,
I'm new to web2py. I've worked through the recipe example in the
cookbook and it worked like a champ! I really like being able to
create all the parts of a web application via the browser. It means
never having to open a console on the web server. Very nice.
Next, I tried following the
Hey Jude, don't be afraid... :-)
I have been there and done that. In recent days I happened to work on
how to build an app into a stand-alone setup.exe for Windows platform,
by a single click. The work is mainly based on the free Inno Setup. I
am posting the almost-finished work to Massimo for s
Can you access
http://localhost:8000/TestBlog/static/image2.jpg
is it either a typo or the image is not there.
Massimo
On Mar 25, 6:24 am, Doug Cuthbertson
wrote:
> Hi Folks,
> I'm new to web2py. I've worked through the recipe example in the
> cookbook and it worked like a champ! I really lik
It looks like I've run into a bug. I found out that the "upload file"
is corrupted. I manually copied the image (under a different name) to
my TestBlog/static/ directory, updated hello.html to use the new image
and everything worked. I then opened the uploaded image in GIMP. It
failed to load and
It is true that it is not a client-server database. But it is far more
powerful than the name hints. Also, it seems that some of Massimo's
information is incomplete. I'll try to flesh it out a little more.
1) True. However, it is magnitudes times faster than MySQL and
PostgreSQL which allo
Massimo,
Thanks for the reply. When I access
http://localhost:8000/TestBlog/static/image2.jpg
I get an image of the text "http://localhost:8000/TestBlog/static/
image2.jpg". When I try other images I either get a corrupted version
of the original image, or I get an image of the URL text. When I o
Looks like this is the core compiler:
http://pypi.python.org/pypi/chameleon.core/1.0b24
The other files are personalities on top of the Chameleon core
itself. Interesting.
-- Joe B.
On Mar 25, 6:58 am, mdipierro wrote:
> I will look into this
--~--~-~--~~~---~--~
+1
On Mar 25, 5:08 am, Jonathan B wrote:
> Hence, it may be a good idea to consider releasing the Wiki
> under the Creative Commons Attribution license, that way the Wiki
> contents can be reused commercially and can be sold in a non-share-
> alike way. Of course, the current authors would have
I am wondering whether it is possible to incorporate excel and
statistical tools in web2py, T2 and T3. If so, can we get the drivers
with instructions.
Best Regards:
Dbb
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Group
I'm pretty sure we're going to need more to go on. What statistics do
you want? What tools do you have in mind to use? The answers to your
questions are likely yes and "no one has coded it yet". More info please.
=)
-tim
dbb wrote:
> I am wondering whether it is possible to incorporate exc
I am wondering whether it is possible to incorporate excel and
statistical tools in web2py, T2 and T3. If so, can we get the drivers
with instructions.
Best Regards:
Dbb
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Group
Another interesting blog post about Chameleon:
http://philikon.wordpress.com/2008/10/22/chameleon-byte-compiler-for-zpt-and-genshi/
On Mar 25, 6:58 am, mdipierro wrote:
> I will look into this
--~--~-~--~~~---~--~~
You received this message because you are subsc
Is there a way to show variables and there structure in a collapsible
view when working in the views area?
What I imagine is the ability to see the structure of the variables that
I pass to that view.
For example, I have a db.table that I pass to the page as... "stuff".
Now stuff has all the colum
I just took a look at this thread.
> Chameleon is a generic byte-code compiler for attribute template
languages
This is not web2py templates. It supports Genshi and ZPT because they
are "attribute template languages". By contrast, a web2py template is a
"text template language". The diffe
Let us start first with excel like spreadsheet, or if possible with
the existing web2py tools to have
some of the mathemtical functions excel can offer. If web2py has some
of the mathematical functions similar to excel, then these functions
need exposure so that one can find them easily.Instead o
To iceberg:
when do think you are going to finish the instructions how to create
a standalone web2py application.
Best regards:
Dbb
On Mar 24, 2:50 Ipm, mdipierro wrote:
> I am not sure I understand what you want to do.
>
> If you name your app init, it will be the default app in web2py.
> If
Hi there.
I have a MySQL database in my web2py environment.
I wish for an external application to connect to it also to read
data.. What parameters should I use? I assume localhost is one but I
can't find any username/password information associated with my db
--~--~-~--~~---
I am wondering how to implement a more free-form search. For example, a
search for "will" would get a direct hit on someone named "Robin
Williams", but say I have a reference out to favorite movie in another
table, I also want to find someone else who points to "Good Will
Hunting" in that over ta
Web2Pyers,
What the appropriate way to use cache.ram? Let's say I want to cache an
object (in my case its a cStringIO). In my controller function -->
def makeMe():
x = cStringIO.StringIO()
cache.ram("myObj", lambda: x, 5)
def getMe():
x = cache.ram.storage['myObj'][1]
response.headers[
Thank you Tim for clarifying this.
I have had some issues with 3 myself when the disk ran out of space.
Massimo
On Mar 25, 9:47 am, Timothy Farrell wrote:
> It is true that it is not a client-server database. But it is far more
> powerful than the name hints. Also, it seems that some of Mass
>From your email I assume you are uploading the images via the admin/
design page.
Which version of web2py are you running? Which OS? binary or source?
Which web server?
Massimo
On Mar 25, 10:20 am, Doug Cuthbertson
wrote:
> Massimo,
> Thanks for the reply. When I
> accesshttp://localhost:800
Place this in the view
{{=BEAUTIFY(response._vars)}}
On Mar 25, 1:03 pm, Jason Brower wrote:
> Is there a way to show variables and there structure in a collapsible
> view when working in the views area?
> What I imagine is the ability to see the structure of the variables that
> I pass to that
Hi,
I was following along in the book with the images application and on
page 58 I tried to filter the results using the query:
db.image.title LIKE 'me%'
it returns invalid query and no results. How can I use LIKE to search
the database table of images?
Chris
--~--~-~--~~-
yes. This should clarify it.
if db.mytable.myfield.type[:10]='reference ':
print db.mytable.myfield,'referenced',db.mytable.myfield.type[10:]
for item in db.mytable.referenced_by:
print db.mytable.id, 'referenced by field', item[1], 'in table',
item[0]
Massimo
On Mar 25, 1:30 pm, Kent B
Hi,
I was following along in the book (page 58) trying to filter a table
using the query: db.image.title LIKE 'me%'
That returns an error: Invalid Query. How can I use LIKE or a wildcard
when searching a table?
Thanks,
Chris
--~--~-~--~~~---~--~~
You received t
I agree with Tim. If you run the bytecode compiled version in
production there is no parsing overhead.
On Mar 25, 1:37 pm, Timothy Farrell wrote:
> I just took a look at this thread.
>
> > Chameleon is a generic byte-code compiler for attribute template
> languages
>
> This is not web2py templ
Massimo,
thanks to your code example I managed to get this somehow into the
model side of things. Reason is because for later maintenance I think
that multi column unique keys should be set/managed on database/model
layer.
1) I had to 'exclude' the checking of the current record - hence only
che
You should never access the cache internals like
x = cache.ram.storage['myObj'][1] # DON'T
because it is not thread safe. You should have something like:
def makeMe():
return cStringIO.StringIO()
def getMe():
x = cache.ram("myObj", lambda:makeMe(), 5)
response.headers['Content-Ty
rows=db(db.image.title.like('me%')).select()
On Mar 25, 1:20 pm, Chris wrote:
> Hi,
>
> I was following along in the book (page 58) trying to filter a table
> using the query: db.image.title LIKE 'me%'
>
> That returns an error: Invalid Query. How can I use LIKE or a wildcard
> when searching a
oops. I was wrong. not
> SQLFORM(,onvalidation=my_check)
but
form.accepts(request.vars,session,onvalidation=my_check)
Massimo
On Mar 25, 8:56 am, mdipierro wrote:
> My suggestion is use the validators for the drop box only, define
>
> def my_check(form):
> if db( (db.shap
You should use SQLDB to create a database connection.
In your model (models/db.py most probably):
SQLDB('mysql://username:passw...@localhost:3306/the_name_of_the_db')
On Mar 25, 8:53 pm, dave_mcgee wrote:
> Hi there.
>
> I have a MySQL database in my web2py environment.
>
> I wish for an exter
Thanks for the code you posted. Yes, something like this should be
included in web2py. Let me give it some more thought.
Validators are not applied by import_from_csv_file because the CSV
format is not the same as the forms.
Massimo
On Mar 25, 2:44 pm, johann.scheibelho...@easytouch-edv.com wro
Massimo,
Yes, I'm uploading from the admin/default/design/TestBlog page. Here's
what I've tried:
web2py: versions 1.58 and 1.59 binary and I even downloaded the source
from SVN this afternoon and ran from that with no difference.
OS: Windows XP SP3 Home Edition, and W2K3 SP2.
I normally run fro
Great. Thanks.
On Mar 25, 3:54 pm, mdipierro wrote:
> rows=db(db.image.title.like('me%')).select()
>
> On Mar 25, 1:20 pm, Chris wrote:
>
> > Hi,
>
> > I was following along in the book (page 58) trying to filter a table
> > using the query: db.image.title LIKE 'me%'
>
> > That returns an error
Thanks Massimo!
Forgive me my ignorance but I thought that the data definition
(including validators) in the model layer is the default way the
framework defines and validates the data before sending it to the
associated database. Like the model defines data + data validators
while forms and othe
Hello all,
I'm a web developer just getting my feet wet with web2py. I just
wrote my own daemon for web2py for the archlinux distribution which I
am using, so I though I'd share it in hopes that you'd bundle it with
the whole package. It's not tested on any other distro besides
archlinux, but
Hi to all
I'm absolutely new to web2py and I'm in front of a little problem.
I need to make a list of image, every image is a link to another page
of the app.
I've tried this:
{{=A('', _href=URL(r=request, f='but1'}}
where "but1" is my controlles on the default.py page
Where I'm wrong?
Can you
Hi Matt,
first and most important problem is; your starting web2py with root
privileges which is no no :),
second on slackware if my memory serves me well it's support for SYSV type
of script was very bad (long time ago...)
third stat_busy and other functions are not portable between distributions
I have spent a some time looking into this and accordingly found there
is an ongoing
bug with GAE dev_appserver.py (SDK) that prevents python from sending
emails using
smtp. The alternative is to use sendmail or MTA compatible.
Trouble is I am developing on winXP and the only sendmail clones are
v
Try this:
{{=TD(A(IMG(_src=URL(r=request,c='static',f='but1.gif')),_href=URL
(r=request,f='but1')))}}
or
{{=A(IMG(_src=URL(r=request,c='static',f='images/1f2.jpg')),_href=URL
(r=request,f='contact'))}}
--~--~-~--~~~---~--~~
You received this message because you
Try this:
{{=TD(A(IMG(_src=URL(r=request,c='static',f='but1.gif')),_href=URL
(r=request,f='but1')))}}
or
{{=A(IMG(_src=URL(r=request,c='static',f='images/1f2.jpg')),_href=URL
(r=request,f='contact'))}}
You mentioned a list of images. If you plan on iterating over a list
of image urls (associ
Try this:
{{=TD(A(IMG(_src=URL(r=request,c='static',f='but1.gif')),_href=URL
(r=request,f='but1')))}}
or
{{=A(IMG(_src=URL(r=request,c='static',f='images/1f2.jpg')),_href=URL
(r=request,f='contact'))}}
You mentioned a list of images. If you plan on iterating over a list
of image urls (associ
That's funny, I thought of the patch after watching the same video.
Are you talking about tracking the actual caret position of the
textarea in the session then scrolling to that position when the user
re-visits the same page? That could be handy.
On Mar 25, 9:03 am, AchipA wrote:
> A thought af
Hello Matt,
I allowed myself some changes, mostly related to portability (the
script is supposed to be "/usr/bin/web2py.py" or somewhere else in
$PATH):
#!/bin/bash
prog=`basename $0`
cd `pwd`
chmod +x $prog
function web2py_start {
nohup ./$prog -a "" 2>/dev/null &
if [ ! -z "`pgrep $pr
Thanks very much for your general guidelines about performance, Tim
and Massimo!
On Mar26, 3:39am, mdipierro wrote:
> I agree with Tim. If you run the bytecode compiled version in
> production there is no parsing overhead.
>
> On Mar 25, 1:37 pm, Timothy Farrell wrote:
>
> > @Iceberg: I suggest
Hi Mike,
I would like to thank you for the example source code. The first
web2py & jqGrid integration source code. This a great help for those
who are interested in this JQuery plugin.
Regards,
Ed
On Mar 25, 9:46 pm, Mike wrote:
> Hi Ed...
>
> I'm no expert but here's what I'm doing for the URL,
Which browser? Have you tried more than one?
Massimo
On Mar 25, 3:22 pm, Doug Cuthbertson
wrote:
> Massimo,
> Yes, I'm uploading from the admin/default/design/TestBlog page. Here's
> what I've tried:
>
> web2py: versions 1.58 and 1.59 binary and I even downloaded the source
> from SVN this afte
There are various reasons:
Consider the case of a date. The data coming from a form depends on
the user's locale and therefore the validator needs to know the format
IS_DATE(format='%m/%d/%Y) etc. Instead the data stored in a CSV has to
be independent on the locale and must follow a convention (f
just comment
auth.settings.mailer=mailer
when on dev_appserver
On Mar 25, 6:07 pm, murray3 wrote:
> I have spent a some time looking into this and accordingly found there
> is an ongoing
> bug with GAE dev_appserver.py (SDK) that prevents python from sending
> emails using
> smtp. The alternat
can you please email it to me. Thanks.
On Mar 25, 8:38 pm, Vidul Petrov wrote:
> Hello Matt,
>
> I allowed myself some changes, mostly related to portability (the
> script is supposed to be "/usr/bin/web2py.py" or somewhere else in
> $PATH):
>
> #!/bin/bash
>
> prog=`basename $0`
>
> cd `pwd`
>
I have sent my current progress, a little web2py plugin, to Massimo
for a review. It might take a couple days I think.
The plugin can work now. But I am looking forward to simplify it
further, if Massimo agrees to let web2py_win.zip has a native "web2py-
no-console.exe" together with the current
I suppose that works. I knew that before, I just thought it would be
nice to have in the interface. Another way to do it would be to have it
in the auto-complete of amy editor, if that's possible.
Regards,
Jason Brower
On Wed, 2009-03-25 at 12:32 -0700, mdipierro wrote:
> Place this in the view
On Mar26, 2:56am, Mark Larsen wrote:
>
> Also is the cache object unique for each session? Does Web2py have any
> concept of a shared cache for all sessons?
>
I share what I just test, and what I do not know, and hope some expert
can confirm them.
Cache object seems unique for each session. I
Hi Iceberg,
>From what I saw, the cache object is not unique, it's that the samle
has "time_expire=5" and most probably you've loaded the page on the
2nd browser for more than 5 seconds.
In addition a test made on two boxes with something like:
def mycache():
import time
t=cache.ram(
Shame on me~~~ for my stupid typo. Actually I did exactly same test as
Petrov did, on my local machine, before my last post. Yes, cache
object looks NOT unique for each session. Thanks Petrov. *^_^*
Still, I am not sure whether the cache object is unique for each
application. It seems it is uniqu
73 matches
Mail list logo