[web2py:37555] Re: possible ? WYSIWYG editor with integrated image upload

2009-12-18 Thread Darcy Clark
Jon - thanks for taking the time to putting together the notes on this. Looking forward to learning more about your CMS ! On Dec 19, 1:33 pm, Christopher Steel wrote: > tks, > > Looks great! > > C > > On Dec 18, 4:59 am, Jon Romero wrote: > > > 10 sorries for the late replies but I have A LO

[web2py:37554] Re: LOAD function anybody?

2009-12-18 Thread Yarko Tymciurak
On Dec 19, 12:22 am, Thadeus Burgess wrote: > This has been in place for a while now. It was part of the original plugin_ > schema, to load say "comments" easily. There is a screencast on vimeo about > this as well that explains LOAD, how it works, and its parameters. Ah - Thanks Thadeus - I lo

Re: [web2py:37553] Re: LOAD function anybody?

2009-12-18 Thread Thadeus Burgess
This has been in place for a while now. It was part of the original plugin_ schema, to load say "comments" easily. There is a screencast on vimeo about this as well that explains LOAD, how it works, and its parameters. -Thadeus On Fri, Dec 18, 2009 at 10:59 PM, Yarko Tymciurak < resultsinsoftw

[web2py:37552] Re: LOAD function anybody?

2009-12-18 Thread Yarko Tymciurak
... looks like something private you are working on (not in mercurial tree); Maybe, before you describe how one would use this, you can describe what it intends to do / what it is like (there is already a load environment in gluon, so "LOAD" in views might mean many things...): Can you descri

[web2py:37551] Re: possible ? WYSIWYG editor with integrated image upload

2009-12-18 Thread Christopher Steel
tks, Looks great! C On Dec 18, 4:59 am, Jon Romero wrote: > 10 sorries for the late replies but I have A LOT of work! > I will try to write NOW a tutorial and put it on a slice :D. > The CMS is almost done (and it rcks). I'll keep you informed! > > On Dec 8, 11:37 pm, Alex Fanjul wrote

[web2py:37550] LOAD function anybody?

2009-12-18 Thread mdipierro
http://www.web2py.com/AlterEgo/default/show/252 -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For

[web2py:37549] upload progress

2009-12-18 Thread Wes James
I downloaded: http://www.web2py.com/examples/static/web2py_src.zip then add pieces from: http://www.web2pyslices.com/main/slices/take_slice/10 and gave it a run and I get length: 0 uploaded : 0 Anyone gotten this to work? thx, -wes -- You received this message because you are subscribed to

[web2py:37548] Re: Control MIME type for static download

2009-12-18 Thread mr.freeze
@massimo - I am serving it from the static folder with web2py. I see that it was added to contenttype.py (although in the wrong place, w comes before x :) @jonathan - I added the entry to CONTENT_TYPE, restarted the app, cleared Firefox's cache and...money. Thanks! On Dec 18, 2:25 pm, mdipierro

[web2py:37547] semantic web2py

2009-12-18 Thread mdipierro
http://www.web2py.com/semantic We could use some testers. Massimo -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@g

[web2py:37546] Re: Control MIME type for static download

2009-12-18 Thread mdipierro
fixed now in trunk. On Dec 18, 1:52 pm, Jonathan Lundell wrote: > On Dec 18, 2009, at 11:48 AM, mdipierro wrote: > > > How is it served? via default/download or via static? Which web2py > > version? > > There's no w2p entry in CONTENT_TYPE. > > > > > On Dec 18, 1:24 pm, "mr.freeze" wrote: > >> W

Re: [web2py:37545] Control MIME type for static download

2009-12-18 Thread Jonathan Lundell
On Dec 18, 2009, at 11:24 AM, mr.freeze wrote: > When I host a .w2p file on Dreamhost, it tries to open in the browser > with Firefox, displaying garbled binary data on the screen. I have > tried this in my .htaccess file: > > > ForceType application/octet-stream > Header set Content-Dispositi

Re: [web2py:37544] Re: Control MIME type for static download

2009-12-18 Thread Jonathan Lundell
On Dec 18, 2009, at 11:48 AM, mdipierro wrote: > How is it served? via default/download or via static? Which web2py > version? There's no w2p entry in CONTENT_TYPE. > > On Dec 18, 1:24 pm, "mr.freeze" wrote: >> When I host a .w2p file on Dreamhost, it tries to open in the browser >> with Firef

