[web2py:33286] Re: Trying to upload file through flex

2009-10-21 Thread Adi
Here's an update: The POST request when seen as text looks like this: cH2Ij5cH2ae0gL6Ef1ae0cH2KM7ae0 Content-Disposition: form-data; name="Filename" test video.flv cH2Ij5cH2ae0gL6Ef1ae0cH2KM7ae0 Content-Disposition: form-data; name="Filedata"; filename="test video.flv" C

[web2py:33287] Re: another plea for help

2009-10-21 Thread Beerc
It would be good, if authors can give names to her/his plugins freely. If she/he use her/his (short)name as prefix (and each author's short name is unique), append '_', append a thematic part (for example 'auth'), finally a version part, then each version of each plugins has a unique

[web2py:33288] Re: Komodo IDE web2py Setup

2009-10-21 Thread rondevu
Please share if anyone manages to write the code intel *.cix file. Thanks. Ranjeev On Oct 21, 6:49 am, Richard wrote: > Komodo is my main editor for web2py, so thanks for the tip. > I don't like putting that in all my files though... > Have asked how to do this properly on their > forum:http:

[web2py:33289] type cast?

2009-10-21 Thread annet
I have defined two tables: db.define_table('doelgroep', db.Field ('doelgroep',length=24,default='',notnull=True,unique=True), migrate=False) db.define_table('event', db.Field ('bedrijf',db.bedrijf,default='',notnull=True,ondelete='CASCADE'), ... db.Field('doelgroep',db.doel

[web2py:33290] Re: running from source on Vista requires pywin32

2009-10-21 Thread stefaan
Hello all, I guess my contribution was lost in the noise, but I have the same problem on windows xp. Installing pywin32 also solved the problem for me. pywin32 probably should be documented as explicit dependency for running web2py from source on windows platforms. Best regards, Stefaan. --~--

[web2py:33291] Re: Multilingual version of the Web2py wiki v 01.

2009-10-21 Thread Álvaro Justen [Turicas]
On Tue, Oct 20, 2009 at 19:23, Chris Steel wrote: > OK, > > That was kind of fun. Version one (and a mess of comments and  notes) are > available here -> > http://vishpala.com/resources/web2py/web2py-wiki/web2py-wiki-multilingual > > Feel free to copy, re-merge publish, comment etc. FYI please us

[web2py:33292] Re: web2py 1.68.1 is OUT

2009-10-21 Thread Álvaro Justen [Turicas]
We should mantain a page "versions" on the wiki with a link to each version information, talking about the changes. What do you think? Any volunteer? On Wed, Oct 21, 2009 at 04:30, mr.freeze wrote: > > Not very important but there is now DIV.elements to grab elements by > tag or attribute: > > t

[web2py:33293] drop box from query

2009-10-21 Thread annet
Since I adjusted a table definition the following code no longer works: eventtyperows=db(().\ select (db.event.eventtype,distinct=True,orderby=db.event.eventtype) eventtypelist=[k['eventtype']for k in eventtyperows] form=SQLFORM.factory(SQLField('eventtype',requires=IS_IN_SET (eventtypeli

[web2py:33294] Re: running from source on Vista requires pywin32

2009-10-21 Thread carlo
never had that problem on tens of win installations: which web2py version? I am going to test newer versions on fresh xp installations. carlo On 21 Ott, 11:15, stefaan wrote: > Hello all, > > I guess my contribution was lost in the noise, > but I have the same problem on windows xp. > > Install

[web2py:33295] Re: Doc link disapears with save...

2009-10-21 Thread mdipierro
where? can you say more about context? On Oct 21, 1:47 am, Jason Brower wrote: > I noticed that the [Doc] link vanishes after pressing the save button. > Minor, but my contribution. :) > Regards, > Jason --~--~-~--~~~---~--~~ You received this message because you

[web2py:33296] Re: Trying to upload file through flex

2009-10-21 Thread mdipierro
Try db.videodata.insert(flvcopy=db.videodata.flvcopy.store (request.vars.Filedata.file,'test1.flv')) On Oct 21, 2:13 am, Adi wrote: > Here's an update: > > The POST request when seen as text looks like this: > > cH2Ij5cH2ae0gL6Ef1ae0cH2KM7ae0 > Content-Disposition: form-data; name="

[web2py:33297] Re: web2py 1.68.1 is OUT

2009-10-21 Thread mdipierro
Once yarko proposes generate the pages automatically from README. I like the idea but I need to cleanup readme a bit first. Will try later today. On Oct 21, 4:26 am, Álvaro Justen [Turicas] wrote: > We should mantain a page "versions" on the wiki with a link to each > version information, talkin

[web2py:33298] Re: drop box from query

2009-10-21 Thread mdipierro
eventtyperows=db(db.event.eventtype==db.eventtype.id).\ select(db.event.eventtype,db.eventtype.eventtype,\ distinct=True,orderby=db.eventtype.eventtype) a=[e.event.eventtype for e in eventtyperows] b=[e.eventtype.eventtype for e in eventtyperows] form=SQLFORM.factory(SQLField('eventtype'

[web2py:33299] two bugs in 1.68.1

2009-10-21 Thread mdipierro
- routes is not loaded in GAE - no longer creates crontab folder if does not exist and this break some apps I will post 1.68.2 with a fix for these later today. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py

[web2py:33300] Re: running from source on Vista requires pywin32

2009-10-21 Thread Thadeus Burgess
Works fine on xp, this is a vista/windows 7 issue. I had the same problem on my windows 7 virtual machine, installing pywin32 fixed it, until windows update ran, then I had to reinstall pywin32 to fix, very annoying bug with windows. -Thadeus On Wed, Oct 21, 2009 at 8:03 AM, carlo wrote: >

[web2py:33301] Re: running from source on Vista requires pywin32

2009-10-21 Thread mdipierro
I think they call it a feature On Oct 21, 9:50 am, Thadeus Burgess wrote: > Works fine on xp, this is a vista/windows 7 issue. > > I had the same problem on my windows 7 virtual machine, installing pywin32 > fixed it, until windows update ran, then I had to reinstall pywin32 to fix, > very annoy

[web2py:33302] Re: two bugs in 1.68.1 -> 1.68.2 [FIXED]

2009-10-21 Thread mdipierro
Bugs below are fixed. I also added a crude changelog: http://www.web2py.com/examples/default/changelog On Oct 21, 8:33 am, mdipierro wrote: > - routes is not loaded in GAE > - no longer creates crontab folder if does not exist and this break > some apps > > I will post 1.68.2 with a fix for th

[web2py:33303] Re: running from source on Vista requires pywin32

2009-10-21 Thread Jason Brower
+1 to that feature. :P On Wed, 2009-10-21 at 08:00 -0700, mdipierro wrote: > I think they call it a feature > > On Oct 21, 9:50 am, Thadeus Burgess wrote: > > Works fine on xp, this is a vista/windows 7 issue. > > > > I had the same problem on my windows 7 virtual machine, installing pywin32 >

[web2py:33304] Pop-ups

2009-10-21 Thread Sophie
hi all, i want to have this in my web. I have a product this product have a category, so i want to insert my product, but the category doesnt exist. So i want a link to create the category, but i want to see this page in a pop-up window, and when i exit it refresh the product page so i can see the

[web2py:33305] Re: New widget on the web2pylices.com: OPTIONS_WITH_ADD_LINK

2009-10-21 Thread Renato-ES-Brazil
Someone was able to implement this by following the steps of web2pyslices.com? I want to make sure it is ok. :-) On 18 out, 21:29, mdipierro wrote: > I did not have time to look at this yet. Perhpas this widget, with > some minor changes, should be part of web2py, rather an a Plugin. > > Massim

[web2py:33306] plugin system again

2009-10-21 Thread mdipierro
The new web2py in trunk (1.68.2) also contains an improved experimental solution for plugins. Here is a new video about it http://www.vimeo.com/7182692 It includes suggestions from various people but I am sure it still needs a lot of work. Anyway, give it a try and let us know what else would yo

[web2py:33307] Re: Sessions lost when several servers running on diff ports

2009-10-21 Thread Alex Fanjul
Hi Massimo, through your thread comments It seems that you always refer to the "same application" in two instances of the same server, and coming back to the first Sergay problem, he refers to "two different" applications... maybe I'm wrong and Sergay wanted to say differente instances... otherw

[web2py:33308] Re: web2py 1.68.1 is OUT

2009-10-21 Thread Alex Fanjul
Any (updated) comparison with main databases involving Ingres? I couldnt find so much... alex f El 21/10/2009 5:49, cesmiga escribió: > Massimo, > > Excellent news about Ingres support in Web2Py. There is no other web > framework that supports as many databases that I know of. Just a > reminde

[web2py:33309] Re: Sessions lost when several servers running on diff ports

2009-10-21 Thread mdipierro
Well, if he is referring to two different applications, then they have two different cookies, different sessions, different databases, different auth_user tables. Although there are ways around this too. On Oct 21, 10:20 am, Alex Fanjul wrote: > Hi Massimo, > through your thread comments It see

[web2py:33310] Re: type cast?

2009-10-21 Thread Yarko Tymciurak
On Wed, Oct 21, 2009 at 3:51 AM, annet wrote: .. > executing this code results in a error tickets which reads like: > > ProgrammingError: operator does not exist: character varying = integer > LINE 1: ...event.van_datum>='2009-10-21') AND event.doelgroep=1) AND > ev...

[web2py:33311] Re: drop box from query

2009-10-21 Thread annet
Massimo, The drop box works. Thanks. 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 unsubscribe from this group, send ema

[web2py:33312] Re: Pop-ups

2009-10-21 Thread Renato-ES-Brazil
I think you want something like: http://groups.google.com/group/web2py/browse_thread/thread/4d68f54f1785b226 On 21 out, 13:17, Sophie wrote: > hi all, i want to have this in my web. I have a product this product > have a category, so i want to insert my product, but the category > doesnt exist.

[web2py:33313] Re: plugin system again

2009-10-21 Thread mr.freeze
I like how the plugin system is shaping up but have one question about the folder structure. It seems more manageable to structure it like this: applications -- my app models views controllers plugins -- myplugin models views controllers This wa

[web2py:33314] Re: plugin system again

2009-10-21 Thread Yarko Tymciurak
On Wed, Oct 21, 2009 at 11:16 AM, mr.freeze wrote: > > I like how the plugin system is shaping up but have one question about > the folder structure. It seems more manageable to structure it like > this: > > applications > -- my app > models > views > controllers > plugins > -

[web2py:33315] Re: type cast?

2009-10-21 Thread mdipierro
I miss some context here (where is the original post?). Anyway I do not think that is the problem. On Oct 21, 10:38 am, Yarko Tymciurak wrote: > On Wed, Oct 21, 2009 at 3:51 AM, annet wrote: > > .. > > > executing this code results in a error tickets which reads like: > > > ProgrammingError

[web2py:33316] Re: plugin system again

2009-10-21 Thread mdipierro
Physically plugins are not in the own folder because it would make web2py very clunky, it would have to search for plugins in the folder structure. Logically the are listed as separate. On Oct 21, 11:16 am, "mr.freeze" wrote: > I like how the plugin system is shaping up but have one question ab

[web2py:33317] Re: plugin system again

2009-10-21 Thread mdipierro
This is up to the developer. You can choose to store all plugins in one app and have other apps call them {{=LOAD(...,application='otherapp')}} The fact is that if you distribute or compile an app, all plugins should stay with it. Moreover it should be possible for two apps to use two different

[web2py:33318] Re: plugin system again

2009-10-21 Thread Renato-ES-Brazil
I think versioning is very important. On 21 out, 14:25, Yarko Tymciurak wrote: > On Wed, Oct 21, 2009 at 11:16 AM, mr.freeze wrote: > > > I like how the plugin system is shaping up but have one question about > > the folder structure. It seems more manageable to structure it like > > this: > >

[web2py:33319] Re: Creating A Button in Web2Py

2009-10-21 Thread waTR
I simply use javascript for a button. In my code, I put a on-click="javascript to open link to {{=URL()}}" On Oct 20, 9:59 pm, mdipierro wrote: > 3) URL builds the url to the action /app/controller/function, > request.application is the name of the current application so that the > link does

[web2py:33320] Re: more specific IS_INT_IN_RANGE / IS_FLOAT_IN_RANGE error message

2009-10-21 Thread Iceberg
It is a little bit surprising and happy to see these error_message draw enough attention. :-) So is it time to also consider my proposal more than one month before? http://groups.google.com/group/web2py/browse_frm/thread/8cbe658406be595f That way, we don't even have to adjust the default error

[web2py:33321] Re: more specific IS_INT_IN_RANGE / IS_FLOAT_IN_RANGE error message

2009-10-21 Thread mdipierro
Yes but. This is my I normally do: not_empty=IS_NOT_EMPTY(error_message=T('doh!')) db.table.field1.requires=not_empty db.table.field2.requires=not_empty so no problem with DRY. My objection in the thread was not on your idea in principle but on the fact that T does not exist until the app is

[web2py:33322] Re: web2py 1.68.1 is OUT

2009-10-21 Thread Alex Fanjul
I think this is important in deed, overall for design and user experience purposes... thanks for remind it, Alex F El 21/10/2009 8:30, mr.freeze escribió: > Not very important but there is now DIV.elements to grab elements by > tag or attribute: > > text = form.elements("input",_type="text") > f

[web2py:33323] Re: running from source on Vista requires pywin32

2009-10-21 Thread carlo
could anyone post some technical issues about that? What's the problem with Vista? Is that a python issue or web2py? I am sure no problem with win 2003 server. thank you carlo On 21 Ott, 17:16, Jason Brower wrote: > +1 to that feature. :P > > On Wed, 2009-10-21 at 08:00 -0700, mdipierro wrote:

[web2py:33324] Re: type cast?

2009-10-21 Thread Thadeus Burgess
LINE 1: ...event.van_datum>='2009-10-21') AND event.doelgroep=1) You have an assignment operator, not the equals operator. LINE 1: ...event.van_datum>='2009-10- 21') AND event.doelgroep==1) -Thadeus On Wed, Oct 21, 2009 at 11:37 AM, mdipierro wrote: > > I miss some context here (where is

[web2py:33325] Re: type cast?

2009-10-21 Thread mdipierro
it is not clear what the context is. I think that is SQL not DAL therefore it is correct. where is the original question? massimo On Oct 21, 12:36 pm, Thadeus Burgess wrote: > LINE 1: ...event.van_datum>='2009-10-21') AND event.doelgroep=1) > > You have an assignment operator, not the equals o

