[TurboGears] Re: Documentation within the Toolbox

2006-06-13 Thread Ronald Jaramillo

Hej Eric,
Docudo will at some point be able to export documentation to  
different formats. Right now there is a partial implementation for  
exporting
the current TG documentation (the docs for 1.0- still named 0.9 in  
docudo)  as a zip file. You can do this from:
http://docs.turbogears.org/welcome
Internal links are broken in the exported pages and it lacks styling,  
but the table of contents and previous-next links work as they are  
suppose to.

Cheers.
Ronald

On Jun 13, 2006, at 7:14 PM, Eric Larson wrote:

 Has any one considered placing the current documentation within the  
 toolbox? I have been traveling a good deal lately and working on  
 projects in the plane. Without the documentation, it makes things  
 much harder. It would be very helpful if there was a snapshot of  
 the documentation in the toolbox.

 I am sure there are logistical issues with this such as larger  
 downloads and the like, but I think it would be worth it. Even if  
 it is slightly out of date or incomplete, it is better than nothing.

 Great Work!


 Eric

 


Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears group.
To post to this group, send email to turbogears@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~--~~~~--~~--~--~---



[TurboGears] Re: [europython] Off topic, but very important..

2006-06-07 Thread Ronald Jaramillo
Hi Rune,Sadly I won't be at EuroPython this year, but next time you visit Copenhagen, mail me,  and we can drink a beer or two  =)Cheers.RonaldOn Jun 7, 2006, at 6:14 PM, Rune Hansen wrote:On 7. jun. 2006, at 16.24, Sylvain Hellegouarch wrote: Come on people, socializing is equally as important as coding at avenue like this. I totally agree of course but I think you do not realise that going toGeneva is not something that easy. I am pretty sure people around herewould love to meet eachother as London meetups demonstrate usually. Thelocation is a barrier to me anyway.Yes, I do understand that. Getting from Oslo to Geneva is unfortunately also very expensive.  For me it is _the_ chance I've got too meet up with the python crowd so I'm rather psyched - sorry :)  The python community in Norway is best described by its USENET group which has received eight  post since January 1.(six if you don't count a spam message and a administrative message).I'd love to come to London for a meet up though, plane fares are much more reasonable in that direction./rune-Behind the firewall, nobody can hear you scream...  

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups TurboGears group.  To post to this group, send email to turbogears@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/turbogears  -~--~~~~--~~--~--~---


[TurboGears] Re: Search options: Are there any, should we be considering them?

2006-05-12 Thread Ronald Jaramillo

Hi Robin,
I have been trought pretty much the same evaluation trip (and share  
your findings).
I ended writting a basic database- base search dingie that works fine  
for small documents sets (  1k documents ).
For bigger sets, I'll rather install Tomcat + Lucene and expose  
Lucene trough XMLRPC using Jython.

You can get a sample TG app that excersize the indexer here:

http://www.checkandshare.com/TG_INDEX/indexer.zip

The README.txt inside the zip explains how to setup/run the demo.
I plan to write a tutorial explaining the approach, but time ain't my  
friend.

Cheers
Ronald


