[web2py:22806] Re: Is there a way to place apps in a separate directory from the "applications" directory?

2009-05-28 Thread Iceberg
On May28, 9:59am, Eddie Eyles wrote: > It seems to come down to web2py needing to have some new configuration > data that tells it where its data (i.e. its applications) are > installed.  It is not too difficult to imagine a configuration file > (living in the applications directory, perhaps) tha

[web2py:22807] Re: Foreign key notnull constraint

2009-05-28 Thread vihang
Thanks Annet for suitably describing my issue. The issue is that, I cannot have a default value in the column. I would prefer an error is raised if the value is not provided... Nevertheless I will try to use the default for now. @Massimo, At first I did add the NOT NULL later. But then i tried a

[web2py:22808] Re: Auto_complete widget.

2009-05-28 Thread Iceberg
On May28, 2:53pm, annet.verm...@gmail.com wrote: > Iceberg, > > Thanks for the hint. Adding requires=self.requires to the widget > solved the problem partially. The problem is now reduced to: > > when the user clicks the link the update_adress function is called: > > which displays an update/

[web2py:22809] Re: Is there a way to place apps in a separate directory from the "applications" directory?

2009-05-28 Thread Kuba Kucharski
What about doing only point "3." with "REPLACE ALL" option? It works, all your applications remain safe. Regards -- Kuba --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to thi

[web2py:22810] Re: Architecture question: can I use Web2py template engine to generate emails?

2009-05-28 Thread Carl
thanks, that's very good of you. I've implemented a zero-fat implementation to reproduce the behaviour and remove my app's details... In controllers\default.py I have: def example(): path=os.path.join(request.folder, 'views') context= dict(one="1", two="2") message= parse_template('

[web2py:22811] Re: Architecture question: can I use Web2py template engine to generate emails?

2009-05-28 Thread Carl
small typo: I'm calling app/default/example rather than app/example On May 28, 11:17 am, Carl wrote: > thanks, that's very good of you. > > I've implemented a zero-fat implementation to reproduce the behaviour > and remove my app's details... > > In controllers\default.py I have: > > def example

[web2py:22812] Re: Is there a way to place apps in a separate directory from the "applications" directory?

2009-05-28 Thread Iceberg
On May28, 6:06pm, Kuba Kucharski wrote: > What about doing only point "3." with "REPLACE ALL" option? It works, > all your applications remain safe. > > Regards > Kuba Sorry but did you mean web2py already has a "REPLACE ALL" app option? I didn't know that. Could you teach me more? --~--~-

[web2py:22813] Re: Is there a way to place apps in a separate directory from the "applications" directory?

2009-05-28 Thread Kuba Kucharski
Hi I ain't no teacher :) I ment 'replace all' when unzipping.. than you upgrade admin app and should be ok? On May 28, 2009 12:48 PM, "Iceberg" wrote: On May28, 6:06pm, Kuba Kucharski wrote: > What about doing only point "3... Sorry but did you mean web2py already has a "REPLACE ALL" app optio

[web2py:22814] Re: Is there a way to place apps in a separate directory from the "applications" directory?

2009-05-28 Thread Iceberg
Got your points now. :-) Sure an "unzip and replace all" would work in most cases, and as you mentioned, one more extra step is needed to upgrade the admin app (can be done by an "web2py.py -u yes" although it halts at the end). I can live with this approach. Yet I have to say, as a picky guy, I

[web2py:22815] Re: Possible bug with Oracle.

2009-05-28 Thread mdipierro
I am rewriting the DAL completely. 50% done. It will be addressed On May 27, 11:28 pm, Mariano Mara wrote: > 2009/5/28 SergeyPo > > > > > My vote for it too, I've reported this problem before. > > > Sergey > > Sorry I missed it: seems I didn't search enough. > > > > > On May 28, 8:13 am, Marian

[web2py:22816] Re: Foreign key notnull constraint

2009-05-28 Thread mdipierro
yes, for some backends, a default is necessary for notnull. On May 28, 3:40 am, vihang wrote: > Thanks Annet for suitably describing my issue. The issue is that, I > cannot have a default value in the column. I would prefer an error is > raised if the value is not provided... Nevertheless I will

[web2py:22817] Re: Architecture question: can I use Web2py template engine to generate emails?

2009-05-28 Thread mdipierro
I see the problem. There is something missing in my example. I will fix this and resend it tomorrow. Massimo On May 28, 5:18 am, Carl wrote: > small typo: I'm calling app/default/example rather than app/example > > On May 28, 11:17 am, Carl wrote: > > > thanks, that's very good of you. > > >