[web2py:33326] Re: plugin system again

2009-10-21 Thread Thadeus Burgess
We should create a web2py plugin package manager. Have a central database of plugins (and versions), and in the admin interface you can select a plugin that you want, and web2py will go download it and put it with the app (and alternatively keep it up to date through the admin interface) Also wit

[web2py:33327] Re: plugin system again

2009-10-21 Thread Yarko Tymciurak
On Wed, Oct 21, 2009 at 11:41 AM, mdipierro wrote: > > This is up to the developer. You can choose to store all plugins in > one app and have other apps call them > *sigh* > > {{=LOAD(...,application='otherapp')}} > > The fact is that if you distribute or compile an app, all plugins > should s

[web2py:33328] Re: more specific IS_INT_IN_RANGE / IS_FLOAT_IN_RANGE error message

2009-10-21 Thread Thadeus Burgess
T should not be embedded in validators, however, what about something similar to auth.settings, and the i18n fr-fr.py, but for the error messages? ERROR_MESSAGES = { "IS_NOT_EMPTY": "value cannot be empty", "IS_IN_DB": "value does not exist in db", } This could easily be overridden in a model ER

[web2py:33329] Re: type cast?

2009-10-21 Thread Thadeus Burgess
He is using DAL query Here is a copy of the original post. His question is the very last sentence =/ I have defined two tables: db.define_table('doelgroep', db.Field ('doelgroep',length=24,default='',notnull=True,unique=True), migrate=False) db.define_table('event', db.Field ('bedr

[web2py:33330] Re: plugin system again

2009-10-21 Thread Alex Fanjul
I think that the best cms "framework" for take a sight in it is Drupal and his great plugin system... It has core plugins and optional (downloadable plugins). Firefox is not comparable because all of them are "optional" type, you can not choose if you want to use gecko engine (for example) It w

[web2py:33331] Re: plugin system again

2009-10-21 Thread Yarko Tymciurak
On Wed, Oct 21, 2009 at 1:14 PM, Alex Fanjul wrote: > I think that the best cms "framework" for take a sight in it is Drupal > and his great plugin system... > It has core plugins and optional (downloadable plugins). Firefox is not > comparable because all of them are "optional" type, > I resp

[web2py:33332] adding ID and CLASS attributes

2009-10-21 Thread Ahmed Soliman
Hello everybody, When I create a FORM, I can easily pass whatever attributes that will appear in the generated HTML, like _id="hello" and this is pretty important for javascript manipulation. but what if I got the form out of a Crud or after creating the object with FORM. Something like, my_form

[web2py:33333] Re: plugin system again

2009-10-21 Thread mdipierro
Every time we discuss this we spend time on semantic issues and I would rather not enter into this discussion. What I want: 1) ability to built applications in a more modular fashion ({{=LOAD ()}} provides that) 2) ability to take a piece of an app out and reuse in another app (the "plugin_" pre

[web2py:33334] Re: adding ID and CLASS attributes

2009-10-21 Thread mdipierro
On Oct 21, 1:22 pm, Ahmed Soliman wrote: > Hello everybody, > When I create a FORM, I can easily pass whatever attributes that will appear > in the generated HTML, like _id="hello" and this is pretty important for > javascript manipulation. but what if I got the form out of a Crud or after > cr

[web2py:33335] Re: plugin system again

2009-10-21 Thread Yarko Tymciurak
On Wed, Oct 21, 2009 at 1:42 PM, mdipierro wrote: > > Every time we discuss this we spend time on semantic issues and I > would rather not enter into this discussion. > Semantics would be about different meanings for the same / similar terms; The problem here is not semantics, but fuzzy definit

[web2py:33336] Re: plugin system again

2009-10-21 Thread Thadeus Burgess
Here is what I would want. Download a plugin... Install it on my app... Define default variables for the plugin to use (things like the database, etc.. etc..) Expose it in my controllers, passing it optional parameters... Be happy. I volunteer to create and host web2py-plugincentral.com (or i

[web2py:33337] Global Application Variable Generated Once

2009-10-21 Thread Mark Larsen
Let's say I need to create a global variable once on application start-up. It would take a few CPU cycles to generate this variable so I wouldn't want to re-generate it on each request cycle. Is there a way to do this in web2py? Should I be using the cache? Thanks, Mark --~--~-~--~--

[web2py:33338] Re: plugin system again

2009-10-21 Thread Yarko Tymciurak
To put this in a more constructive path - take your list of 3 objectives (below), work out what KINDS OF THINGS they represent, and if anything already exists that does a similar thing IN THE WEB2PY / PYTHON context. Then look for similar kinds of things that are very close that this is like (tha

[web2py:33339] Re: plugin system again

2009-10-21 Thread Thadeus Burgess
Yarko, I agree, hacking is bad, hacking leads to unmaintainable code except by those who wrote it (if then). Hacking around a current system leads to low quality software in the end, hacking leads to either projects being abandoned by their users, or required rewrites which waste time. I dislike

[web2py:33340] Re: more specific IS_INT_IN_RANGE / IS_FLOAT_IN_RANGE error message

2009-10-21 Thread Jonathan Lundell
On Oct 21, 2009, at 10:03 AM, Iceberg wrote: > It is a little bit surprising and happy to see these error_message > draw enough attention. :-) So is it time to also consider my proposal > more than one month before? > http://groups.google.com/group/web2py/browse_frm/thread/8cbe658406be595f > >

[web2py:33341] Re: plugin system again

2009-10-21 Thread mdipierro
As far as I am concerned think there are the only rules we need to follow: 1) a naming convention: models/plugin_[name].py controllers/plugin_[name].py */plugin_[name]/* 2) models/plugin_[name].py can assume ONLY db, auth, crud, T 3) models/plugin_[name].py should define only one

[web2py:33342] Re: plugin system again

2009-10-21 Thread Yarko Tymciurak
On Wed, Oct 21, 2009 at 2:35 PM, Thadeus Burgess wrote: > Here is what I would want. > > Download a plugin... > > Install it on my app... > > Define default variables for the plugin to use (things like the database, > etc.. etc..) > if the plugin defines tables, or databases, and it is to be modu

[web2py:33343] Re: more specific IS_INT_IN_RANGE / IS_FLOAT_IN_RANGE error message

2009-10-21 Thread mdipierro
T() is always lazy by default. yet T is not instantiated until called. Hey got an idea work on it tonight. On Oct 21, 2:48 pm, Jonathan Lundell wrote: > On Oct 21, 2009, at 10:03 AM, Iceberg wrote: > > > It is a little bit surprising and happy to see these error_message > > draw enough a

[web2py:33344] Re: Global Application Variable Generated Once

2009-10-21 Thread mdipierro
myvar = cache.ram('myvar',lambda:f(),10**10) where f() is a function that returns the variable. On Oct 21, 2:43 pm, Mark Larsen wrote: > Let's say I need to create a global variable once on application > start-up.  It would take a few CPU cycles to generate this variable so > I wouldn't want to

[web2py:33345] Re: Global Application Variable Generated Once

2009-10-21 Thread Thadeus Burgess
Cache would be your best bet! Depending on the size, if you could fit it in ram that would be awesome, otherwise disk is still fairly fast. I know you can cache variables using web2py cache. def create_variable(): mydict = [1,2,3,4,5,...] return mydict *variable*=*cache*.ram('key',lambda

[web2py:33346] Re: Global Application Variable Generated Once

2009-10-21 Thread Kuba Kucharski
" If you really need a global variable you can do class ThreadSafe(dict): forever=10**10 def __init__(self): import thread self['lock']=thread.allocate_lock() def __setattr__(self,key,value): self['lock'].acquire() self[key]=value self['lock'].rele

[web2py:33347] Re: plugin system again

2009-10-21 Thread Yarko Tymciurak
On Wed, Oct 21, 2009 at 2:50 PM, mdipierro wrote: > > As far as I am concerned think there are the only rules we need to > follow: > > 1) a naming convention: > >models/plugin_[name].py >controllers/plugin_[name].py >*/plugin_[name]/* > This convention is spaghetti source - it is cra

[web2py:33348] Re: plugin system again

2009-10-21 Thread mdipierro
On Oct 21, 3:01 pm, Yarko Tymciurak wrote: > On Wed, Oct 21, 2009 at 2:50 PM, mdipierro wrote: > > > As far as I am concerned think there are the only rules we need to > > follow: > > > 1) a naming convention: > > >    models/plugin_[name].py > >    controllers/plugin_[name].py > >    */plugin_[

[web2py:33349] Re: plugin system again

2009-10-21 Thread mdipierro
On Oct 21, 2:46 pm, Thadeus Burgess wrote: > Yarko, > > I agree, hacking is bad, hacking leads to unmaintainable code except by > those who wrote it (if then). Hacking around a current system leads to low > quality software in the end, hacking leads to either projects being > abandoned by their u

[web2py:33350] Re: plugin system again

2009-10-21 Thread Yarko Tymciurak
On Wed, Oct 21, 2009 at 3:42 PM, mdipierro wrote: > > On Oct 21, 3:01 pm, Yarko Tymciurak > wrote: > > On Wed, Oct 21, 2009 at 2:50 PM, mdipierro > wrote: > > > > > As far as I am concerned think there are the only rules we need to > > > follow: > > > > > 1) a naming convention: > > > > >mo

[web2py:33351] Re: Pop-ups

2009-10-21 Thread Sophie
I try this, but it doesnt work. The error is "NameError: name 'OPTIONS_WITH_ADD_LINK' is not defined" But in the widgetAddLink.py I add db.Product.Category.widget=OPTIONS_WITH_ADD_LINK(T=T, r=request, c="Category") why cant it recognize the function? Sophie On Oct 21, 10:47 am, Renato-ES-Brazil

[web2py:33352] Re: plugin system again

2009-10-21 Thread Yarko Tymciurak
On Wed, Oct 21, 2009 at 3:52 PM, mdipierro wrote: > >> On Oct 21, 2:46 pm, Thadeus Burgess wrote: >> > Yarko, >> > >> > I agree, hacking is bad, hacking leads to unmaintainable code except by >> > those who wrote it (if then). Hacking around a current system leads to >> low >> > quality software

[web2py:33353] Re: plugin system again

2009-10-21 Thread mdipierro
I do not understand. Models, Views and Controller are files. You can encapsulate them in folders. How would you encapsulate them in classes? Let me put is another way. This discussion has kept a plugin implementation on hold for one year because I think any other implementation is going to be mor

[web2py:33354] A demostration of power: Basecamp Cloned In Drupal (in about 48 hours)

2009-10-21 Thread Peterle
Things are simpler to catch with a useful and interesting demostration. What can we do with web2py to reach this kind of evidence? Maybe the same thing than the guys at doitwithdrupal.com, maybe cloning another well-known application. www.doitwithdrupal.com/free-videos www.doitwithdrupal.com/200

[web2py:33355] Re: plugin system again

2009-10-21 Thread mdipierro
I want to add something to this. I envision many different types of plugins and combinations thereof: 1) some plugin may expose a controller action 2) some may expose more than one controller action 3) some will act on axisting db 4) some will have their own db 5) some will act on existing tables