On May 12, 2006, at 2:00 PM, Robin Haswell wrote:


 Hey guys

 Let's face it, every application on the web these days need some  
 form of
 search, and as far as I can see, TG + SO/any ORM is going to make that
 tricky.

 So I was wondering, should we be thinking about a portable way of
 providing search for TG apps? Or at least, I think we should  
 provide an
 integration method for something which is quite easily obtainable, if
 not shipped with TG itself.

 I think we have at least two options:


 1. PyLucene (http://pylucene.osafoundation.org/)

 Pros
 

 * Stable, well-maintained project
 * Core engine used in a billion different things
 * Lots of packages

 Cons
 

 * Appears to be a Java hack
 * Stems from a Java project
 * Did I mention Java?
 * Looks a bit heavyweight


 2. XapWrap (http://divmod.org/projects/xapwrap)

 Pros
 

 * Looks quite simple to use
 * Very Pythonic
 * Under active development
 * Cool name

 Cons
 

 * Somewhat immature at the moment
 * Not full-featured (eg no stemming - do we care?)
 * Current documentation appears to consist of a few docstrings


 Personally I would prefer XapWrap, however I need a search engine  
 right
 now and for internal reasons I'm going to give PyLucene a spin. I'll
 report back what I think of it.

 Anyway that's my $0.02 - I hope we can have a good discussion about  
 this.

 -Rob

 


Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears group.
To post to this group, send email to turbogears@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~--~~~~--~~--~--~---



[tg-trunk] Scheduler blues

2006-05-09 Thread Ronald Jaramillo

Hi,
On a fresh quickstarted project, setting tg.scheduler = True on  
config/app.cfg yields the following traceback:

Unhandled exception in thread started by bound method Server._start  
of cherrypy._cpserver.Server object at 0x2d6970
Traceback (most recent call last):
   File /Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/ 
_cpserver.py, line 78, in _start
 Engine._start(self)
   File /Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/ 
_cpengine.py, line 108, in _start
 func()
   File /Users/ronald/Documents/PYTHON/TG_1.0/turbogears/ 
startup.py, line 225, in startTurboGears
 turbogears.scheduler._start_scheduler()
AttributeError: 'module' object has no attribute 'scheduler'


Tg-admin info on the same machine (which is kind of broken as well)  
tells the following:

TurboGears requires:

* TurboJson 0.9.2
* simplejson 1.3
* PyProtocols 1.0a0
* kid 0.9.1
* TurboCheetah 0.9.5
* ConfigObj 4.3.1
* TurboGears 0.9a6dev-r1437
* RuleDispatch 0.5a0
* Paste 0.3
* nose 0.8.4
* Cheetah 1.0
* PasteScript 0.5.1
* setuptools 0.6a11
* elementtree 1.2.6
* FormEncode 0.5.1
* SQLObject 0.7.1dev-r1457
* CherryPy 2.2.1
* cElementTree 1.0.5-20051216
* TurboKid 0.9.5
* PasteDeploy 0.3

TurboGears is required by:

Traceback (most recent call last):
   File /usr/local/bin/tg-admin, line 7, in ?
 sys.exit(
   File /Users/ronald/Documents/PYTHON/TG_1.0/turbogears/command/ 
base.py, line 275, in main
 command.run()
   File /Users/ronald/Documents/PYTHON/TG_1.0/turbogears/command/ 
info.py, line 22, in run
 for required in pkg_resources.require(item):
   File /Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/setuptools-0.6a11-py2.4.egg/ 
pkg_resources.py, line 585, in require
 needed = self.resolve(parse_requirements(requirements))
   File /Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/setuptools-0.6a11-py2.4.egg/ 
pkg_resources.py, line 483, in resolve
 raise DistributionNotFound(req)  # XXX put more info here
pkg_resources.DistributionNotFound: shedtest


Another issue I have, is that trying to update/insert records to a  
database from within a scheduled job, doesn't work with SQLite.
I get an error saying something about only one thread thread  
number allowed to access the db, you are thread number other thread  
number
Is there a  special way to do this , or should we add this  
restriction to the scheduler documentation.

Cheers
Ronald




Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears Trunk group.
To post to this group, send email to turbogears-trunk@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears-trunk
-~--~~~~--~~--~--~---



[tg-trunk] Re: widget browser needs paging

2006-05-09 Thread Ronald Jaramillo

What about changing the setup, so we only display one widget at a  
time in a content area and we have a permanent list of all widgets
to the left?
A bit like the way the wx demo app work. At some point we could even  
allow people to change the template/ and or parameters to the widget
directly through the browser and re-render/update the widget  
according to that.
Just a though.

Cheers.
Ronald

On May 9, 2006, at 1:04 PM, Alberto Valverde wrote:



 On 09/05/2006, at 12:59, Kevin Dangoor wrote:


 I tried adding the pagination decorator yesterday, which is when I
 sent the message about the parameters not making it through. I  
 think I
 need to take another look at that, because the widget browser (on my
 computer at least) takes long enough to bring up due to the tabber
 that Firefox pops up the unresponsive script box. Or maybe we  
 need a
 faster tabbing library...


 I've opened at ticket for this (#843). I've found out that the
 culprit is not the tabber library but the syntax highlighter as we
 now have tons of code textareas to highlight (template + source).

 If you remove the 'template' tab, for example, no warnings appear.

 Poor us mac users ;)

 Alberto

 


Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears Trunk group.
To post to this group, send email to turbogears-trunk@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears-trunk
-~--~~~~--~~--~--~---



[tg-trunk] Re: Scheduler blues

2006-05-09 Thread Ronald Jaramillo


On May 9, 2006, at 1:40 PM, Kevin Dangoor wrote:


 On 5/9/06, Ronald Jaramillo [EMAIL PROTECTED] wrote:
 On a fresh quickstarted project, setting tg.scheduler = True on
 config/app.cfg yields the following traceback:

 Unhandled exception in thread started by bound method Server._start
 of cherrypy._cpserver.Server object at 0x2d6970
 Traceback (most recent call last):
File /Library/Frameworks/Python.framework/Versions/2.4/lib/
 python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/
 _cpserver.py, line 78, in _start
  Engine._start(self)
File /Library/Frameworks/Python.framework/Versions/2.4/lib/
 python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/
 _cpengine.py, line 108, in _start
  func()
File /Users/ronald/Documents/PYTHON/TG_1.0/turbogears/
 startup.py, line 225, in startTurboGears
  turbogears.scheduler._start_scheduler()
 AttributeError: 'module' object has no attribute 'scheduler'

 scheduler was missing from __all__. I just realized that in my testing
 I hadn't actually run the scheduler from a webapp. oops.

 I just fixed this.

Perfect, thanks



 Tg-admin info on the same machine (which is kind of broken as well)
 tells the following:

 I just fixed tg-admin info and the Toolbox system info commands.

=)

 Another issue I have, is that trying to update/insert records to a
 database from within a scheduled job, doesn't work with SQLite.
 I get an error saying something about only one thread thread
 number allowed to access the db, you are thread number other thread
 number
 Is there a  special way to do this , or should we add this
 restriction to the scheduler documentation.

 We'll definitely need to be able to update the database. Can you open
 a ticket on this?

Done, http://trac.turbogears.org/turbogears/ticket/850
In the meantime I'm actually using urlopen to call the main thread  
from a scheduled task. Monkey-like but works ok.

Cheers
Ronald



 Kevin

 


Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears Trunk group.
To post to this group, send email to turbogears-trunk@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears-trunk
-~--~~~~--~~--~--~---



[TurboGears] Where to start the scheduler

2006-05-07 Thread Ronald Jaramillo

The new scheduler is surely a nice addition. Where is the recomended  
place to setup/start it?
The controllers Root __init__ method?
Is there any issue with it and autoreloading?
Cheers
Ronald


Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears group.
To post to this group, send email to turbogears@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~--~~~~--~~--~--~---



[TurboGears] Re: Where to start the scheduler

2006-05-07 Thread Ronald Jaramillo

Thanks, that's great.
Btw. there is a typo on the right column in the preview docs,  Get  
invloved should probably be 'Get involved'. I couldn't find the  
culprit template in my working directory.
Cheers.
Ronald

On May 7, 2006, at 6:42 PM, Kevin Dangoor wrote:


 On 5/7/06, Ronald Jaramillo [EMAIL PROTECTED] wrote:

 The new scheduler is surely a nice addition. Where is the recomended
 place to setup/start it?

 Set tg.scheduler = True in the [global] section of your config.

 http://www.turbogears.org/preview/docs/scheduler.html

 It will start up automaticallly when TG starts.

 You can configure jobs wherever it makes the most sense for you to do
 so. (You can even do it at the module level.)

 One thing I just thought of: the scheduler is pretty much assuming a
 multithreaded environment, rather than a multiprocess one.

 The controllers Root __init__ method?
 Is there any issue with it and autoreloading?

 There shouldn't really be an issue with autoreloading. The scheduler
 shouldn't start up in the master process, and it'll restart every
 time a reload occurs.

 Kevin

 


Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears group.
To post to this group, send email to turbogears@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~--~~~~--~~--~--~---



[tg-trunk] Re: i18n issues

2006-04-21 Thread Ronald Jaramillo

Hi Max,

On Apr 21, 2006, at 12:41 PM, Max Ischenko wrote:


 Hi,

 I'm trying to help Mark Ramm with i18n chapter for his book and  
 would like to discuss some i18n issues.

 1. I18N command dichotomy.

 In TurboGears we currently have two approaches to manage i18n data:  
 first, more popular, is admi18n and second, which I contributed,  
 via tg-admin i18n command.  I think it's beneficial to support  
 both approaches but at the moment they're not 100% compatible and  
 both could benefit from, er, cross-pollination and cross-promotion.

 May be admi18n maintainer could review command/i18n.py to find  
 problematic things and/or commonalities? I am willing to fix those.

I'm planning to use command/i18n.py to power admi18n but haven't have  
the time to give proper 'love' to this tool. Mantaining the two  
approaches is plain silly.


 I (finally!) wrote basic docs for my command-line i18n tool which  
 are in http://www.turbogears.org/svn/turbogears/trunk/newdocs/docs/ 
 admin.html. (I'm not sure that's the right place though and I  
 haven't merged that to trunk). Feedback is welcomed.

 2. Kid templates localization

 Does anyone actually use any of the currently available methods to  
 localize Kid templates' content? Which method do you use and how  
 well it performs?

I'm using the i18n filter for a custumer. But being an intranet  
setup, performance wasn't an issue


 3.  BUG: String collection fails on XML entities, like nbsp;

 If Kid files contains such entities both tools (toolbox and cmd- 
 line) chokes with:
 xml.parsers.expat.ExpatError: undefined entity nbsp;

Kid manage this by inlining/injecting a dtd for a large set of html  
entities.  We could do something akin

 Any idea how to fix this?

Cheers
Ronald


Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears Trunk group.
To post to this group, send email to turbogears-trunk@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears-trunk
-~--~~~~--~~--~--~---



[TurboGears] Re: catwalk problem in recent 0.9 versions (a2-a4, SVN 1160)

2006-04-19 Thread Ronald Jaramillo

Hi Mike,
Nothing like flattery to get me out of the bush =)
Can you please add the following line before the offending line 607  
on turbogears/toolbox/catwalk/__init__.py?:

print  turbogears.util.get_package_name()

And tell me what the yielded path is? It seams that os.path.join  
doesn't like what it gets.
Cheers
Ronald

On Apr 19, 2006, at 9:51 PM, Mike Sarahan wrote:


 Hello all,

 I recently upgraded to 0.9a4, and was sad to see catwalk kick the
 bucket on my installation.  It won't load, and posts the following
 output (at end of message).  Getting SVN didn't fix it.  I am
 admittedly not very good at bug hunts.

 This has been mentioned here:
 http://groups.google.com/group/turbogears/browse_thread/thread/ 
 9d291a2bf5e178ce/6a865b4c980b532f?lnk=raot#6a865b4c980b532f

 But it wasn't related to the other thread it was posted in, and I
 didn't want it to get passed over.

 Any ideas?  Catwalk is an amazingly helpful tool, thanks for all the
 great work on it, Ronald.

 -Mike

   File
 /home/.castor/mikez0r/download/trunk/turbogears/toolbox/catwalk/ 
 __init__
 .py, line 1123, in index
 return dict(models=self.models())
   File
 /home/.castor/mikez0r/download/trunk/turbogears/toolbox/catwalk/ 
 __init__
 .py, line 1106, in models
 return self.order_models(objs)
   File
 /home/.castor/mikez0r/download/trunk/turbogears/toolbox/catwalk/ 
 __init__
 .py, line 763, in order_models
 ordered = self.load_models_order()
   File
 /home/.castor/mikez0r/download/trunk/turbogears/toolbox/catwalk/ 
 __init__
 .py, line 759, in load_models_order
 state = self.load_state()
   File
 /home/.castor/mikez0r/download/trunk/turbogears/toolbox/catwalk/ 
 __init__
 .py, line 619, in load_state
 if not os.path.exists(self.state_path()): return {}
   File
 /home/.castor/mikez0r/download/trunk/turbogears/toolbox/catwalk/ 
 __init__
 .py, line 607, in state_path
 catwalk_session_dir =
 os.path.join(turbogears.util.get_package_name(),'catwa
 lk-session')
   File /home/mikez0r/lib/lib/python2.4/posixpath.py, line 62, in  
 join
 elif path == '' or path.endswith('/'):
 AttributeError: 'NoneType' object has no attribute 'endswith'


 


Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears group.
To post to this group, send email to turbogears@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~--~~~~--~~--~--~---



[TurboGears] TG Topics IV

2006-04-09 Thread Ronald Jaramillo


- TurboGears Topics -

This week we don't have a single tip, but a hole list of performance  
tips courtesy of Jorge Godoy:
http://tinyurl.com/htq22


Gasolin have done a great job refactoring the documentation for  
Identity Management.
Kevin will be moving this from the wiki to the official documentation
http://tinyurl.com/mraju


More documentation = ) Brian Beck have written a new (very good  
indeed) TurboGears tutorial
http://tinyurl.com/krufg


FastData is now part of TurboGears[exp], (exp for experimental).
This is a branch for packages not ready for prime-time or in state of  
flux.
http://tinyurl.com/oprfh


Remi announced the final release of CherryPy 2.2
http://tinyurl.com/qpfvb


April the 1. brought us TurboBOB a best of breed tool for TurboGear.
http://tinyurl.com/lofmq
TurboBOB among other things, is a god example of how you can use  
lightbox
(http://www.huddletogether.com/projects/lightbox/) in your TG app.  
(and a pony)


In a thread regarding lighttpd and scgi, Jonathan LaCour suggests  
using the
asyncore-based scgi/wsgi server that comes with Fast Track.
http://tinyurl.com/kvccy
http://cleverdevil.org/fasttrack
By the way, Jonathan will still gladly receive suggestions for a Fast  
Track logo
http://tinyurl.com/zlfca


If you weren't sure about attending EuroPython, this may help you  
make your mind:
Kevin will be giving this year's web track keynote.
Maybe his presence will yield a sprint day - or two?
http://www.europython.org/
http://tinyurl.com/ellg4


The Portuguese speaking community, not satisfied by sending a fellow  
in space have started a new TG group this week:
http://br.groups.yahoo.com/group/turbogears-pt/
http://tinyurl.com/m9keb


Still in the community activism front, Susan Potter created a frappr  
group for TG.
Sign-up at: http://www.frappr.com/turbogears


In a thread about widgets Kevin wrote that you can now quickstart a  
widget project
by running tg-admin quickstart -ttgwidget
http://tinyurl.com/ha8nz


Alberto Valverde announced an authorization layer for TurboGears  
based on PEAK Security.
http://tinyurl.com/qpbxe


Not contented with that,  Alberto allotted time to package a TinyMCE  
rich text editor into a widget. Kevin promptly blessed it as a stock  
widget.
http://tinyurl.com/h6q3o


If you need a grid widget with pagination and sorting check this post  
by Claudio Martinez
http://tinyurl.com/lg5r7



--
TurboGears website:
http://www.turbogears.org

TurboGears trac:
http://trac.turbogears.org

TurboGears Mailing list:
http://groups.google.com/group/turbogears

TurboGears trunk list
http://groups.google.com/group/turbogears-trunk

TurboGears announcements list:
http://groups.google.com/group/turbogears-announce

TurboGears en español:
http://groups.google.com/group/turbogears-es

TurboGears in Japanese:
http://groups.google.co.jp/group/turbogears-ja

TurboGears in Portugese:
http://br.groups.yahoo.com/group/turbogears-pt/

TurboGears planet:
http://planet.turbogears.org/

TurboGears in frappr:
http://www.frappr.com/turbogears



Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears group.
To post to this group, send email to turbogears@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~--~~~~--~~--~--~---



[TurboGears] Re: Announcing TurboBOB - best of breed tool for TurboGears

2006-04-05 Thread Ronald Jaramillo

Hi Jeff,
If that based on GrayBox (http://amix.dk/projects/?page_id=5)?
I've mailed with Amir and he allowed me to use it for CatWalk under  
an MIT license.
Cheers.
Ronald

On Apr 5, 2006, at 9:46 PM, Jeff Watkins wrote:


 Oddly enough, the next version of Identity uses a lightbox-esque
 login and registration script (really). Can we cram this into Bob  
 or is
 he getting too full?


 


Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears group.
To post to this group, send email to turbogears@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~--~~~~--~~--~--~---



[tg-trunk] Re: Summary of tg-trunk?

2006-04-01 Thread Ronald Jaramillo

Hi Jorge,
Currently I'm sending a weekly TG topics  mail to the announcements  
list and the regular TG list,
Base on your input I'll  try to add a 'What's going on in the trunk'   
and maybe a 'this week's low hanging tickets/ nits'.
The later could be a description of simple/self contained issues  
targeted at people who want to contribute to TG but don't have time  
to get fully involved.
Cheers
Ronald


On Apr 1, 2006, at 11:47 PM, Jorge Vargas wrote:

 I really want to help on TG development
 I have been trying to catch up but time just doesn't lets me
 Each time i can free some time to work on TG either I find a bug  
 (ie. sqlite + windows giving the transaction error) or use all my  
 time reading the Lists.
 Also each time i can get a topic on the trunk that may interest me,  
 it is either over or out of my undestanding to have an valid opinion
 Therefore I have decided that for now i'll unsubscribe to trunk so  
 i can use more of my time actually CODING on TG , and looking over  
 at the basic mailing list.

 Now is there someone here willing to post to turbogears main list a  
 little update each week or so of what is going up on the trunk?

 


Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears Trunk group.
To post to this group, send email to turbogears-trunk@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears-trunk
-~--~~~~--~~--~--~---



[TurboGears] Re: Documenting 0.9 features

2006-04-01 Thread Ronald Jaramillo
The beauty of well formed XHTML (as the current docs are due to Kid) is that you can automate (almost) any needed conversionCheers.RonaldOn Apr 1, 2006, at 11:37 PM, Jorge Vargas wrote:On 3/28/06, Kevin Dangoor [EMAIL PROTECTED] wrote:I'm also waiting on Docudo to be usable. Feel free. When Docudo is ready, the XHTML docs we have will be converted over.isn't that double work?  Kevin

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups TurboGears group.  To post to this group, send email to turbogears@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/turbogears  -~--~~~~--~~--~--~---


[TurboGears] Re: Announcing TurboBOB - best of breed tool for TurboGears

2006-04-01 Thread Ronald Jaramillo

I must admit that I was a bit sceptic to begin with, but now that we  
have an 80% enterprise system running after a one-line installation  
we are flabbergasted!
Just take a look at our initial test:
http://www.checkandshare.com/images/rocket_science.png

ps. joke aside a screencast showing how TurboBOB was packaged would  
be nice... and a pony

On Apr 1, 2006, at 11:21 PM, Kevin Dangoor wrote:


 On 4/1/06, Ronald Jaramillo [EMAIL PROTECTED] wrote:
 Our company is currently developing a sattelite monitored air traffic
 control system.
 Can TurboBOB  handle this or should we stick to plain CGI?

 I would imagine that TurboBOB would give you tremendous traction on
 this project. Try feeding it satellite and air%20traffic%20control
 and be amazed at the results you get!

 ps. does it scale?

 The current version of TurboBOB is limited to 5,000 queries per day
 per IP address. But that scales linearly upward as you install more
 machines in a BOB cluster.

 Kevin

 


Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears group.
To post to this group, send email to turbogears@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~--~~~~--~~--~--~---



[TurboGears] Re: Announcing TurboBOB - best of breed tool for TurboGears

2006-04-01 Thread Ronald Jaramillo


On Apr 2, 2006, at 12:30 AM, Kevin Dangoor wrote:


 On 4/1/06, Ronald Jaramillo [EMAIL PROTECTED] wrote:

 I must admit that I was a bit sceptic to begin with, but now that we
 have an 80% enterprise system running after a one-line installation
 we are flabbergasted!
 Just take a look at our initial test:
 http://www.checkandshare.com/images/rocket_science.png

 Hey, look at that! Someone actually installed TurboBOB (and it  
 worked! :)

Yep, and it also works as a time machine, try http://localhost:8080/ 
bob/kevin%20dangoor and you can see into the future =)

 ps. joke aside a screencast showing how TurboBOB was packaged would
 be nice... and a pony

 We'll be seeing more of the Tech of TurboBOB.

 Kevin

 


Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears group.
To post to this group, send email to turbogears@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~--~~~~--~~--~--~---



[TurboGears] TurboGears topics III

2006-03-31 Thread Ronald Jaramillo


--- TurboGears Topics ---

This installment's TG-TIP commes from Michele Cella:
You can append things to turbogears.view.variable_providers and access
them inside your template under the tg namespace:
turbogears.view.variable_providers.append(myfunc)
Inside your template:
tg.myfunc()


- TG 0.9a2 released 27.3.06
- The mailing  list has crossed the 1500 users mark
- Richard committed revision nr. 1000 03.23.06

Canis Lupus introduced his top-level exception-handling system called  
TraceKnack
http://tinyurl.com/l6nr7
http://www.wooji-juice.com/free/traceknack/


Jonathan LaCour announced Fast Track. A tool for project status tracking
http://tinyurl.com/pcsf4
http://cleverdevil.org/fasttrack


The first version of The CogBin is up. This is a catalog of  
TurboGears packages added to the Python Cheese Shop.
If you want your package to be showcased there you should add a set  
of TurboGears specific keywords to your project
and register it at the Cheese Shop.
http://www.turbogears.org/cogbin


Fumanchu aka. Robert Brewer has been working on HTTPREPL lately
and ask what it takes to have it in the cogbin.
Kevin is impressed and would like someone to upgrade/swap the  
existing TG shell with it. Any takers?
http://projects.amor.org/misc/wiki/HTTPREPL


A new Google group has been created for discussing all things TG in  
Japanese.
http://groups.google.co.jp/group/turbogears-ja


Mark Ramm has set up a Squidoo page for TurboGears
http://tinyurl.com/pmteq
http://www.squidoo.com/browse/show/turbogears


Ronald Jaramillo introduced some ideas for the future of CatWalk with  
a narrated screencast
http://www.checkandshare.com/blog/?p=41


TurboGears documentation has seen better days, the Docudo project was  
kick-started at PyCon in order
to address this issue.
Ronald blogs about the state of the project, and shows a movie clip  
of Docudo in action, in an attempt to
attract more people to the project .
http://www.checkandshare.com/blog/?p=42

Kevin pointed to a post by Titus about Supervisor, a tool you can use  
to ensure that your CP server is running and keeps running.
http://ivory.idyll.org/articles/basic-supervisor.html

Still in the deployment department, Pound can be use for more than  
proxy and load balancing, Lee McFadden recommend it as a simple SSL  
wrapper for CheeryPy.
http://tinyurl.com/zwg7b
http://www.apsis.ch/pound/


Brian Beck  plans to work on a drop-dead easy way to add search to  
your web-based applications.
http://blog.case.edu/bmb12/2006/03/ 
merquery_text_indexing_and_search_with_a_focus
http://blog.case.edu/bmb12/2006/03/more_on_merquery


--
TurboGears website:
http://www.turbogears.org

TurboGears trac:
http://trac.turbogears.org

TurboGears Mailing list:
http://groups.google.com/group/turbogears

TurboGears announcements list:
http://groups.google.com/group/turbogears-announce

TurboGears en español:
http://groups.google.com/group/turbogears-es

TurboGears in Japanese:
http://groups.google.co.jp/group/turbogears-ja

TurboGears trunk list
http://groups.google.com/group/turbogears-trunk

TurboGears planet:
http://planet.turbogears.org/


Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears group.
To post to this group, send email to turbogears@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~--~~~~--~~--~--~---



[TurboGears] Re: Updates to Identity (r1037)

2006-03-29 Thread Ronald Jaramillo
You can grab the six relevants files from trac and replace the ones in your TG installation - http://trac.turbogears.org/turbogears/changeset/1037CheersRonaldOn Mar 29, 2006, at 9:54 AM, Baruch Even wrote:On 3/29/06, Jeff Watkins [EMAIL PROTECTED] wrote: In addition to fixing #616 and #667, my recent commit to the identityframework addresses the flaws highlighted by Paul Boehm (regarding asecurity hole when forwarding in the login handler) and Baruch Even(not seeing a message for invalid credentials during a login attempt).  Looking at the diff it seems great.  I know 0.9a2 was done just two days ago, but when will the next source drop going to be? I guess I can use svn, but I'd rather avoid it if I can.  Baruch 

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups TurboGears group.  To post to this group, send email to turbogears@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/turbogears  -~--~~~~--~~--~--~---


[TurboGears] Re: Documenting 0.9 features

2006-03-28 Thread Ronald Jaramillo

Then probably you both missed the Docudo favicon as well =)

On Mar 28, 2006, at 1:21 PM, Kevin Dangoor wrote:


 On 3/28/06, Michele Cella [EMAIL PROTECTED] wrote:

 Hey great work Ronald!

 Ciao
 Michele

 PS
 The new under the hood logo looks great!

 Hey, I missed that. That does look good!

 Kevin




Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears group.
To post to this group, send email to turbogears@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~--~~~~--~~--~--~---



[TurboGears] Re: TG 0.9a2 Catwalk errors when trying to Manage Columns

2006-03-28 Thread Ronald Jaramillo

Thanks Warren - good catch, I just committed a fix (rev1036).
Cheers.
Ronald


On Mar 28, 2006, at 9:51 PM, wrb wrote:


 Howdy,

 Nice new interface for catwalk.  Here is a problem I encountered today
 while using the
 Manage Columns functionality.

 It works fine for single changes but I get the following errors when I
 tried to modify and save two or more of the action change the column
 to use as label action:


 Page handler: bound method Browse.save_columns of
 turbogears.toolbox.catwalk.browse.Browse object at 0x40a2b98c
 Traceback (most recent call last):
   File
 /usr/local/lib/python2.4/site-packages/CherryPy-2.2.0rc1-py2.4.egg/ 
 cherrypy/_cphttptools.py,
 line 99, in _run
 self.main()
   File
 /usr/local/lib/python2.4/site-packages/CherryPy-2.2.0rc1-py2.4.egg/ 
 cherrypy/_cphttptools.py,
 line 248, in main
 body = page_handler(*virtual_path, **self.params)
   File string, line 3, in save_columns
   File
 /usr/local/lib/python2.4/site-packages/TurboGears-0.9a2-py2.4.egg/ 
 turbogears/controllers.py,
 line 207, in expose
 output = database.run_with_transaction(expose._expose,func,  
 accept,
 allow_json, allow_json_from_config,*args, **kw)
   File
 /usr/local/lib/python2.4/site-packages/TurboGears-0.9a2-py2.4.egg/ 
 turbogears/database.py,
 line 216, in run_with_transaction
 retval = func(*args, **kw)
   File string, line 5, in _expose
   File
 /usr/local/lib/python2.4/site-packages/TurboGears-0.9a2-py2.4.egg/ 
 turbogears/controllers.py,
 line 228, in lambda
 expose._expose.when(rule)(lambda _func, accept, allow_json,
 allow_json_from_config,*args,**kw: _execute_func(
   File
 /usr/local/lib/python2.4/site-packages/TurboGears-0.9a2-py2.4.egg/ 
 turbogears/controllers.py,
 line 246, in _execute_func
 output = errorhandling.try_call(func, *args, **kw)
   File
 /usr/local/lib/python2.4/site-packages/TurboGears-0.9a2-py2.4.egg/ 
 turbogears/errorhandling.py,
 line 59, in try_call
 output = func(self, *args, **kw)
   File
 /usr/local/lib/python2.4/site-packages/TurboGears-0.9a2-py2.4.egg/ 
 turbogears/toolbox/catwalk/browse.py,
 line 44, in save_columns
 object,column_name = updated_fk_labels.split(':')
 ValueError: too many values to unpack

 I hope this helps.

 --- warren





Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears group.
To post to this group, send email to turbogears@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~--~~~~--~~--~--~---



[TurboGears] Re: Documenting 0.9 features

2006-03-27 Thread Ronald Jaramillo
Hi Jorge,I have just checked in a facelift. Some screendumps:http://www.checkandshare.com/docudo/UI/welcome.pnghttp://www.checkandshare.com/docudo/UI/page.pnghttp://www.checkandshare.com/docudo/UI/recent_changes.pnghttp://www.checkandshare.com/docudo/UI/title_index.pnghttp://www.checkandshare.com/docudo/UI/edit.pngI think we only need to set up identity before we can start eating our own dog food.Cheers.Ronaldps. sorry for xpostingOn Mar 28, 2006, at 2:07 AM, Jorge Vargas wrote:yea I'm holding up on writting many stuff into trac. first because of this, second the issues we had with it, third everytime i'm going to write something there its down j/k :panyway how is docudo? how long until it's usable? I have to be honest I have never go to that group. On 3/27/06, ajones [EMAIL PROTECTED] wrote: The current docs are stored in svn. You can browse them at:http://trac.turbogears.org/turbogears/browser/trunk/newdocsMy understanding is that sometime in the future documentation will be handle through a new system called Docudo[1]. It is supposed to begeared towards this kind of thing. No idea when it will make anappearance though.[1] http://groups.google.com/group/docudo 

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups TurboGears group.  To post to this group, send email to turbogears@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/turbogears  -~--~~~~--~~--~--~---


[TurboGears] Re: Scaffolding?

2006-03-24 Thread Ronald Jaramillo

Hi Elver,

On Mar 24, 2006, at 11:49 AM, Elver Loho wrote:


 Any ideas on when all this magic will be available?

Well, this is still on the draft board, the idea right now is to  
start fleshing thinks out and get people excited - some
my even want to join the development ;)

 TurboGears is an awesome, refreshing break from PHP and it's got a lot
 of great ideas, but when I use 0.8 or 0.9, it feels like there's stuff
 missing. (Well, it's not 1.0, so that's to be expected.)

Stuff like? Comparing to PHP?


 Anyhow, can anyone point me in the direction of making Catwalk in 0.9
 accessible to everyone via password authentication? I'd like to set up
 a small website with several administrators. Catwalk works just fine
 for the admin side on the current prototype and I don't see any point
 in duplicating its behaviour. That'd just be a case of not invented
 here syndrome.

Check this discussion:
http://tinyurl.com/rems9

Cheers.
Ronald




 Elver

 On 3/24/06, Michele Cella [EMAIL PROTECTED] wrote:

 Kevin Dangoor wrote:

 DataController will either become more useful or be replaced...

 My thinking is that there'd still be a CatWalk in the Toolbox  
 that you
 can run and do the same kinds of things with that you do today. The
 difference will be that you can do *exactly* the same things in your
 sites in a customizable way using FastData, because they'll both be
 using the same underlying code (whatever that code may be).

 Wow. That was a lot of hand waving.


 Yes, very cool Ronald.

 It seems as CatWalk2 will be the right time to figure out how to  
 enache
 our widgets system so that you can nest a widget template into an
 existing DOM by using javascript, this will make for a great
 reusability things easier for you and for customizing in the FastData
 side.  ;-)

 Ciao
 Michele








Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears group.
To post to this group, send email to turbogears@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~--~~~~--~~--~--~---



[TurboGears] Re: Scaffolding?

2006-03-24 Thread Ronald Jaramillo


On Mar 24, 2006, at 12:18 PM, Elver Loho wrote:


 Your tinyurl doesn't work.

? try this:
http://groups.google.com/group/turbogears/browse_frm/thread/ 
ed155b1e38bf717e


 As for what's missing, then that would be features mentioned around
 0.8, but not included therein, or features in 0.9, but not documented
 very well.

Your right about documentation. This is something PHP do quite well.
Cheers
Ronald



 Elver

 On 3/24/06, Ronald Jaramillo [EMAIL PROTECTED] wrote:

 Hi Elver,

 On Mar 24, 2006, at 11:49 AM, Elver Loho wrote:


 Any ideas on when all this magic will be available?

 Well, this is still on the draft board, the idea right now is to
 start fleshing thinks out and get people excited - some
 my even want to join the development ;)

 TurboGears is an awesome, refreshing break from PHP and it's got  
 a lot
 of great ideas, but when I use 0.8 or 0.9, it feels like there's  
 stuff
 missing. (Well, it's not 1.0, so that's to be expected.)

 Stuff like? Comparing to PHP?


 Anyhow, can anyone point me in the direction of making Catwalk in  
 0.9
 accessible to everyone via password authentication? I'd like to  
 set up
 a small website with several administrators. Catwalk works just fine
 for the admin side on the current prototype and I don't see any  
 point
 in duplicating its behaviour. That'd just be a case of not invented
 here syndrome.

 Check this discussion:
 http://tinyurl.com/rems9

 Cheers.
 Ronald




 Elver

 On 3/24/06, Michele Cella [EMAIL PROTECTED] wrote:

 Kevin Dangoor wrote:

 DataController will either become more useful or be replaced...

 My thinking is that there'd still be a CatWalk in the Toolbox
 that you
 can run and do the same kinds of things with that you do today.  
 The
 difference will be that you can do *exactly* the same things in  
 your
 sites in a customizable way using FastData, because they'll  
 both be
 using the same underlying code (whatever that code may be).

 Wow. That was a lot of hand waving.


 Yes, very cool Ronald.

 It seems as CatWalk2 will be the right time to figure out how to
 enache
 our widgets system so that you can nest a widget template into an
 existing DOM by using javascript, this will make for a great
 reusability things easier for you and for customizing in the  
 FastData
 side.  ;-)

 Ciao
 Michele







 
 Ronald Jaramillo
 mail: ronald AT checkandshare DOT com
 blog: http://www.checkandshare.com/blog










Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears group.
To post to this group, send email to turbogears@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~--~~~~--~~--~--~---