[web2py:22818] Re: Is there a way to place apps in a separate directory from the "applications" directory?

2009-05-28 Thread mdipierro
If you unzip new web2py over old web2py it DOES NOT interfere with apps nor routes. If you want to upgrade admin, wecome and examples you should run the new web2py once with web2py.pt --upgrade=yes Massimo On May 28, 7:27 am, Iceberg wrote: > Got your points now. :-) > > Sure an "unzip and rep

[web2py:22820] web2py and Debian

2009-05-28 Thread mdipierro
I am told that often being int the Debian software repositories is an indication that a project has hit the "mainstream". What do we do to get there? Can somebody help? Massimo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

[web2py:22819] Re: Architecture question: can I use Web2py template engine to generate emails?

2009-05-28 Thread Carl
thanks for your time Massimo. On May 28, 2:42 pm, mdipierro wrote: > I see the problem.  There is something missing in my example. I will > fix this and resend it tomorrow. > > Massimo > > On May 28, 5:18 am, Carl wrote: > > > > > small typo: I'm calling app/default/example rather than app/exam

[web2py:22821] Re: Architecture question: can I use Web2py template engine to generate emails?

2009-05-28 Thread mdipierro
Please try this: def example(): context= dict(one="1", two="2") message= response.render('default/example.html',context=context) print message return True On May 28, 8:47 am, Carl wrote: > thanks for your time Massimo. > > On May 28, 2:42 pm, mdipierro wrote: > > > I see the p

[web2py:22822] Re: Foreign key notnull constraint

2009-05-28 Thread annet . vermeer
Vihang, > I would prefer an error is raised if the value is not provided... Defining a validator IS_NOT_EMPTY() or IS_IN_DB(...) solves this problem. > I was wondering whether a default is essential with a notnull, since the > databases do > not really need the default. default='' doesn't hu

[web2py:22823] Re: Auto_complete widget.

2009-05-28 Thread annet . vermeer
Iceberg, >... you need to define _value=blah for your widget. Problem solved. > (PS: I am doing so right now, when I am refactoring my > first web2py app. Knowing widget well could shorten my app's code a > lot. :-P) I am still in the first iteration of the development cycle of my first web2p

[web2py:22824] Re: web2py and Debian

2009-05-28 Thread cesmiga
Massimo, This is a great idea. I use Debian exclusively and to have Web2Py in the repository does bring credibility to the project. Django was added to the Debian repository some time ago. ;-) Here is some information for anyone interested in becoming a Debian Package Maintainer for Web2Py.

[web2py:22825] Re: web2py and Debian

2009-05-28 Thread cesmiga
Massimo, I forgot to mention when a package is accepted into the Debian Software Repository, there are other benefits outside of the mainstream idea. Many other Linux distributions (ie. Ubuntu, Mepis, Knoppix, etc) use the Debian Software Repository to build their bundles. There are many benefi

[web2py:22826] Re: Auto_complete widget.

2009-05-28 Thread annet . vermeer
Iceberg, >... you need to define _value=blah for your widget. Could be a bit more specific about blah? This is how I call the update function on the crud object: form=crud.update(db.adres,request.args[0],next=(URL (r=request,f='crud_address'))) _value=str(form.vars.plaats) results in an er

[web2py:22827] Suggestion to widget

