[web2py:31851] Re: Web2py + Wing IDE + Mac Machine....

2009-09-28 Thread Jonathan Lundell
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

[web2py:31850] Re: selecting part of model to run

2009-09-28 Thread Iceberg
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

[web2py:31849] Re: Why can't I display description?

2009-09-28 Thread jayvandal
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

[web2py:31848] Re: ajax two DIV ids

2009-09-28 Thread mr.freeze
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

[web2py:31847] Re: Web2py + Wing IDE + Mac Machine....

2009-09-28 Thread Jonathan Lundell
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

[web2py:31846] Re: Web2py on Sharedhost

2009-09-28 Thread Thadeus Burgess
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

[web2py:31845] Re: ajax two DIV ids

2009-09-28 Thread mr.freeze
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

[web2py:31844] Re: Web2py on Sharedhost

2009-09-28 Thread Richard
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

[web2py:31843] Re: Web2py on Sharedhost

2009-09-28 Thread andreas
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

[web2py:31842] Re: Two SQLFORM on same page.

2009-09-28 Thread Thadeus
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

[web2py:31841] Re: Web2py on Sharedhost

2009-09-28 Thread Thadeus Burgess
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

[web2py:31840] Re: ajax two DIV ids

2009-09-28 Thread mr.freeze
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,

[web2py:31839] Re: ajax two DIV ids

2009-09-28 Thread mr.freeze
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

[web2py:31838] Re: Web2py on Sharedhost

2009-09-28 Thread andreas
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

[web2py:31837] ajax two DIV ids

2009-09-28 Thread weheh
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? --~--~-~--~~~---~--~---

[web2py:31836] Re: Web2py on Sharedhost

2009-09-28 Thread Thadeus Burgess
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

[web2py:31835] Re: Web2py on Sharedhost

2009-09-28 Thread Richard
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

[web2py:31834] Re: Why can't I display description?

2009-09-28 Thread mr.freeze
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. >

[web2py:31833] Re: Logging module

2009-09-28 Thread Thadeus Burgess
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

[web2py:31832] Web2py + Wing IDE + Mac Machine....

2009-09-28 Thread Yannick
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

[web2py:31831] selecting part of model to run

2009-09-28 Thread rb
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

[web2py:31830] web2py jsonrpc

2009-09-28 Thread Sceva
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(

[web2py:31829] Re: Web2py on Sharedhost

2009-09-28 Thread Thadeus Burgess
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

[web2py:31828] Re: Why can't I display description?

2009-09-28 Thread jayvandal
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

[web2py:31827] Re: vulnerability discovered and fixed in markdown

2009-09-28 Thread mdipierro
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

[web2py:31826] Re: auth and non-logged in pages

2009-09-28 Thread mr.freeze
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

[web2py:31825] Re: auth and non-logged in pages

2009-09-28 Thread Web2py-SuperFan
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

[web2py:31824] Re: Why can't I display description?

2009-09-28 Thread mr.freeze
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'

[web2py:31823] Re: Web2py on Sharedhost

2009-09-28 Thread Richard
> 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

[web2py:31822] Re: Web2py on Sharedhost

2009-09-28 Thread Richard
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

[web2py:31821] Re: Logging module

2009-09-28 Thread Richard
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

[web2py:31820] Re: Why can't I display description?

2009-09-28 Thread jayvandal
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

[web2py:31819] Re: auth and non-logged in pages

2009-09-28 Thread mr.freeze
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

[web2py:31818] Re: Web2py on Sharedhost

2009-09-28 Thread andreas
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

[web2py:31817] Re: vulnerability discovered and fixed in markdown

2009-09-28 Thread Jonathan Lundell
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

[web2py:31816] auth and non-logged in pages

2009-09-28 Thread Web2py-SuperFan
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

[web2py:31815] Re: Web2py on Sharedhost

2009-09-28 Thread mr.freeze
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

[web2py:31814] Re: Web2py on Sharedhost

2009-09-28 Thread Thadeus Burgess
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

[web2py:31813] Re: Database Select?

2009-09-28 Thread Chris S
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

[web2py:31812] Re: vulnerability discovered and fixed in markdown

2009-09-28 Thread mr.freeze
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

[web2py:31811] vulnerability discovered and fixed in markdown

2009-09-28 Thread Massimo Di Pierro
> 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/

[web2py:31810] Re: Web2py on Sharedhost

2009-09-28 Thread Chris S
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

[web2py:31809] Re: Web2py on Sharedhost

2009-09-28 Thread Thadeus Burgess
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

[web2py:31808] Re: Web2py on Sharedhost

2009-09-28 Thread andreas
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

[web2py:31807] Re: Recommended Web Hosting...

2009-09-28 Thread Thadeus Burgess
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

[web2py:31806] Re: pyjamas 0.6 [SOLVED]

2009-09-28 Thread Sceva
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

[web2py:31805] Re: pyjamas 0.6 [SOLVED]

2009-09-28 Thread Sceva
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

[web2py:31804] pycon 2010

2009-09-28 Thread mdipierro
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

[web2py:31803] Re: share the model

2009-09-28 Thread mdipierro
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

[web2py:31802] Re: Why can't I display description?

2009-09-28 Thread mr.freeze
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

[web2py:31801] Re: Recommended Web Hosting...

2009-09-28 Thread Yannick
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

[web2py:31800] Wing IDE and Web2py !

2009-09-28 Thread Yannick
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

[web2py:31799] Re: SEO for Default.py

2009-09-28 Thread Yarko Tymciurak
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

[web2py:31798] Why can't I display description?

2009-09-28 Thread jayvandal
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

[web2py:31797] Re: share the model

2009-09-28 Thread Jose
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

[web2py:31796] Re: file upload statistic

2009-09-28 Thread mdipierro
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

[web2py:31795] Re: share the model

2009-09-28 Thread mdipierro
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

[web2py:31794] Re: file upload statistic

2009-09-28 Thread Oleg
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

[web2py:31793] Re: request.now.month

2009-09-28 Thread annet
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

[web2py:31792] Re: Recommended Web Hosting...

2009-09-28 Thread pepe_eloy
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 --~--~-~--~~

[web2py:31791] share the model

2009-09-28 Thread Jose
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

[web2py:31790] Re: bad double conversion

2009-09-28 Thread mdipierro
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

[web2py:31789] Re: bad double conversion

2009-09-28 Thread DenesL
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

[web2py:31788] Re: file upload statistic

2009-09-28 Thread mdipierro
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

[web2py:31787] Re: file upload statistic

2009-09-28 Thread stefan
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

[web2py:31786] Re: request.now.month

2009-09-28 Thread Kuba Kucharski
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

[web2py:31785] Re: Logging module

2009-09-28 Thread mdipierro
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)

[web2py:31784] Re: request.now.month

2009-09-28 Thread mdipierro
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

[web2py:31783] Logging module

2009-09-28 Thread Roar
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? --~--~

[web2py:31782] Re: Ubuntu web2py

2009-09-28 Thread suiato
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,

[web2py:31781] Re: dynamic or queries...

2009-09-28 Thread Mladen Milankovic
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:

[web2py:31780] Re: Ubuntu web2py

2009-09-28 Thread encompass
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

[web2py:31779] dynamic or queries...

2009-09-28 Thread encompass
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

[web2py:31778] Re: request.now.month

2009-09-28 Thread Kuba Kucharski
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

[web2py:31777] request.now.month

2009-09-28 Thread annet
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