[TurboGears] Re: Scaffolding?

2006-03-23 Thread Ronald Jaramillo

I have uploaded a screencast (http://www.checkandshare.com/blog/? 
p=41) where I talk about some of the ideas
for the next version of CatWalk and by extension FastData.
Cheers.
Ronald


On Mar 23, 2006, at 1:10 PM, Kevin Dangoor wrote:


 On 3/22/06, Elver Loho [EMAIL PROTECTED] wrote:
 My question would be: are there any code generators for TurboGears
 that would take my model and then give me all the code to set up an
 administration backend and frontend for it? I'd like it to provide me
 with a working starting point.

 As Ronald mentioned, FastData, which uses TurboGears widgets, is the
 TG solution to this problem. It's new in 0.9 and not yet perfect.

 Rather than taking a code generation approach, we decided to go the
 widgets route and make reusable, re-templatable objects that you
 can put onto your pages. The ultimate goal with FastData is that your
 forms stay up to date as you update your database schema (which is
 much harder to do with code generation).

 Kevin




Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears group.
To post to this group, send email to turbogears@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~--~~~~--~~--~--~---



[TurboGears] Re: Scaffolding?

2006-03-23 Thread Ronald Jaramillo


On Mar 23, 2006, at 11:29 PM, Jorge Godoy wrote:


 Ronald Jaramillo [EMAIL PROTECTED] writes:

 I have uploaded a screencast (http://www.checkandshare.com/blog/?
 p=41) where I talk about some of the ideas
 for the next version of CatWalk and by extension FastData.
 Cheers.
 Ronald


 Great idea, Ronald!  But for filters I'd like to use the same  
 syntax as
 SQLObject or Python itself.

 This brings more coherence to it with what one might need to code  
 in his own
 code...  Something like name == 'Juanes' instead of 'name', 'eq',
 'Juanes'.

Good point.

 I also found it a bit confusing from the beginning to find out if  
 this is a
 down or up reference in your example...  Is it based on the  
 column name?
 So, for example, can't I have something like  
 model.Class.something and have
 it in a column named anotherthing using this go down or go up  
 idea?

I'm not sure If I get your example, but let me try to clarify.
The basic  idea is that you can address fields along your table  
relations using
an specific sql object class from your model as starting point.

Say you have a model:

class  Person(SQLObject):
name = StringCol()
 sex = StringCol(varchar=True,length=1)
 telefon=StringCol()
 addresses = MultipleJoin('address')

class Address(SQLObject):
street = StringCol()
 city = StringCol()
 person = ForeignKey('Person')


You can get a view of addresses grouped by persons:

list_view('Person', fields=['name', 'adresses.street','adresses.city'])

The starting point for this fields is 'Person', to be more explicit  
you could say:

list_view('Person', fields=['Person.name',  
'Person.adresses.street','Person.adresses.city'])

Here we retrieve a list of addresses that list the person's gender as  
well:
list_view('Address', fields= 
['street','city','person.name','person.sex'])

Or even more useful:
list_view('Address', fields= 
['street','city','person.name','person.telefon'],filters= 
[person.sex=='f'])

Cheers.
Ronald



 -- 
 Jorge Godoy  [EMAIL PROTECTED]




Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears group.
To post to this group, send email to turbogears@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~--~~~~--~~--~--~---



[tg-trunk] Re: Unable to commit

2006-03-22 Thread Ronald Jaramillo

Same here Michale.
Cheers
Ronald

On Mar 22, 2006, at 10:46 AM, Michele Cella wrote:


 Hi guys,

 after Kevin moved TG to another machine I'm not able to commit  
 anymore:

 [EMAIL PROTECTED]:~/Progetti/TurboGears/svn/turbogears$ svn commit
 Sendingturbogears/controllers.py
 svn: Commit failed (details follow):
 svn: CHECKOUT of
 '/svn/turbogears/!svn/ver/966/trunk/turbogears/controllers.py': 403
 Forbidden (http://www.turbogears.org)
 svn: Your commit message was left in a temporary file:
 svn:'/home/michele/Progetti/TurboGears/svn/svn-commit.7.tmp'

 Any idea?

 Ciao
 Michele





Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears Trunk group.
To post to this group, send email to turbogears-trunk@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears-trunk
-~--~~~~--~~--~--~---



[TurboGears] Re: Search Pagination

2006-03-22 Thread Ronald Jaramillo

Hi Gasolin (is that your name?)
You can use #x03C; for   and #x03E; for 
Cheers
Ronald

On Mar 22, 2006, at 8:59 AM, gasolin wrote:


 Hello:

 I found another relate issue in kid

 I want to add Prev/Next navigation in Search Pagination,

 Expect result is: Prev |  0 |  1 |  2 |  3 | Next

 ,Prev/Next only shows if this action is possible.


 I'd hvae to compare set_end and set_size to decide if I need to
 show the Next button.

 But I found I can't use small than () operator in kid's py:if
 statement.
 (I guess the operator is mis-recognized as a html quote),
 any idea?





Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears group.
To post to this group, send email to turbogears@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~--~~~~--~~--~--~---



[TurboGears] Re: Search Pagination

2006-03-22 Thread Ronald Jaramillo

Hi Jorge,
I'm actually working on it too...
Cheers
Ronald

On Mar 22, 2006, at 2:33 PM, Jorge Godoy wrote:


 gasolin [EMAIL PROTECTED] writes:

 Thanks!  So it's an XML trick, though ;-)

 I'll conclude the Search Pagination result on trac later.

 Someone may want to write a widget(fastdata) version?

 I am trying to allocate some time for that... :-(

 --  
 Jorge Godoy  [EMAIL PROTECTED]




Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears group.
To post to this group, send email to turbogears@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~--~~~~--~~--~--~---



[TurboGears] Re: Just did 'svn up': config broken?

2006-03-21 Thread Ronald Jaramillo

Got bitten by the same problem, updating cherrypy (cd thirdparty/ 
cherrypy and run easy_install .) solved it for me.
Cheers
Ronald

On Mar 21, 2006, at 9:09 PM, Mike Kent wrote:


 I just did an 'svn up' for the first time in a couple of weeks, then
 ran 'python setup.py develop', started a new project using 'tg-admin
 quickstart', edited dev.cfg to enable my database, and tried to start
 the project server as a sanity check.  Sanity failed.  I got this
 traceback:

 Traceback (most recent call last):
   File start-blog.py, line 19, in ?
 modulename=blog.config.app)
   File
 /home/mike/Work/pywork/projects/turbogears/turbogears/turbogears/ 
 config.py,
 line 34, in update_config
 package_dir=
 TypeError: dict_from_config_file() got an unexpected keyword argument
 'vars'

 The failing TG code is using CherryPy's config.dict_from_config_file()
 to read in the config file, and passing that function 2 parameters,  
 the
 config file name, and a dictionary named 'vars'.  But
 config.dict_from_config_file only takes 1 parameter, the config file
 name.

 Any ideas what's wrong here?  Do I have TG and CP out of sync with  
 each
 other?





Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears group.
To post to this group, send email to turbogears@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~--~~~~--~~--~--~---



[TurboGears] Re: Squidoo lens on TurboGears

2006-03-21 Thread Ronald Jaramillo

Hi Mark,
That's great! A small nit, the golden gear doesn't look that good in  
the black background due to the way the box is cropped of center (I  
think squidoo is doing some resizing of your png and dropping the  
alpha channel in the conversion)
You can  download a gear on white background (jpg format) from my  
server:
http://www.checkandshare.com/images/gear.jpg

Cheers.
Ronald

On Mar 21, 2006, at 9:59 PM, Mark Ramm wrote:


 I had a little bit of time at lunch today, so I created a little page
 on Squidoo  for TurboGears:

 http://www.squidoo.com/browse/show/turbogears

 Let me know if there is anything I can add to it to make it a better
 resource for people interested in finding out more about TurboGears.

 The Python is Amazing page is now the 24th ranked page on Squidoo, and
 I think it would be cool if there where a bunch of other pages on
 specific python technologies.

 --
 Mark Ramm-Christensen
 email: mark at compoundthinking dot com
 blog: www.compoundthinking.com/blog




Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears group.
To post to this group, send email to turbogears@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~--~~~~--~~--~--~---



[tg-trunk] Re: Widgets status

2006-03-20 Thread Ronald Jaramillo

Hi Michele,

On Mar 20, 2006, at 10:51 PM, Michele Cella wrote:


 Ronald Jaramillo wrote:
 Hi,

 Hi Ronald,

 Two things:
 -currently the Toolbox Widget Browser is broken:
File /Users/ronald/Documents/PYTHON/TG_DEV/turbogears/widgets/
 rpc.py, line 15, in update_data
  d['js'] = return ! remoteRequest(self, '%s', '%s', %s, %s) % (
 AttributeError: 'function' object has no attribute 'encode'


 That's unfortunate, I can't test the widget browser since after
 upgrading to ubuntu dapper I'm getting \n in the serialized output so
 js doesn't work anymore... :-( [1]
 I never touched rpc anyway so I'm a bit lost on this, could it be
 related to json? encode sounds like it is, maybe after r962 the
 WidgetDescription should use a different way to send json output? we
 may ask Kevin here.

Don't worry Elvelind has already fixed it.

 - there are a bunch of things I want to do with widgets, but what is
 the status? Is people still tinkering with them or can we start
 building on top of them?


 Now that repeating fields are in I think we are really settled, I'm
 only going to change a small thing (making all widgets by default out
 of the path and only formfields/form inside it) only related to the  
 use
 of in_path instead of not_in_path nothing big.

Cool, is the wiki example up to date?

 Ciao
 Michele

Ciao
Ronald


Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears Trunk group.
To post to this group, send email to turbogears-trunk@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears-trunk
-~--~~~~--~~--~--~---



[TurboGears] Re: MySQL / Turbogears / Foreign Keys / ERD

2006-03-17 Thread Ronald Jaramillo

Hi Kavika,
When you say an ERD, are we talking about a diagram? If so what  
format do you spect that to be?
Cheers.
Ronald

On Mar 17, 2006, at 7:07 PM, kavikaBldr wrote:


 All,
 it would be great if someone could help me with this problem:
 I am trying to generate an ERD from my datamodel. My DB is mysql and I
 created the schema from scratch from model.py. Then I downloaded  
 MySQl
 Workbench hoping that it
 would allow me to generate and ERD. This gave me a disappointing
 results, since none of the joins showed up that I had defined in my
 model.py. So it appears that sqlobject does not define the joins in a
 way that is native to mySQL. Is that right?
 Does anyone else have an idea how I can either:
 - generate an ERD from model.py ?
 - or make mySQL have proper joins when using sqlobject?

 Thanks!

 Kavika





Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears group.
To post to this group, send email to turbogears@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~--~~~~--~~--~--~---



[TurboGears] Re: TG 0.9a1 Catwalk problems with RelatedJoin

2006-03-15 Thread Ronald Jaramillo

Hello again Warren,
Thanks for finding this one, I have committed a fix for it (revision  
953).
If you don't want to follow the svn trunk, here is the diff:

--- trunk/turbogears/toolbox/catwalk/static/javascript/catwalk.js
2006-03-15 13:48:24 UTC (rev 952)
+++ trunk/turbogears/toolbox/catwalk/static/javascript/catwalk.js
2006-03-15 14:39:51 UTC (rev 953)
@@ -835,11 +835,11 @@
'sort':'',
'column_management': 
{'function':'catwalk.updateColumnsJoinView','params':params},
'select': 
{'function':'catwalk.retrieveDisplayObject','params':[results 
['objectName']]},
-  'edit': 
{'function':'catwalk.retrieveFormEdit','params':[results 
['objectName']]},
-  'remove': 
{'function':'catwalk.retrieveRemove','params':[results['objectName']]}
+  'edit': 
{'function':'catwalk.retrieveFormEdit','params':[results['objectName']]}
}
   };
