Re: [web2py] Re: Web2py Application Exhibition ( Version 2.0 )

2010-11-06 Thread Ramjee Ganti
Hi NetAdmin, That is fine. Is there any chance you can consider a list of non opensource apps, not competing for the prize but nevertheless can show some of the good stuff being built on web2py. Thanks, rAm i Think, i Wait, i Fast -- Siddhartha http://sodidi.ramjeeganti.com On Fri, Nov 5, 20

[web2py] Re: Interesting developments...

2010-11-06 Thread Luther Goh Lu Feng
On Nov 7, 5:55 am, Branko Vukelic wrote: > On Sat, Nov 6, 2010 at 10:41 PM, Anthony wrote: > > (well, perhaps web2py is implied in the "...") > > I gather most people are not aware web2py exists. It's too different: > > * Uses upper-case method names > * Has it's app manager and built-in editor

[web2py] Re: new admin layout

2010-11-06 Thread mdipierro
The problem is that demo_* must be carefully made not to allow users to edit files (they are demo and must look the same to all users). This would required a modified plugin_wiki. On Nov 6, 9:17 pm, Bruno Rocha wrote: > In addition, plugin_wiki or some other plugin can be included in to > demo_ap

[web2py] Re: new admin layout

2010-11-06 Thread mdipierro
good idea. On Nov 6, 9:15 pm, Bruno Rocha wrote: > what about including some doctests to demo_apps controllers? > > http://web2py.com/demo_admin/default/test/demo_app2/default.py > > This would be useful to illustrate the test functionality

[web2py] Re: Difference Between JSONRPC vs .JSON?

2010-11-06 Thread mdipierro
.json siply renders the returned dictionary as json jsonrpc is more like xmlrpc or soap. Both input and output follow a strict rpc protocol and uses json for encoding. Pyjamas uses jsonrpc. I do not know of other libraries that do. On Nov 6, 7:47 pm, Phyo Arkar wrote: > Hello all; > > I want to

[web2py] Re: multi-step or multi-page form

2010-11-06 Thread mdipierro
admin/controller/wizard.py uses session On Nov 6, 7:30 pm, gdot...@gmail.com wrote: > I have seen some of the other examples of 'wizard' style forms from > searching through this list, but they all seemed to be based around the > assumption of just building a single form (or multiple isolated form

Re: [web2py] Re: new admin layout

2010-11-06 Thread Bruno Rocha
This link: [shell] http://web2py.com/demo_admin/shell/index/demo_app2 does not work on demo_admin. So, I think it is better to hide it from demo_apps or popup a message "Disabled in demo mode" Some people could think it is a bug. (I am still trying to make the online shell to work as a try sandb

Re: [web2py] Re: new admin layout

2010-11-06 Thread Bruno Rocha
In addition, plugin_wiki or some other plugin can be included in to demo_apps to illustrate how plugin system works. 2010/11/7 Bruno Rocha > what about including some doctests to demo_apps controllers? > > http://web2py.com/demo_admin/default/test/demo_app2/default.py > > This would be useful to

[web2py] Re: RFC

2010-11-06 Thread Kevin
Systems get harder to learn when there are seemingly multiple ways to do things. It's not always clear that alternatives are really optional, or if different parameter conventions are needed in different situations. I had a little trouble learning parts of the DAL, for example, when it's not clea

Re: [web2py] Re: new admin layout

2010-11-06 Thread Bruno Rocha
what about including some doctests to demo_apps controllers? http://web2py.com/demo_admin/default/test/demo_app2/default.py This would be useful to illustrate the test functionality

[web2py] Difference Between JSONRPC vs .JSON?

2010-11-06 Thread Phyo Arkar
Hello all; I want to know what are the pro and cons of calling as JSON RPC or just function.json? what are the differences? I am going to run a long processing process in a function and let it write it's status into db , then check using ajax if its done or not to know the progress. Should i us

[web2py] multi-step or multi-page form

2010-11-06 Thread gdoteof
I have seen some of the other examples of 'wizard' style forms from searching through this list, but they all seemed to be based around the assumption of just building a single form (or multiple isolated forms) and not really carrying any state from one step to the next. I am trying to do some sor

Re: [web2py] Re: Multiple helper tags concatenated

2010-11-06 Thread Branko Vukelic
On Sun, Nov 7, 2010 at 12:56 AM, mdipierro wrote: > return TAG[''](TAG1(foo),TAG2(bar)) > > TAG[''] makes a virtual tag (no , only content). Thanks! -- Branko Vukelić bg.bra...@gmail.com stu...@brankovukelic.com Check out my blog: http://www.brankovukelic.com/ Check out my portfolio: http://w

[web2py] Re: Multiple helper tags concatenated

2010-11-06 Thread mdipierro
return TAG[''](TAG1(foo),TAG2(bar)) TAG[''] makes a virtual tag (no , only content). On Nov 6, 6:53 pm, Branko Vukelic wrote: > Is there a shorter way of doing: > >    return XML(str(TAG1(foo)) + str(TAG2(bar))) > > ? > > -- > Branko Vukelić > > bg.bra...@gmail.com > stu...@brankovukelic.com > >

Re: [web2py] Re: Interesting developments...

2010-11-06 Thread Branko Vukelic
On Sun, Nov 7, 2010 at 12:01 AM, Richard wrote: >> * Has a weird lead developer that implements just about any great idea > he picks up in the list :) > > hahaha You can't imagine how unfuny that can sound to some projects. :D I think they might cry if they saw the line. -- Branko Vukelić bg