2009-05-28 Thread Iceberg
Hi Massimo, Please consider to change sqlhtml.py 's StringWidget to: class StringWidget(object): # I'll explain later @staticmethod def widget(field,value,**attributes): default_attributes=dict( _type='text', _id=id, _class=field.type,

[web2py:22828] Re: web2py and Debian

2009-05-28 Thread mdipierro
Want to be in charge of this? On May 28, 10:23 am, cesmiga wrote: > Massimo, > > I forgot to mention when a package is accepted into the Debian > Software Repository, there are other benefits outside of the > mainstream idea. Many other Linux distributions (ie. Ubuntu, Mepis, > Knoppix, etc) us

[web2py:22829] Re: web2py and Debian

2009-05-28 Thread cesmiga
Massimo, It sure would be fun. My heaping plate of commitments and responsibilities is spilling over right now. Let me think it over and I'll get back with you. Christopher mdipierro wrote: > Want to be in charge of this? > > On May 28, 10:23 am, cesmiga wrote: > > Massimo, > > > > I forgot

[web2py:22830] Re: Suggestion to widget

2009-05-28 Thread mdipierro
OK for subclassing object but there is already a way to change the size $(document).ready(function(){$(#table_field).attr('size',80):}); (I think this belongs to the view, not the widget, but if other people agree with you) and title db.table.field.label="My label" On May 28, 11:25 a

[web2py:22831] Re: Architecture question: can I use Web2py template engine to generate emails?

2009-05-28 Thread Carl
nearly there. I get this error: File "G:\My Documents\Carl\projects\workspace\project\applications \NineBirthdays/views/default/example.html", line 2, in NameError: name 'one' is not defined Carl On May 28, 3:22 pm, mdipierro wrote: > Please try this: > > def example(): >     context= dict(on

[web2py:22832] Re: web2py and Debian

2009-05-28 Thread AchipA
Christopher, are you a registered Debian developer ? I have packaged web2py for debian and Ubuntu but don't have a registered status so can't push them into official repositories. On May 28, 7:02 pm, cesmiga wrote: > Massimo, > > It sure would be fun. My heaping plate of commitments and > respon

[web2py:22833] mediawiki markup in web2py wiki?

2009-05-28 Thread Evgeny
Hello, does web2py wiki support mediawiki markup? would be great - MW is probably most widely used because of the popularity of wikipedia. I would gladly migrate to an engine written in python and would contribute some code with time. Best, Evgeny. --~--~-~--~~~---

[web2py:22834] Re: mediawiki markup in web2py wiki?

2009-05-28 Thread mdipierro
There was a long discussion about this and we settled on reST. Massimo On May 28, 1:46 pm, Evgeny wrote: > Hello, > > does web2py wiki support mediawiki markup? > > would be great - MW is probably most widely used because of the > popularity of wikipedia. > > I would gladly migrate to an engine

[web2py:22835] Re: Architecture question: can I use Web2py template engine to generate emails?

2009-05-28 Thread mdipierro
hmmm.. will look intot his tonight. On May 28, 1:21 pm, Carl wrote: > nearly there. > > I get this error: > File "G:\My Documents\Carl\projects\workspace\project\applications > \NineBirthdays/views/default/example.html", line 2, in > NameError: name 'one' is not defined > > Carl > > On May 28,

[web2py:22836] Re: web2py and Debian

2009-05-28 Thread cesmiga
AchipA, I'm not a registered Debian Developer and would have to go through the process. Would you be interested in this area? I have tinkered with creating a *.deb package, but never completed the task since the effort had no purpose other than just doing it. Christopher AchipA wrote: > Chr

[web2py:22837] web2py starting to influence ?

2009-05-28 Thread desfrenes
read this: http://twitter.com/hofmanndavid/statuses/1930919022 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe

[web2py:22838] Re: web2py starting to influence ?

2009-05-28 Thread mdipierro
good although I have a problem with the words "java" and "simple" cohexisting. anyway, good luck to him. On May 28, 3:00 pm, desfrenes wrote: > read this:http://twitter.com/hofmanndavid/statuses/1930919022 --~--~-~--~~~---~--~~ You received this message because yo

[web2py:22839] Re: mediawiki markup in web2py wiki?

2009-05-28 Thread Evgeny
i see. i think it might be a missed opportunity as such application could be very successful and would greatly popularize the platform. imagine having web2py wiki being able to import MW database automatically. lot's of people would give it a try as very many are frustrated by the clunkiness of

[web2py:22840] Re: mediawiki markup in web2py wiki?

2009-05-28 Thread mdipierro
It is actually very easy to change it (<10 lines of code I guess) and the source is public. perhaps next verion may have a configuration parameter On May 28, 3:23 pm, Evgeny wrote: > i see. i think it might be a missed opportunity as such application > could be very successful > and would great

[web2py:22841] sending info to form using URL

2009-05-28 Thread Dan
Hello web2py masters- I'm trying to get information into a form using URL parameters, but I can't understand why it's not working. For example, why doesn't this URL work to send the information in? http://www.web2py.com/examples/form_examples/form?admin=False&email=te...@test.com&name=test122&pr

[web2py:22842] Re: Spatial???

2009-05-28 Thread Fran
On May 28, 2:08 am, haftish21 wrote: > I know, what is removed is the full version of the manual which was > @:http://www.scribd.com/word/removal/15508739 > but the manual @:http://web2py.com/examples/default/docs > seems not complete, I'm using it though. U know, I want 2 dig it > all!!! I would

[web2py:22843] Re: web2py and Debian

2009-05-28 Thread Jurgis
> I have packaged > web2py for debian and Ubuntu but don't have a registered status so > can't push them into official repositories. would be cool, if one could download them from some universe place -- maybe web2py.com for the start? :) --~--~-~--~~~---~--~~ You

[web2py:22844] Re: web2py and Debian

2009-05-28 Thread Mariano Mara
2009/5/28 Jurgis > > > > I have packaged > > web2py for debian and Ubuntu but don't have a registered status so > > can't push them into official repositories. > > would be cool, if one could download them from some universe place -- > maybe web2py.com for the start? :) For a start, PPA can be

[web2py:22845] Re: Spatial???

2009-05-28 Thread Tim Michelsen
> Timmie is also developing a GIS app - am not sure how far he's got. So far I have only basic OpenLayers working... As you all guys like Google, see here a new data api: Google Maps Data API Announced at Where 2.0 http://geospatial.blogs.com/geospatial/2009/05/google-maps-data-api-announced-at-

[web2py:22846] Re: web2py and Debian

2009-05-28 Thread cesmiga
Jurgis, That is a great idea and it would be a quick solution. Ok! I don't mean to go over the deep end on this, but there are many things to consider here. What about YUM for RPM, MSI (Microsoft Installer) and OS-X packages. Regardless of the platform package management releases, I have been

[web2py:22847] Re: web2py starting to influence ?

2009-05-28 Thread desfrenes
java and simple... that would be jython, right ? ;-) On 28 mai, 22:09, mdipierro wrote: > good although I have a problem with the words "java" and "simple" > cohexisting. > anyway, good luck to him. > > On May 28, 3:00 pm, desfrenes wrote: > > > read this:http://twitter.com/hofmanndavid/statuse

[web2py:22848] Re: amf-rpc and Flex 3

2009-05-28 Thread roblund
It appears that this has not been answered yet, so I will bump it back to the top. I am interested in seeing any examples people have. Has anybody successfully implemented @service.amfrpc and used a mx:RemoteObject on the flex side? I was able to get @service.amfrpc working correctly with a NetCon

[web2py:22849] One question about version 1.63

2009-05-28 Thread weiertzw
download web2py version 1.63 i use it start server this information " Internal error Ticket issued: welcome/ 127.0.0.1.2009-05-29.08-11-39.d409f7b9-5226-42bc-abe2-12e64ad696d9 " --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

[web2py:22850] Re: pre-populated forms

2009-05-28 Thread Richard
hi Timmie, I'm also very interested in a simple way to use that pattern (either select from list or create new). Have you made any progress in the last few days? Richard On May 26, 6:33 pm, Timmie wrote: > > you can do > > > class OptionsWidget: > > >     @staticmethod > >     def has_options

[web2py:22851] Re: sending info to form using URL

2009-05-28 Thread mdipierro
Hi Dan, The information is passed from request.vars to form.vars only if the form processing it has INPUT fields receiving it. How does your form look like? Massimo On May 28, 4:05 pm, Dan wrote: > Hello web2py masters- > I'm trying to get information into a form using URL parameters, but I > c

[web2py:22852] Re: web2py and Debian

2009-05-28 Thread mdipierro
> Presently Web2Py so easy to install, even a Cave Man could do it? :-) I agree. This is for politics and public relations, not convenience. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" gr

[web2py:22853] another page selector /page navigator

2009-05-28 Thread Peter Etchells
Try this simple page selector for web2py --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send

[web2py:22854] Re: One question about version 1.63

2009-05-28 Thread mdipierro
hmmm... are you upgrading from a previous version? Did you edit the welcome app? What OS? Did you try click on the link? Massimo On May 28, 7:14 pm, weiertzw wrote: > download web2py version 1.63 > i use it start server > this information > " > Internal error > > Ticket issued: welcome/ > 127.0

[web2py:22855] Another page selector /page navigator

2009-05-28 Thread Peter Etchells
Try this page selector/paginator for web2py. Built as a function that can be called from web2py views. Also optionally shows percentages. Feedback welcomed. --~--~-~--~~~---~--~~ You received this message b

[web2py:22856] Re: web2py and Debian

2009-05-28 Thread Jason Brower
I have connections with a Debian Developer, a Gentoo Main Chairman, and an Ubuntu Member. Would you like me to contact them? Regards, Jason On Thu, 2009-05-28 at 18:43 -0700, mdipierro wrote: > > > Presently Web2Py so easy to install, even a Cave Man could do it? :-) > > I agree. This is for

