On Sep 28, 2009, at 6:39 PM, Yannick wrote:
> Does anyone use Wing IDE on a Mac machine with Web2py installed
> If yes can you please let me know how you configured Web2py and
> Wing ??? Because I followed this instruction
> http://www.wingware.com/doc/howtos/web2py
> and I got this error
On Sep29, 9:25am, rb wrote:
> It is my understanding that when a request comes in to web2py the
> first thing that is done is to execute all of the model files (in
> filename alphabetical order). Is there some way to pass in, via the
> request, a parameter that can be used to select which model c
Hi again,
Your example worked for me so I added the pep line to get the person
and then to show the events, I get all the events for every person. as
this shows
[Rockefelter] Born big house Birth 2nd House [Clinton] Born big house
Bi
Sorry, you could do one event handler with two ajax calls:
jQuery("#clickme").bind("click", function(e){
jQuery.ajax
({type:"POST",url:"/test/default/handle_1",data: jQuery
("form:first").serialize(),success: function(msg){jQuery("#div1").html
(msg);} });
jQuery.ajax
({type:"POST",url:"/test/defa
On Sep 28, 2009, at 6:39 PM, Yannick wrote:
>
> Hello mate,
>
> Does anyone use Wing IDE on a Mac machine with Web2py installed
> If yes can you please let me know how you configured Web2py and
> Wing ??? Because I followed this instruction
> http://www.wingware.com/doc/howtos/web2py
> and
Then perhaps the comparison should be made not what you get on the basic
plan, but what you get for the price.
You get a whole lot more for your money with dreamhost than with webfaction.
Fair use is probably going to be no more than users/ram plus a little extra
(since not everybody needs that m
I just noticed you said different function calls. You would have to
create two event handlers for the same event:
jQuery("#clickme").bind("click", function(e){jQuery.ajax
({type:"POST",url:"/test/default/handle_1",data: jQuery
("form:first").serialize(),success: function(msg){jQuery("#div1").htm
do they define what "fair use" is?
Webfaction only gives you 80MB on the cheapest plan, which is about
what Plone requires (damn Zope is heavy!).
On Sep 29, 11:57 am, Thadeus Burgess wrote:
> Other hosts, such as webfaction, and mediatemple.net are good, but because
of the price, I wouldn't go
The .htaccess tutorial is the same like on the other link, sorry that
doesn't help
On 29 Sep., 04:22, Thadeus Burgess wrote:
> Have you looked at this page on apache?
>
> http://httpd.apache.org/docs/2.2/howto/cgi.html
>
> -Thadeus
>
> On Mon, Sep 28, 2009 at 9:08 PM, andreas wrote:
>
> > Sound
Thanks! :)
On Sep 14, 1:05 pm, mdipierro wrote:
> replace
>
> if by_id_form.accepts(request.vars, session):
>
> with
>
> if by_id_form.accepts(request.vars, session, formname='one'):
>
> if you use multipleformsthey must have names and different names.
>
> On Sep 14, 12:56 pm, Thadeus Burgess w
Have you looked at this page on apache?
http://httpd.apache.org/docs/2.2/howto/cgi.html
-Thadeus
On Mon, Sep 28, 2009 at 9:08 PM, andreas wrote:
>
> Sounds good, but changing the hoster is not possible right now.
> Any comments on my last post regarding the CGI solution?
>
> Greetings Andre
And if you don't feel like writing the ajax functions yourself, try
this:
http://www.web2pyslices.com/main/slices/take_slice/8
On Sep 28, 9:03 pm, weheh wrote:
> Is there a way to get an ajax script to update two different DIV ids
> with one call? For instance, I want a link, that when clicked,
Not with the ajax function in web2py_ajax.html. If you create the
ajax callback yourself using jQuery.ajax, you can just set the success
function to: jQuery("#one,#two").html(response);
More here:
http://docs.jquery.com/Selectors/multiple
On Sep 28, 9:03 pm, weheh wrote:
> Is there a way to g
Sounds good, but changing the hoster is not possible right now.
Any comments on my last post regarding the CGI solution?
Greetings Andreas
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post
Is there a way to get an ajax script to update two different DIV ids
with one call? For instance, I want a link, that when clicked, will
cause two different DIVs, each with a unique id, to be updated by
different function calls. Is this possible?
--~--~-~--~~~---~--~---
Unlimited memory usage, however they will kill your process if you are using
more than your fair share for an extended period of time.
As for the price, my referall code waives the setup fee.
-Thadeus
On Mon, Sep 28, 2009 at 8:49 PM, Richard wrote:
>
> Dreamhost is $10.95/month if you pay m
Dreamhost is $10.95/month if you pay monthly (+ $49.95 setup fee), so
you should probably use that figure when comparing to other companies
monthly rates...
My main problem is memory use (rather than bandwidth or disk space) -
do you know how much memory you can use on that plan?
Richard
On Se
This works for me:
def index():
rows = db(db.events.person==db.person.id).select()
return dict(rows=rows)
{{for row in rows:}}
{{=row.events.description}} : {{=row.person.first_name}}
{{=row.person.last_name}}
{{pass}}
On Sep 28, 7:44 pm, jayvandal wrote:
> I tried your suggestion.
>
That is one of the problems when using WSGI, all output to STDOUT is used
for the server response and STDIN is used for the application input
To get arround this, output to files must be directed to STDERR, otherwise
you will mess up your servers response string.
sys.stdout = sys.stderr
http://b
Hello mate,
Does anyone use Wing IDE on a Mac machine with Web2py installed
If yes can you please let me know how you configured Web2py and
Wing ??? Because I followed this instruction
http://www.wingware.com/doc/howtos/web2py
and I got this error message when I'm trying to start web2py ser
It is my understanding that when a request comes in to web2py the
first thing that is done is to execute all of the model files (in
filename alphabetical order). Is there some way to pass in, via the
request, a parameter that can be used to select which model code is
run?
If I have a total of 93
I am trying to test the jsonrpc service on the web2py server.
I am using the simple jsonrpc client found at http://lkcl.net/jsonrpclib.tgz,
and the sample code from the pyjamas book:
import jsonrpclib
s = jsonrpclib.ServerProxy("http://127.0.0.1:8000/todo/default/call/
jsonrpc/")
reply = s.echo(
Webfaction is 9.50/month and you only get 10GB disk and 600GB transfer.
Dreamhost is 8.95/month and you get unlimited web disk and ulimited
transfer. Web disk means, you get unlimited as long as its being used for a
website, you can't use the space for your own personal backup!
If you want your o
I tried your suggestion.
Here is the events table. Thanks for your help. I am at a loss
Jim
db.define_table('events',
Field('person',db.person),
Field('description',length=128),
Field('category',db.category),
Field('c
yes, that is the only change.
BTW. Before posting here I have emailed my patch the author, since
many web applications depend on markdown.
My patch is similar to the one suggested by reddit but uses UUID to
set the salt. They use markdown we use markdown2.
I also took the occasion to study this
It should not redirect if you're not decorating with
@auth.requires_login(). The redirect must be in the code somewhere
else.
On Sep 28, 6:22 pm, Web2py-SuperFan wrote:
> I have not set any auth.requires yet. Could that be the problem? Once
> I set one then, maybe the rest will be allowed with
I have not set any auth.requires yet. Could that be the problem? Once
I set one then, maybe the rest will be allowed without logging in?
I'm running locally on windows vista using web2pys default webserver
on version from 9/17
Web2py-SuperFan wrote:
> Hi all,
>
> Ok so I dug through the manual
I would really need to see your model to be sure but try:
ev=db(db.events.person==db.person.id).select()
for row in ev:
print row.events.description, row.person.name
On Sep 28, 5:51 pm, jayvandal wrote:
> I changed to your suggestion and I get an error it can't find the word
> 'description'
> Other hosts, such as webfaction, and mediatemple.net are good, but because of
> the price, I wouldn't go with them until you know for sure thats what your
> app needs.
are you sure? Dreamhost is $8.95/month, and Webfaction is $8.50/month
on a year plan or $5.50/month for long term.
On Sep 2
hi Chris,
I also ran into this belongs annoyance and have opened a ticket for
it: http://code.google.com/p/web2py/issues/detail?id=56
Richard
On Sep 29, 7:23 am, Chris S wrote:
> Would this be the same for FastCGI? Simply rename and add a
> handler?
> I've been trying GAE and would really li
I have found that logging is effected by the server you are using. For
the builtin web2py server my logging works, but for Apache with WSGI
the logging gets redirected to standard error.
Is the logging being redirected to your server error/output log files?
Richard
On Sep 28, 10:32 pm, Roar wr
I changed to your suggestion and I get an error it can't find the word
'description'
No matter what I try , I can put the word in quotes and it prints out
the appropiate times .
When I run ipython ev=db(db.events.person==db.person.id).select
('person','description')
then print ev I get the values
Only controller functions that are decorated with @auth.requires_...()
are restricted. All other should be viewable anonymously. What web
server are you using?
On Sep 28, 5:13 pm, Web2py-SuperFan wrote:
> Hi all,
>
> Ok so I dug through the manual and didn't figure yet how to allow
> pages to
Hi,
thanks for your answer, still haven't got it working
Here what I have done:
1. Domain is pointing to the web2py directory (where all the handlers
are inside) and I didn't move the cgi handler to another directory -
is this correct?
2. I renamed cgihandler.py to cgihandler.cgi
3. in the .htac
On Sep 28, 2009, at 2:53 PM, mr.freeze wrote:
>
> Can we just replace gluon.contrib.markdown2.py or were there other
> changes? Trying to avoid an upgrade on my live sites.
That seems to be the only change (well, and the version number).
>
> On Sep 28, 4:42 pm, Massimo Di Pierro wrote:
>> As y
Hi all,
Ok so I dug through the manual and didn't figure yet how to allow
pages to be viewed without loging in, when I also want to use the auth
capabilities for other parts of the site.
Ie I uncomment auth code in default.py. And then I want a search
engine to be able to hit my lists page and i
I'll second Thadeus on that. All shared hosting sucks, but Dreamhost
sucks less. This will give you an idea of how the setup for
passenger_wsgi would go:
http://www.web2pyslices.com/main/slices/take_slice/1
On Sep 28, 4:58 pm, Thadeus Burgess wrote:
> If you don't currently have your own hosti
If you don't currently have your own hosting, I would highly recommend
Dreamhost if your are just starting out with hosting.
Other hosts, such as webfaction, and mediatemple.net are good, but because
of the price, I wouldn't go with them until you know for sure thats what
your app needs.
Dreamhos
I've moved my App to GAE and I'm having real problems with this select
again. Is there a good way to do this on GAE? Do I just have to look
up each idnum in my list one at a time? I've tried that and it's just
terribly slow due to the number of lookups that have to be performed.
What's the pref
Can we just replace gluon.contrib.markdown2.py or were there other
changes? Trying to avoid an upgrade on my live sites.
On Sep 28, 4:42 pm, Massimo Di Pierro wrote:
> As you may know reddit.com was attacked recently. Today the explained
> what happened:
>
> http://blog.reddit.com/2009/09/we-h
>
As you may know reddit.com was attacked recently. Today the explained
what happened:
http://blog.reddit.com/2009/09/we-had-some-bugs-and-it-hurt-us.html
They had two problems, one in their code and one in the markdown code.
The latter is the same library we include in web2py/gluon/contrib/
Would this be the same for FastCGI? Simply rename and add a
handler?
I've been trying GAE and would really like to try out a shared host
with FastCGI instead. The GAE's lack of 'belongs in' type command is
killing me.
On Sep 28, 4:14 pm, Thadeus Burgess wrote:
> Quite easily actually, some too
Quite easily actually, some took me about 5 seconds on google.
http://httpd.apache.org/docs/1.3/howto/htaccess.html#cgi
Bascially, you either rename cgihandler.py with a .cgi extension, and/or
simlink it to a .cgi file.
Hope that helps, I would suggest maybe fastcgi if you have it?
I currently
Hi,
common guys, please give me some information. I bought the manual,
started to play around on the local server, but now I really have to
know how I set up web2py on a shared host with cgi only.
To which directory should the domain point?
Do I have to remove or modify the cgihandler.py file?
D
pepe_eloy
Dreamhost does offer reselling.
In their own knowledge base.
http://blog.dreamhosters.com/kbase/index.cgi?area=380
And their wiki describes how to do it
http://wiki.dreamhost.com/Reselling
-Thadeus
On Mon, Sep 28, 2009 at 1:00 PM, Yannick wrote:
>
> I'm using webfaction and so
errr, 3 changes:
> src="{{=URL(r=request,c='static',f='output/
> bootstrap.js')}}">
>
changed pygwt.js to bootstrap.js in the above line...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goog
I ended up having to make only two changes:
change the import line to:
from pyjamas.ui import KeyboardListener
modify the content and source attribute in views/default/todoApp.html
to include the output/ path, like:
Simple Todo Application
views Simple Todo Appl
For your info, I submitted two talk proposals about web2py at Pycon in
the hope that one will be accepted (I do not really want to give two
talks). Here are the two descriptions:
PROPOSAL 1: web2py, why you love it or hate it
When it comes to web framework there is a well defined minimal set of
no.
On Sep 28, 12:17 pm, Jose wrote:
> On 28 sep, 16:15, mdipierro wrote:
>
>
>
> > There are two issues:
> > 1) sharing database
> > 2) sharing the model
>
> > 1) definitively possible just make the two URIs point to the same
> > database
>
> > 2) also possible but really depends on the detail
I think you need to change this:
{{for events in events:}}
...
{{=description}}
...to this...:
{{for event in events:}}
...
{{=event.description}}
On Sep 28, 12:46 pm, jayvandal wrote:
> Hi again
> I can't understand why I can't(two can't) display a field in my
> project. When I run the contr
I'm using webfaction and so far never had any problem, the support is
great and fast ;)
Cheers,
On Sep 28, 11:24 am, pepe_eloy wrote:
> Guys your help is invaluable.
>
> I'm checking your options and dreamhosts seems a very good option, but
> doesn't has reseller program.
>
> Do you know about
Hello mate,
Just wonder, I was playing around and I tried to use Wing as IDE since
my current IDE Eclipse + Pydev have some limitation like
autocompletion etc... Anyway so I just wanted to test Wing 30 Trial
and see how good it can be...
So I follow the instructions on this page:
http://www.wing
On Sun, Sep 27, 2009 at 10:39 AM, Web2py-SuperFan wrote:
>
> Thanks for the replies everyone!
>
> Configuring the hardwired controller is what I think I would prefer to
> do. (Well said Yarko)
>
> I think every little bit helps with SEO. (Page names / folder names
> as well as the other fine set
Hi again
I can't understand why I can't(two can't) display a field in my
project. When I run the controller statements in ipython and I print
the results I can see the data in the description field. Yet in my
view code I get an error., description
Here is the code.
Any help is appreciated
On 28 sep, 16:15, mdipierro wrote:
> There are two issues:
> 1) sharing database
> 2) sharing the model
>
> 1) definitively possible just make the two URIs point to the same
> database
>
> 2) also possible but really depends on the detail.
>
> one way to do is to create a function in a module t
Ok, send me a patch when done.
On Sep 28, 10:51 am, Oleg wrote:
> It is FLASH solution, it has limitations for size of uploaded file
> and for customization.
>
> Anyway I have already done server part of upload statistic, it
> requires minimal injection in main.py.
> As front end, as example, I
There are two issues:
1) sharing database
2) sharing the model
1) definitively possible just make the two URIs point to the same
database
2) also possible but really depends on the detail.
one way to do is to create a function in a module that given a db,
defines the common tables. You can impo
It is FLASH solution, it has limitations for size of uploaded file
and for customization.
Anyway I have already done server part of upload statistic, it
requires minimal injection in main.py.
As front end, as example, I've choosen
http://t.wits.sg/2008/06/20/jquery-progress-bar-11/
In next days
Massimo and Kuba,
Thanks for helping me solve this problem.
Kind regards,
Annet
--~--~-~--~~~---~--~~
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
Guys your help is invaluable.
I'm checking your options and dreamhosts seems a very good option, but
doesn't has reseller program.
Do you know about a hosting supporting python that admit reselling?
Again, thanks for the help
Regards
Jose Eloy Torres
Mexico
--~--~-~--~~
Since I was unable to define which sections of my application that
should run through https in WebFaction. What I did was create a new
application with these parts. It is an application that handles all
the site content in a collaborative way and I want to be on https.
What I know, considering
oops. Somehow I did not read this. Uploading your fix to trunk now.
Please check it. Thanks
On Sep 28, 9:49 am, DenesL wrote:
> bump...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post t
bump...
--~--~-~--~~~---~--~~
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 this group, send email to
web2py+unsubscr...@googlegroups
what about this? http://pixeline.be/experiments/jqUploader/test.php
I have not tried it yet but it does not seem to require special server
features.
Massimo
On Sep 28, 8:14 am, stefan wrote:
> Hi Oleg,
>
> I'm currently looking for a way to display a progress indicator for
> file uploads. There
Hi Oleg,
I'm currently looking for a way to display a progress indicator for
file uploads. There seems to be no obvious way to implement this
within the web2py framework (without implementing the upload in a
separate cgi script or by some special purpose apache modules). So I'm
all for it and thi
Oops, right(), my mistake
;)
On Sep 28, 2009 3:11 PM, "mdipierro" wrote:
should be
(db.nieuws.publicatie_datum.month()=request.now.month)
because on the right side you have a value [no ()], on the left side
you have an expression [need ()].
.month() is not supported on GAE.
On Sep 28, 2:36
Some time ago Iceberg suggesting adding the following model for
logging:
Add following codes inside model/log.py:
def _init_log():
import logging
logger=logging.getLogger(request.application)
logger.setLevel(logging.DEBUG)
handler=logging.FileHandler("%s.log"%request.application)
should be
(db.nieuws.publicatie_datum.month()=request.now.month)
because on the right side you have a value [no ()], on the left side
you have an expression [need ()].
.month() is not supported on GAE.
On Sep 28, 2:36 am, annet wrote:
> In a function I have the following line of code:
>
> (d
I've added the following to the default.py controller:
import logging
LOG_FILENAME = '/tmp/log/log.txt'
logging.basicConfig(filename=LOG_FILENAME,level=logging.DEBUG,)
logging.debug('This message should go to the log file, but it does
not')
...but nothing is being logged. Any ideas?
--~--~
Hi
On 9月28日, 午後6:40, encompass wrote:
> Not sure if this one should be done unless you know what your doing.
> ---sudo apt-get dist-upgrade---
> If I did it, it would ruin everything I have done.
thanks for caution, Jason.
if you are customizing the packages installed from Ubuntu
repositories,
Hi.
You could try:
solution = db(db.solution.id.belongs((request.args[0], request.args[1],
request.args[2], request.args[3], etc...))).select()
belongs translates to IN in sql. It accepts a list of parameters to which the
field will be compared.
regards
mmlado
On Monday 28 September 2009 11:
Not sure if this one should be done unless you know what your doing.
---sudo apt-get dist-upgrade---
If I did it, it would ruin everything I have done.
Regards,
Jason Brower
On Sep 28, 3:44 am, suiato wrote:
> i run web2py on ubuntu 9.04.
>
> try
> sudo apt-get install python-tk
>
> i have li
I have this...
solution = db(db.solution.id == request.args[0]).select()
solution_solves = db((db.solution.id == db.solution_solves.solution) &
(db.issue.id == db.solution_solves.issue))
solved_issues = solution_solves(db.solution.id == solution
[0].id).select()
and I want to make it so that I ca
Hi, Annet
db.nieuws.publicatie_datum.month=request.now.month
db.nieuws.publicatie_datum.month==request.now.month
?
probably just your mistake in writing a post to web...@googlegroups..
--
Kuba
On Mon, Sep 28, 2009 at 9:36 AM, annet wrote:
>
> In a function I have the following line of co
In a function I have the following line of code:
(db.nieuws.publicatie_datum<=request.now)&
(db.nieuws.publicatie_datum>=minus_three_months(request.now)
... which works. Now I would like to only select this month's news
items, I thought changing the selection to read like:
(db.nieuws.publicati
75 matches
Mail list logo