[web2py:37543] Re: Control MIME type for static download

2009-12-18 Thread mdipierro
How is it served? via default/download or via static? Which web2py version? On Dec 18, 1:24 pm, "mr.freeze" wrote: > When I host a .w2p file on Dreamhost, it tries to open in the browser > with Firefox, displaying garbled binary data on the screen. I have > tried this in my .htaccess file: > > >

[web2py:37542] Re: Understanding the DAL

2009-12-18 Thread Jake
Thanks a lot Yarko. I downloaded ipython and watched one video. Very very cool. I think this will be very handy. As for WingIDE, i'm strictly open source. Not because I have principles, i'm just poor :) Jake On Dec 18, 11:56 am, Yarko Tymciurak wrote: > One more tip:  if you have iPython i

[web2py:37541] Control MIME type for static download

2009-12-18 Thread mr.freeze
When I host a .w2p file on Dreamhost, it tries to open in the browser with Firefox, displaying garbled binary data on the screen. I have tried this in my .htaccess file: ForceType application/octet-stream Header set Content-Disposition attachment ...and... AddType application/octet-stream

[web2py:37540] Re: SQLFORM, no-table, with fieldsets.

2009-12-18 Thread Yarko Tymciurak
On Dec 15, 6:09 pm, Thadeus Burgess wrote: > The real problem is the cohesion between Models and Views within the > "internal" aspects of web2py. SQLFORM is way too cohesive between > validation and rendering. I think the term that describes this is "coupling" - there is design coupling between v

[web2py:37539] Re: Recaptcha not working in Login

2009-12-18 Thread mdipierro
Thank you for bringing this up and sorry the typo. Massimo On Dec 18, 11:44 am, "hamdy.a.farag" wrote: > mdipierro , you were absolutely right , it worked for me coz I just > entered the right characters in recaptch and I was able to login , > although it would have been worked if I entered any

[web2py:37538] Re: Recaptcha not working in Login

2009-12-18 Thread hamdy.a.farag
mdipierro , you were absolutely right , it worked for me coz I just entered the right characters in recaptch and I was able to login , although it would have been worked if I entered any garbage characters as well since there's no validation actually on recaptcha sorry for not testing right in the

[web2py:37537] Re: Web-based shell problem in 1.74.3

2009-12-18 Thread Yarko Tymciurak
On Dec 18, 11:12 am, DenesL wrote: > > I am not saying it was hg's fault, it could have been the client or a > PIBKAC (problem is between the keyboard and chair), I just don't know > what went wrong or where. :-) > > > Unlikely... more likely a merge effect. > > > Denes:  did you use 'hg p

[web2py:37536] Re: Virtualfields to make a running total

2009-12-18 Thread villas
Hi Francoise Re: Currency. Yes, we also have a field to indicate currency for each transaction. But we only use EUR and GBP and we do not have any currency translation/revaluing processes. Re: Multi-Company. For transportability and auditing etc I could see the point of having separate DBs.

[web2py:37535] Re: Web-based shell problem in 1.74.3

2009-12-18 Thread mdipierro
No guess. No accusation. It was a question. What I meant it a clarification from Denes on whether by "Update glitch?" he meant "mercurial glitch?" or something else. Massimo On Dec 18, 11:01 am, Yarko Tymciurak wrote: > On Dec 18, 10:47 am, mdipierro wrote: > > > hg glitch? This would be very b

[web2py:37534] Re: Web-based shell problem in 1.74.3

2009-12-18 Thread DenesL
On Dec 18, 11:59 am, Yarko Tymciurak wrote: > On Dec 18, 10:47 am, mdipierro wrote: > > > hg glitch? This would be very bad. I am not saying it was hg's fault, it could have been the client or a PIBKAC (problem is between the keyboard and chair), I just don't know what went wrong or where. > > Un

Re: [web2py:37533] Re: Understanding the DAL

2009-12-18 Thread Wes James
Yarko, wing-ide 101 version is free. http://wingware.com/downloads/wingide-101 it lacks some features of the paid versions though. -wes On Fri, Dec 18, 2009 at 9:56 AM, Yarko Tymciurak wrote: > One more tip:  if you have iPython installed ( www.ipython.org ), then > the shell will launch in i