[web2py] Multiple helper tags concatenated

2010-11-06 Thread Branko Vukelic
Is there a shorter way of doing: return XML(str(TAG1(foo)) + str(TAG2(bar))) ? -- Branko Vukelić bg.bra...@gmail.com stu...@brankovukelic.com Check out my blog: http://www.brankovukelic.com/ Check out my portfolio: http://www.flickr.com/photos/foxbunny/ Registered Linux user #438078 (http:

Re: [web2py] Re: Using DAL the web2py way

2010-11-06 Thread Bruno Rocha
LOL! I just said that Massimo would point a better for doing that! thats it! Totally forget my code! Tks Massimo (sometimes the easiest way passes far away from our eyes) 2010/11/6 mdipierro > > def articles(): > record=db.articles(request.args(0),main_tag=request.args(1)) > return dict(tit

Re: [web2py] Using DAL the web2py way

2010-11-06 Thread Bruno Rocha
> Hi, > > I am having trouble using DAL the web2py way. I am trying to create a > personal website so I can post articles. I have all my articles for > different subjects stored in a single table with a field "main_tag", > which tells the subject of the article. I will display them on the > webpage

Re: [web2py] Re: RFC

2010-11-06 Thread Branko Vukelic
On Sun, Nov 7, 2010 at 12:00 AM, Mariano Reingart wrote: > Indeed, for wizard I would prefer more explicit dropdown fields, that > would be more intuitive to begginers. I +1 this. It's not easy to guess what you can write in those fields for sure. -- Branko Vukelić bg.bra...@gmail.com stu...@b

[web2py] Re: Interesting developments...

2010-11-06 Thread Richard
no new features in the last 2 years - wow! > * Has a weird lead developer that implements just about any great idea he picks up in the list :) hahaha

Re: [web2py] Re: RFC

2010-11-06 Thread Mariano Reingart
I don't think it's a good idea to add that to web2py core because: * It introduces a new free-form table definition that we'll have to honor for backward compatibility forever * It breaks too much forward compatibility (forcing unknown version updates for new field "types" like wiki) * it could no

[web2py] Re: Countries as Python objects

2010-11-06 Thread Richard
very useful set of data - thanks for sharing On Nov 6, 8:05 am, puercoespin wrote: > sorry, i have a problem with links > > The correcthttp://www.geonames.org > > In download section there are a exhaustive list of regions, cities and > countries. > > On 5 Nov, 22:02, puercoespin wrote: > > >www