-  if(results['joinType']=='SORelatedJoin') data['actions']['remove'] 
='';
+  if(results['joinType']!='SORelatedJoin') data['actions']['remove'] 
= {'function':'catwalk.retrieveRemove','params':[results['objectName']]}
+
var grid = (results['rows'].length 0)? Widget.grid.render(results 
['join'],data):'';
var r = results;
if(results['joinType']=='SORelatedJoin')
@@ -848,7 +848,6 @@
}
else
{
-//grid = DIV(null,grid,catwalk.renderAddMultipleJoinsControl(r 
['joinObjectName']));
  grid = DIV(null,grid,catwalk.renderAddMultipleJoinsControl(r 
['hostObject'],r['id'],r['joinObjectName']));
}
replaceChildNodes('grid_'+ results['join'],grid);

Cheers.
Ronald


On Mar 14, 2006, at 11:31 PM, wrb wrote:


 I have this model and I'm trying to use Catwalk to handle CRUD.  I'm
 currently using TG 0.9a1 with catwalk included at 0.9.4 (I think).
 Browser firefox 1.5.x and Sqlite 3.2.6

 class Perftest(SQLObject):
 version = ForeignKey('ProductVersion')
 modules = RelatedJoin('Module')

 class ProductVersion(SQLObject):
 name = StringCol(length=20, unique=True)
 description = StringCol(length=80)

 class Module(SQLObject):
 name = StringCol(length=20, unique=True)
 description = StringCol(length=80)
 tests = RelatedJoin('Perftest')

 .

 tg-admin sql sql yields:

 CREATE TABLE module (
 id INTEGER PRIMARY KEY,
 name VARCHAR(20) UNIQUE,
 description VARCHAR(80)
 )
 CREATE TABLE module_perftest (
 module_id INT NOT NULL,
 perftest_id INT NOT NULL
 );

 CREATE TABLE perftest (
 id INTEGER PRIMARY KEY,
 version_id INT
 );

 CREATE TABLE product_version (
 id INTEGER PRIMARY KEY,
 name VARCHAR(20) UNIQUE,
 description VARCHAR(80)
 );

 So far so good (right?)

 Anyway, I am able to successfully add models to perftest with CatWalk
 but once they are added to the db, the viewing or editing
 capabilities don't seem to work at all.  This problem exists for both
 the perftest or module table.   The catwalk demo mov I saw for
 Many-to-Many relations did have this working but I'm not sure how they
 set up their model.

 I am I doing something wrong?  I searched around and found a ticket or
 two that appear to be a little similar but couldn't find a ticket or
 posting with the exact same problem.

 thanks --- Warren.





Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears group.
To post to this group, send email to turbogears@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~--~~~~--~~--~--~---



[TurboGears] Re: TurboGears with IIS

2006-03-14 Thread Ronald Jaramillo

Hi Judofyr,
You can try isapirewrite:
http://www.isapirewrite.com/

Cheers.
Ronald

On Mar 14, 2006, at 7:57 PM, Judofyr wrote:


 Hi!

 Is there anyway to use TurboGears with IIS?





Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears group.
To post to this group, send email to turbogears@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~--~~~~--~~--~--~---



[TurboGears] Re: Running some JS onLoad based on radiobuttons status

2006-03-14 Thread Ronald Jaramillo

Hi Jorge,
You can do the following:
- Add an id attribute to your radio buttons (it's easier to refer to  
them that way)

input type=radio id=si_tipo name=tipo_liberacao_laudo  
value=si  checked=checked /
input type=radio id=no_tipo name=tipo_liberacao_laudo  
value=no /

- Your script:
var selectionar_faixa_analises = function()
{
getElement('form_analises_faixa').style.display = (getElement 
('si_tipo').checked)? 'block':'none';
}

Cheers
Ronald

On Mar 14, 2006, at 11:01 PM, Jorge Godoy wrote:



 Hi!


 I have a form where part of it is hidden / shown based on some  
 previous
 choices made by the user and it works perfectly fine.  Now I'm  
 trying to hide
 / show these parts when the user opens the form for editing it.

 I've come up with the following JavaScript:

 == 
 ==
 var selecionar_faixa_analises = function() {
// I'm only interested in the first radio button
selecionado = document.form_analises.tipo_liberacao_laudo[0];

if (selecionado.checked == true) {
// From MochiKit.DOM example
makeVisible(getElement(form_analises_faixa));
} else {
// From MochiKit.DOM example
makeInvisible(getElement(form_analises_faixa));
}
 };
 == 
 ==

 In my template I have the following code

 == 
 ==
 SCRIPTaddLoadEvent(selecionar_faixa_analises)/SCRIPT
   /BODY
 /HTML
 == 
 ==

 where addLoadEvent is a MochiKit.DOM function.

 It works, it loads and executes the function.  But then, all of my  
 options get
 the CHECKED attribute and a wrong option appears selected on the  
 page.
 Removing the JavaScript above (in fact, removing it from the  
 template) fixes
 it, but then the parts I want to hide in the form aren't hidden.

 Any hints on what I might be doing wrong?  I'm not knowledgeable in  
 JavaScript
 to find it out :-(


 TIA,
 -- 
 Jorge Godoy  [EMAIL PROTECTED]




Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears group.
To post to this group, send email to turbogears@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~--~~~~--~~--~--~---



[TurboGears] Re: TG 0.9a1 Catwalk problems with RelatedJoin

2006-03-14 Thread Ronald Jaramillo

Hi Warren,
I'm on my way to bed now, but I can take a look at this tomorrow  
evening.
Cheers
Ronald

On Mar 14, 2006, at 11:31 PM, wrb wrote:


 I have this model and I'm trying to use Catwalk to handle CRUD.  I'm
 currently using TG 0.9a1 with catwalk included at 0.9.4 (I think).
 Browser firefox 1.5.x and Sqlite 3.2.6

 class Perftest(SQLObject):
 version = ForeignKey('ProductVersion')
 modules = RelatedJoin('Module')

 class ProductVersion(SQLObject):
 name = StringCol(length=20, unique=True)
 description = StringCol(length=80)

 class Module(SQLObject):
 name = StringCol(length=20, unique=True)
 description = StringCol(length=80)
 tests = RelatedJoin('Perftest')

 .

 tg-admin sql sql yields:

 CREATE TABLE module (
 id INTEGER PRIMARY KEY,
 name VARCHAR(20) UNIQUE,
 description VARCHAR(80)
 )
 CREATE TABLE module_perftest (
 module_id INT NOT NULL,
 perftest_id INT NOT NULL
 );

 CREATE TABLE perftest (
 id INTEGER PRIMARY KEY,
 version_id INT
 );

 CREATE TABLE product_version (
 id INTEGER PRIMARY KEY,
 name VARCHAR(20) UNIQUE,
 description VARCHAR(80)
 );

 So far so good (right?)

 Anyway, I am able to successfully add models to perftest with CatWalk
 but once they are added to the db, the viewing or editing
 capabilities don't seem to work at all.  This problem exists for both
 the perftest or module table.   The catwalk demo mov I saw for
 Many-to-Many relations did have this working but I'm not sure how they
 set up their model.

 I am I doing something wrong?  I searched around and found a ticket or
 two that appear to be a little similar but couldn't find a ticket or
 posting with the exact same problem.

 thanks --- Warren.





Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears group.
To post to this group, send email to turbogears@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~--~~~~--~~--~--~---



[TurboGears] Re: turbogears-future mailing list?

2006-03-09 Thread Ronald Jaramillo

Can someone please push the 'unbikeshed-this-list' button? =)
Cheers
Ronald

On Mar 9, 2006, at 10:55 AM, Richard (koorb) wrote:



 Wolfgang wrote:
 Most people call such a list devel anyway.

 Why not call this list turbogears-devel as every other project does
 this ?

 Leave turbogears list as it is. No need to add  -users to the old  
 one.

 I don't think it would confuse anyone, seen as most people interested
 in such a list would understand 'future' especially python developers
 (from __future__ import amazing-features) Besides every other project
 using devel seems like a good reason not to.





Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears group.
To post to this group, send email to turbogears@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~--~~~~--~~--~--~---



[TurboGears] Re: turbogears-future mailing list?

2006-03-08 Thread Ronald Jaramillo
+1 TG-stable  TG-trunkCheersRonaldOn Mar 8, 2006, at 11:30 PM, Kevin Dangoor wrote:I've commented that I'm not entirely fond of the notion of splittingthe list into "-users" and "-devel". Earlier today, it struck me thatit *is* important to do so, however.During 0.9's development, I thought it important that the things wewere working on were getting the attention of the community as awhole. The downside to this, though, is that more people probablymoved to the svn trunk version than was wise and that people wouldhave seen the reports of things breaking and possibly gotten the wrongimpression of TurboGears 0.8's stabiity.I'm imagining the kinds of conversations we're going to have aboutFirst Class and I really don't want that to trip people up from all ofthe great things we've built for the 0.9 release.I don't think the split is so much a split between core developmentand what most users are doing and asking about. I think the split ismore about people using current (0.8 and 0.9) releases and futuredevelopment (First Class, at present).So, I propose making a new list called turbogears-future, specificallychartered for discussions about the next (or even farther down theline) major version of TurboGears. Bug fixes and minor features thatshow up in the current releases will continue to appear on this list.How does that strike you?Kevin--Kevin DangoorAuthor of the Zesty News RSS newsreaderemail: [EMAIL PROTECTED]company: http://www.BlazingThings.comblog: http://www.BlueSkyOnMars.com--~--~-~--~~~---~--~~You received this message because you are subscribed to the Google Groups "TurboGears" group.To post to this group, send email to turbogears@googlegroups.comTo unsubscribe from this group, send email to [EMAIL PROTECTED]For more options, visit this group at http://groups.google.com/group/turbogears-~--~~~~--~~--~--~---   Henriksvej 15 2400 København NV +45 22 27 85 11 [EMAIL PROTECTED]  

[TurboGears] Re: tg 0.9 on macosx

2006-03-01 Thread Ronald Jaramillo
Hi Michael,It looks like something is fishy with your pysqlite egg...I don't know what that can be, but in the meantime if you have the Mac OSX development tools installed you can follow this instructions to get pysqlite running:http://initd.org/pub/software/pysqlite/doc/install-source.htmlCheers.RonaldOn Mar 1, 2006, at 9:26 PM, • Michael Weiner wrote: On 3/1/06 3:13 PM, "Ronald Jaramillo" [EMAIL PROTECTED] wrote:  Hi Michael, If you open terminal and start Python 2.4 does the following works?   from pysqlite2 import test  test.test()  Cheers Ronald  On Mar 1, 2006, at 9:01 PM, Michael Weiner wrote:  I am working my way through the turtorial, trying to educate myself a little bit here at home before i go and munge up my development environment at work. In that process, i grabbed the ez_install.py and got the latest tg et al eggs installed on this Mac OSX 10.4.4 machine running python 2.4.1. Working through the wiki tutorial, i am having a slight problem when i go to create the database/tables using tg-admin sql create, i receive the following errors:  $tg-admin sql create  Using database URI sqlite:///Users/hunter/turbogears/Wiki20/wikidata.db Traceback (most recent call last):   File "/usr/local/bin/tg-admin", line 7, in ?     sys.exit(   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/TurboGears- 0.9a1-py2.4.egg/ snip   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1588-py2.4.egg/sqlobject/sqlite/sqliteconnection.py ", line 23, in __init__     import sqlite ImportError: No module named sqlite  And i am basically stuck there. I grabbed pysqlite-2.1.3.tar.gz and installed that thinking that would give me python hooks into sqlite and also installed SQLite 2.8.16 and i am still recieving the same error. Not being a python developer, i am a systems administrator/designer, i may be missing something here, but everything seems to be in place. Am i missing something?  Any assistance would be GREATLY appreciated.   Thanks in advance Michael Weiner --  Ronald -  Thanks for the reply, i recieve the following  :(  $python Python 2.4.1 (#2, Mar 31 2005, 00:05:10)  [GCC 3.3 20030304 (Apple Computer, Inc. build 1666)] on darwin Type "help", "copyright", "credits" or "license" for more information.  from pysqlite2 import test Traceback (most recent call last):   File "stdin", line 1, in ?   File "build/bdist.darwin-8.5.0-Power_Macintosh/egg/pysqlite2/test/__init__.py", line 25, in ?   File "build/bdist.darwin-8.5.0-Power_Macintosh/egg/pysqlite2/test/dbapi.py", line 26, in ?   File "build/bdist.darwin-8.5.0-Power_Macintosh/egg/pysqlite2/dbapi2.py", line 32, in ?   File "build/bdist.darwin-8.5.0-Power_Macintosh/egg/pysqlite2/_sqlite.py", line 7, in ?   File "build/bdist.darwin-8.5.0-Power_Macintosh/egg/pysqlite2/_sqlite.py", line 6, in __bootstrap__ ImportError: Failure linking new module: /Users/hunter/.python-eggs/pysqlite-2.1.3-py2.4-macosx-10.4-ppc.egg-tmp/pysqlite2/_sqlite.so: Symbol not found: _sqlite3_transfer_bindings   Referenced from: /Users/hunter/.python-eggs/pysqlite-2.1.3-py2.4-macosx-10.4-ppc.egg-tmp/pysqlite2/_sqlite.so   Expected in: dynamic lookup  

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups TurboGears group.  To post to this group, send email to turbogears@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/turbogears  -~--~~~~--~~--~--~---


[TurboGears] Re: Kid vim syntax file

2006-02-28 Thread Ronald Jaramillo

What? Are there other editors beside vim??
Thanks for it Karl! I'm looking forward to version 7 and intellisense  
support, it will be sweet to have a dropdown list of available  
widgets, validators and what not. Kind of having a TG cheat sheet  
while you type.
Cheers.
Ronald

On Feb 28, 2006, at 7:59 PM, Diwaker Gupta wrote:


 It is *so* good to know that there are people doing web apps (whether
 its RoR or Django or TG) who are NOT using a Mac and Textmate :-)

 Vim ROCKS!

 On 2/28/06, Michele Cella [EMAIL PROTECTED] wrote:

 Karl Guertin wrote:
 I've been sitting on this for about a week and it seems to be  
 working.
 David Stanek encouraged me to release it, and I figure this is the
 simplest way.


 Hey, you are my hero Karl, this rocks!! ;-)

 Maybe you can also put it on vim.org?

 Ciao
 Michele






 --
 Web/Blog/Gallery: http://floatingsun.net/blog




Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears group.
To post to this group, send email to turbogears@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~--~~~~--~~--~--~---



[TurboGears] Re: SQLObject : Group by functionality?

2006-02-26 Thread Ronald Jaramillo

Hi Joost,
You can do something like this:

import sqlobject
from sqlobject.sqlbuilder import *

conn = model.Searches._connection
query = Select( [model.Searches.q.keyword,
 func.Count(model.Searches.q.keyword)],
 groupBy=model.Searches.q.keyword,
  orderBy=model.Searches.q.keyword )
query = conn.queryAll(conn.sqlrepr(query))

This will return an array of tuples.
The best reference arround for this kind of queries is a post by Ben  
Bangert:
http://groovie.org/articles/2005/11/01/how-to-use-database-agnostic- 
sql-in-sqlobject

Cheers.
Ronald

On Feb 26, 2006, at 5:44 PM, Joost Moesker wrote:


 Does anyone know if its possible to use SQLObject/ SQLBuilder to build
 queries like:

   SELECT d.keyword, count(d.keyword) c FROM db.searches
   GROUP BY d.keyword
   ORDER BY c DESC;

 The result of such a query arent SQLObject instances them self. Yet it
 is quite common to have such queries as properties. It would be really
 nice to do this in db agnostic manner using SQLObject.





Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears group.
To post to this group, send email to turbogears@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~--~~~~--~~--~--~---



[TurboGears] Re: table/image rendering..