[web2py:37532] Re: Web-based shell problem in 1.74.3

2009-12-18 Thread Yarko Tymciurak
On Dec 18, 10:47 am, mdipierro wrote: > hg glitch? This would be very bad. given the lack of any data to suggest anything like this, that seems like a wild guess / wild accusation doesn't serve any useful purpose. Better to ask for specific data. -- You received this message because you a

[web2py:37531] Re: Web-based shell problem in 1.74.3

2009-12-18 Thread Yarko Tymciurak
On Dec 18, 10:47 am, mdipierro wrote: > hg glitch? This would be very bad. Unlikely... more likely a merge effect. Denes: did you use 'hg pull' or 'hg merge'? Suggest next time, a full clean repository clone in a separate space - then at least you'd have the difference between the trees to ins

[web2py:37530] Re: Understanding the DAL

2009-12-18 Thread Yarko Tymciurak
One more tip: if you have iPython installed ( www.ipython.org ), then the shell will launch in ipython. One thing this buys you (as you learn about web2py) is completion - TAB key. This can be really useful. I also use (a LOT) WingIDE... http://www.wingware.com/doc/howtos/web2py When you run

[web2py:37529] Re: Web-based shell problem in 1.74.3

2009-12-18 Thread mdipierro
hg glitch? This would be very bad. On Dec 18, 10:18 am, DenesL wrote: > After adding a print key statement in line 1269 I got no error. > After deleting sql.py and updating hg I can't reproduce the problem. > Update glitch?. -- You received this message because you are subscribed to the Google

[web2py:37528] Re: Web-based shell problem in 1.74.3

2009-12-18 Thread DenesL
After adding a print key statement in line 1269 I got no error. After deleting sql.py and updating hg I can't reproduce the problem. Update glitch?. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@

[web2py:37527] Re: Understanding the DAL

2009-12-18 Thread Jake
Thanks Denes, I actually tried this, which precipitated my first post on this group, which resulted in mdipierro telling me the web-based console didn't work with sqlite. I didn't think to drop to the shell and do it from there. Great tip. I've put quite a bit of time into the epydocs, and yes,

[web2py:37526] Re: web2py blog screencast

2009-12-18 Thread Jake
Great video Mengu. Very helpful! Not only did it show a many of the capabilities of web2py, but i learned some really handy Python idioms (such as List Comprehensions). Also, i really liked the fact that you showed the real process- thinking, trying, retrying, diving into the web2py source... ex

[web2py:37525] Re: tooltips on crud forms

2009-12-18 Thread Fran
On Dec 16, 4:49 pm, mdipierro wrote: > Yes, there is a jquery tooltips plugin/ I use ClueTip: http://plugins.learningjquery.com/cluetip/ If you want to see an example of it's integration, I call it like this: Copy script to /static/scripts In my case: http://trac.sahanapy.org/browser/static/scr

[web2py:37524] Re: Understanding the DAL

2009-12-18 Thread DenesL
In the first book there was an excelent diagram on page 133 about the relation between these objects, which unfortunately was missing from the second edition and would need to be updated anyway. -- You received this message because you are subscribed to the Google Groups "web2py-users" group.

[web2py:37523] Re: Web-based shell problem in 1.74.3

