Simply to use sql REPLACE statement.
leone
On 20 Gen, 16:02, mdipierro wrote:
> Sorry I do not understand the question.
> What do you want to do?
>
> On Jan 20, 3:49 am, leone wrote:
>
>
>
> > Exist db.replace(...) and db.exists(query) functions in datadase
> > layer?
> > Thanks
> > leone
--
Yo
:-)
On Jan 21, 1:08 am, kari wrote:
> Thanks - I did not realise the binary vs source thing. When changing
> from Windows binary to the source everything works as expected. Great!
>
> Many thanks for you help.
>
> On Jan 21, 8:47 am, mdipierro wrote:
>
> > I think I understand the problem now.
>
Thanks - I did not realise the binary vs source thing. When changing
from Windows binary to the source everything works as expected. Great!
Many thanks for you help.
On Jan 21, 8:47 am, mdipierro wrote:
> I think I understand the problem now.
>
> If you try to "import numpy" you need to:
> 1) ma
+1
On Jan 19, 5:08 am, mdipierro wrote:
> +1
>
> On Jan 18, 11:00 pm, Anand Vaidya wrote:
>
> > +1
>
> > Excellent feature to possess.
>
> > -Anand
>
> > On Jan 19, 12:16 pm, Jason Brower wrote:
>
> > > I think it would be nifty to have an interface (app store?) to install
> > > and remove pl
I think I understand the problem now.
If you try to "import numpy" you need to:
1) make sure numpy is installed
2) make sure you run web2py from source (not the binary) since the
binary comes with its own Python and it does not see modules installed
with the "other" Python.
3) make sure you start
Thanks for the reply - I think a typo in my original message might
have
given a wrong impression of the problem I am facing.
Instead of '... replaced by a model I have used in the import
statement'
it should have said '... replaced by a MODULE I have used...', for
example:
import numpy
But then
I use a combination of vim and ipython. I find that the fastest
combination.
I have tested a few IDEs :
- Eclipse - with pydev : I dislike eclipse for its monstrous
complexity, and I had problems getting pydev to run on the day I
tested. Abandoned.
- Aptana : Eclipse based, did not work at all..
Why not add this kind of thing to the permalink help and resources at
the top of discussions?
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send emai
http://www.youtube.com/watch?v=jGuW43sdv6E
On 21 ene, 00:38, Mandriluy wrote:
> I bought a screencast software last month, i use it today and made a
> screencast of this but a simple version with some changes. Im
> uploading right now to youtube, i hope you like it and i apologize for
> my englis
yes, but on my own, and with lot of pain :)
since hostgator doesn't support the python 2.5, i stayed with 2.4 and
installed hashlib, mod_wsgi-3.1, mysql-python-1.2.3c1 and pysqlite-2.5.6.
after that i created a subdomain: web2py.your_domain.com. then i included
web2py.conf (code per Massimo's docu
I bought a screencast software last month, i use it today and made a
screencast of this but a simple version with some changes. Im
uploading right now to youtube, i hope you like it and i apologize for
my english.. im not pro :P
Btw , i also publish the screencast code version in
web2pyslices.com
On 21 ene, 01:48, mdipierro wrote:
> No idea.
I chose to create three different controllers and simplify the code.
Thanks.
Jose
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To
LOL. Thanks for letting us know.
On Jan 20, 7:38 pm, jlegler wrote:
> Argh!!!, Windows!!! It works fine on Redhat. There must be firewall
> hijinks. Thanks for all of your help Massimo. Web2py is making
> something that should have taken months seem frustrating because I
> can't do it in a da
pseudocode here:
{{
if data is in cache:
retrieve data and print it here
else:
print JS code to retrieve data later
}}
For this purpose I would implement cache as a db based queue of tasks
to be completed.
On Jan 20, 5:50 pm, frollings wrote:
> Ah yes, but how to make the second page load
No idea.
On Jan 20, 5:32 pm, Jose wrote:
> On 20 ene, 23:14, mdipierro wrote:
>
> > I see two issues:
>
> > 1) proximo should domicilio not domicilio2
>
> In the mail is wrong, because I had been trying something. But really
> is this: proximo = 'domicilio'
>
>
>
> > 2) does you custom view disp
http://jquerylist.com/?show=all
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to
web2py+unsubscr...@googlegroups.com.
For more options, vi
Argh!!!, Windows!!! It works fine on Redhat. There must be firewall
hijinks. Thanks for all of your help Massimo. Web2py is making
something that should have taken months seem frustrating because I
can't do it in a day. Fantastic code.
-jason
On Jan 20, 5:07 pm, jlegler wrote:
> Here is a q
Here is a question. When a file larger than 1MB is sent from the
static directory, is is streamed? If so can I look at the headers and
payload to determine what is different?
On Jan 20, 3:50 pm, jlegler wrote:
> I don't think it is a player issue. If I point my browser to the
> stream I should
Ah yes, but how to make the second page load not use Ajax at all, but
only a flat HTML page?
On Jan 21, 12:08 am, mdipierro wrote:
> Yes but the point is the same. You can have a controller generate the
> block. You load it via ajax. You still cache the block serverside.
>
> On Jan 20, 4:55 pm, f
I don't think it is a player issue. If I point my browser to the
stream I should get the stream. I am only getting that beginning
piece I posted earlier. I added the Content-Disposition response
header and now it associates the stream with an app. I can't get any
application to stream it though
Thank you Denzel for replying
for the IS_EXPR(), In fact I did my own validator that does what I
need
It's nice though to know about "onvalidation" which makes life easier
For the other translation problem, I guess after all that error
messages where ever they're should be made easy to
translate
On 20 ene, 23:14, mdipierro wrote:
> I see two issues:
>
> 1) proximo should domicilio not domicilio2
In the mail is wrong, because I had been trying something. But really
is this: proximo = 'domicilio'
>
> 2) does you custom view displays all fields in form?
I do not understand the question,
thanks again, this was easier that I thought :)
On Jan 21, 12:16 am, mdipierro wrote:
> web2py assumes everything is utf8. You have to encode in utf8 before
> passing the list of options to the set.
>
> Calling unicode instead of str would break the case when options are
> helpers.
>
> On Jan 20,
I do not know. It is a player issue. web2py seems to do the streaming
fine. I would ask the player mailing list.
On Jan 20, 4:59 pm, jlegler wrote:
> Yea, that is exactly how I accessed it and I get a stream of binary
> (which I expect) although it doesn't associate it with any application
> and
web2py assumes everything is utf8. You have to encode in utf8 before
passing the list of options to the set.
Calling unicode instead of str would break the case when options are
helpers.
On Jan 20, 5:06 pm, selecta wrote:
> in my application I use some unicode characters
> when i tried to add å
I see two issues:
1) proximo should domicilio not domicilio2
2) does you custom view displays all fields in form?
Massimo
On Jan 20, 4:58 pm, Jose wrote:
> On 20 ene, 22:21, mdipierro wrote:> Sorry I do not
> understand the workflow here. You seem to say
> > domicilio1 and domicilio2 are tw
thanks alot works like a charm
On Jan 20, 10:48 pm, mdipierro wrote:
> Try:
>
> for tr in form[0]: del tr[0]
>
> reads:
>
> for tr in form table, delete the first td in the tr.
>
> On Jan 20, 2:56 pm, selecta wrote:
>
>
>
> > lablels=None for form_factory does not seem to work, is there another
Yes but the point is the same. You can have a controller generate the
block. You load it via ajax. You still cache the block serverside.
On Jan 20, 4:55 pm, frollings wrote:
> But it's not about the images only; it's about the entire block you
> see there;
>
> Blocks are the blocks you see like;
in my application I use some unicode characters
when i tried to add å to IS_IN_SET i got the following
Traceback (most recent call last):
File "/home/select/Dev/web2py/gluon/restricted.py", line 173, in
restricted
exec ccode in environment
File "/home/select/Dev/web2py/applications/movie/c
Yea, that is exactly how I accessed it and I get a stream of binary
(which I expect) although it doesn't associate it with any application
and it only sends a little bit of it (possibly the first 4096
chunk?). Any ideas? Below is the binary for what it is worth.
ftypmp42mp42isomavc1free�
On 20 ene, 22:21, mdipierro wrote:
> Sorry I do not understand the workflow here. You seem to say
> domicilio1 and domicilio2 are two actions but you show us only one
> (domicilio).
>
> Any chance you can isolate the problem in smaller actions?
> This starts to be a lot of code to look over.
>
>
But it's not about the images only; it's about the entire block you
see there;
Blocks are the blocks you see like;
- Basic Website Information
- Traffic Graphs
- SEO Graphs
etc
They contain text or text + graphs. So It's not about the images; it's
about an entire
'block of html' that is being lo
hi Adnan,
did you manage to get web2py running on HostGator?
Richard
On Jan 2, 12:38 pm, Adnan Smajlovic wrote:
> I am trying to workout the installation problem with HostGator, who
> unfortunately only supports Python 2.4 at the moment. I understand that I
> should go with 2.5 and need to tak
Sorry I do not understand the workflow here. You seem to say
domicilio1 and domicilio2 are two actions but you show us only one
(domicilio).
Any chance you can isolate the problem in smaller actions?
This starts to be a lot of code to look over.
Massimo
On Jan 20, 4:07 pm, Jose wrote:
> Returni
On Jan 20, 11:15 pm, Johann Spies wrote:
> The script inhttp://www.web2pyslices.com/main/slices/take_slice/29
> works well when web2py is in the server root.
>
> I want to install web2py on a server that already has a php-site. I
> have tried and modify the apache configuration to one below (I
Returning to thread [1] (I could not answer on it, so I opened a new
thread).
I still have problems with firefox. The transition from domicilio1 to
domicilio2 does not occur properly. Instead of going to domicilio2
with the values already loaded, domicilio1 redisplays with fields
blank. As I menti
On Jan 20, 11:28 pm, Alexandre Andrade
wrote:
> I think is not a good idea.
>
> php requires apache2-prefork (single-thread)
> wsgi works with apache2-mpm (multi-thread)
>
> So, they are incompatible.
Nonsense.
There is no such thing as apache2-mpm so assume you mean worker MPM.
Even so, Apac
It is not, it will not pull in the imports of other files.
You have to specifically declare all modules that are imported that
you want available in the file that you want code completion on.
-Thadeus
On Wed, Jan 20, 2010 at 3:46 PM, mdipierro wrote:
> I have not tried by perhaps putting
>
On Jan 19, 1:34 pm, "hamdy.a.farag" wrote:
> So this's a bug ?
Rigid but not a bug.
> Is not any way to handle this ?
Yes, you can create your own validator.
A slightly modified version of IS_INT_IN_RANGE will do.
> and for my other problem
>
> thanks for the link , but what I rellay need to do
Try:
for tr in form[0]: del tr[0]
reads:
for tr in form table, delete the first td in the tr.
On Jan 20, 2:56 pm, selecta wrote:
> lablels=None for form_factory does not seem to work, is there another
> simple way to hide the labels?
--
You received this message because you are subscribed t
I have not tried by perhaps putting
if 0:
from gluon.tools import *
from gluon.sqlhtml import *
from gluon.sql import *
#...etc etc for every module you want to import
in web2py/w.py
and importing
from w import *
in very file is a more compact solution.
On Jan 20, 2:26 pm, Thad
lablels=None for form_factory does not seem to work, is there another
simple way to hide the labels?
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, sen
To get web2py to work with code completion. This will work with
eclipse + pydev, or wing IDE, or netbeans + python.
add this to the top of your file (unfortunately it has to be on every
file you want code completion).
if 0:
from gluon.tools import *
from gluon.sqlhtml import *
from gluo
On Wed, Jan 20, 2010 at 4:57 PM, Stefan wrote:
> Thanks for the heads up!
>
> On Jan 20, 10:09 am, mdipierro wrote:
> > The way the web normally works is that requests are initiated by the
> > client, not by the server.
> >
> > To have the server trigger and action in the client without some kind
Thank you. I suggest you post it as a slice on web2pyslices.com
On Jan 20, 12:16 pm, Mandriluy wrote:
> Thank you very much massimo for your help :-) .. i did make some minor
> changes to the code to make it work.
>
> I will post here the code translated to english because maybe it could
> help s
I am looking at the page with firebug. The code that reads the images
sees to be
http://traffic.alexa.com/graph?
r=6m&y=r&w=280&h=179&u=web2py.com"/>
So my guess is that http://traffic.alexa.com/graph
does the caching and perahps also
if request.env.http_if_modified_since: raise HTTP(30
This is the best cenario, if you don't want any problems.
Is not because web2py, but because wsgi.
I tried apache mod_proxy, but I have problems too.
I good solution is a virtual server only to apache + web2py.
2010/1/20 vvk
> Our campus servers host many web-sites, so you mean if they run
Thank you very much massimo for your help :-) .. i did make some minor
changes to the code to make it work.
I will post here the code translated to english because maybe it could
help someone with the same problem, this code is a working ajax live
search with web2py, if you dont have a multiple va
This link:
http://markmail.org/message/5cgsibkoohxfh6pl
seems to say that is not a problem (although they experienced other
problems).
On Jan 20, 11:43 am, vvk wrote:
> Our campus servers host many web-sites, so you mean if they run PHP &
> apache, web2py may not give good performance ?
> Doe
I'm not sure if that's the same (I read that page already before). A
good example
is http://www.statsmogul.com. Enter a url that is not yet in there and
see what happens (scroll
down during loading) and when all boxes are fully loaded, refresh the
page. That's exactly
what I would want to accomplis
I understand now. You can cache any function
http://www.web2py.com/examples/default/examples#cache_examples
You should cache the function that returns the images.
Mind that if you have a of these, caching in ram may cause a memory
leak. You probably should cache on disk or memcache (if available)
Our campus servers host many web-sites, so you mean if they run PHP &
apache, web2py may not give good performance ?
Does it mean I need separate server running only apache & web2py
(mod_wsgi) ?
On Jan 20, 5:28 pm, Alexandre Andrade
wrote:
> I think is not a good idea.
>
> php requires apache2
OK
items = [DIV(A(pacient.nombre,
_href="res%s"%j,
_onclick="copyToBox(jQuery('#res%s').html
()"%j),_id="resultLiveSearch") \
for (j,patience) in enumerate(pacientes)]
return TAG[''](*items)
On Jan 20, 11:11 am,
Hi,
No not quite it, let me try to re-explain;
I have a page, per domain that we gather statistics on for our
clients, 9 boxes with
graphs and text (IE a bunch of HTML which happens to contain 1+ image
each). Those 'boxes' contain content that takes time to generate (few
seconds per box), so I wa
Sorry to reply again, i correct some mistakes i found and now is
working :-) thing is.. with that method you make a hole div with the
items.. what i need is a div per item . [div]item[/div]
On 20 ene, 14:45, mdipierro wrote:
> I rearranged your code to make is a little shorter, faster and
> elimi
I copy/paste it but it didnt work.. as i said before im new to
python.. i just now basic stuff.. what you wrote was quite complex to
me, im going to study de code, it will help a lot if you can comment
line by line what you did. I will really appreciate that :-)
Thanks a lot!
On 20 ene, 14:45, md
Thanks for the heads up!
On Jan 20, 10:09 am, mdipierro wrote:
> The way the web normally works is that requests are initiated by the
> client, not by the server.
>
> To have the server trigger and action in the client without some kind
> of timed keepalive signal from the client requires having
Let me understand better,.
You are looking at caching images. Do you want to cache per session
(per user) or across sessions?
Are you talking about cache serverside (when image is requested second
time it not recomputed) or clientside (the client not even try to
request the image the second time)?
I rearranged your code to make is a little shorter, faster and
eliminate XSS vulnerability:
def ajaxlivesearch():
resultadoParcial = request.vars.values()[0]
array = resultadoParcial.split()
query = reduce(lambda a,b:a&b, [db.Paciente.like('%'+a+'%')
for a in array])
you can ask on cherokee mail-list for that error
On Wed, Jan 20, 2010 at 9:43 AM, Johann Spies wrote:
> As I am unable to get a solution to my problems serving web2py using
> apache alongside other sites I am trying out Cherokee - so far with no
> success. I have followed the instructions in the
Hi Johann,
I am sorry you have not found the help you need on this particular
issue. web2py is not different than any Python web framework on this
respect. There is nothing in web2py or the other frameworks that
prevent you from playing along with others, it is just that
configuration really depen
Hey guys, im new to Web2Py AND python ... my goal was to learn python
while i move a site i did in php to web2py and im almost finishing :D
Im stuck a bit with ajax and partial queries , im going to detail a
bit what i mean about partial queries.
I have a field in the DB that has multiple text (y
Hi,
I'm writing a simple statistic analysis system using web2py; when a
user requests a stats page for a certain site, it will show 9 graphs.
I want each of these 9 graphs to generate async (so the user sees 9
loading images which, randomly, turn into graphs when that specific
graph is done), but
As I am unable to get a solution to my problems serving web2py using
apache alongside other sites I am trying out Cherokee - so far with no
success. I have followed the instructions in the book but this
results in
404 Not Found
The requested URL /welcome/default/index was not found on this server
any helpers, including a form, is a three:
form[0] is the table in the form
form[0][i] is the i-th row
form[0][i][1] is the 2nd column of the i-th row
form[0][i][1][0] is the INPUT inside that
form[0]['_class'] is the class attribute of the table
form[0][i][1][0]['_name'] is the name attribute of
To have them both work, you need to serve from two ports (80 and
443?). This means you need to run two web2py instances one with -c -k
and one without. Or use a apache+mod_wsgi
On Jan 20, 7:15 am, niceday wrote:
> Dear,
> Sorry my poor English
>
> web2py it's very good Thank you very much
>
> whe
You do not import models like you do in Django. models are
automatically executed in alphabetic order before the controller.
You only import third party modules (as long as they are properly
installed) or modules in the /app/modules/ folder using
mymodule=local_import('mymodule')
Hope this he
The code below looks right to me. What is the problem exactly?
Did you try access
http:///app/controller/stream/[id]
On Jan 20, 7:05 am, jlegler wrote:
> I am building an app for work to demo some streaming functionality.
> I've built the entire client in web2py and need to stream some vide
The way the web normally works is that requests are initiated by the
client, not by the server.
To have the server trigger and action in the client without some kind
of timed keepalive signal from the client requires having a web server
embedded in the javascript of the page or using something cal
I know Eclipse works with web2py. I do not use it but I think it has
intellisense.
On Jan 20, 12:24 am, Tweety wrote:
> Hello,
>
> I am a newbie both with web2py, python and computer and web development
> in general. I am trying to digest Massimo's book which I bought from
> Lulu. I just want to
Sorry I do not understand the question.
What do you want to do?
On Jan 20, 3:49 am, leone wrote:
> Exist db.replace(...) and db.exists(query) functions in datadase
> layer?
> Thanks
> leone
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To pos
thanks
On Jan 20, 3:25 am, Frank wrote:
> hi,
> I do know whether somebody mention it, just a remind that there are typos in
> CRM
> example,
> def calendar():
> ..
> tasks=db(db.task.created_by==auth.user.id)\
> (db.task.start_time>=request.now).select()
> ...
You should not block access to thinks that are in static. Things in
static should be considered ublic by default so that you can ask the
web server to serve then and by-pass web2py. This is an optimization
that you will need in production and cannot give up.
If some files need restrited access mak
Vihang,
something like this should get you started:
for e in form.components[0]:
print e[0][0] # labels
print e[1][0] # non-labels
Denes
On Jan 20, 5:19 am, vihang wrote:
> Hello,
>
> Is there any way I can iterate through a form? I want to construct a
> form, with two elements in a row ins
Dear,
Sorry my poor English
web2py it's very good Thank you very much
when use web2py.py -c *.cert -k *.key I sucessed.
but ony https work or http work(withou -c -k parm)
if there is a way make them both work
I "found" a bad way,start two server at the same time ,one with ssl
parameter,one wit
Hi,
I am facing a problem on Windows installation of web2py. When trying
to run applications I get the following error:
ImportError: No module named ...
... replaced by a model I have used in the import statement in
default.py
All the modules I have used are installed and thety can be imported
w
I am building an app for work to demo some streaming functionality.
I've built the entire client in web2py and need to stream some video.
I need a way to stream mp4 content without using a tool like XmooV to
do it (because PHP is not running on this server and it will be
incredibly difficult to get
I think is not a good idea.
php requires apache2-prefork (single-thread)
wsgi works with apache2-mpm (multi-thread)
So, they are incompatible.
2010/1/20 vvk
> I installed web2py with apache & mod_wsgi. My computer don't have any
> Domain Name. Another PHP project should be hosted on same mach
Thank you for fast responces.
Now I have a few options to try out.
I'll update here once I implemented it successfully for the benefit of
others.
(I want to update my personal site and add a blog within it (web2py +
GAE, of course), so my blog isn't functional these days.)
On Jan 19, 10:51 pm, md
The script in http://www.web2pyslices.com/main/slices/take_slice/29
works well when web2py is in the server root.
I want to install web2py on a server that already has a php-site. I
have tried and modify the apache configuration to one below (I tried
it with and without the 'Alias' line but have
Mkay, I dropped the table and deleted the ".table" file for it and all
is well. I should have looked the at the table structure before that,
silly me. I suspect that the column was already added before, but
web2py did not register the fact and was trying to add a new one with
the same name.
On Jan
Hi Massimo,
First off, thanks for your support (and development) towards web2py.
I'm currently using web2py to display data generated in a desktop
application which populates the database for the application with scientific
data. However, I would like to have the data automatically refreshed on
I am encountering a strange error, and was wondering if anybody else
has seen something like it.
The code:
auth.settings.table_user = db.define_table(
auth.settings.table_user_name,
Field('username', length=32, notnull=True, unique=True,
requires = [IS_LENGTH(minsize=3), IS_NOT
While completion is nice, I think that what seems like a steep
learning curve is actually not that much. You mostly use a few of the
framework functions and variables, unless you adding something new to
your project, like authentication or maybe a new table. So I'd say
that you don't need it. And i
Since web2py apps do not need to explicitly import any gluon packages,
the intellisense in pydev does not work very well. There was a hack
given somewhere on this forum, which did work to an extend.
On Jan 20, 3:19 pm, tiago almeida wrote:
> Hi.
> You can try *pydev* which is an IDE based on ecl
Hello,
Is there any way I can iterate through a form? I want to construct a
form, with two elements in a row instead of one, and use CSS instead
of table.
I know there is form.custom, but there I have to give the form element
names explicitly. I want a generic solution for all forms I construct.
A
Hi.
You can try *pydev* which is an IDE based on eclipse for python.
I've never used it with web2py so I can't give you more details. Google is
your friend.
See ya
Tiago
On Wed, Jan 20, 2010 at 6:24 AM, Tweety wrote:
> Hello,
>
> I am a newbie both with web2py, python and computer and web devel
Exist db.replace(...) and db.exists(query) functions in datadase
layer?
Thanks
leone
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to
web2
hi,
I do know whether somebody mention it, just a remind that there are typos in CRM
example,
def calendar():
..
tasks=db(db.task.created_by==auth.user.id)\
(db.task.start_time>=request.now).select()
...
should be
tasks=db(db.task.created_by==auth.user.
89 matches
Mail list logo