[web2py] Re: Using DAL the web2py way

2010-11-06 Thread mdipierro
def articles(): record=db.articles(request.args(0),main_tag=request.args(1)) return dict(title=record.title, body=record.body) I would like to point out your question as an example of how to post a proper question: - concise - shows the relevant part of the code, no more, no less - clearly

[web2py] Re: TAG colon problem

2010-11-06 Thread Francisco Costa
On Nov 5, 1:15 am, DenesL wrote: > sitemap=TAG.urlset(**{'_xmlns':'http://www.sitemaps.org/schemas/ > sitemap/0.9', '_xmlns:xsi':"http://www.w3.org/2001/XMLSchema- > instance"}) Tx!

[web2py] Using DAL the web2py way

2010-11-06 Thread Eduardo
Hi, I am having trouble using DAL the web2py way. I am trying to create a personal website so I can post articles. I have all my articles for different subjects stored in a single table with a field "main_tag", which tells the subject of the article. I will display them on the webpage in different

[web2py] Re: Interesting developments...

2010-11-06 Thread Kevin
Pylons is light enough that breaking compatibility isn't as much of an issue as you would think. Pylons was one framework in a line of abandoned frameworks, each of which was mostly about providing the glue between unrelated components. Therefore, at any given time, you can get away with never hav

Re: [web2py] Re: Step 6 of new app confusion

2010-11-06 Thread Branko Vukelic
Ooh, so much pressure! :D On Sat, Nov 6, 2010 at 11:39 PM, mdipierro wrote: > This should be fixed in trunk. release as soon as we have the latest > admin design. > > On Nov 6, 3:53 pm, mikech wrote: >> I see on a subsequent walkthru of the wizard that some clarification >> may be necessary. It

[web2py] Re: Step 6 of new app confusion

2010-11-06 Thread mdipierro
This should be fixed in trunk. release as soon as we have the latest admin design. On Nov 6, 3:53 pm, mikech wrote: > I see on a subsequent walkthru of the wizard that some clarification > may be necessary. It appears that step 6 repeats twice.  The first > time I'm presented with: > Generate Mod

[web2py] Bug(?): CRUD delete ignores record versioning

2010-11-06 Thread baloan
Hello, when using crud.delete(db.table, id) there is no insert to the corresponding db.table_archive. Regards, Andreas balo...@gmail.com

Re: [web2py] Re: Interesting developments...

2010-11-06 Thread Branko Vukelic
It's not a web application framework, though. I doubt it will survive web 3.0. On Sat, Nov 6, 2010 at 11:05 PM, Albert Abril wrote: > What about hyde? > https://github.com/blog/342-hyde-the-python-static-site-generator > "Hyde is a static website generator powered by Python & Django. Hyde > suppo

Re: [web2py] Re: Interesting developments...

2010-11-06 Thread Albert Abril
What about hyde? https://github.com/blog/342-hyde-the-python-static-site-generator "Hyde is a static website generator powered by Python & Django. Hyde supports all the Django template tags & filters and even has a few of its own.

Re: [web2py] Re: Interesting developments...

2010-11-06 Thread Branko Vukelic
On Sat, Nov 6, 2010 at 10:41 PM, Anthony wrote: > (well, perhaps web2py is implied in the "...") I gather most people are not aware web2py exists. It's too different: * Uses upper-case method names * Has it's app manager and built-in editor (two actually, and couting) * Migrates the db schema on

[web2py] Re: Interesting developments...

2010-11-06 Thread Anthony
> > On Nov 7, 3:31 am, Anthony wrote: > >>http://groups.google.com/group/pylons-discuss/browse_thread/thread/97... > > >>http://groups.google.com/group/turbogears/browse_frm/thread/47779d858... > > > And web2py continues to watch from the shadows ready to pounce (j/k) > > Being called #2 isn't par

Re: [web2py] Re: Interesting developments...