[web2py:33356] Re: plugin system again

2009-10-21 Thread Yarko Tymciurak
On Wed, Oct 21, 2009 at 4:15 PM, mdipierro wrote: > > I do not understand. Models, Views and Controller are files. You can > encapsulate them in folders. How would you encapsulate them in > classes? > Models (data layer), controllers (engineering rules or business rules), and views (presentation

[web2py:33357] Re: plugin system again

2009-10-21 Thread Yarko Tymciurak
On Wed, Oct 21, 2009 at 4:32 PM, mdipierro wrote: > > I want to add something to this. I envision many different types of > plugins and combinations thereof: > > 1) some plugin may expose a controller action > Do you mean a plugin may contain a controller? > 2) some may expose more than one co

[web2py:33358] Re: plugin system again

2009-10-21 Thread Alex Fanjul
I'm learning a lot with this discussion/lessons, anyone more? :-D Alex F El 21/10/2009 23:32, Yarko Tymciurak escribió: > > > On Wed, Oct 21, 2009 at 4:15 PM, mdipierro > wrote: > > > I do not understand. Models, Views and Controller are files. You can > en

[web2py:33359] Re: plugin system again

2009-10-21 Thread mdipierro
We can go on and on. We need other people input on this. On Oct 21, 4:32 pm, Yarko Tymciurak wrote: > On Wed, Oct 21, 2009 at 4:15 PM, mdipierro wrote: > > > I do not understand. Models, Views and Controller are files. You can > > encapsulate them in folders. How would you encapsulate them in