2006-02-22 Thread Ronald Jaramillo
Hi Sergio,Some browser (most notably explorer) add padding around images in tables if you have a new line/space between your image and the closing TD tag.In your master template you have: TABLE WIDTH=770 BORDER=0 CELLPADDING=0 CELLSPACING=0	  TR		  TD ROWSPAN=3			  IMG SRC="" WIDTH=71 HEIGHT=49 ALT=""/TD		  TD COLSPAN=2 ROWSPAN=2.. etcWhich on your tidy - kid template translates to: TABLE CELLPADDING="0" WIDTH="770" CELLSPACING="0" BORDER="0"      TR        TD ROWSPAN="3"        IMG SRC="" ALT="" HEIGHT="49" WIDTH="71"                /TD        TD COLSPAN="2" ROWSPAN="2". etcWhitespace (or newlines) shouldn't be significant but tell that to MSIE =(I'm not shure if tidy did add the spaces/new lines or if it was Kid who did it.If Kid's to blame, there is a (closed) ticket (http://trac.turbogears.org/turbogears/ticket/409) that somehow relates to this. In that case there was a new line character been added between textarea tags.CheersRonaldOn Feb 22, 2006, at 8:23 PM, sergio wrote:i have a weird rendering situation...i had a designer build a template for my app..here:http://www.epiccenter4d.com/e-semglobal/learning-opps-template.htmi built a kid template out of the html for this file (html tidy rocks when you get tons of templates written with photoshop) and the code it produces is identical (i did a side by side, and can't see a difference..)you can see it here:http://www.epiccenter4d.com:8088/but if you look at the first one, the table is nice and squared away.. on the turbogears site, the table/images are all cattywumpus..anyone have any ideas?thanks!___peace,sergiophotographer, journalist, visionarywww.coffee-black.com  

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups TurboGears group.  To post to this group, send email to turbogears@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/turbogears  -~--~~~~--~~--~--~---


[TurboGears] Re: table/image rendering..

2006-02-22 Thread Ronald Jaramillo
Hi Sergio,I have created a ticket for this issue with an attached kid file that illustrates the problem.http://trac.turbogears.org/turbogears/ticket/614Cheers.RonaldOn Feb 22, 2006, at 9:15 PM, sergio wrote:Whitespace (or newlines) shouldn't be significant but tell that to MSIE =(I'm not shure if tidy did add the spaces/new lines or if it was Kid who did it.If Kid's to blame, there is a (closed) ticket (http://trac.turbogears.org/turbogears/ticket/409) that somehow relates to this. In that case there was a new line character been added between textarea tags.this makes sense.. i will look at that trouble ticket..i don't think there is something that is adding a space between the table elements in the code..the code in the .kid file looks like:        td rowspan="3"img src=""        width="71" height="49" alt="" //td        td colspan="2" rowspan="2"img src="">        "/static/images/learning-opps-template_02.gif" width="66" height="15"        alt="" //td___peace,sergiophotographer, journalist, visionarywww.coffee-black.com  

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups TurboGears group.  To post to this group, send email to turbogears@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/turbogears  -~--~~~~--~~--~--~---


[TurboGears] Re: Want to help with the new website?

2006-02-21 Thread Ronald Jaramillo

Hi Richard,
I really don't have time right now but I couldn't resist to try and  
rearrange your latest design:
http://www.checkandshare.com/images/black_green.png

Maybe the front page could do with some 'Apple' kind of clarity, a  
big georgous gear, a very prominant download link
and tree simple columns of highlights.
- Just a thought.

Cheers.
Ronald

ps- Great work so far

On Feb 21, 2006, at 10:58 PM, Richard (koorb) wrote:


 Karl Guertin wrote:
 What was wrong with the design everybody agreed on?

 Yeah, sorry this isn't meant to be definitive. Just a proposition to
 everyone.
 I probably should have explained more why I wanted to do something
 different.

 The design being used on the current /preview (the one we all agreed
 on) looses almost all structure as you scroll away from the top, when
 the side bar ends and your just sat in a white screen with text
 slightly of centre. I know this can be addressed without such a  
 drastic
 change, but I started working on an inner page with a smaller header
 and it just looked so bland and monochromatic [1] so I had a play
 around got some terrible results [2], [3] I kind of missed the feel of
 the early designs [4]. So I came up with that which I posted just now
 [5].

 Why did the site have to get web 2.0 bandwagon-ified?

 Sorry not really intentional - that is to say, I didn't sit there and
 think, lets jump on that wagon to the tune of 2.0 but I am very
 easily influenced. (be thankful it doen't look just like the rails
 page).

 If you can just see it for the header and menu. Any web 2.0 specifics
 cover up with sticky notes or something. Of the top of my head I'm
 thinking maybe the striped background and bright pink text? perhaps  
 the
 blank download box and icons, but I think that looks quite striking?

 I can re-colour! but structurally don't you think it works better?
 getting more of the important information higher up.

 I've got plenty of issues with this design, but I'd like to get those
 out of the way first.

 hit me baby! :-)

 [1]
 http://koorb.co.uk/static/images/tglogos/layouts/blue-light-3- 
 inner.png
 [2]
 http://koorb.co.uk/static/images/tglogos/layouts/blue-light-3-inner- 
 gear-cropped.png
 [3]
 http://koorb.co.uk/static/images/tglogos/layouts/blue-light-3-inner- 
 gear.png
 [4] http://koorb.co.uk/static/images/tglogos/layouts/layout-1.png
 [5] http://koorb.co.uk/turbogears/preview/





Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears group.
To post to this group, send email to turbogears@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~--~~~~--~~--~--~---



[TurboGears] Re: It would be nice having something like this for TG 1.0... ;-)

2006-02-16 Thread Ronald Jaramillo

Hi Mark,
tg-admin info is missing.
And of course having  the validator and expose parameters from the  
MindMap will be great
Personally I like the layout from the I love Jack Daniels' s quick-refs:
http://www.ilovejakedaniels.com

Cheers.
Ronald

On Feb 15, 2006, at 10:13 PM, Mark Ramm wrote:


 I am invested in making the quick reference better.  I'll go through
 your mind-maps and see what I can fit into the quick reference.   I am
 hoping to have something clean, well designed, and usable (even though
 it's not perfect) at PyCon.
 After watching Mark Ramm's One Page Reference,
 http://compoundthinking.com/blog/index.php/2006/01/26/turbogears- 
 one-page-reference/

 Any feedback anybody has on things they want documented that aren't on
 the sheet is most welcome!

 --
 Mark Ramm-Christensen
 email: mark at compoundthinking dot com
 blog: www.compoundthinking.com/blog


 P.S.  I already know I need to add deleting SQLObjects ;) And I need
 to cover some of the new 0.9 features.




Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears group.
To post to this group, send email to turbogears@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~--~~~~--~~--~--~---



[TurboGears] Re: Sprint topics @ PyCon

2006-02-12 Thread Ronald Jaramillo


Hi Arthur,
People new to PHP who need to know how to save a file can search for  
file on the first page of php.net and quickly find a way to write  
their text to disc.
Someone new to Python coming to TG need to learn how to do open 
('myfile').write('my text') because that's not part of TG's  
documentation.
Furthermore that's probably not the best way to do it in TG, because  
you are better off getting at your resources through pkg_resources.

A good sprint task could be to put together something like this:
http://nevowexamples.adytum.us/  but open for contribution.
A TG app for submitting recipes like http://aspn.activestate.com/ASPN/ 
Cookbook/Python and a backend for 'editors' and a comment system  
could be nice.
Another good example is the Java Almanac http://javaalmanac.com/  - I  
always keep forgetting how to save a file in Java =).
We could then have a search field on the front page that could  
provide an answer to the most common web tasks.


Cheers.
Ronald

On Feb 12, 2006, at 6:34 AM, [EMAIL PROTECTED] wrote:



I have volunteered for the TG sprint, but I feel I should own up to my
lack of experience. I have only been using Python for 3 months,
although I've been doing PHP and other web development for 5+ years.
So, I'm not a complete newbie to programming, just to Python. And my
only experience with Turbo Gears is Mark Ramm's online class. However,
I've been singing the praises of both Python and Turbo Gears at my
company, and I believe we'll be ready to adopt it as our standard
platform once 1.0 comes out!

All that said, I don't know how much help I can be at the sprint. But
if all I can do to help is to make a coffee run, count me in! I'm very
much looking forward to meeting every one, and contributing in  
whatever

way I can.

Gary Godfrey's comment struck an interesting chord with me when he
mentioned PHP. The reason I even  looked at Python in the first place
was that our company did an Enterprise level project in PHP, and we
felt PHP wasn't up to the task. So, I was looking for something that
would provide a similarly friendly development experience to PHP, but
be much more robust. When I then stumbled upon the TG site, I knew I
had found a winner. Further, when I saw the Kid template syntax was
?python ... ?, I knew I could sell it to the other developers at
the company. They wouldn't have to step too far outside of their
comfort zone.

My point is that I think TG specifically can act as the sales pitch to
PHP development community to entice them to try Python. What's missing
is the friendly web site. If you have used the PHP site, you know how
easy it is to search for and find the documentation you need, official
on top with user comments below. TG is such a powerful combaination of
tools that it's choice is almost a no-brainer. But, I think people  
will

be annoyed by the fact thay then need to browse the TG site for some
documentation, then go to the Kid site for some more, and SQLObject  
for

even more. I'd love to see a central repository for all of that
knowledge, complete with user comments about how best to apply that
knowledge in TG-specific projects. I know that would be a daunting  
task

because each of these things is a stand alone project with it's own
documentation.

Anyway, just my $0.02.

-Arthur McLean




Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: help mismathed tag

2006-02-11 Thread Ronald Jaramillo


br  should be br/
Cheers
Ronald

On Feb 11, 2006, at 9:23 AM, Moyan wrote:



recentlly,i am following the screencast to learn turbogears.
but there is something wrong stopping me proceeding.
coding like this:

controllers.py:
import turbogears
from turbogears import controllers
from model import Page
from docutils.core import publish_parts

class Root(controllers.Root):
@turbogears.expose(html=wiki20.templates.page)
def index(self,pagename='FrontPage'):
page = Page.selectBy(pagename=pagename)
p = page[0]
#content =
publish_parts(p.data,writer_name=html)[html_body]
#return dict(pagename=pagename,data=content)
return dict(pagename='frontpage',data='whaing')



and page.kid:
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html xmlns=http://www.w3.org/1999/xhtml;
xmlns:py=http://purl.org/kid/ns#;
py:extends='master.kid'

head
meta content=text/html; charset=UTF-8 http-equiv=content-type
py:replace=''/
titleWelcome to TurboGears/title
/head

body
div style='float:right;width:10em'Viewingspan
py:replace=pagenamepage name goes here/spanbr
a href=/Front Page/a/div

div py:replace=XML(data)page text goes here./div

/body
/html

runned error! output:
mismathed tags.

can someone tell me the answer?
thanx




Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: tg-admin sql create broke after r732

2006-02-11 Thread Ronald Jaramillo


Great, works here now.
Cheers
Ronald

On Feb 11, 2006, at 10:27 AM, Elvelind Grandin wrote:



It should have been fixed in r744.
If not please inform me
--
cheers
elvelind grandin



Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: Using catwalk with custom identity model

2006-02-11 Thread Ronald Jaramillo


Hi Viktor,
Can you attach your model (or a simplyfied version) to the ticket
Cheers.
Ronald

On Feb 11, 2006, at 10:08 PM, Victor Kryukov wrote:



Hi list,

Summary:
1. _inheritance=False should be added to your own class to avoid
CatWalk crashing on your inherited user/group/permission table.
2. CatWalk does not understand sqlobject inheritance.

Details:

I'm trying to integrate identity into my existing project. I've
successfully followed the wiki
(http://trac.turbogears.org/turbogears/wiki/IdentityManagement) with
idtest project and are now customizing identity model for my app:

1. I've added
identity.soprovider.model.user=letsmeet.model.Account
to the letsmeet\config.py as suggested.

2. I've modified my existing Account class, so now it look like that:

class Account(TG_User):
tasks = MultipleJoin('Task')
... various model-specific methods ...

3. Now, if I would try to select Account in the CatWalk, I'm receiving
the following error message:

Fail to load object instance: column account.child_name does not  
exist.


4. As explained here http://sqlobject.org/Inheritance.html, one should
add _inheritance=False at the inherited class in order to avoid
child_name automatic creation.

5. Now, CatWalk works - but doesn't show anything interesting when
selecting Account model; in particular, you cannot use CatWalk to
create new account and should use old good tg-admin shell.

6. It would be fun to have CatWalk that understands sqlobject
inheritance some day, though I'm sure it shouldn't be expected before
1.1 given all existing priority tasks.

7. Just in case, I've created new ticket explaining all the above:
http://trac.turbogears.org/turbogears/ticket/558

Please share your opinions,

Regards,
Victor.




Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: Custom Identity Model

2006-02-10 Thread Ronald Jaramillo

Hi,
This fx. works for me:

class Person(TG_User):
projects = MultipleJoin(Project,joinColumn='owner_id')
workgroups = RelatedJoin(Workgroup)
myworkgroups = MultipleJoin(Workgroup,joinColumn='owner_id')

class Workgroup(TG_Group):
creator = ForeignKey(Person)

class Project(SQLObject):
name = StringCol(length=250)
created = DateTimeCol(default=datetime.now)
owner = ForeignKey(Person)


Just remember to change your config.py file accordantly:

identity.soprovider.model.user='kronos.model.Person'
identity.soprovider.model.group='kronos.model.Workgroup'

Cheers
Ronald

ps. does anybody knows why config.py and devcfg.py+prodcfg.py aren't  
on the same directory?



On Feb 10, 2006, at 10:20 AM, OTri wrote:


 I'm struggling with this Identify stuff just now.  I would like to
 inherit TG_User but cannot think of a good way to untie myself from
 some of the restrictions you mention.  Unfortunately I don't quite
 understand all of how TG works to safely make a decision on how to
 change any of this.  Could anyone explain how to safely extend TG_User
 with custom attributes?




Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears group.
To post to this group, send email to turbogears@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~--~~~~--~~--~--~---


[TurboGears] Re: client - server data: best practices?

2006-01-31 Thread Ronald Jaramillo


Hi Rick,
You can just pack your data in a JSON structure and send it like:

var req = getXMLHttpRequest();
req.open('POST','my_tg_method',true);
req.setRequestHeader('Content-type','application/x-www-form- 
urlencoded');
var data = 'your_complex_data_structure='+ serializeJSON 
(your_complex_data);

var d = sendXMLHttpRequest(req,data);

On the server side you have in your controller the method:

import simplejson

def my_tg_method(self,your_complex_data_structure):
#pack  up your json structure and do what you need with it
	your_now_pythonic_complex_data_structure = simplejson.loads 
(your_complex_data_structure)


Cheers
Ronald


On Jan 31, 2006, at 10:35 AM, rick wrote:




I have a rather complex set of heirarchical data that i need to return
from a web page back to TG. I'm just not sure of the best way to do  
it.



MochiKit has a sendXMLHTTPRequest (No sendJSONRequest unfortunately)
which should allow me to easily pack up the datasets and ship them  
off.

But I'm not quite sure how to receive that info on the TG side.

If anyone has a better method or can prescribe a recipe in TG that be
great. If no current solution exists I'll attempt to roll my own and
put a recipe in trac.




Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: cElementTree 1.0.5 for windows requires a compiler?

2006-01-31 Thread Ronald Jaramillo


Wow, I haven't heard about CodeBlocks- thanks for the link.
Ronald

On Jan 31, 2006, at 11:58 AM, David Guaraglia wrote:



Hi Ronald,

Well, yes, that is because cElementTree needs a C compiler (hence  
the name C ElementTree). You could download the free compiler  
package from Microsoft, or you could find how to compile the  
package using another compiler (GCC) instead of VC 7.1. I know this  
can be done because somebody compiled a version of PyQT using this  
technique, but I don't really know how it works.


As for the VS 7.1 compiler: download it. It's free, it's fast (if  
compared with GCC) and combined with CodeBlocks  
(www.codeblocks.org) it's a nice enviroment for free :)


David

Ronald Jaramillo wrote:



Hi,
r605 upgraded cElementTree from 1.0.2 to 1.0.5 but my windows   
machine, running setup.py develop barf an error:
'error: Python was built with version 7.1 of Visual Studio, and   
extensions need to be built with the same version of the compiler,  
but

it isn't installed.'

Hu?
Cheers.
Ronald


Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog









Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: Widgets redux, call for testers

2006-01-30 Thread Ronald Jaramillo


Hi Michele,
Cool, just a nit:
Could you use and underscore instead of '-' betwen widget.field_id  
and value? I don't like to see price-2 as a radio option.
Underscores make it clear (in the HTML/javascript/css) that we are  
talking about strings.

I told you this was a nit =)
Cheers.
Ronald

On Jan 30, 2006, at 7:40 PM, Michele Cella wrote:



Hi,

I the last few days I've been working on an API cleanup (not yet
finished but mostly so) for the widgets system.

I tried to make them intuitive to use, to customize (very simple
templates, compare them with what TG is actually using) by moving a  
lot

of logic from templates to where it belongs and provide good default
widgets for forms managing.

What I mean with the last thing?

That for example you get:

SingleSelectField
MultipleSelectField
RadioButtonList
CheckBoxList

they all work in the same way:
 - SingleSelectField and RadioButtonList for a single choiche
 - MultipleSelectField and CheckBoxList for multiple choiches

the only difference stands in their lookfeel.