2010-11-06 Thread Branko Vukelic
On Sat, Nov 6, 2010 at 9:18 PM, Luther Goh Lu Feng wrote: > On Nov 7, 3:31 am, Anthony wrote: >> http://groups.google.com/group/pylons-discuss/browse_thread/thread/97... >> >> http://groups.google.com/group/turbogears/browse_frm/thread/47779d858... > > And web2py continues to watch from the shado

[web2py] Re: Confirm deletion of record

2010-11-06 Thread baloan
Hi, 1. when I try this I get a: "NameError: global name 'BUTTON' is not defined". 2. In addition I'd like to show the record that is to be deleted: form = crud.read(db.email, request.args(0)) form += FORM('Confirm delete', INPUT(_type='submit')) Is there a way to append to a form? Regards, And

[web2py] Re: Interesting developments...

2010-11-06 Thread Anthony
> I did not really look in detail to comment on the technical merits but > I do find their MV argument (Pyramid is not MVC but MV very > confusing). Yeah, they say, "The concepts of view and model are used by pyramid mostly as they would be by Django". So, I guess their V is more like our C (and a

[web2py] Re: Plugin_JqGrid long-polling

2010-11-06 Thread AsmanCom
Anyone? It´s only about passing the var with the URL THX

[web2py] Re: Step 6 of new app confusion

2010-11-06 Thread mikech
I see on a subsequent walkthru of the wizard that some clarification may be necessary. It appears that step 6 repeats twice. The first time I'm presented with: Generate Model: Generate Controller: Generate Views: Generate Menu: Apply Layout: Erase Database: Populate Database: and the submit butt

[web2py] Re: Interesting developments...

2010-11-06 Thread mdipierro
What can I say? They managed to break backward compatibility for 3 frameworks at once. Users will be pissed. I did not really look in detail to comment on the technical merits but I do find their MV argument (Pyramid is not MVC but MV very confusing). Massimo On Nov 6, 3:18 pm, Luther Goh Lu Fen

[web2py] Step 6 of new app confusion

2010-11-06 Thread mikech
The message for step six is: Info Almost done. Click on the button above to create your new app. Once done you will be able to edit it as any normal web2py app. But there are no buttons just links

Re: [web2py] Help with picture default

2010-11-06 Thread Branko Vukelic
On Sat, Nov 6, 2010 at 7:32 AM, CesarBustios wrote: > Hi, please in my database i have an 'upload' type Field and i want to > make some picture ('pic.jpg') the default picture when the form load, > how can i do that??? For something like an avatar, where user gets assigned a default one if none i

[web2py] Re: Interesting developments...

2010-11-06 Thread Luther Goh Lu Feng
On Nov 7, 3:31 am, Anthony wrote: > http://groups.google.com/group/pylons-discuss/browse_thread/thread/97... > > http://groups.google.com/group/turbogears/browse_frm/thread/47779d858... And web2py continues to watch from the shadows ready to pounce (j/k)

[web2py] Re: Reloading component refreshes youtube video.

2010-11-06 Thread Luther Goh Lu Feng
I got around this issue by doing a very ugly temp hack with the javascript function web2py_ajax_page The hack basically allows the response to use .after(), so that it gets inserted after the target, and not replace the target. If such functionality is required, I could attempt to write a batch wi

[web2py] Re: plugin.wiki.theme: error in book?

2010-11-06 Thread cjrh
On Nov 5, 8:27 pm, mdipierro wrote: > plugins = PluginManager > > should be > > plugins = PluginManager() Fixed in the book.

[web2py] Re: Revisiting i18n and similar thread-unsafe issues

2010-11-06 Thread Kevin
Correction: in all places where I used T.force = True, I meant T.lazy = False On Nov 6, 11:25 am, Kevin wrote: > I was designing a site today, and ran into some of the same > international date issues as other users, though I tried to do > something like: > > mydate.strftime(T('%B %d, %Y')) > > S

Re: [web2py] Re: SQLTABLE linkto

2010-11-06 Thread Jonathan Lundell
On Nov 6, 2010, at 12:27 PM, villas wrote: > > Hi Jonathan > I appreciate you are trying to help and explain -- and you did! Your > prompting inspired me to look at the source and there is the exact > solution I needed in the notes (see below). > I don't totally understand the mylink variables, b

[web2py] Interesting developments...

2010-11-06 Thread Anthony
http://groups.google.com/group/pylons-discuss/browse_thread/thread/97faa18a3429a28e http://groups.google.com/group/turbogears/browse_frm/thread/47779d8587721037

[web2py] Re: Revisiting i18n and similar thread-unsafe issues

2010-11-06 Thread Kevin
Ooh, great! That can be one of the harder parts coming into bells-and- whistles framework -- on the one hand the learning curve is very shallow, but on the other hand, you might start out reinventing a wheel that the framework already has. One of the most unique things about web2py is definitely

[web2py] Re: SQLTABLE linkto

2010-11-06 Thread villas
Hi Jonathan I appreciate you are trying to help and explain -- and you did! Your prompting inspired me to look at the source and there is the exact solution I needed in the notes (see below). I don't totally understand the mylink variables, but hey, I believe it works! Thanks! -D """ More adva

[web2py] Re: SQLTABLE linkto

2010-11-06 Thread mdipierro
Linkto is mostly for appadmin. Not sure it is necessary for anything else since we have represent. Massimo On Nov 6, 1:39 pm, Jonathan Lundell wrote: > On Nov 6, 2010, at 11:16 AM, villas wrote: > > > > > Hi Jonathan, > > > I still do not see why it is 'reasonable' to force a table name into > >

[web2py] Re: Revisiting i18n and similar thread-unsafe issues

2010-11-06 Thread mdipierro
You can do mydate.strftime(T('%B %d, %Y').xml()) On Nov 6, 12:25 pm, Kevin wrote: > I was designing a site today, and ran into some of the same > international date issues as other users, though I tried to do > something like: > > mydate.strftime(T('%B %d, %Y')) > > Suffice it to say, I quickly

[web2py] Re: Error ticket when deleting the last file in a plugin

2010-11-06 Thread Mr. Electronic
Hi I have now read chapter 13 and have learned a lot. It looks like it doesn't matter what the file is called. If you create a file that starts with plugin_ and after that deletes it. The system will then issue an error ticket. The file needs to be the only file in that plugin. If I press delete

Re: [web2py] Re: SQLTABLE linkto

2010-11-06 Thread Jonathan Lundell
On Nov 6, 2010, at 11:16 AM, villas wrote: > > Hi Jonathan, > > I still do not see why it is 'reasonable' to force a table name into > the linkto url, and then have to write a lamba function to override > it. After all, we have the URL helper which gives us all the > flexibility we need. If I

[web2py] Re: SQLTABLE linkto

2010-11-06 Thread villas
Hi Jonathan, I still do not see why it is 'reasonable' to force a table name into the linkto url, and then have to write a lamba function to override it. After all, we have the URL helper which gives us all the flexibility we need. If I want the table name, I can introduce that myself as an ar

[web2py] Revisiting i18n and similar thread-unsafe issues

2010-11-06 Thread Kevin
I was designing a site today, and ran into some of the same international date issues as other users, though I tried to do something like: mydate.strftime(T('%B %d, %Y')) Suffice it to say, I quickly found out about T.force. I do appreciate the reasons for doing lazy translations, though in any

[web2py] Re: Error ticket when deleting the last file in a plugin

2010-11-06 Thread mdipierro
With the proper names? Do you still have the error above? Make sure you read chapter 13 of the book. This is explained there. Massimo On Nov 6, 11:52 am, "Mr. Electronic" wrote: > Hi > > I was trying to learn how to use plugins, so the filename could be > totally wrong. It was just a small test

[web2py] Re: Error ticket when deleting the last file in a plugin

2010-11-06 Thread Mr. Electronic
Hi I was trying to learn how to use plugins, so the filename could be totally wrong. It was just a small test file not a real plugin. I have discovered that you can't use subfolders in controller and views. My later attempt was /controller/plugin_cart.py and /views/ plugin_cart/show.html Thanks

Re: [web2py] Re: SQLTABLE linkto

2010-11-06 Thread Jonathan Lundell
On Nov 6, 2010, at 6:02 AM, villas wrote: > > @Jonathan > Rather than experiment with a new lamba work-around for 'linkto', I > may as well avoid 'linkto' and use 'represents' which I already > know. > > My question was more to do with whether linkto behaves correctly and > flexibly to produce t

[web2py] Re: Help with picture default

2010-11-06 Thread mdipierro
My mistake... this is a little more complex than I thought because it depends on the workflow. There are two options: 1) if the user does not set an image you get a default one assuming : db.define_table('mytable', Field('picture','upload')) and assuming: form=crud.create(db.mytable) you can do:

[web2py] Re: Select most recent record from list

2010-11-06 Thread mdipierro
On some databases this may work: db(db.message).select(groupby=db.message.recipient| db.message.entity,orderby=~db.message.created) On Nov 6, 6:15 am, Ruiwen Chua wrote: > Hi all, > > I have a message table defined as such: > > db.define_table('message', >         Field('recipient', 'integer',

[web2py] Re: Reloading component refreshes youtube video.

2010-11-06 Thread mdipierro
Not with the current comments widget. We would have to rewrite it t prevent reloading of comments. On Nov 6, 6:13 am, Luther Goh Lu Feng wrote: > I have a component that lists comments. The component is reloaded at > fix intervals, and when the end user creates a new comment. > > I have made it p

[web2py] Re: new welcome app in trunk but minor problem...

2010-11-06 Thread mdipierro
Now I understand! I do not remember myself but I will check. Either way, your solution now makes sense. On Nov 6, 5:54 am, "Martin.Mulone" wrote: > I don't remember if menu always make a link, if this is not correct I > am wrong. The link I put with void, the action is to expand submenu. > Compar

[web2py] Re: Best practice: swapping between different layout.html files within a single application

2010-11-06 Thread mdipierro
I cannot think of an easy way to do it. On Nov 6, 3:52 am, toan75 wrote: > How can do for bytecode compile work in this case? > > On Oct 22, 3:03 am, mdipierro wrote: > > > Not sure this works. Does it? > > > {{extendvariable}} works as long as you do not bytecodecompile. > > > On Oct 21, 12:29 

[web2py] Re: customizating the headers of the result in crud.search

2010-11-06 Thread villas
IMO that is not 'wasting time', it is reporting a bug :) I am not so sure about the behaviour of 'linkto' (as discussed elsewhere), but I think there should definitely be a 'sanity check' for rows rather than a cryptic message about colnames. I wish I knew enough about SQLTABLE to suggest one.

[web2py] Plugin_JqGrid long-polling

2010-11-06 Thread AsmanCom
Hi, I need some help with plugin_jqgrid: What I basicaly want to do is steady refreshing the grid with on loadComplete .trigger("reloadGrid"), how can i pass the var server_time with the url:'%(callback)s' to the controllers/ plugin_jqgrid/data call? I need this var in the controller to return da

[web2py] Re: Help with picture default

2010-11-06 Thread CesarBustios
Oh no it's not working! =( On 6 nov, 08:39, CesarBustios wrote: > Thanks a lot Mr. Massimo you save my life :) I love web2py by the > way! > > On 6 nov, 02:41, mdipierro wrote: > > > > > This should do it. > > > db.define_table('mytable', Field('picture','upload')) > > > db.mytable.picture.

[web2py] Re: Help with picture default

2010-11-06 Thread CesarBustios
Thanks a lot Mr. Massimo you save my life :) I love web2py by the way! On 6 nov, 02:41, mdipierro wrote: > This should do it. > > db.define_table('mytable', Field('picture','upload')) > > db.mytable.picture.default=lambda:db.mytable.picture.store(open('path/ > pic.jpg','rb')) > > On Nov 6, 1

