On Aug 13, 2:18 am, tititi wrote:
> I'm new to w2p and would like to incorporate tag cloud function into
> my site but can't seem to convert a dictionary to a list from a
> database query result. Can anyone help me with this?
> def gen_tags():
> #tags = ['java','php','python','python']
>
Maybe add it to the issue tracker:
http://code.google.com/p/web2py/issues/list
On Aug 13, 11:57 am, ionel wrote:
> Massimo,
>
> When will we have this feature added into menu helper? I really need
> this...
>
> Thanks.
>
> On Jun 17, 12:13 pm, mdipierro wrote:
>
> > Sorry, this needs to be add
hi Christian,
I also just got this error message when testing a migration from
sqlite to postgres. Thanks for the diagnosis of the problem.
Have you found a work around yet using the DAL?
Richard
On Aug 10, 4:56 pm, howesc wrote:
> This is in Postgres.
>
> I did a little digging, and apparently
hmm OK, I guess that work around would do it.
> I supposed in the longer run, we could add the equivalent code to the DAL
> specifically for sqlite perhaps that is the best longer term option.
+1
I am tied to sqlite because the site is live and users are editing
right now.
But maybe it wil
Massimo,
When will we have this feature added into menu helper? I really need
this...
Thanks.
On Jun 17, 12:13 pm, mdipierro wrote:
> Sorry, this needs to be added to the menu helper. Not there yet
>
> Massimo
>
> On Jun 17, 10:29 am, blackthorne wrote:
>
> > since the MENU() helper has been
Hi,
I'm new to w2p and would like to incorporate tag cloud function into
my site but can't seem to convert a dictionary to a list from a
database query result. Can anyone help me with this?
def gen_tags():
#tags = ['java','php','python','python']
query=db.tags.id>0
tags = db(query).
Same here in Ohio. Neither Domain name nor IP appear to be working.
-Eric
On Aug 12, 9:06 pm, Yannick wrote:
> Same here in Canada...
>
> On Aug 12, 8:30 pm, Richard wrote:
>
> > I can't accesswww.web2py.comatthe moment and have experienced
> > intermittent downtime.
>
> > On Aug 8, 2:33 pm,
Down here too.
http://downforeveryoneorjustme.com/web2py.com also confirms it isn't
just me.
On Aug 12, 8:31 pm, Bottiger wrote:
> Same here in the US using OpenDNS. I even tried the IP address when it
> popped up occasionally and it gave a 503 Service Temporarily
> Unavailable error.
>
> On Au
>db.import_from_csv_file(open('somefile.csv','rb'))
don't forget you need a db.commit() after importing.
On Jun 22, 2:02 am, mdipierro wrote:
> yes you can migrate an entire database from the shell with one
> command:
>
> 1) have a model that connects to the sqliite db
> 2) python web2py -S
I am with you - I cannot get a response either, not from www.web2py.com nor
from the ip address that nslookup returns.
curl www.web2py.com intermittently returns:
Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance
downtime or capacity probl
Same here in the US using OpenDNS. I even tried the IP address when it
popped up occasionally and it gave a 503 Service Temporarily
Unavailable error.
On Aug 12, 6:06 pm, Yannick wrote:
> Same here in Canada...
>
> On Aug 12, 8:30 pm, Richard wrote:
>
> > I can't accesswww.web2py.comatthe momen
Same here in Canada...
On Aug 12, 8:30 pm, Richard wrote:
> I can't accesswww.web2py.comat the moment and have experienced
> intermittent downtime.
>
> On Aug 8, 2:33 pm, b00m_chef wrote:
>
> > Just tried to accessweb2py.com and was not up.
>
> > Tried using a proxy (guardster), same result.
--
if you're tied to sqlite, then why don't you use the conversion tools to
take the SQL for the table creation (you can find it in your app/databases
files when the tables were created) to set up the sqlite triggers to do the
equivalent; then you can add that to an execsql call to setup once (ideal
I can't access www.web2py.com at the moment and have experienced
intermittent downtime.
On Aug 8, 2:33 pm, b00m_chef wrote:
> Just tried to accessweb2py.com and was not up.
>
> Tried using a proxy (guardster), same result.
--~--~-~--~~~---~--~~
You received this
hmm that's interesting. I should probably be doing that too.
What is the recommended way to serve static binary data in web2py?
Like the above example? Or perhaps directly through Apache?
Richard
On Aug 13, 5:53 am, hcvst wrote:
> FIXED
>
> Hi,
>
> I've now changed the download function to use
unfortunately upgrading sqlite is not an option in my situation. And
we are locked into sqlite at the moment.
So I'm going to need to solve this through the DAL. Is there a single
query that could delete all my A's and B's? Or do I
need to iterate through the A's and remove them all manually?
Ri
>2) should we provide a cookie aware xmlrpc cllient with web2py?
>
>3) should we allow other mechanisms to id sessions? For example a uuid
>in the URL?
These are very application-specific. Other services may require a
token in the method's parameters, other may require http auth, some
may need co
Thank you very much ¡
On Aug 12, 11:34 am, mdipierro wrote:
> literally you can replace "$" with "jQuery" everywhere. Sometimes with
> some plugins it makes a difference.
>
> On Aug 12, 9:58 am, __Kyo__ wrote:
>
>
>
> > it works !! thank you. I'm new at this, and what is the way to replace
> >
Should cron's @reboot be able to call a script or can it just call a
controller function?
The docs just show a controller function for this mode:
http://www.web2py.com/examples/default/cron
I'd like to be able to call an external script instead...this isn't
working even for very simple scripts t
IT WORKS!
I missread the traceback, the problem was that port 8000 was in use.
Denes.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.co
Hello everyone.
I have just started learning web2py. It's really great!
Now the question I have is about the locale.
I'm from Mexico so my applications must be in Spanish. In some part of
the application I want to get a date doing something like this from
within a view:
{{=consulta.fecha_consult
FIXED
Hi,
I've now changed the download function to use response.stream in order
for the Http Header 'Content-Disposition: attachment;
filename=myimg.JPG' not to be added. That didn't make a difference
except that one can now enter the image URL into the browser without
being prompted to save th
If you must use sqlite, then google for sqlite cascade - there are C program
files that will convert your SQL to sqlite triggers which will accomplish
this (according to all that I saw - I have no experience); there is even a
website where you can paste your table definition, and it will generate
Another problem is that I cannot *easily* import other modules from my
modules in modules/ :)
this means that if I have module X in modules/ and module Y
I cannot do this while in X
import Y
because the cwd is web2py/ so, I have to import by the application
name again, and as "request" is not de
hmm, that's a pity. Thanks for the link.
Is there a single query that could delete all my A's and B's? Or do I
need to iterate through the A's and remove them all manually?
Richard
On Aug 12, 5:52 pm, Yarko Tymciurak wrote:
> It apprears that sqlite does not support this -
> seehttp://www.sql
Thanks - This suggestion is working out well thus far!
On Wed, Aug 12, 2009 at 12:55 PM, Kacper Krupa wrote:
>
> i think you should create dirs in modules and add __init__.py to each
> one. Then:
>
> def load():
>if session.project_a == True:
>from applications.your_app.a.upload imp
the gui is, I believe, just for the default admin password prompting, and
stoping / restarting web2py; you can safely ignore this, and you can avoid
the gui trying to start by using the "-a" command line option.
On Wed, Aug 12, 2009 at 8:48 AM, DenesL wrote:
>
> Finally I was able to install 2.
On Aug 12, 5:14 pm, DenesL wrote:
> To avoid restarting web2py after making changes use:
>
> exec('from applications.%s.modules.yourmodule import X'
> %request.application)
> reload(X) # remove for production
>
> Denes.
This doesn't work, did you try that? the reason is that X is probably
a clas
... be sure to read thru the comments, and note those that do it locally
(that's a fairly harmless excercise before doing an 'hg push' of the
converted repository); actually, I may try this excercise after lunch
On Wed, Aug 12, 2009 at 1:13 PM, Yarko Tymciurak wrote:
> Ok - let me play aro
Ok - let me play around w/ the web2conf a bit tomorrow; I'll take notes and
share w/ you.
This is looks to be in FAR better shape than it was at the start of June.
As for history: Massimo, just follow this page to prepare:
http://code.google.com/p/support/wiki/ConvertingSvnToHg
On Wed, Aug 12
Just in case you hadn't seen it...
http://datatables.net/index
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from th
Is it a bug or a feature not implemented yet ?
On Fri, Jul 3, 2009 at 12:08 PM, Álvaro Justen [Turicas] <
alvarojus...@gmail.com> wrote:
>
> On Fri, Jul 3, 2009 at 06:44, Vidul Petrov wrote:
> >
> > Hi,
> >
> > Given that I have a menu like:
> >
> > response.menu = [
> >['Home', request.funct
i think you should create dirs in modules and add __init__.py to each
one. Then:
def load():
if session.project_a == True:
from applications.your_app.a.upload import Upload
elif session.project_b == True:
from applications.your_app.b.upload import Upload
u = Upload()
At this time we do not support subdirectory in controllers/
Massimo
On Aug 12, 11:15 am, pam wrote:
> I was wondering if anyone has tried to have a single application with
> a directory structure within the main controllers folder such that
> depending on a login option the application searches
I was wondering if anyone has tried to have a single application with
a directory structure within the main controllers folder such that
depending on a login option the application searches for controllers
out of the corresponding options controller folder.
For example:
Imagine you have 2 very s
good. Thanks for letting us know it is solved.
On Aug 12, 10:58 am, Carlos Aboim wrote:
> Hi folks
> For the start I want to really thanks your support.
> I solved the problem already.
>
> As matter of fact I was connecting to other table which is not what I
> wanted.
> I really wanted access ju
literally you can replace "$" with "jQuery" everywhere. Sometimes with
some plugins it makes a difference.
On Aug 12, 9:58 am, __Kyo__ wrote:
> it works !! thank you. I'm new at this, and what is the way to replace
> $ with jQuery.
>
> On Aug 11, 4:45 pm, mdipierro wrote:
>
> > Try this.
>
> >
Hi folks
For the start I want to really thanks your support.
I solved the problem already.
As matter of fact I was connecting to other table which is not what I
wanted.
I really wanted access just the names as properties of one field of the main
table.
So I changed the table 'fornecedores' to ins
Hello,
I'm having a problem with cron ... I have a cron task ( runs a script
to update the DB ) defined in the applications crontab.
The script has been tested and works ... external from web2py on the
command line.
I get this error on the web2py console.
WARNING:root:WEB2PY CRON Call returned
it works !! thank you. I'm new at this, and what is the way to replace
$ with jQuery.
On Aug 11, 4:45 pm, mdipierro wrote:
> Try this.
>
> $(document).ready(function(){
> $('#taxpayer_spouse_name__row').hide();
> $('#taxpayer_married').change(function(){
> if($('#taxpayer_married
To avoid restarting web2py after making changes use:
exec('from applications.%s.modules.yourmodule import X'
%request.application)
reload(X) # remove for production
Denes.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Gro
Finally I was able to install 2.5.4.4 by unpacking and rezipping on a
PC.
Anyways, this is what is happening after I start web2py:
web2py.py
WARNING:root:GUI not available because Tk library is not installed
unpacking apps; this may take a few seconds...
default applications are now installed
web
I have copied and pasted you reply code but it seems not working!
I cant tell what it is!
Do you know any exemples online that a could study?
Same reference or tutorial. I've searched but didn't find any!
thanks
CAboim
2009/8/12 mdipierro
>
> yes. It does for me.
>
> Try cut and paste the co
It's funny..
Know a noted the it as to be something with the comunication with the
database I think.
Because the 'cliente' field also doesn't work as expected!
I have one entry already in the database for the cliente table and whem I
try access it througth
the 'client' field it doesn't show up.
A
yes. It does for me.
Try cut and paste the code I posted into your admin.
On Aug 12, 8:25 am, Carlos Aboim wrote:
> Thank you for your breafly replies,
> It is well seen, but I am affraid it is not that yet!!
>
> How I wish it whould...!
>
> the form to fill in a 'obra' in the admin page show
Thank you for your breafly replies,
It is well seen, but I am affraid it is not that yet!!
How I wish it whould...!
the form to fill in a 'obra' in the admin page shows up perfectlly
when I 'click' inside the input box of the field 'vendedor' it is supposed
to appear a dropdown list with the IS_I
I think I know why it did not work before.
you have
requires = IS_IN_SET(..),IS_NOT_EMPTY()
the second validator is not necessary but the presence of "," makes
python interpret this as
requires = (IS_IN_SET(..),IS_NOT_EMPTY())
I remover the braces and the second validator.
Massimo
On Aug 1
removed the [...] in this line:
registos.vendedor.nome.requires = IS_IN_SET(['João Luís', 'Luís
Bilro', 'Luis Pereira', 'Paulo Gonçalves', 'Vitor Silva', 'Rujoca',
'Dacor'])
On Aug 12, 7:55 am, Carlos Aboim wrote:
> less:
> now = request.now
>
> what were the changes you made.
>
> It seems
less:
now = request.now
what were the changes you made.
It seems to me that is the same code?
Have you changed something else?
thanks
Carlos Aboim
2009/8/12 mdipierro
>
> This workd for me:
>
> import datetime
>
> now = request.now
>
> registos=SQLDB("sqlite://registos.db")
>
> registos.d
thanks massimo
On 12 Aug., 12:02, mdipierro wrote:
> Should be
>
>
>
>
> you can do
>
> {{import os}}
> {{if os.path.exists(os.path.join(request.folder,'static/my_pics/%s' %
> myrows.id)):}}
>
> {{else:}}
> No image
> {{pass}}
>
> On Aug 12, 4:15 am, max wrote:
>
> > I am using
> >
> > to
This workd for me:
import datetime
now = request.now
registos=SQLDB("sqlite://registos.db")
registos.define_table('cliente',
SQLField('nome', 'string'),
SQLField('contacto', 'string'),
SQLField('email'),
SQLField('morada', 'string', length=100))
registos.define_table('vendedor
There are two ways to import modules.
1) The standard Python way:
If you install modules in a place where pyhon can find them (in
sys.path) then you just import them as you would normally do in Python
form youmodule import something
2) The "additional" web2py.
If a module is in a place that is
Hello everybody,
After reading about importing modules in web2py I feel not satisfied
regarding the way I import modules from the modules directory because I have
to specify the application name in the import statement, the other ways are
hackish and are painful if you are doing lots of imports.
Ok, I've send it earlier but no problem
here it is :-) http://dpaste.com/hold/78289/
Hope it helps!
Thanks in advanced
Carlos Aboim
2009/8/12 mdipierro
>
> Just send me the model then.
>
> Massimo
>
> On Aug 12, 5:41 am, Carlos Aboim wrote:
> > Tell me what files you whould need. Because thi
Just send me the model then.
Massimo
On Aug 12, 5:41 am, Carlos Aboim wrote:
> Tell me what files you whould need. Because this is just the model of a
> future app.
> I am populating the database througth the admin page...
>
> I am not a very well experienced user!
>
> Sorry for some lack of un
Thanks for letting us know.
This is working as expected.
The way this handled cannot be changed because it is determined by the
browser.
wrote:
> You are right Massimo. The CSS works fine. So we can close the bug as "not a
> bug" or "cannot reproduce" etc...
>
> The images missing were not part
Tell me what files you whould need. Because this is just the model of a
future app.
I am populating the database througth the admin page...
I am not a very well experienced user!
Sorry for some lack of understanding :-)
Carlos Aboim
2009/8/12 mdipierro
>
> Please email me the relevant parts
You are right Massimo. The CSS works fine. So we can close the bug as "not a
bug" or "cannot reproduce" etc...
The images missing were not part of the CSS Template... they are in the
HTMLs...They include images using relative paths everywhere
http://local/images/pic_1.jpg
most Templates do i
Vacation? what is vacation? We can migrate as soon as I figure out
what to do. Yarko, if you know, let me know.
There is no need to port the entire revision history.
Massimo
On Aug 12, 2:26 am, Yarko Tymciurak wrote:
> We were going to migrate when mercurial support kicked in; this started in
the idea of changing the name was for you to re-read your code, looking for
where the problem may be hidden...
On Wed, Aug 12, 2009 at 4:58 AM, Carlos Aboim wrote:
> I changed the fields name as suggested but no sucess!!
> Any further clues?
>
> Thanks
> Carlos Aboim
>
> 2009/8/12 Yarko Tymciura
Please email me the relevant parts of your app. This works for sure
but I cannot tell what is wrong without looking at the code.
Massimo
On Aug 12, 4:58 am, Carlos Aboim wrote:
> I changed the fields name as suggested but no sucess!!
> Any further clues?
>
> Thanks
> Carlos Aboim
>
> 2009/8/12
This is not a bug. This works form me. Either you have a typo in the
css or it is an issue with your browser.
Can you email me an app to reproduce it?
Massimo
On Aug 12, 4:51 am, "Sebastian E. Ovide"
wrote:
> following inhttp://code.google.com/p/web2py/issues/detail?id=48
>
> On Wed, Aug 12,
Should be
you can do
{{import os}}
{{if os.path.exists(os.path.join(request.folder,'static/my_pics/%s' %
myrows.id)):}}
{{else:}}
No image
{{pass}}
On Aug 12, 4:15 am, max wrote:
> I am using
>
> to dynamically load the pictures.
> Sometimes the pictures are not for some ids. Is there
I changed the fields name as suggested but no sucess!!
Any further clues?
Thanks
Carlos Aboim
2009/8/12 Yarko Tymciurak
> Since you are having troubles, can I suggest you rename the following:
>
> registos.obra.cliente
> and
> registos.obra.vendedor
>
> to
>
> registos.obra.cliente_id
> registo
following in http://code.google.com/p/web2py/issues/detail?id=48
On Wed, Aug 12, 2009 at 12:09 AM, mdipierro wrote:
> I never had this problem.
> If the css is in : /init/static/filename.css, then url(images/
> myimage.jpg) should translate in /init/static/images/myimage.jpg
>
> which browser ar
Since you are having troubles, can I suggest you rename the following:
registos.obra.cliente
and
registos.obra.vendedor
to
registos.obra.cliente_id
registos.obra.vendedor_id
This is because this field IS a foreign key, which holds the cliente.id
Now you have TWO fields, "cliente" - one a
I am using
to dynamically load the pictures.
Sometimes the pictures are not for some ids. Is there any way to chcke
if the picture is available using the request?
Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google G
I've you seen my dpaste??
My models are like this http://dpaste.com/hold/78289/
Is the field 'vendedor' in the table 'obras' that I am having trouble!
May I use *required* parameter in the 'vendedor' field instead?
It seams so linear but I cant make it work!
thank you
C Aboim
2009/8/12 mdipie
Well the problem that I am having with all of this is the notion of
the svr *reconstituting* the state upon each request. Sure, the svr
must always have to identify the client and shuttle the request to the
desired functionality, but I didn't know the operating paradigm here
was that the "session
A very good explanation. I think I get it now. In the bad ol' static
webpage days, a webserver's job was to figure out the mapping from the
requested url to the static file and then send that file back. Later,
dynamic webpages were created "on the fly" by processes which were fed
request parameter
The only things I can think of are:
1) requires is mispelled
2) requires is overwritten somewhere else
Can you post the code?
On Aug 12, 3:23 am, Carlos Aboim wrote:
> Hi,
> In fact I was using requires=[IS_IN_SET(…)]
>
> Changed to requires=IS_IN_SET(), but still doesn't work!!
>
> help!!
Hi,
In fact I was using requires=[IS_IN_SET(…)]
Changed to requires=IS_IN_SET(), but still doesn't work!!
help!! Thanks
Carlos Aboim
2009/8/11 mdipierro
>
> requires=IS_IN_SET()
>
> validation+dropdown
>
> requires=[IS_IN_SET()]
>
> validation but not dropdown. ;-)
>
>
>
> On Aug
It apprears that sqlite does not support this - see
http://www.sqlite.org/omitted.html
On Wed, Aug 12, 2009 at 2:41 AM, Richard wrote:
>
> hello,
>
> Does sqlite support cascade or am I doing something wrong?
>
> I have these tables:
> db.define_table('A',
>db.Field('B', db.B, ondelete='CAS
hello,
Does sqlite support cascade or am I doing something wrong?
I have these tables:
db.define_table('A',
db.Field('B', db.B, ondelete='CASCADE'),
)
db.define_table('B',
db.Field('name'),
)
And when I run db(db.A.id > 0).delete(), the B's are still there.
Richard
--~--~-~--~-
anyway,
the poit raised by rb has some consequences we may want to think
about.
1) because clients ignore cookies this means there is a proliferation
of session files that are lost unless the xmlrpc server is told
explicitly to forget sessions. This means if one does not need
sessions one should
We were going to migrate when mercurial support kicked in; this started in
June, but was still getting the kinks worked out.
While Massimo is off on Holiday before the semester starts, I was going to
try to migrate web2conf to google code / mercurial and determine it's
readiness; We should know
On Aug 12, 2:09 am, Richard wrote:
> On Aug 12, 2:46 pm, mdipierro wrote:
>
> > This one?
>
> >http://w2popenid.appspot.com/init/default/wiki/main
>
> I guess that's the one you referred to before.
> In a previous thread you said "We will soon have an API like stack
> overflow does." Is this sti
Ahem
"Knock, knock!" --- says the browser...
"Whose there?" --- says the server...
If the request (browser) identifies itself with information given it by the
server as a continuation from a recent identification, then the normally
stateless nature of the web get's state, established by t
Normally when you visit a web page web2py creates a session, stores
the session in a file and associates the file to a session id. It
sends the session id back to the client in a cookie.
When the client makes other requests, the clients sends the cookie
back and the server can retrieve the proper
Can you describe the app in a sentence or two? Is it blackberry native
(jython?)?
Is it a mobile client, but connected to a remote server?
On Tue, Aug 11, 2009 at 8:49 PM, mr.freeze wrote:
>
> I just replaced an asp.net mileage tracker app targeting our
> Blackberry users with a web2py equivale
On Aug 12, 2:46 pm, mdipierro wrote:
> This one?
>
> http://w2popenid.appspot.com/init/default/wiki/main
I guess that's the one you referred to before.
In a previous thread you said "We will soon have an API like stack
overflow does." Is this still going to happen?
Also if you were waiting on
81 matches
Mail list logo