I would like interested people to try them, I've tried to keep them
compatible with the old ones but some things had to be changed.

You can play with my work using a small TG project I've attached here:
http://trac.turbogears.org/turbogears/attachment/ticket/490/ 
NewWidgets-0.5.tar.gz?format=raw


You find forms widgets inside forms.py. :-)

Give it a try and report here your opinions, I'm going to have few  
time

to do any other work.

Ciao
Michele

PS
Date* are not there.




Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: Selenium4Gears

2006-01-30 Thread Ronald Jaramillo
Hi Fabian,You are running an older version of CherryPy, after doing a svn update on your TG development and the setup.py develop dance, run "easy_install ." in CP's source directory (under thirdparty/cheerypy)Cheers.RonaldOn Jan 30, 2006, at 10:02 PM, [EMAIL PROTECTED] wrote:Hello Ronald,I've watched the screencast and it looks very promising. Although whenI try to import the selenium4gears provided by you I only get thefollowing error:Traceback (most recent call last):  File "./prototyp2-start.py", line 20, in ?    from prototyp2.controllers import Root  File "/home/faer/workspace/prototyp3/prototyp2/controllers.py", line8, in ?    from selenium4gears import Selenium  File "/home/faer/workspace/prototyp3/__init__.py", line 20, in ?  File "/home/faer/workspace/turbogears/turbogears/i18n/tg_gettext.py",line 45, in gettext    return gettext_f(key, locale, domain)  File "/home/faer/workspace/turbogears/turbogears/i18n/tg_gettext.py",line 54, in _gettext    if locale is None:locale = get_locale()  File "/home/faer/workspace/turbogears/turbogears/i18n/utils.py", line64, in get_locale    locale = get_locale_f()  File "/home/faer/workspace/turbogears/turbogears/i18n/utils.py", line77, in _get_locale    locale = cherrypy.session.get(locale_key)  File"/usr/lib/python2.4/site-packages/CherryPy-2.2.0beta-py2.4.egg/cherrypy/filters/sessionfilter.py",line 391, in __getattr__    sess = cherrypy.request._session  File"/usr/lib/python2.4/site-packages/CherryPy-2.2.0beta-py2.4.egg/cherrypy/__init__.py",line 41, in __getattr__    childobject = getattr(serving, self.__attrname__)AttributeError: 'thread._local' object has no attribute 'request'Do you have an idea what I should change?Thanks for your help in advance.Regards,Fabian   Henriksvej 15 2400 København NV +45 22 27 85 11 [EMAIL PROTECTED]  

[TurboGears] cElementTree 1.0.5 for windows requires a compiler?

2006-01-30 Thread Ronald Jaramillo


Hi,
r605 upgraded cElementTree from 1.0.2 to 1.0.5 but my windows  
machine, running setup.py develop barf an error:
'error: Python was built with version 7.1 of Visual Studio, and  
extensions need to be built with the same version of the compiler, but

it isn't installed.'

Hu?
Cheers.
Ronald


Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: Any body know how to build self foreign key model

2006-01-30 Thread Ronald Jaramillo


Including models that illustrate a tricky SQLObject construct in  
ModelDesigner is a great idea,
I will accept those gladly, people can send them to me directly or  
paste their model to a track tricket (label enhancement)


Cheers.
Ronald

ps. hm. the inheritance example from the SQLObject documentation is  
probably a good one to have

On Jan 31, 2006, at 1:24 AM, Joost Moesker wrote:



This seems to be frequent question on the list. Maybe its a good a  
idea

to add a catagory model to the ModelDesigner webshop example?




Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] [Ann] Selenium4Gears

2006-01-28 Thread Ronald Jaramillo


Hello list,
If you are using (or plan to use) Selinium (http://www.openqa.org/ 
selenium/) with your TurboGears project, then Selenium4Gears can

make your life easier =).
Selenium4Gears is a TG app you can mount into your own project and  
use to edit and manage and run your Selenium  tests cases.

Take a look at this entry on my blog:
 http://www.checkandshare.com/blog/?p=36
There you can see a screencast showing how it works and download the  
app as a zip file.


Cheers.
Ronald


Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: SystemExit raised: shutting down autoreloader

2006-01-27 Thread Ronald Jaramillo


Hi Richard,
Sounds like the same problem I'm seeing (check the Bus Error thread),
Ksenia Marasanova has the following fix (which I haven't tried yet):


I've tracked it down to  line 119 of pkg_resources.py in setuptools:
__import__(moduleOrReq)
It happens when moduleOrReq is 'turbogears.fastdata.templates'

When I import it in advance, and put on the first line of config.py
import turbogears.fastdata.templates, the error is gone.


Cheers.
Ronald


On Jan 27, 2006, at 11:05 AM, Richard (koorb) wrote:



Right, I'm using a Mac (tried it on 2 different machines) latest SVN
with both existing and new projects I start the server:

27/Jan/2006:09:38:47 CONFIG INFO Server parameters:
27/Jan/2006:09:38:47 CONFIG INFO   server.environment: development
27/Jan/2006:09:38:47 CONFIG INFO   server.log_to_screen: True
27/Jan/2006:09:38:47 CONFIG INFO   server.log_file:
27/Jan/2006:09:38:47 CONFIG INFO   server.log_tracebacks: True
27/Jan/2006:09:38:47 CONFIG INFO   server.log_request_headers: True
27/Jan/2006:09:38:47 CONFIG INFO   server.protocol_version: HTTP/1.0
27/Jan/2006:09:38:47 CONFIG INFO   server.socket_host:
27/Jan/2006:09:38:47 CONFIG INFO   server.socket_port: 8080
27/Jan/2006:09:38:47 CONFIG INFO   server.socket_file:
27/Jan/2006:09:38:47 CONFIG INFO   server.reverse_dns: False
27/Jan/2006:09:38:47 CONFIG INFO   server.socket_queue_size: 5
27/Jan/2006:09:38:47 CONFIG INFO   server.thread_pool: 0
Registering Service project: development._http._tcp port 8080 path=/
27/Jan/2006:09:38:47 HTTP INFO Serving HTTP on http://localhost:8080/
Got a reply for project: development._http._tcp.local.: Name now
registered and active

As soon as I visit http://localhost:8080 all I get is a failed page  
and

this on the terminal

27/Jan/2006:09:38:57 HTTP INFO SystemExit raised: shutting down
autoreloader
27/Jan/2006:09:38:57 HTTP INFO CherryPy shut down

Any ideas?




Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: Startdate of CalendarDatePicker widget

2006-01-26 Thread Ronald Jaramillo


Thanks.
-ronald
On Jan 26, 2006, at 12:20 PM, Uwe Grauer wrote:



Ticket # is 420.

Uwe

Ronald Jaramillo wrote:


Can you open a ticket about this?
Cheers.
Ronald

On Jan 26, 2006, at 12:54 AM, Uwe Grauer wrote:



[EMAIL PROTECTED] wrote:

I'm sorry but that seems correct it's a time value and all time is
measured in seconds since 1/1/1970.



How would i enter a date like 1/1/1960?

And i'm confused of what exactly you need.

1st you say the startDate is diferent on the widgets then you talk
about catwalk and at last  (on your ticket) your talking about  
trying
to get a year before that date. Could you clearly state what you  
need

and what is the problem?

Problem is the CalendarDatePicker in catwalk doesn't let me enter  
dates

before 1970.

Uwe





Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Bus Error

2006-01-25 Thread Ronald Jaramillo


Hi,
I'm not shure if something is wrong with my setup but trying to run  
any of my projects witht the latest revision generates a bus error on  
my mac, no useful messages from the TG stack, only OSX saying 'bus  
error' =(
Updating back to 565 and running setup.py develop fix the issue,  
doing a fresh update from head and the setup.py dance again bring  
back the blues, anybody else seeing this problem?

Cheers.
Ronald



Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: New to TG (take III)

2006-01-25 Thread Ronald Jaramillo


Your traceback points at connection problem, in test_i18n.py there is  
a connection string being created dynamically.

Can you test your sql installation with that connection string?

eg: sqlite:///+ tempfile.gettempdir().replace(':\\','|/') + / 
testlocaledb


Cheers.
Ronald

On Jan 25, 2006, at 9:34 PM, Luc Charland wrote:



(Ok, replying to myself -- but actually for Ronald)

I tried a simple program to test if sqlobject and sqlite work on my
system from the following post from Michael Schneider:

http://groups.google.com/group/turbogears/msg/bd31171f38bc746d

And it works. So I don't think it is my sqlite installation.

Thanks for the hint anyway.




Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: Startdate of CalendarDatePicker widget

2006-01-25 Thread Ronald Jaramillo


Can you open a ticket about this?
Cheers.
Ronald

On Jan 26, 2006, at 12:54 AM, Uwe Grauer wrote:



[EMAIL PROTECTED] wrote:

I'm sorry but that seems correct it's a time value and all time is
measured in seconds since 1/1/1970.



How would i enter a date like 1/1/1960?

And i'm confused of what exactly you need.

1st you say the startDate is diferent on the widgets then you talk
about catwalk and at last  (on your ticket) your talking about trying
to get a year before that date. Could you clearly state what you need
and what is the problem?

Problem is the CalendarDatePicker in catwalk doesn't let me enter  
dates

before 1970.

Uwe



Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: Integrating a different SQLObject-based module in TG Catwalk

2006-01-24 Thread Ronald Jaramillo


Hi Etienne,
If you run tg-admin shell from within the project directory, can you  
access your model classes through the shell?

Cheers.
Ronald

On Jan 24, 2006, at 11:35 AM, Etienne Posthumus wrote:



I have a module that uses SQLObject that I would like to integrate  
with

a Turbogears project.
Database is SQLITE, v 3.1.3
Turbogears Revision: 569
SQLObject Revision: 1534 (from ./turbogears/thirdparty/sqlobject)

At the top of my model.py in a test project I have added:
  from mymodule.model import *
(Having followed convention of defining my database objects in a
'model' module)

Launching the Toolbox and trying to browse the existing data using
Catwalk I get an error message in a Javascript Alert:
  Fail to load object instance No connection has been defined for  
this

thread or process
No further stacktrace or debug messages.

Any thoughts on how to get this working?



cheers,

Etienne Posthumus




Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: Integrating a different SQLObject-based module in TG Catwalk

2006-01-24 Thread Ronald Jaramillo



On Jan 24, 2006, at 4:41 PM, Etienne Posthumus wrote:



Hi Ronald

Nope, no luck from the shell either. I now suspect it has something to
do with the SQLITE and multi-threading issue that I have seen mention
elsewhere, but I don't know enough about that issue to test it
properly.

Am now busy installing MySQL to test my setup with a different  
database

to verify that.

Here the traceback from my 'tg-admin shell' session:
(where Notation is one of the classes from my third-party
SQLObject-based module)


from idtest.model import *
n = Notation.byNotation('11')


What happen if you add this in the shell after you import your model?
hub = database.AutoConnectHub(sqlite:///path to your db)


Traceback (most recent call last):
  File console, line 1, in ?
  File string, line 1, in lambda
  File
/Users/etienne/tmp/turbogears/thirdparty/sqlobject/sqlobject/ 
main.py,

line 1266, in _SO_fetchAlternateID
result, obj = cls._findAlternateID(name, dbName, value,  
connection)

  File
/Users/etienne/tmp/turbogears/thirdparty/sqlobject/sqlobject/ 
main.py,

line 1257, in _findAlternateID
return (connection or cls._connection)._SO_selectOneAlt(
  File
/Users/etienne/tmp/turbogears/thirdparty/sqlobject/sqlobject/ 
dbconnection.py,

line 856, in __get__
return self.getConnection()
  File
/Users/etienne/tmp/turbogears/thirdparty/sqlobject/sqlobject/ 
dbconnection.py,

line 868, in getConnection
raise AttributeError(
AttributeError: No connection has been defined for this thread or
process


PS. Catwalk is Really Good Stuff. Well done. When testing the new
Idenity framework for my project I noticed Catwalk incidentally, and
went WOW! This prompted me to bring some of my other project over  
to TG

0.9 too.



Thanks! Glad you find it usefull.
Cheers
Ronald

Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: Jeremy Jones shifting gears

2006-01-23 Thread Ronald Jaramillo


Funny, the reason I 'switch' from Django to TG was partly deployment  
(at that time Django required mod_python)

Cheers.
Ronald

On Jan 23, 2006, at 4:33 AM, Kevin Dangoor wrote:



Sadly, it would seem that we've lost a vocal advocate:

http://www.onlamp.com/pub/wlg/9075

I believe we've got a good lineup going for 0.9, but I do hope that we
can make deployment in a variety of environments considerably easier
for 1.0. I appreciate the efforts of people who've been putting docs
up on different deployment scenarios. Let's keep that up and see how
much of that can be turned into useful code that gets someone up and
running quickly in their chosen environment.

Kevin

--
Kevin Dangoor
Author of the Zesty News RSS newsreader

email: [EMAIL PROTECTED]
company: http://www.BlazingThings.com
blog: http://www.BlueSkyOnMars.com



Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: Error from TurboGears==0.9a0dev-r550

2006-01-21 Thread Ronald Jaramillo


I'm not shure, but that sounds like TG is using an older version of  
CheryPy. Try running  easy_install . from within the thirdparty/ 
cherrypy directory.

Hope that helps.
Cheers
Ronald

On Jan 22, 2006, at 12:59 AM, [EMAIL PROTECTED] wrote:



I get the below erro when I try to run my app. I just updated to
0.9a0dev-r550.

C:\data\projects\ftestftest-start.py
Traceback (most recent call last):
  File C:\data\projects\ftest\ftest-start.py, line 20, in ?
from ftest.controllers import Root
  File C:\data\projects\ftest\ftest\controllers.py, line 1, in ?
import turbogears
  File
c:\python24\lib\site-packages\TurboGears-0.9a0dev_r550-py2.4.egg 
\turboge

ars\__init__.py, line 12, in ?
from turbogears import startup
  File
c:\python24\lib\site-packages\TurboGears-0.9a0dev_r550-py2.4.egg 
\turboge

ars\startup.py, line 192, in ?
if startTurboGears not in cherrypy.server.on_start_server_list:
AttributeError: 'Server' object has no attribute  
'on_start_server_list'


What gives ? any help much appreciated.

Martin




Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: note to those following svn: nose now required

2006-01-20 Thread Ronald Jaramillo


++1
On Jan 20, 2006, at 5:41 PM, Bob Ippolito wrote:



On Jan 20, 2006, at 8:30 AM, Kevin Dangoor wrote:



On 1/20/06, Mike Kent [EMAIL PROTECTED] wrote:


Excellent, 'nosetests' in the svn checkout directory now works.

But there are failures.  Apparently sqlite is also required now?


Yeah, I should mention that somewhere. sqlite is *not* required by
TurboGears itself, but the tests do require it. sqlite is a very good
database for tests because you can make an in-memory database  
which is

blazingly fast and requires no cleanup.


Maybe the tg-admin quickstart template should include a sqlite db  
uri relative to the project, so you can get right into the toolbox  
and get prototyping after a quickstart?  Would also be nice to have  
a tool to migrate one DB URI to another, given a model module.


-bob




Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: [Slightly OT] a request's journey

2006-01-19 Thread Ronald Jaramillo


Thanks, once I have the chance to read the documentation for identity/ 
visits (is there any?) I'll update the diagram.

Cheers.
Ronald
On Jan 19, 2006, at 4:02 PM, Kevin Dangoor wrote:



Very nice work Ronald! This kind of thing makes life a lot easier for
people learning the system.

Kevin

On 1/16/06, Ronald Jaramillo [EMAIL PROTECTED] wrote:


Hi,
I have posted an illustration on my blog (http://
www.checkandshare.com/blog/?p=34) that tries to describe the way a
request 'flows' through the TurboGears stack. I plan to use it for my
presentation (and maybe for the online class as well), so any
comments regarding it's accuracy or clarity are welcome.

Cheers.
Ronald

Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog







--
Kevin Dangoor
Author of the Zesty News RSS newsreader

email: [EMAIL PROTECTED]
company: http://www.BlazingThings.com
blog: http://www.BlueSkyOnMars.com



Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: Does anybody do webproject with frames/framesets on TurboGears?

2006-01-18 Thread Ronald Jaramillo


A year ago I had a nightmarish experience trying to debug a servlet  
application running on tomcat where the culprit was a weird  
interaction between nested framesets, IE and sessions. We ended with  
a hackish solution that loaded one document at a time by triggering  
the next load using javascript and the onload handler of the  
previous document, phew %P

I still get nervous ticks when I hear the F*s word...
Ronald

On Jan 18, 2006, at 11:40 PM, Ksenia Marasanova wrote:



2006/1/18, northam [EMAIL PROTECTED]:


should not be big deal, right?




noframes evangelism
Frames are evil. Don't use frames!
/noframes evangelism

;)
--
Ksenia



Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: Several Widget concerns...

2006-01-17 Thread Ronald Jaramillo
Hi,Another use case where prettyprinting means trouble:if you have a tdimg ... //td it get's pretty printed as:td	img .. //tdThe extra line + space should'nt make a difference but a IE render bug will show extra space around the image (as if a br was added after the image). Ugly if you have sliced and  image and 'stich' it back together inside a table in order to make 'rollovers'Cheers.RonaldOn Jan 17, 2006, at 5:53 PM, David Stanek wrote:On 1/17/06, Karl Guertin [EMAIL PROTECTED] wrote: On 1/16/06, Matthew Bevan [EMAIL PROTECTED] wrote: 1. TextArea fields have a large amount of whitespace added to them. Unfortunately for Kid, TextArea fields are whitespace sensitive, thus a None  value results in two tab on one line, then one more on another in the case of my template.  There has to be a way to force KID to not "prettyprint" the content of certain elements... I've run into this in my testing but haven't filed a bug yet. Do Ifile this on kid's trac or on the TG trac under kid? Put it in Kid's trac: http://lesscode.org/projects/kid/ If you have a patch already I'll get to it tonight, otherwise in the next few days.  -- David  Henriksvej 15 2400 København NV +45 22 27 85 11 [EMAIL PROTECTED]  

[TurboGears] [Slightly OT] a request's journey

2006-01-16 Thread Ronald Jaramillo


Hi,
I have posted an illustration on my blog (http:// 
www.checkandshare.com/blog/?p=34) that tries to describe the way a  
request 'flows' through the TurboGears stack. I plan to use it for my  
presentation (and maybe for the online class as well), so any  
comments regarding it's accuracy or clarity are welcome.


Cheers.
Ronald

Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: [Slightly OT] a request's journey

2006-01-16 Thread Ronald Jaramillo


Don't know =) . I have to read a bit about the different license types.
The basic idea is that people are free to use my stuff as they please  
as long as they give proper credit

Cheers
Ronald

On Jan 17, 2006, at 2:46 AM, Mark Ramm wrote:



This is great stuff!

Thanks for doing this -- I'll be pointing people to your blog for the
online intro-to-turbogears class too!

By the way, what CC licence are you using?

--Mark Ramm

On 1/16/06, Ronald Jaramillo [EMAIL PROTECTED] wrote:


Hi,
I have posted an illustration on my blog (http://
www.checkandshare.com/blog/?p=34) that tries to describe the way a
request 'flows' through the TurboGears stack. I plan to use it for my
presentation (and maybe for the online class as well), so any
comments regarding it's accuracy or clarity are welcome.

Cheers.
Ronald

Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog







--
_
Mark Ramm-Christensen
blog: www.compoundthinking.com/blog



Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: [Slightly OT] a request's journey

2006-01-16 Thread Ronald Jaramillo


Exactly!  I'll update the graph later today, thanks!
-ronald
On Jan 17, 2006, at 8:10 AM, Brian Dorsey wrote:



On 16/01/06, Ronald Jaramillo [EMAIL PROTECTED] wrote:


Don't know =) . I have to read a bit about the different license  
types.

The basic idea is that people are free to use my stuff as they please
as long as they give proper credit


Perhaps http://creativecommons.org/licenses/by/2.5/  ?

Take care,
  -Brian



Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: ModelDesigner, drag handle to re-order items gets confused

2006-01-15 Thread Ronald Jaramillo


Hi,
Convention dictate that your classes should be uppercased ; )
But you are right, ModelDesigner should'nt  mix the two references
Cheers.
Ronald

On Jan 15, 2006, at 12:45 PM, Richard (koorb) wrote:



For instance, I might have the following code:

class book(SQLObject):
name = StringCol()
pages = MultipleJoin(page,joinColumn='page_id')

class page(SQLObject):
name = StringCol()
book = ForeignKey(book)

in ModelDesigner when you select the page table and hover over the  
book

*column* the drag handle would appear next to the book *table*

Robin Munn wrote:

On 1/14/06, Richard (koorb) [EMAIL PROTECTED] wrote:


As trac wont let me post a new ticket I'll mention it here.

If you have a field that has the same name as a table, as you mouse
over the field the drag handle appears next to the table instead


When you say the same name, do you mean the same ID attribute? The
spec says the ID attribute must be unique within a document, so if
that's what you're doing, I wouldn't be surprised to find more than
just the drag-handle code getting confused... Or do you mean a
different attribute, like name=...?

--
Robin Munn
[EMAIL PROTECTED]
GPG key 0xD6497014





Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: ModelDesigner broken in r512

2006-01-13 Thread Ronald Jaramillo


Thanks Richard,
r513 takes care of it.
Cheers.
Ronald

On Jan 13, 2006, at 4:25 PM, Richard (koorb) wrote:



Looks like a foreign character in modelDesigner.js, the accented A

Firefox says:


Error: missing ) after condition
Source File: http://imacg5.local.:7654/tg_toolbox/designer/ 
javascript/modelDesigner.js

Line: 1314, Column: 24
Source Code:
if(name=='None' ||Â name == '') return;





Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] MultipleJoin weirdness