[web2py] Re: SQLTABLE linkto

2010-11-06 Thread villas
@Jonathan Rather than experiment with a new lamba work-around for 'linkto', I may as well avoid 'linkto' and use 'represents' which I already know. My question was more to do with whether linkto behaves correctly and flexibly to produce the urls required. From your review of the code, it seems th

Re: [web2py] Re: Language File is Reseted when Server is Reseted

2010-11-06 Thread Carlos Costa
I think It´s fine for now. At least it will be more clear to the developer until discover the cause. 2010/11/6 mdipierro : > yes but once and only once, when an upgrade corrupts a cache file. > > On Nov 5, 10:01 pm, Carlos Costa wrote: >> The ticket is good idea but it will pop to the user? >> >>

Re: [web2py] Select most recent record from list

2010-11-06 Thread Jason Brower
I personally would use it to your advantage. Loop over them and pick the last one, or the first ones, time stamp. That should give what you need timestamp wise. While your at it, you can count them too, and use that info too. BR, Jason On Sat, 2010-11-06 at 04:15 -0700, Ruiwen Chua wrote: > Hi

[web2py] Re: Select most recent record from list

2010-11-06 Thread Mr. Electronic
Hi I think that you should take a look at http://www.xaprb.com/blog/2006/12/07/how-to-select-the-firstleastmax-row-per-group-in-sql/ It looks like there are some sql examples for your problem Br. Mr. Electronic On 6 Nov., 12:15, Ruiwen Chua wrote: > Hi all, > > I have a message table defined a