2009-12-18 Thread DenesL
Oops... (I wasn't typing the 'print' part) Same error here using 1.74.3 Works fine in 1.74.2 Looking into it... Denes -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe

[web2py:37522] Re: Web-based shell problem in 1.74.3

2009-12-18 Thread mdipierro
Actually it is correct print repr(db.instansie) would print: but print db.instansie is the same as print str(db.instansie) and prints only the table name. On Dec 18, 8:55 am, DenesL wrote: > Johann, > > print db > seems ok and shows instansie as one of the db tables but > > print db.instansie

[web2py:37521] Re: Web-based shell problem in 1.74.3

2009-12-18 Thread DenesL
Johann, print db seems ok and shows instansie as one of the db tables but print db.instansie is not ok, it should output maybe there is typo somewhere and db.instansie is being reassigned (=) instead of compared (==). Denes. -- You received this message because you are subscribed to the Goog

[web2py:37520] Re: web2py blog screencast (Re-Encoded)

2009-12-18 Thread Mengu
i have uploaded the application within this screencast to github. here you can see: http://github.com/mengu/web2py-screencast -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubs

[web2py:37519] Re: Understanding the DAL

2009-12-18 Thread mdipierro
Just adding my two cents since Denes explained it already. db=DAL(...) right now DAL is a function and it may return one of two database objects (SQLDB or GQLDB). In there future DAL will become a class and db will be an instance of the DAL class. This will not change the API. db() is the Set of

[web2py:37518] Re: Understanding the DAL

2009-12-18 Thread DenesL
Jake, one of the things that helped me when I started with web2py was running it in a shell from the command line and using python functions like dir on the web2py objects, as explained in chapter 4 in the book: web2py.py -M -P -S your-app-name epydocs (http://web2py.com/examples/static/epydoc/in

[web2py:37517] Re: Understanding the DAL

2009-12-18 Thread Jake
Thanks Mengu, it helps a lot. On Dec 18, 8:35 am, Mengu wrote: > Dear Jake > > the information goes between db() is the query. for example, > usersWithNameJake = (db.auth_user.first_name == "Jake") is a query > which you can use as db(usersWithNameJake). > > the select() method takes the table f

[web2py:37516] Re: Understanding the DAL

2009-12-18 Thread Mengu
Dear Jake the information goes between db() is the query. for example, usersWithNameJake = (db.auth_user.first_name == "Jake") is a query which you can use as db(usersWithNameJake). the select() method takes the table field arguments to select, like db (usersWithNameJake).select(db.auth_user.firs

[web2py:37515] Understanding the DAL

2009-12-18 Thread Jake
First, let me say that i'm 10 days into Python and Web2Py. I apologize if this is so rudimentary as to appear stupid. So there is no DAL class. DAL is a function, exported from the gluon.sql module, that returns a SQLDB object if not using GAE, so: db = DAL('foo') makes db an instance of SQL

[web2py:37514] Re: possible ? WYSIWYG editor with integrated image upload

2009-12-18 Thread Jon Romero
Updated the slice: http://www.web2pyslices.com/main/slices/take_slice/18 Enjoy! On Dec 8, 11:37 pm, Alex Fanjul wrote: > Woww!! it seems outstanding!!! with clear and bright design!! > Alex F > > El 08/12/2009 7:01, Darcy Clark escribi : > > > > > Jon, > > > Any chance you could put some notes

[web2py:37513] Re: possible ? WYSIWYG editor with integrated image upload

2009-12-18 Thread Jon Romero
10 sorries for the late replies but I have A LOT of work! I will try to write NOW a tutorial and put it on a slice :D. The CMS is almost done (and it rcks). I'll keep you informed! On Dec 8, 11:37 pm, Alex Fanjul wrote: > Woww!! it seems outstanding!!! with clear and bright design!! > A

[web2py:37512] Re: Using CKEditor for editing text fields (short tutorial) using widgets

2009-12-18 Thread Jon Romero
Oh, sorry guys for the 'quotes' woes :D On Nov 21, 9:50 am, David wrote: > Using the code select.  It's the box on the right hand side of the > code with an arrow. > > I am pasting the text into TextEdit for a test.  But it's the same as > I mentioned above. > It might be different on a PC or Lin

Re: [web2py:37511] unique=True unexpected behaviour.

2009-12-18 Thread Thadeus Burgess
Your requries says company must be in company.id and company cannot be in company.id Your custom error message is probably throwing you off, since company does not exist in company.id, it throws an error. You want.. db.paymentdata.company.requires = [IS_IN_DB(db, 'company.id', '%(companynam

Re: [web2py:37510] Re: Markdown problem

2009-12-18 Thread Johann Spies
2009/12/15 mdipierro : > XML(gluon.contrib.markdown.WIKI > (page.body,safe_mode=False),sanitize=True)}} > > should be > > XML(gluon.contrib.markdown.WIKI(page.body,safe_mode=False).xml > (),sanitize=True)}} > Thanks. Now the error message is gone. As a test the following kode: -

[web2py:37509] unique=True unexpected behaviour.

2009-12-18 Thread annet
I defined the following table: db.define_table('paymentdata', Field ('company',db.company,default='',notnull=True,ondelete='CASCADE',unique=True), Field('account',length=10,default='',notnull=True), Field('BIC',length=8,default='',notnull=True), Field('IBAN',length=34,default='',no