[web2py:33360] Re: plugin system again

2009-10-21 Thread Yarko Tymciurak
On Wed, Oct 21, 2009 at 4:15 PM, mdipierro wrote: > > I do not understand. Models, Views and Controller are files. You can > encapsulate them in folders. How would you encapsulate them in > classes? > > Let me put is another way. > This discussion has kept a plugin implementation on hold for one

[web2py:33361] Re: plugin system again

2009-10-21 Thread Yarko Tymciurak
On Wed, Oct 21, 2009 at 4:45 PM, mdipierro wrote: > > We can go on and on. We need other people input on this. > Do you want input, or relief? Do this for me - take your list of 13 things, and apply a category - what kind of thing is it? on each, with the goal to get the 13 organized into no m

[web2py:33362] Autoretry Datastore Timeout Exceptions on GAE

2009-10-21 Thread Robin B
If you have been running an application on GAE in production, and you inspect your logs, you should have noticed spurious 'Datastore Timeout' exceptions resulting in HTTP 500 errors / tickets. These Timeouts are inherent to distributed systems like BigTable and can often be resolved by simply ret

[web2py:33363] Re: Pop-ups

2009-10-21 Thread Renato-ES-Brazil
Sorry Sophie. I found some bugs and I fixed them on web2pyslices.com. Changes: - The new step 2 was included. - The step 5 (now 6) was fixed. I tested all steps and worked properly. :-) Please, try again. On 21 out, 18:59, Sophie wrote: > I try this, but it doesnt work. The error is "NameErr