[web2py] Select most recent record from list

2010-11-06 Thread Ruiwen Chua
Hi all, I have a message table defined as such: db.define_table('message', Field('recipient', 'integer', writable=False, required=True), Field('entity', 'string', length=256, required=True, notnull=True), Field('text', 'string', length=2048, required=True, notnull=True),

[web2py] Reloading component refreshes youtube video.

2010-11-06 Thread Luther Goh Lu Feng
I have a component that lists comments. The component is reloaded at fix intervals, and when the end user creates a new comment. I have made it possible for the user to embed youtube videos. The problem is: when the comments component is reloaded, the entire video gets refreshed as well. I would l

[web2py] Re: new welcome app in trunk but minor problem...

2010-11-06 Thread Martin.Mulone
I don't remember if menu always make a link, if this is not correct I am wrong. The link I put with void, the action is to expand submenu. Compare with an pc application, for example when you click "file", action executed is to display sub-menu: 'open','close','exit', there are no action 'file'. Th

[web2py] Error ticket when deleting the last file in a plugin

2010-11-06 Thread Mr. Electronic
Hi I tried to create a plugin and then delete the one file that was in the plugin. Then I recieves an error ticket shown below. I created a file with name plugin_init/default/index.html and then clicked on the init plugin in the bottom of the init screen, looked at the file and then deleted it.

[web2py] Re: Best practice: swapping between different layout.html files within a single application

2010-11-06 Thread toan75
How can do for bytecode compile work in this case? On Oct 22, 3:03 am, mdipierro wrote: > Not sure this works. Does it? > > {{extendvariable}} works as long as you do not bytecodecompile. > > On Oct 21, 12:29 pm, cjrh wrote: > > > > > > > > > On Oct 21, 5:17 pm, annet wrote: > > > > {{if user_x

[web2py] Re: Help with picture default

2010-11-06 Thread mdipierro
This should do it. db.define_table('mytable', Field('picture','upload')) db.mytable.picture.default=lambda:db.mytable.picture.store(open('path/ pic.jpg','rb')) On Nov 6, 1:32 am, CesarBustios wrote: > Hi, please in my database i have an 'upload' type Field and i want to > make some picture ('p

[web2py] Help with picture default

2010-11-06 Thread CesarBustios
Hi, please in my database i have an 'upload' type Field and i want to make some picture ('pic.jpg') the default picture when the form load, how can i do that??? I really hope you can help me out, Thank you!