2006-01-11 Thread Ronald Jaramillo


Hi,
I'm having problems with the current revision and multipleJoins =(
This is a boil down model:

class Task(SQLObject):
name = StringCol()
owner = ForeignKey(Person)

class Person(SQLObject):
name = StringCol(length=250)
tasks = MultipleJoin(Task)

-It doesn't matter if I create them with tg-admin sql create or  
directy: Task.createTable() from the tg-admin shell -

This is a sample session:

 p = Person(name='ronald')
 p.tasks
Traceback (most recent call last):
  File console, line 1, in ?
  File string, line 1, in lambda
  File /Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/SQLObject-0.7.1dev_r1457-py2.4.egg/sqlobject/ 
joins.py, line 131, in performJoin

inst.id)
  File /Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/SQLObject-0.7.1dev_r1457-py2.4.egg/sqlobject/ 
dbconnection.py, line 598, in _SO_selectJoin

return self.queryAll(SELECT %s FROM %s WHERE %s = %s %
  File /Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/SQLObject-0.7.1dev_r1457-py2.4.egg/sqlobject/ 
dbconnection.py, line 744, in queryAll

return self._dbConnection._queryAll(self._connection, s)
  File /Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/SQLObject-0.7.1dev_r1457-py2.4.egg/sqlobject/ 
dbconnection.py, line 309, in _queryAll

self._executeRetry(conn, c, s)
  File /Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/SQLObject-0.7.1dev_r1457-py2.4.egg/sqlobject/ 
dbconnection.py, line 295, in _executeRetry

return cursor.execute(query)
OperationalError: no such column: person_id

Hmm? Any ideas?
Cheers
Ronald


Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: MultipleJoin weirdness

2006-01-11 Thread Ronald Jaramillo


That's it I'm going to bed!  =)

Thanks
Ronald

On Jan 11, 2006, at 11:31 PM, nerkles wrote:



either:

tasks = MultipleJoin(Task, joinColumn='owner_id')

Or:

class Task(SQLObject):
name = StringCol()
person = ForeignKey(Person)

This is because your Person class automatically has a SQL column named
'person_id'. Because you named the ForeignKey 'owner', SQLObject was
looking for a column named 'owner_id' which doesn't exist. So  
either of

the above changes will fix your problem.




Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: do not your projects after TG components

2006-01-10 Thread Ronald Jaramillo


Can you open a ticket with the use case as part of the description,  
it  sounds relevant to me.

Cheers
Ronald

On Jan 11, 2006, at 1:33 AM, nerkles wrote:



True it's a programming error, but it wouldn't hurt anything to have
quickstart do an idiot-check on the name you give it. There are a  
lot

of modules/components in Python, and quite a few components to TG
itself that a new user/developer might not remember or even know
about--either somebody new to Python and/or to TG. There will probably
be a lot of people who are learning Python and TG at the same time.

It would be helpful for the overall user experience if the thing  
called

quickstart prevents you from creating a mess like that your first
time out. Imagine a stream of errors being your first taste of TG!  
Most

people would give up on it right then. And it wouldn't be difficult to
implement.




Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: Catwalk: Disclosure Triangle on Browsing MultipleJoin() invokes different code (sometimes)?

2006-01-09 Thread Ronald Jaramillo


Hi, I try your model with the current revision and fail to reproduce  
the error, can you mail me your model file?

Cheers
Ronald

On Jan 8, 2006, at 8:36 PM, ssteiner wrote:



I have a class declared like this:

class Project(SQLObject):
name = StringCol(length=40)
client = ForeignKey('Client')
manager = MultipleJoin('Person')
roles = MultipleJoin('AssignedRole')
tasks = MultipleJoin('Task')

When browsing the table in Catwalk, 'tasks' show up first, 'roles'
second, 'manager' third.

The tasks and roles work as expected, the disclosure triangle opens  
and

closes the list of joined records and there's an 'Add Multiple Join'
button.

The manager disclosure triangle, however, throws up an error dialog
with the following text:
  Error, joins objectName: Project, id: 1, join: manager

While trying to hunt this down, I noticed that the code invoked for  
the

working disclosure triangles is:
  javascript:catwalk.toggleJoins('tasks')

Whereas, for the not working one, the code is:

javascript:catwalk.retrieveJoins 
('Project','1','manager','SOMultipleJoin',

'Person')

Anyone have a clue why what is ostensibly the same setup would invoke
different code in CatWalk?

Thanks,

Steve




Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Bug reports

2006-01-09 Thread Ronald Jaramillo


Hi,
If someone out there is dying to do some TG work but  don't know  
where to start, I have an idea, but  not time to pursue it (before 1.0)
It could be nice to have a tg-admin command you could run on your  
current project directory that collected info about your project  
environment.

The output could include:
- Python version
- TG version (and all it's component's versions)
- Project dev and prod configuration (maybe removing password from  
connection strings ;) )

- DB version and dbaccess module (psycopg, etc)
- Platform
- locale and encoding,
etc

The command could have a ToolBox version as well and maybe a widget  
called 'environment'  which after been dropped into a your template

could show a 'php_info' style overview (just prettier =) ).
When someone post about a problem/bug or create a ticket they could  
add/post their 'env' output, making debugging/ tracing much easier


Cheers.
Ronald

Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: Templates not loading?

2006-01-09 Thread Ronald Jaramillo


If you are using TG from svn, you can refer to your templates like this:
template='.mytemplate' instead of  
template='.myprojectname.mytemplate',  this makes it easier to rename  
projects


Cheers.
Ronald

On Jan 10, 2006, at 5:31 AM, Mike Sarahan wrote:



Sorry, I am officially an idiot - I had renamed my project, but
neglected to rename every single template reference in my controllers
file.

Thanks if you had read this and intended on trying to help me.




Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: Broken CatWalk

2006-01-08 Thread Ronald Jaramillo


Hm... I can't reproduce it. Have you empty your browser cache? The  
problem you describe was caused by the former version of catwalk.js  
script.

/ronald

On Jan 8, 2006, at 12:11 PM, ssteiner wrote:



With revision 472, clicking a disclosure triangle for a MultipleJoin
gives the following error:

2006/01/08 06:02:47  INFO Traceback (most recent call last):
  File
/usr/local/lib/python2.4/site-packages/CherryPy-2.1.0-py2.4.egg/ 
cherrypy/_cphttptools.py,

line 271, in run
main()
  File
/usr/local/lib/python2.4/site-packages/CherryPy-2.1.0-py2.4.egg/ 
cherrypy/_cphttptools.py,

line 502, in main
body = page_handler(*args, **cherrypy.request.paramMap)
  File /root/turbogears/turbogears/controllers.py, line 240, in
newfunc
html, fragment, *args, **kw)
  File /root/turbogears/turbogears/database.py, line 189, in
run_with_transaction
retval = func(*args, **kw)
  File /root/turbogears/turbogears/controllers.py, line 257, in
_execute_func
output = func(self, *args, **kw)
TypeError: joins() got an unexpected keyword argument 'start'




Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: Visit Tracking Identity (Revision 476)

2006-01-08 Thread Ronald Jaramillo





Finally, I'm thinking of adding a default login controller and  
templates to the quickstart project. Does anyone have any objections?




+1
Cheers
Ronald


--
Jeff Watkins
http://newburyportion.com/

In the USDA study [of the meat packing industry conducted in 1996]  
78.6 percent of the ground beef contained microbes that are spread  
primarily by fecal material. The medical literature on the causes  
of food poisoning is full of euphemisms and dry scientific terms:  
coliform levels, aerobic plate counts, sorbitol, MacConkey agar,  
and so on. Behind them lies a simple explanation for why eating a  
hamburger can now make you seriously ill: There is shit in the meat.

-- Eric Schlosser, Fast Food Nation





Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: Broken CatWalk

2006-01-07 Thread Ronald Jaramillo


Hi, r472 reverted the half patched js file back to r416, I will take  
a give the new diff attached to the ticked a try.

Cheers
Ronald

On Jan 8, 2006, at 1:30 AM, [EMAIL PROTECTED] wrote:



This is pre-emptive.

CatWalk was inadvertently broken in r460 because half of an unrelated
patch was applied.  It positively won't work with any sort of joins
until this is fixed (there is already a ticket about this, #372).   
From

the looks of it, all the changes in catwalk.js shouldn't be in r460.

Could someone with commit access take a look at this?

The unrelated patch was from ticket #349.  I think I fixed the  
problems

Ronald brought up there, but I'd like to hear back from him before I'd
recommend putting in the other half of the patch as opposed to taking
out the half that's already in there.




Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: Using model.py outside of a TG Application

2006-01-06 Thread Ronald Jaramillo


Hi Cliff no need to, your post reminded me of a patch  
[EMAIL PROTECTED] send to the mailing list in october last year:


+def remote_host(self):
+try:
+return cherrypy.request.headerMap.get(X-Forwarded- 
For,cherrypy.request.remoteHost).split(,)[-1].strip()

+except:
+return ''

This is in svn now, I don't have an apache - TG setup, The code looks  
like it should do the trick but can someone which such a setup

confirm that this is ok?

Cheers
Ronald

On Jan 6, 2006, at 8:31 PM, Cliff Wells wrote:



Kevin Dangoor wrote:


Can you open a ticket to make sure we do this?



Actually, I can't... is trac down?

Cliff




Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: Using model.py outside of a TG Application

2006-01-06 Thread Ronald Jaramillo
Sorry, there is still need for a ticket related to identity (and eventually a ticket  saying that CatWalk  the Toolbox need to use identity and not their own homegrown setup )CheersRonaldOn Jan 6, 2006, at 8:49 PM, Ronald Jaramillo wrote:Hi Cliff no need to Kevin Dangoor wrote: Can you open a ticket to make sure we do this? Actually, I can't... is trac down?Cliff Ronald Jaramillomail: ronald AT checkandshare DOT comblog: http://www.checkandshare.com/blog   Henriksvej 15 2400 København NV +45 22 27 85 11 [EMAIL PROTECTED]  

[TurboGears] Re: Breaking change coming for those using other template engines!

2006-01-06 Thread Ronald Jaramillo


Thanks for pointing that out Cliff =)

On Jan 6, 2006, at 9:44 PM, Cliff Wells wrote:



Kevin Dangoor wrote:

On 1/6/06, Cliff Wells [EMAIL PROTECTED] wrote:


TurboStan 0.8 is released to support this change.



That was quick! Thanks!

If we don't quit thanking each other so much, we're going to have  
to hug.


xoxo,
Cliff





Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: TurboGears new site look - let's get to it!

2006-01-05 Thread Ronald Jaramillo


Hi,
Short comments:
- The download box should left align with the 'Learn  fast column
- Green for the download is ok (kind of a convention this days), but  
orange will be better for

  the other links so they could play up to to the golden gear.
- What about a blue bar at the bottom repeating the top menu (and  
place for copyright notices and other legaleze)

- Search box
- Join mail list box
-(?) a rss icon for subscribing to planet TG (?)

Great work!
Cheers
Ronald

On Jan 5, 2006, at 11:34 PM, Richard (koorb) wrote:



Just going to throw this on the table quickly for some feedback
http://koorb.co.uk/static/images/tglogos/layouts/blue-light-2.png




Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: Python 2.4.2 from Darwinports?