[web2py:33364] Re: plugin system again

2009-10-21 Thread Thadeus Burgess
I have been writing my own document, going through exactly what you are asking Yarko. Hopefully I can post it later tonight, depending if baseball gets canceled or not! -Thadeus On Wed, Oct 21, 2009 at 4:50 PM, Yarko Tymciurak < resultsinsoftw...@gmail.com> wrote: > On Wed, Oct 21, 2009 at 4

[web2py:33365] Re: plugin system again

2009-10-21 Thread mr.freeze
Man oh man! I've been at a SharePoint conference all day (hey, I have to make money!) so I'm still sifting through all of the discussion but I have another question: With the current implementation plugins would be limited to one view, one controller, one model, etc., because of the naming convent

[web2py:33366] Re: Autoretry Datastore Timeout Exceptions on GAE

2009-10-21 Thread mdipierro
Thank you Robin, no objection. Massimo On Oct 21, 5:05 pm, Robin B wrote: > If you have been running an application on GAE in production, and you > inspect your logs, you should have noticed spurious 'Datastore > Timeout' exceptions resulting in HTTP 500 errors / tickets.  These > Timeouts are

[web2py:33367] Re: plugin system again

2009-10-21 Thread mdipierro
Look forward to see this! On Oct 21, 5:19 pm, Thadeus Burgess wrote: > I have been writing my own document, going through exactly what you are > asking Yarko. > > Hopefully I can post it later tonight, depending if baseball gets canceled > or not! > > -Thadeus > > On Wed, Oct 21, 2009 at 4:50 PM