[web2py:22857] Re: web2py and Debian

2009-05-28 Thread Jason Brower
Understandable, but if someone wants to do it, why not. :D We could have who ever is wanted to make, or has made, the deb post it to a ppa for ubuntu/debian. Regards, Jason On Thu, 2009-05-28 at 15:29 -0700, cesmiga wrote: > Jurgis, > > That is a great idea and it would be a quick solution. O

[web2py:22858] Re: mediawiki markup in web2py wiki?

2009-05-28 Thread Jason Brower
I would like to see that. Regards, Jason On Thu, 2009-05-28 at 14:00 -0700, mdipierro wrote: > It is actually very easy to change it (<10 lines of code I guess) and > the source is public. > perhaps next verion may have a configuration parameter > > > On May 28, 3:23 pm, Evgeny wrote: > > i s

[web2py:22859] Re: web2py and Debian

2009-05-28 Thread Alexey Nezhdanov
On Thursday 28 May 2009 17:48:30 mdipierro wrote: > I am told that often being int the Debian > software repositories is an indication that a project has hit the > "mainstream". > What do we do to get there? Can somebody help? I think I can help with some guidelines. 1) somebody should submit a R

[web2py:22860] Re: sending info to form using URL

2009-05-28 Thread Dan
On May 28, 6:41 pm, mdipierro wrote: > Hi Dan, > The information is passed from request.vars to form.vars only if the > form processing it has INPUT fields receiving it. How does your form > look like? This is my code defining the form: form=FORM(TABLE( TR("Type of Input:",SELECT

[web2py:22861] Re: pre-populated forms

2009-05-28 Thread JohnMc
Timmie, I see a workaround in ColdFusion that is the following: 1/ SELECT statement, INPUT statement and some Javascript. Javascript function hides the INPUT in an appropriately wrapped DIV. 2/ In the SELECT include 'Other' as part of your OPTION list. 3/ If 'Other' is selected then the DIV/INPU

[web2py:22862] Re: One question about version 1.63

2009-05-28 Thread plato
os is windows use source code and for windows click on the link is ok success but i think maybe some problem in version 1.63 On 5月29日, 上午9时45分, mdipierro wrote: > hmmm... are you upgrading from a previous version? Did you edit the > welcome app? What OS? > Did you try click on the link? > > Mass

[web2py:22863] Re: web2py and Debian

2009-05-28 Thread Álvaro Justen [Turicas]
On Thu, May 28, 2009 at 10:48 AM, mdipierro wrote: > > I am told that often being int the  Debian > software repositories is an indication that a project has hit the > "mainstream". > What do we do to get there? Can somebody help? I think this is a great idea (as I use exclusively Debian :-) and

[web2py:22864] how to send xml data to client

2009-05-28 Thread durga
i have xml data framed in my controller. now i would like to send it as response to client without using view. can someone please let me know how to do it. thanks durga --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[web2py:22865] Re: sending info to form using URL

2009-05-28 Thread mdipierro
The fields in your form are called "type", "name", "csvdata", "checkbox" Your url is passing vars "admin", "email" "name" and "profile" So only "name" may be copied from request.vars to form.vars Anyway it is not copied because: 1) the from requires "csvdata" to be NOT_EMPTY and you are not pa

[web2py:22866] Re: One question about version 1.63

2009-05-28 Thread mdipierro
Do you get an error report when you click on the error above? If so can you post it? Massimo On May 28, 11:16 pm, plato wrote: > os is windows > use source code and for windows > click on the link is ok success > but i think maybe some problem in version 1.63 > > On 5月29日, 上午9时45分, mdipierro w

[web2py:22867] Re: how to send xml data to client

2009-05-28 Thread mdipierro
Do you mean you want to return it as in def mycontroller(): xml="World" response.headers['Content-Type']='text/xml' return xml or do you want to email it def mycontroller(): from gluon.tools import Mail mail=Mail() mail.server='' mail.sender= mail.login='

[web2py:22868] BUILDING LINKS TO YOUR SITE...BUILDING LINKS TO YOUR SITE...BUILDING LINKS TO YOUR SITE...

2009-05-28 Thread Lara Zinn
BUILDING LINKS TO YOUR SITE...BUILDING LINKS TO YOUR SITE...BUILDING LINKS TO YOUR SITE... http://spamblock123.50webs.com/building-links-to-your-site.html http://spamblock123.50webs.com/building-links-to-your-site.html http://spamblock123.50webs.com/building-links-to-your-site.html @@@

[web2py:22869] Re: how to send xml data to client

2009-05-28 Thread durga moganty
first one. def mycontroller(): xml="World" response.headers['Content-Type']='text/xml' return xml i ll parse the xml data at client side. On Fri, May 29, 2009 at 11:15 AM, mdipierro wrote: > > Do you mean you want to return it as in > > def mycontroller(): >xml="World" >respon