2006-01-04 Thread Ronald Jaramillo
Some month ago I wrote a post to remind me how to get Postgre and psycopg working on OSX with 2.4:http://www.checkandshare.com/blog/?p=5CheersRonaldOn Jan 4, 2006, at 7:21 PM, Kevin Dangoor wrote:On 1/4/06, Gábor Farkas [EMAIL PROTECTED] wrote: then i wanted to install psycopg.i could not find a macosx binary for psycopg.i downloaded the source code, compiled it and so on...and it was a painso i switched to the fink python.a "fink install psycopg-py24" took care of my problems.and later i installed pysqlite with a similar way.and fink also contains posgresql7.4 and 8.0. yes, there are postgresbinaries for macosx, but it was simpler for me to simple fink_install it.so this is it.when you only need python, macpython is easier to install. but when youneed more python libraries around (some of which needs other non-pythonpackages (sqlite for example)), it's simpler imho to just usefink/darwinports.now, maybe easy_install can do all the psycopg and pysqlite stuff, idon't know. if it can, then consider this mail as obsolete :) easy_install will help, but I certainly agree that having anothersource of binary packages makes life easier. If people want to puttogether instructions for Fink or DarwinPorts on the DocumentationPlayground, I'll figure out a way to link it in to the main installdocs. p.s: i checked the python cheese shop, and there is a pysqlite package,but i could not find a psycopg one... And you do still need to have the sqlite library installed to installpysqlite. I'm planning on making a statically linked Mac egg forpysqlite as soon as I figure out how ;)Kevin   Henriksvej 15 2400 København NV +45 22 27 85 11 [EMAIL PROTECTED]  

[TurboGears] Re: fastdata DataController does not coerce types

2006-01-04 Thread Ronald Jaramillo



On Jan 5, 2006, at 8:07 AM, Randall wrote:




I think I'll be writing my own form_widget_class anyhow, but I thought
this was a bit odd.  Ultimately, like so many others, I'm shooting for
some good CRUD functionality.  A bit off topic, for foreign key  
fields,

I think it would be neat to have a select list to choose the foreign
key from.


Remember that the list can get quite large, and large lists take time  
to load (and are poor from a usability pov. )
The ideal will be to display a list  if there are less than n items  
where n could be 10-20 by default (and configurable)
If there are more items it should be a read only field with a  
'browse' button that displays a grid/table with

paging facilities where the user could select the record from.
Cheers
Ronald

ps. it doesn't work like that in CatWalk neither but it will at some  
point =)



Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: TurboGears new site look - let's get to it!

2006-01-03 Thread Ronald Jaramillo


Really nice. In my opinion the header/top is perfect! Please don't  
touch it.

Regarding the body, the layout kind of swims, I'm missing a grid.
I move the elements a bit just to anchor everythink:
http://www.checkandshare.com/images/tg_blue.png

Otherwise I think the disign is quite ready for HTML (and content)
Cheers.
Ronald

On Jan 3, 2006, at 3:55 PM, Richard (koorb) wrote:



[1]  is a slightly different approach with the following provisos;

-  Three steps are just filler ideas, so both text and images  
should be

improved.
-  Download Now grey box should have relevant information about the
current release.
-  Order and position of elements are initial suggestions only, all
comments welcome

I think however that popular opinion is to a merge of the best from
layouts 1, 2 and 3 [2].
If I get any positive feedback from this design I will work with that
too obviously. I am going to start developing some XHTML layouts soon
to better get an idea of how different pages will work so please
contribute any ideas and comments, positive or otherwise, now.

[1] http://koorb.co.uk/static/images/tglogos/layouts/blue-light.png
[2] http://koorb.co.uk/static/images/tglogos/layouts/




Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] reloading a model

2006-01-03 Thread Ronald Jaramillo


Hi,
I'm trying to add table generation from within ModelDesigner, but I  
have a problem:
After ModelDesigner write your new model file it need to reload the  
model  in order to create the tables.

But reloading the model file in TG alway result in a Traceback:

File /Users/ronald/Documents/PYTHON/langtest/modelreload/modelreload/ 
controllers.py, line 8, in reloading

reload(model)
  File /Users/ronald/Documents/PYTHON/langtest/modelreload/ 
modelreload/model.py, line 8, in ?

class Genre(SQLObject):
  File /Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/SQLObject-0.7.0-py2.4.egg/sqlobject/ 
declarative.py, line 94, in __new__

cls.__classinit__(cls, new_attrs)
  File /Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/SQLObject-0.7.0-py2.4.egg/sqlobject/main.py,  
line 798, in __classinit__

classregistry.registry(cls.sqlmeta.registry).addClass(cls)
  File /Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/SQLObject-0.7.0-py2.4.egg/sqlobject/ 
classregistry.py, line 91, in addClass

'__file__', '(unknown)')))
ValueError: class Genre is already in the registry (other class is  
class 'modelreload.model.Genre', from the module modelreload.model  
in /Users/ronald/Documents/PYTHON/langtest/modelreload/modelreload/ 
model.pyc; attempted new class is class 'modelreload.model.Genre',  
from the module modelreload.model in /Users/ronald/Documents/PYTHON/ 
langtest/modelreload/modelreload/model.pyc)


I there a way to flush the sqlobject registry before reloading the  
model?


Cheers
Ronald



Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: Unreadable characters in CatWalk

2005-12-31 Thread Ronald Jaramillo


Hi Oli,
There is an open ticket for it:
http://trac.turbogears.org/turbogears/ticket/178

Haven't have the time to track it down yet.
Cheers
Ronald


On Dec 31, 2005, at 10:51 AM, Olli Wang wrote:



by the way, i could not directly use CatWalk to add Chineses words  
into

tables, too. but english words is ok. :(




Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: catwalk problem can't find /list

2005-12-31 Thread Ronald Jaramillo


Hi,
If you call catwalk like this (from the toolbox):
http://localhost:7654/catwalk/
instead of
http://localhost:7654/catwalk

or (if you have mounted catwalk to your controller)
http://localhost:8080/catwalk/
instead of
http://localhost:8080/catwalk

Is the problem still there?

Cheers
Ronald

On Dec 31, 2005, at 6:41 PM, [EMAIL PROTECTED] wrote:



Glad I'm not the only one... it also can't find:

columns
instances
instance
manageRelatedJoins
updateColumns
updateColumnsJoinView
saveModelOrder
columnOrder
columnsForLabel
setColumnForLabel
updateJoins
joins
add
update
remove

Which is every single method that is called via loadJSONDoc. Something
is definitely wrong, I'm glad it wasn't just me.




Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: Model designer in recent svn not working

2005-12-29 Thread Ronald Jaramillo


Hi Fabian,
The template was refering to 'modeldesigner.js' but the js file name  
is 'modelDesigner.js'.

Thanks for the tip, this is fixed in svn.
Cheers.
Ronald

On Dec 29, 2005, at 2:30 PM, [EMAIL PROTECTED] wrote:



Hello,

since the model designer is now available in the new revisions (413  
for

me), I wanted to give it a try but it's not working. The page is
displayed but nothing happens. The logfile complains about a missing
file:

2005/12/29 15:23:08 DEBUG INFO NOT FOUND file:
/home/faer/workspace/turbogears/turbogears/toolbox/designer/static/ 
javascript/modeldesigner.js


Has anybody tried it successfully?

I saw the demo on the website and it looked great, so I'm eager to try
it on my installation :-)

Regards,

Fabian




Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: Model designer in recent svn not working

2005-12-29 Thread Ronald Jaramillo



On Dec 29, 2005, at 2:56 PM, [EMAIL PROTECTED] wrote:



Hello Ronald,

thanks for the quick fix, it's working now (rev. 414), a really great
tool.


Thanks, you are welcome

Do you think it's possible to load the models in the current
project into the designer in the future?


Working on it. =)


With best regards,

Fabian




Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: Modules - Is this the way it is?

2005-12-22 Thread Ronald Jaramillo


What about adding chesseshop classifiers to turbogears.quickstart. 
+project+.egg-info.PKG-INFO?
If by convention there was a default classifier 'Environment ::  
TurboGears'  for all quickstarted TG apps, we could even have a tool  
in toolbox that could
query the cheeseshop and show them categorised (and a TG' website  
could automatically pull a list of fresh baked apps)


Cheers
Ronald


On Dec 22, 2005, at 7:39 PM, Jorge Godoy wrote:



Alvin Wang [EMAIL PROTECTED] writes:


For example, the email routine I wrote and posted, if it doesn't make
it into the core.  It would not bother me if it doesn't.  However, it
is useless outside of TG.


But what is the problem of having it there -- cheeseshop, etc. --  
and citing

that it requires TG?  I believe it would bring visibility to TG.


I know that we don't want to re-invent the wheel but this is sort of
like documentation.  TG can point at the documentation for all the
component projects but that is a lot of reading.  It would be  
better if
TG had it's own documentation on the TG way.  With a lot of work,  
I can
get any of the cheeseshop routines to work with TG.  However, I am  
lazy

and would rather not wade through over 1000 routines to find the TG
ones.


Your intent, then, is to simplify searching for TG_stuff...  I  
see...  But
then, CheeseShop already allows searching based on several  
information fields.

It is just a matter of having all TG packages adding something like
Topic::TurboGears or adding TurboGears in the Summary,  
Description, etc.



The underlying reason is just to reduce the learning curve.  TG has
done some reat work with screencasts and a really helpful user
community.


I'm more to reuse CheeseShop and enhance TG's visibility.  Creating  
everything
new would work as well -- or even better -- but would isolate TG  
from the rest

of the Python community...

Just my humble opinion, though...

--
Jorge Godoy  [EMAIL PROTECTED]



Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: New devcasts: forms and crud/fastdata

2005-12-22 Thread Ronald Jaramillo






- When I use form_order -- I suppose I have to have it on  
my model,
  it wasn't clear on the video --, can I specify what will  
be the
  screen name for the field?  For example, you had  
Pagename, how
  could I make it into Page Name or even New wiki page  
name?


in turbogears.fastdata.formmaker you have column_widget_generic_col  
which returns:

widgets.TextField(column.name)

The could be extended to check if your model column has a title  
attribute and a default value:
	return widgets.TextField(name=column.name,label=(column.title or  
column.name), default=column.default)


  I really liked the way you implemented form_order,  
specially
  because one usually want hiding useless information  
such as ids,

  timestamps and other auditing columns.

- How can I create pages of data?  After your wiki example had
  something like 700 entries, it wouldn't be comfortable to  
work with
  all of them at once...  Imagine some application where  
you can heve
  1000 entries added everyday...  :-)  Retrieving a fixed  
ammount of
  entries -- I default to 50 entries -- grants me a fixed  
ammount of
  time to render a page, no matter how many entries there  
are on the
  database.  Using it freely will make rendering time  
increase, hence

  diminish the productivity of the person (people) using the
  system...


The grid you saw in the demo consists of 23 lines of codes.It's a  
starting point. This can (and will) be able to handle things like  
paging, defaulting to fx. 20 items in a view. More rows than that,  
and you get a table footer with previous/back buttons, a 'page  
textfield 3/textfieldout of 6' label and a drop-down where you  
can select how many item to show per page (20, 50, 100, 200,etc)




- Last, but not least important, how will I18N work here?

About Forms:

- It really gave me the idea of putting an attribute  
'error_message'
  into each Widget so that form validation could be more  
verbose when

  showing the form back to the user, so that he knows what is
  wrong...  For FormTable, I believe the message could go  
on the same
  column the widget itself is shown, after a br /,  
putting it on

  the line below the field the user filled -- and in red? ;-)

- The default is OK to be maintained and in fact it is  
*very* helpful,

  but again, how to I18Nize it?  ;-)

I am seriously considering delaying a delivery to use this CRUD  
mechanism...

I think it will be more professional ;-)


And, by the way, with your first video I also had to turn the sound  
to the
maximum.  Isn't there any recording set you can do to make it  
louder? :-)  I
jumped from my chair 5 times with ICQ/MSN noises of people getting  
in and out

because I had the volume at the maximum to hear your videocast :-)


--
Jorge Godoy  [EMAIL PROTECTED]


Ronald


Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: Agreement signed with Prentice Hall to publish a TurboGears book!

2005-12-20 Thread Ronald Jaramillo


Hi Mark,
First, congratulations with the book deal!

Regarding the 'internet class':
IMO. Python (and by extension TG) biggest advantage in the web- 
framework arena, is that there is so much quality Python code around  
which

can do pretty much anything you want.
If you want to 'webalize' some of the existing code base TG is great  
because it stays out of your way.
The overhead added by TG is very low, so you can focus on your  
application's problem domain.
One good way to teach TG could be to go trough projects that use/ 
integrate existing components.

Some examples (shoots from the hip) could be:

--- A widget:
Creating a 'plot' widget using Matplotlib (http:// 
matplotlib.sourceforge.net/).
The project should use setup tools to handle the dependencies to  
Matplotlib.
Want a scatter plot?  just add your plotWidget to your kid file, pass  
the type and the data/functions to it and

tada:
http://matplotlib.sourceforge.net/screenshots/scatter_demo2_small.png

-- An app:
Document management app. List directories, preview files, upload/ 
download. The os module make this a breeze.
To make it really useful integrate pylucene (http:// 
pylucene.osafoundation.org/) , to automatically index all documents  
and provide

high quality search.
Add tagging capabilities by using Tasty (http://tasty.python- 
hosting.com/) just to show how easy is to incorporate existing code.


-- A ToolBox tool
Use Pil  to create a tool where the users can define a 'style' for a  
text heading. They can upload fonts, set the foreground and  
background colours
(or background image), set the padding and margin, the font weight  
and font size. They can preview all changes in real time.
Once they save their style, they can refer to it on their kid  
templates to automagically generate image text for their headings.
h1 class=Zapfino16pxOnAGreenBackgroundThis text will be render as  
an image/h1



Other projects could show how to cannibalise on Python platform  
specific integration (This is something really difficult from Java)
- import structure and data from an uploaded excel file (using win32  
or pyExcelerator ( http://sourceforge.net/projects/pyexcelerator) )
- automagically migrate MS Access applications to TG using win32 to  
read the table definition, create the corresponding SQLObject models,
  import data, and let the user use TG's CRUD support to interact  
with the app (or CatWalk).
- create a monitoring app with TG and pyObjectC to manage OSX  
machines on a lab.
- use ctypes (http://starship.python.net/crew/theller/ctypes/) from  
TG to webify a legacy application (maybe for house automation)


There are ton of great apps that can be created with TG with minimal  
effort by combining existing projects, and this goes

along TG's spirit of using best of breed components.

I'm looking forward to the book and classes. If I can be of any help,  
let me know.


Cheers
Ronald

On Dec 19, 2005, at 10:16 PM, Mark Ramm wrote:



On 12/19/05, Kevin Dangoor [EMAIL PROTECTED] wrote:


After a month of discussions with two different publishers (both of
which sounded quite excited about the project), Mark Ramm and I have
agreed to write a TurboGears book for Prentice Hall.


Snip


(Please wait a few months for delivery :)


Actually there are a couple of ways that you can get involved sooner
than that! ;)

I plan to test out a lot of the material for the book with a class
physically located in Ann Arbor, but available to others on the
Internet somehow.

I'm also going to try to put together a series of monthly code-walk
through screencasts to highlight open-source TurboGears projects from
the community.   I am convinced that one of the keys to a framework's
success is the ability to help developers get up to speed quickly.
People have a lot of choices, and the one that makes learning to do
cool new things easiest is going to win a lot of hearts and minds!

If you have ideas or experience running an Internet available class,
or want to participate in the class, please let me know.As soon as
more details are available, I will post them to the list, and on my
blog (http://compoundthinking.blogspot.com)



Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





[TurboGears] Re: Agreement signed with Prentice Hall to publish a TurboGears book!

2005-12-19 Thread Ronald Jaramillo


Wt = )!


On Dec 19, 2005, at 9:55 PM, Kevin Dangoor wrote:



After a month of discussions with two different publishers (both of
which sounded quite excited about the project), Mark Ramm and I have
agreed to write a TurboGears book for Prentice Hall. Prentice Hall is
the largest technical publisher in the world and will provide
excellent marketing and distribution support for the book. The
worldwide reach is important, as TurboGears has many users outside of
the US.

We're working with Mark Taub, who has experience publishing books for
other open source projects. Mark also worked with Bruce Perens on
Bruce's series of books at Prentice Hall.

We're grateful for the positive reviews and useful input our proposal
received from some notable names in the Python world. This project is
going to be a lot of fun, and we can't wait to get it out there.
(Please wait a few months for delivery :)

Kevin

--
Kevin Dangoor
Author of the Zesty News RSS newsreader

email: [EMAIL PROTECTED]
company: http://www.BlazingThings.com
blog: http://www.BlueSkyOnMars.com



Ronald Jaramillo
mail: ronald AT checkandshare DOT com
blog: http://www.checkandshare.com/blog





  1   2   >