[web2py:33368] Re: plugin system again

2009-10-21 Thread mdipierro
On Oct 21, 4:41 pm, Yarko Tymciurak wrote: > On Wed, Oct 21, 2009 at 4:32 PM, mdipierro wrote: > > > I want to add something to this. I envision many different types of > > plugins and combinations thereof: > > > 1) some plugin may expose a controller action > > Do you mean a plugin may contain

[web2py:33369] Re: plugin system again

2009-10-21 Thread mr.freeze
Also, can you explain why it would be clunky (or point me to it if you already did)? Wouldn't it work exactly how web2py works now by finding all of the models/views/controllers in a given folder? On Oct 21, 6:08 pm, "mr.freeze" wrote: > Man oh man! I've been at a SharePoint conference all day (

[web2py:33370] Re: Multilingual version of the Web2py wiki

2009-10-21 Thread Joe Barnhart
It seems to me that a wiki will be the most challenging environment for multi-lingual ever. The problem? The content is provided by the USERS, and they probably won't generate content in all the languages you want to support! Encouraging multi-lingual use in a wiki is probably counter productive

[web2py:33371] pure python solution to convert well formed XHTML to PDF

2009-10-21 Thread Richard
hello, I am after a pure Python solution (for the GAE) to convert web pages to PDF. I had a look at reportlab (which was recommended in a previous thread), but the documentation focuses on generating PDFs from scratch, rather than converting from an existing webpage. (My user case is I want to l

[web2py:33372] Re: Autoretry Datastore Timeout Exceptions on GAE

2009-10-21 Thread Richard
sounds great! All my GAE web2py apps have low access rates so I haven't experienced these kind of problems. Have you faced other challenges? Richard On Oct 22, 9:05 am, Robin B wrote: > If you have been running an application on GAE in production, and you > inspect your logs, you should have n

[web2py:33373] Re: plugin system again

2009-10-21 Thread mdipierro
Yes you would be limited to one model file, one controller file but as many views as you have actions and as many modules and static files as you need. On Oct 21, 6:08 pm, "mr.freeze" wrote: > Man oh man! I've been at a SharePoint conference all day (hey, I have > to make money!) so I'm still si

[web2py:33374] Re: pure python solution to convert well formed XHTML to PDF

2009-10-21 Thread mdipierro
reportlab is pure python and it include platypus which has document creation API very similar to XML. You can write a mapper and I would be suprised if somebody has not already made one. On Oct 21, 7:11 pm, Richard wrote: > hello, > > I am after a pure Python solution (for the GAE) to convert we

[web2py:33375] OperationalError: Error creating function

2009-10-21 Thread Miles Davis
I've got a problem in the latest release of web2py, and I'm not quite sure what to check next. It happens with any app using sqllite (mysql works fine). I assume I'm missing some python dependency, but I've no idea what. Here is a trace from the bundled examples app: Traceback (most recent call l

[web2py:33376] Re: plugin system again

2009-10-21 Thread villas
@mr.freeze Here are some quotations from what Massimo has previously said (on 1 Oct) HTH - - having a plugin folder means web2py would have to look for models in multiple places. It could be mimicked in admin (the developers should not see the plugin_* files under the [design] page b

[web2py:33377] Re: pure python solution to convert well formed XHTML to PDF

2009-10-21 Thread villas
Just a simple non-python idea, which can easily be ignored if not helpful :-) If your users are downloading the PDF and saving them in an unstructured way, you could ask them to simply print to PDF and save it themselves. There are several free PDF printer drivers and we have used this easy sol

[web2py:33378] Re: Multilingual version of the Web2py wiki

2009-10-21 Thread villas
Multi-lingual content -- maybe Google Translate could be invoked in some clever way... On Oct 22, 1:07 am, Joe Barnhart wrote: > It seems to me that a wiki will be the most challenging environment for > multi-lingual ever.  The problem?  The content is provided by the USERS, and > they probably

[web2py:33379] Re: pure python solution to convert well formed XHTML to PDF

2009-10-21 Thread Richard
yeah I considered it, but it doesn't work with our situation. Thanks though. On Oct 22, 11:53 am, villas wrote: > Just a simple non-python idea,  which can easily be ignored if not > helpful  :-) > If your users are downloading the PDF and saving them in an > unstructured way,  you could ask th

[web2py:33380] Re: pure python solution to convert well formed XHTML to PDF

2009-10-21 Thread Richard
Is reportlab really pure Python? According to the installation documents it relies on freetype2 and PIL. Has anyone got it working on GAE? On Oct 22, 11:23 am, mdipierro wrote: > reportlab is pure python and it include platypus which has document > creation API very similar to XML. You can writ

[web2py:33381] Re: OperationalError: Error creating function

2009-10-21 Thread mdipierro
Something is wrong with the sqlite version you have. Which python version? which web2py version? On Oct 21, 6:45 pm, Miles Davis wrote: > I've got a problem in the latest release of web2py, and I'm not quite > sure what to check next. It happens with any app using sqllite (mysql > works fine). I

[web2py:33382] Re: pure python solution to convert well formed XHTML to PDF

2009-10-21 Thread mdipierro
It only relies on PIL you need to import images into documents. It has some optional c modules for speed buth works without those. On Oct 21, 8:42 pm, Richard wrote: > Is reportlab really pure Python? According to the installation > documents it relies on freetype2 and PIL. > Has anyone got it

[web2py:33383] OPTION selected problem

2009-10-21 Thread Avik Basu
Hello, I am a Web2Py newbie trying to use the OPTION helper to create a dropdown menu that will select the appropriate option. I expect that OPTION('candy', _value=1, value=1) should produce candy but it only produces candy Am I doing something wrong? Thanks. Avik --~--~-~--~

[web2py:33384] Re: OPTION selected problem

2009-10-21 Thread Thadeus Burgess
No, if you want that option selected pass it a attribute for selected. Anything with an underscore will get passed to the html as an attribute. So you could also go _style="..." OPTION('candy', _selected="selected", _value=1) should produce what you are looking for. However, when using SQLFORM th

[web2py:33385] Re: SQLFORM.factory conditional Field in form

2009-10-21 Thread ed
Hi Massimo, >         if(jQuery('#no_table_educ_updt').attr('checked')) > > perhaps this help? No, the code didn't help. I tried the code below posted in Scribd thinking that it works out of the box and tweaked a lot on it to solve the problem. I am quiet new to jQuery, googled and did reading o

  1   2   >