Do you have the latest web2py version? Probably not.
On Nov 3, 2:36 pm, mike wrote:
> Im following the documentation, I have made this model (copy&paste
> it):
>
> buyer = db.define_table('buyer',
> Field('name'))
>
> and in my control, i try to do this:
>
> rows = db
New promotion... web2py -- the framework so powerful *they don't want you to
know about it!
*
On Tue, Nov 3, 2009 at 8:23 PM, mdipierro wrote:
>
> Dear friends,
>
> I am sorry to inform you that both the talks I proposed to PyCon 2010
> about web2py have been rejected.
> This is the third year al
http://wavedirectory.appspot.com/init/default/wave?w=googlewave.com%2521w%252BDPsJaggYA
A public wave to discuss wave development on web2py.
HC
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
T
http://wavedirectory.net - Public google wave directory and wave bot
http://auctionall.info - Private auctions
http://w2popenid.appspot.com - OpenID consumer/provider example
Thanks,
HC
On Oct 26, 4:46 am, mdipierro wrote:
> www.appliedstacks.comis dead. This means I lost a way to keep track
>
I would suggest using the Pound load balancer and web2py with built-in
web server on the slaves. Pound provides sticky sessions which means
requests from the same client will be always directed to the same
(random) server this you do not need any special configuration to
handle sessions.
This is
A list is a list, doesn't matter if your setting it to a new list or using
the list.append() afterwords, it will work the same.
db.table.field.after_update = []
db.table.field.after_update = [lambda row: print row]
db.table.field.after_update.append(lambda row: del row)
-Thadeus
On Tue, Nov
after_update should be a list of functions, that take one argument, the row.
db.table.field.after_update.append(lambda row: print row)
-Thadeus
On Tue, Nov 3, 2009 at 2:56 PM, Jon Romero wrote:
>
> Is it possible to do something like that in the db declarations or I
> have to put code insid
Under apaceh via mod_wsgi = Yes
Load balancing & HA clustering = Most likely. You might be able to pull off
simple load balancing. Keep a list of servers, and when a client requests,
pick a server with the least amount of redirects for the last 15 minutes and
redirect them there. Add a counter to
Hi,
Is it possibale to use web2py under apache (via mod_wsgi) to construct a
load balancing & HA clustering servers' group?
If it is, how?
Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group
Is it possible to do something like that in the db declarations or I
have to put code inside the controller?
For example in Rails you specify functions that will run before or
after an insert/update/delete/select inside the declaration of model.
That makes the code very easy to read/reuse.
I thin
Dear friends,
I am sorry to inform you that both the talks I proposed to PyCon 2010
about web2py have been rejected.
This is the third year all web2py related talks have been rejected.
I do not have any additional information about this.
On the plus side, for the second year in a row, the regist
I made all the modification but, i still have the problem. The combo
is working fine. But the third combo dont hide when i select another
country, it still show the data selected before.
Can i give you my application so you can see my problem better? Tell
me if you cant, i dont want to bother.
O
Say I have a special value I want to pass to my widget. Like, date format.
Which could change depending on the page.
This is what I am trying to do.
# pseudocode.
def mywidget(f, v, **attr):
if attr.get("cancel", False):
return jQuery.Rating({cancel:true})
But I can't seem to figure
There is also a Tortoise client for bzr http://bazaar-vcs.org/TortoiseBzr
On Nov 3, 11:32 am, Wes James wrote:
> I asked the question then ended up installing bzr stuff and did get T4 to
> test.
>
> thx,
>
> -wes
>
> On Tue, Nov 3, 2009 at 10:12 AM, Yarko Tymciurak
>
>
>
> wrote:
> > On Tue, N
Does it work locally but not on GAE? I am using the same version with
no problems locally.
On Nov 3, 2:46 pm, mike wrote:
> Version 1.71.0 (2009-10-31 01:13:28)
>
> On Nov 3, 3:42 pm, mdipierro wrote:
>
> > Do you have the latest web2py version? Probably not.
>
> > On Nov 3, 2:36 pm, mike wrot
I asked the question then ended up installing bzr stuff and did get T4 to test.
thx,
-wes
On Tue, Nov 3, 2009 at 10:12 AM, Yarko Tymciurak
wrote:
> On Tue, Nov 3, 2009 at 9:03 AM, Wes James wrote:
>>
>> On Tue, Nov 3, 2009 at 1:19 AM, Yarko Tymciurak
>> wrote:
>> > On Mon, Nov 2, 2009 at 3:1
Freeze,
How would you pass variables to the **attr dict of the widgets?
-Thadeus
On Tue, Nov 3, 2009 at 4:06 PM, mr.freeze wrote:
>
> I have a cheesy autocomplete widget here. It's no match for the
> facebook version but might help someone:
>
> http://www.web2pyslices.com/main/slices/take_
I was looking at SQLFORM, and noticed that widgets do not actually get
passed any attributes... at all.
So why are they there? lol.
elif hasattr(field, 'widget') and field.widget:
inp = field.widget(field, default)
Easily fixed to be
elif hasattr(field, 'widget') and field.widge
I think Massimo would say you are thinking of a special type of
plugin. Take a look at message 75 and 76 in the tree view. Is that
what you're thinking?
On Nov 3, 8:41 pm, Thadeus Burgess wrote:
> Expose plugins like a service.
>
> def plug():
> return plugin()
>
> /init/default/plugin/co
Hello,
on p188 of the docs it says "when multiple forms are present on the
same page, the mechanism for preventing double submission breaks, and
you must omit the session argument when calling the accepts method".
I was wondering why this is, and if there is an alternative way to
prevent double
Thanks Graham, that's just what I needed to understand the
ExecuteOnCompletion2 wrapper.
--~--~-~--~~~---~--~~
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.
Expose plugins like a service.
def plug():
return plugin()
/init/default/plugin/comments/view/hi/
or
/init/plugin/comments/view/hi/
-Thadeus
On Tue, Nov 3, 2009 at 8:37 PM, Thadeus Burgess wrote:
> Here... change the routing for plugins. This allows us to actually have the
> plugin
ok, I hacked an after_update attribute in sql.py but I am doing this:
db.table.field.after_update = a_list_with_functions
I think it feels more natural. What do you guys think?
On Nov 3, 10:58 pm, Thadeus Burgess wrote:
> after_update should be a list of functions, that take one argument, the
Thanks! I am learning a lot from your slices - I hadn't used
response.files or widgets yet.
I tried the example but just the input box was rendered and I found I
needed to add "default=50" for it to work.
Does it work for you without a default value?
For my use case I fortunately need a value 0-
Here... change the routing for plugins. This allows us to actually have the
plugins in a subfolder.
URL(r=request, a='plugin', c='comments', f='view', args=['hi"], vars={})
-Thadeus
On Fri, Oct 30, 2009 at 7:58 AM, Yarko Tymciurak <
resultsinsoftw...@gmail.com> wrote:
>
>
> On Fri, Oct 30, 2
thanks, can you email it to me plase. Can you also add the options to
SQLDB.export_to_csv
On Nov 3, 2:36 pm, Thadeus Burgess wrote:
> Here is a patch to allow Rows.export_to_csv file to specify the quotechar,
> delimiter, and quoting type.
>
> Mainly, I needed support for QOUTE_NONNUMERIC so tha
or other way to see it is camel case, a special tag for reference
internal pages??? (and create them if they doesnt exist?)
On Nov 3, 8:25 pm, tyoc <007...@gmail.com> wrote:
> haha, Im not asking that... in a wiki when you put a link to a page
> that doesnt exist it is created, but with the "smar
I was misunderstood (my mistake - it's getting late here in Greece). I
didn't want to say about the list but about taking an argument.
> after_update should be a list of functions, that take one argument, the row.
Now that I am thinking about it, I think that these functions must
have access to t
Version 1.71.0 (2009-10-31 01:13:28)
On Nov 3, 3:42 pm, mdipierro wrote:
> Do you have the latest web2py version? Probably not.
>
> On Nov 3, 2:36 pm, mike wrote:
>
>
>
> > Im following the documentation, I have made this model (copy&paste
> > it):
>
> > buyer = db.define_table('buyer',
> >
haha, Im not asking that... in a wiki when you put a link to a page
that doesnt exist it is created, but with the "smart" design option, I
dont see how to do that...
What I have tryed is to put a link to without http:// and I get the
link like http://127.0.0.1:8000/test3/default/wiki/relative com
just to remind everyone:
bzr - slow (but revisions directory structures, as does svn);
hg, git - fast (but only revision files - so to hold a directory, you need a
file - good long techie discussion about why some O/S's don't treat files
as-if-normal-files, and how this impacts all this but th
Here is and example
Select country (United States) -> appear state combo -> Select State
(California) -> appear city combo ->
i select the wrong country, so i decide to select another country ->
Select country (Canada) -> the state combo show the correct data. But
city cimbo still with the same da
A little of both :)
On Nov 3, 4:34 pm, Richard wrote:
> nice!
> Did you make that slice in response to my question, or extracted from
> your own project?
>
> On Nov 3, 4:58 am, "mr.freeze" wrote:
>
> > Here is an example using the widget method:
>
> >http://www.web2pyslices.com/main/slices/take
I believe the attributes are populated by FormWidget._attributes but
not until the widget method is called. In your case I would create a
class like so:
class DatePickerFactory(object):
def __init__(self,dateformat="yy-mm-dd")
self.dateformat=dateformat
def widget(self,f,v,**attr)
You do not bother us at all. We are happy to help (if we can).
Can you post the modified code?
On Nov 3, 2:33 pm, Sophie wrote:
> I made all the modification but, i still have the problem. The combo
> is working fine. But the third combo dont hide when i select another
> country, it still show
Hello
has someone tried using gdal with web2py? can someone give me some
advice on how i can use gdal with web2py
thanx
Adolfo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this g
I have a cheesy autocomplete widget here. It's no match for the
facebook version but might help someone:
http://www.web2pyslices.com/main/slices/take_slice/24
On Nov 3, 11:24 am, Alex Fanjul wrote:
> I love this kind of widget!!! maybe your next challene would be the so
> famous "facebook-auto
Function can take the row object as an argument. That way it can access all
of the data regarding that row that is about to be inserted, if it needs
information from other parts of the database, just use a db.select() inside
said function.
Just throwing some pseudocode out there..
def afunction(r
nice!
Did you make that slice in response to my question, or extracted from
your own project?
On Nov 3, 4:58 am, "mr.freeze" wrote:
> Here is an example using the widget method:
>
> http://www.web2pyslices.com/main/slices/take_slice/20
>
> On Nov 2, 1:34 am, Boris Manojlovic
> wrote:
>
> > I w
yeah that might be a good idea. What would be the syntax? A tuple for
start and end, with -1 for infinity?
(0,-1) # 0 or more
(1,-1) # 1 or more
On Nov 3, 12:31 am, mdipierro wrote:
> You have to make your own validator. Should we add a "range" attribute
> to IS_IN_SET multiple?
>
> On Nov 1, 9:
Here is a patch to allow Rows.export_to_csv file to specify the quotechar,
delimiter, and quoting type.
Mainly, I needed support for QOUTE_NONNUMERIC so that my data could import
to Microsoft Access.
Massimo I will email you the diff file.
Basically, now you can do
Rows.export_to_csv_file(ofile
Ok Massimo, sent you the new diff.
Now you should be able to
db.export_to_csv_file(ofile, delimiter='|', quotechar='*',
quoting=csv.QUOTE_NONNUMERIC)
db.import_from_csv_file(ofile, delimiter='|', quotechar='*',
quoting=csv.QUOTE_NONNUMERIC)
Rows.export_to_csv_file(ofile, delimiter='|', quotecha
Has anyone used bzr-eclipse? Is it stable/usable? Thanks!
On Nov 3, 2:10 pm, mikech wrote:
> There is also a Tortoise client for bzrhttp://bazaar-vcs.org/TortoiseBzr
>
> On Nov 3, 11:32 am, Wes James wrote:
>
> > I asked the question then ended up installing bzr stuff and did get T4 to
> > tes
If you right-click and view page source, does that have any content?
On Tue, Nov 3, 2009 at 11:40 AM, haftish21 wrote:
>
> I used the following linkage to import my css file created inside
> static folder.
>
>
>
> No error, but nothing displays on my page. what goes wrong???
--~--~-~--
can we see the page?
On Nov 3, 12:40 pm, haftish21 wrote:
> I used the following linkage to import my css file created inside
> static folder.
>
>
>
> No error, but nothing displays on my page. what goes wrong???
--~--~-~--~~~---~--~~
You received this message be
try
URL(r=request, c='static', f='mystyle.css')
-Thadeus
On Tue, Nov 3, 2009 at 12:40 PM, haftish21 wrote:
>
> I used the following linkage to import my css file created inside
> static folder.
>
>
>
> No error, but nothing displays on my page. what goes wrong???
> >
>
--~--~-~--~
Screenshots added.
On Nov 3, 12:28 am, Mengu wrote:
> i have a suggestion for all your slices, why don't you also add the
> screenshots? :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To po
That's where the 'cheesy' part comes in. This should really be done
as a class with options passed in the constructor. As it is, you need
to pass you attributes to the specific elements that will use them.
For example in the datepicker widget, I override the class so the
normal Calendar script do
Sure, I figured the reason against adding it to SQLDB was because it adds
web2py specific meta information. I will send you the new patch in a minute.
-Thadeus
On Tue, Nov 3, 2009 at 2:39 PM, mdipierro wrote:
>
> thanks, can you email it to me plase. Can you also add the options to
> SQLDB.e
Whoops, small bug. I fixed it and updated the slice. Respone.files is
just a quick way to include the necessary files. You could just as
easily put them in your view. I think response.files is part of the
experimental plugin framework so it may change. The jQueryUI slider
takes a min and max t
Hello,
> legacy database support for db2, mssql with non-int primary keys
> (thanks Denes)
Does this also work with SQLite?
Best regards,
Timmie
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group
Here's a working version (didn't test the other):
class DatePickerFactory(object):
def __init__(self,dateformat="yy-mm-dd"):
self.dateformat=dateformat
def widget(self,f,v,**attr):
inp = SQLFORM.widgets.string.widget(f,v,_class="jqdate",
**attr)
scr = SCRIPT("jQuer
Im following the documentation, I have made this model (copy&paste
it):
buyer = db.define_table('buyer',
Field('name'))
and in my control, i try to do this:
rows = db(buyer.id>0).select().find(lambda row:row.name.startswith
('C'))
return dict(rows)
but im getti
I am working on enabling image uploads for web2pyslices.com. In the
meantime, I created a demo app for your convenience. Right click /
Save As:
http://www.web2pyslices.com/main/static/share/web2py.app.widgets.w2p
Enjoy!
On Nov 3, 9:18 am, JorgeRpo wrote:
> +1
> I was to propose the same..
>
>
On Tue, Nov 3, 2009 at 1:32 PM, Wes James wrote:
>
> I asked the question then ended up installing bzr stuff and did get T4 to
> test.
>
great! :-)
>
> thx,
>
> -wes
>
> On Tue, Nov 3, 2009 at 10:12 AM, Yarko Tymciurak
> wrote:
> > On Tue, Nov 3, 2009 at 9:03 AM, Wes James wrote:
> >>
> >>
I used the following linkage to import my css file created inside
static folder.
No error, but nothing displays on my page. what goes wrong???
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
T
I sont unsertand the suggestion, something like this?
$('#Pais').attr('onChange', ajax('Estado', ['Pais'],'target'));
and now
$('#Pais').change(function(){ $('#Pais').attr('onChange', ajax
('Estado', ['Pais'],'target'))
On 3 nov, 10:48, mdipierro wrote:
> I think it is because:
>
> def ci
Just
$('#Pais').change(function(){ ajax('Estado', ['Pais'],'target') });
On Nov 3, 11:40 am, Sophie wrote:
> I sont unsertand the suggestion, something like this?
>
> $('#Pais').attr('onChange', ajax('Estado', ['Pais'],'target'));
>
> and now
>
> $('#Pais').change(function(){ $('#Pais').attr
I also need to add the options to import_from_csv_file
-Thadeus
On Tue, Nov 3, 2009 at 2:42 PM, Thadeus Burgess wrote:
> Sure, I figured the reason against adding it to SQLDB was because it adds
> web2py specific meta information. I will send you the new patch in a minute.
>
> -Thadeus
>
>
>
I think it is because:
def city():
state = request.vars.values()[0]
city = db(db.city.idState == state).select()
return SELECT(_id=city,_name=city,*[OPTION(city
[i].nCity, _value=str
(city[i].id)) for i in range(len(city))])
should be
def city():
state = request.vars.values(
On Nov3, 11:36am, mdipierro wrote:
> https://launchpad.net/t4
>
> but it is not as stable as t3. Eventually we are going to need better
> names.
On Nov3, 12:32pm, Wiiboy wrote:
> Perhaps more descriptive =)
It is kind of faq. :-)
IIRC, in the web2py 1.4x era, T2 was introduced. The name is a
On Nov 2, 10:39 pm, mdipierro wrote:
> > Are you sure this worked in 1.70 but not in 1.71?
Broke /since/ 1.71 ;)
> I think I fixed it. please check.
Yes, works now - many thanks :)
F
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
Hi all i have a problem with multi combo.
I have three tables Country, State, City. The first time it works
fine, i select a country (Canada), it appears the state combo, i
select a state (Alberta), and appear the city combo. Here is working
fine.
My problem is the second time i want to select a
+1
I was to propose the same..
On Nov 3, 6:02 am, DenesL wrote:
> On 3 nov, 03:31, Yarko Tymciurak wrote:
>
>
>
> > +1 --- and even more -- example use (just like man pages)... :-)
>
> +1 and more --> demos
--
sig text
--~--~-~--~~~---~--~~
You received this
On Tue, Nov 3, 2009 at 1:19 AM, Yarko Tymciurak
wrote:
> On Mon, Nov 2, 2009 at 3:13 PM, Wes James wrote:
>>
>> I found that, but I didn't think svn worked with that only bzr client.
>
> That is correct - it is a bazaar repository, so it works only w/ bzr. (even
> the svn for web2py is just a m
Somehow month is a string. How is it defined?
On Nov 3, 5:25 am, annet wrote:
> I had a two column layout:
>
>
>
>
> Nieuws {{=month.replace('_',' ')}}
>
>
>
>
>
>
>
> Now when I reverse the order in which the columns appear in the view.
>
>
>
I do not think it does what I originally wanted to do (specify the
folder where to import to) but you are right that we can rewrite the
current local_import using __import__. WOuld you send me a patch?
On Nov 3, 5:46 am, Álvaro Justen [Turicas]
wrote:
> On Fri, Oct 30, 2009 at 03:55, mdipierro
Again on the topic of response.files.append(...).
I do not think I ever mentioned it but when a view extends another
view, the {{extend ...}} does not need to be the first line in the
page. This means you can defined variables before extending so the
extended page sees those variables. For example
In the menu click on ...
On Nov 3, 12:19 am, David AOL <007...@gmail.com> wrote:
> I have downloaded the T3 version, running it, seem nice, but how I will
> create a new wiki page from a non existent page?
>
> --
> Las cosas que no se comparten se pierden
>
> 2009/11/2 Wiiboy
>
>
>
> > Perhaps m
On Nov 3, 6:25 am, annet wrote:
> I had a two column layout:
>
>
>
>
> Nieuws {{=month.replace('_',' ')}}
>
>
>
>
>
>
>
> Now when I reverse the order in which the columns appear in the view.
>
>
>
>
You might be changing "month" her
On Fri, Oct 30, 2009 at 03:55, mdipierro wrote:
>
> Something always bothered be and resulted in lots of uglyness. I
> suspected there was a way to fix it but did not know. Now I found out.
>
> The problem:
> ==
>
> when we do
>
> import a.b.c as d
>
> Python (and web2py) look in sys.p
I had a two column layout:
Nieuws {{=month.replace('_',' ')}}
Now when I reverse the order in which the columns appear in the view.
Nieuws {{=month.replace('_',' ')}}
This function:
{{=month.repl
On 3 nov, 03:31, Yarko Tymciurak wrote:
>
> +1 --- and even more -- example use (just like man pages)... :-)
+1 and more --> demos
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post
On Tue, Nov 3, 2009 at 4:24 AM, Mengu wrote:
>
> dear yarko,
>
> yes, it has a long way to go. i hope to make it better and known in
> this area. maybe the flagship of web2py. :)
>
> thank you for letting me know the delete issue :) it's now fixed.
>
> i can move the project to google code for su
dear yarko,
yes, it has a long way to go. i hope to make it better and known in
this area. maybe the flagship of web2py. :)
thank you for letting me know the delete issue :) it's now fixed.
i can move the project to google code for sure, but first i have to
learn how to use svn and google code.
In web2py version 1.68.2 this:
{{=month.replace('_',' ')}}
no longer works. It was the solution to the following problem:
In the view I have:
News {{=month}}
which for August results in:
News August_2009
Is there a way to get rid of the underscore? It's introduced because
the link:
{{=A
Thanks for sharing clearly, still a work in progress (for example, I
note that your controllers/post requires membership in Admin to post, edit,
but _not_ to delete :-).
Will be nice to move to hg/google code to be able to just post comments
against the code in the codereview tool
On Mon,
On Tue, Nov 3, 2009 at 12:28 AM, Mengu wrote:
>
> i have a suggestion for all your slices, why don't you also add the
> screenshots? :)
>
+1 --- and even more -- example use (just like man pages)... :-)
>
>
--~--~-~--~~~---~--~~
You received this message becau
On Mon, Nov 2, 2009 at 3:13 PM, Wes James wrote:
>
> I found that, but I didn't think svn worked with that only bzr client.
>
That is correct - it is a bazaar repository, so it works only w/ bzr. (even
the svn for web2py is just a mirror of the bzr checkins).
Bazaar and Mercurial are both Pyth
79 matches
Mail list logo