[TurboGears] Re: Unable to open database file
Hi, Does the 'C|' look right? Shouldn't it be 'C:'? In any case, can you try running open(path, 'w') in python where path is the location of the sqlite database and see if that works? Regards, -- Swaroop C H www.swaroopch.infoOn 11/7/05, icylamb [EMAIL PROTECTED] wrote: I am following the 20mins tutorial and I have been going through allthe installation steps for Window. When I came to the step to run 'tg-admin sql create', I have manually edited the dev.cfg file to makeit run in the development mode as well as pointing to the databasesqlobject.dburi=sqlite:///C|Turbo Gears/installationfiles/Wiki/wikidata.dbHowever, I've got this error at this line in its traceback: . self._conn = sqlite.connect(self.filename, **opts) pysqlite2.dbapi2.OperationalError : unable to open database fileI don't understand why it's unable to open the wikidata.db? Do I needto create this file first before pointing to it or it willautomatically create this file for me after I run tg-admin sql create? Please help. Thanks
[TurboGears] Re: Unable to open database file
It's must like below: sqlobject.dburi=sqlite:///C|/Turbo Gears/installation files/Wiki/wikidata.db do you see? sqlite:///C|/the/path/to/db/file
[TurboGears] Re: Choice of video capture software and medium.
On Nov 2, 2005, at 8:27 AM, Kevin Dangoor wrote: On 11/1/05, Matthew Bevan [EMAIL PROTECTED] wrote: I find it pretty great that the 20-minute video and various feature show-offs for CatWalk are being done in video. Realtime demonstrations can often have more impact than written descriptions, however, I have problems with the choice of medium. On my wonderful 64-bit laptop, when I play those quicktime videos I get no audio. On the other hand, I have Macromedia Flash running without a problem. (A feat on 64-bit assisted by a binary version of Firefox). Have you tried VLC by any chance? It may not work with the codec that I've used for this incarnation of the video. I'm not sure, but VLC plays an awful lot of files. I am planning to try different codecs to improve compatibility for Linux users. If I had the money for Sorenson Squeeze, I'd generate SWFs. Or, if I was using Camtasia on Windows I could likely do it there as well. Camtasia has other features and is tempting... it's a pity it's Windows only. At the moment, I just don't have the time to try and wire up something like vnc2swf with audio on my Mac. ffmpeg can transcode to flv, which should be playable anywhere Flash or VLC are around. -bob
[TurboGears] Re: Possible Quick Fix For The 20 Min Wiki Tutorial
The problem is that you are using the version from svn (since allow_json is in the not released 0.9) and the wiki tutorial is for 0.8. It will surly be updated in time for the 0.9 release. Anyway. Either you could change allow_json in the .cfg file as you did or you could se allow_json= True in the @expose() decorator for the specific method. On 11/7/05, FooManChu [EMAIL PROTECTED] wrote: Just starting to get into TurboGears, and so far I am really enjoying it. Initially I could not complete the last AJAX section as adding tg_format=json to my pagelist page did nothing. I ended up tracking down the problem (I think I'm still new to this) to the dev.cfg file: # Allow every exposed function to be called as json, # tg.allow_json = False Changing this to tg.allow_json = True allowed me to spit out JSON output as described in the tutorial. Not sure if this is the correct way to solve the problem. Perhaps add a line in the tutorial to check the config file for this setting? Or if there is something else that has to be done add that (unless I'm blind and missed it). -- cheers elvelind grandin
[TurboGears] Re: Unable to open database file
Dont't know if it really matters for sql create. but does the directory exist? On 11/7/05, icylamb [EMAIL PROTECTED] wrote: I am following the 20mins tutorial and I have been going through all the installation steps for Window. When I came to the step to run 'tg-admin sql create', I have manually edited the dev.cfg file to make it run in the development mode as well as pointing to the database sqlobject.dburi=sqlite:///C|Turbo Gears/installation files/Wiki/wikidata.db However, I've got this error at this line in its traceback: . self._conn = sqlite.connect(self.filename, **opts) pysqlite2.dbapi2.OperationalError: unable to open database file I don't understand why it's unable to open the wikidata.db? Do I need to create this file first before pointing to it or it will automatically create this file for me after I run tg-admin sql create? Please help. Thanks -- cheers elvelind grandin
[TurboGears] Re: Indentity: flash when login fails ?
William, This is related to ticked #30: http://trac.turbogears.org/turbogears/ticket/30 The patch to get_flash that I have posted there should fix the flash comes 1 page too late problem you describe without the need for an extra page load. Sean Cazzell On Mon, 2005-11-07 at 01:07 -0800, william wrote: I would just add a turboflash in case of failed login (wrong userid or passwd) Thus, In my Provider I've put the folowing code: if (user.passwd!=passwd): turbogears.flash('invalid userid or password') return None But the message does not appears on the page where I'm redirected, except if I click on one of the link there ;-(. Thus the flash comes 1 page too late. Problem come from redirect (I think) wich use (probably) HTTP code 304. How can I says to the browser to refresh the page after a failed login? Thanks William --- http://www.opensource4you.com
[TurboGears] Some sitetemplate weirdness
I just bumped my TG installation to 0.8a4 from TG 0.5.0. I'm getting the following error upon loading a kid template. HTTP INFO SystemExit raised: shutting down autoreloader After some code tracing, I found that reloader_thread() in turbogears/startup.py is picking up a module with a __file__ attribute value equal to 'string.' This is obviously not a reloadable module (os.stat('string').st_mtime raises OSError as you'd expect). I believe the source of the string module is the default setting for sitetemplate in lookupTemplate() in turbogears/view.py. sys.modules[sitetemplate] = \ kid.load_template(html/html, name=sitetemplate) Kid loads this module with a __file__ attribute equal to 'string'. The weirdnessis this. I have two TG apps that I'm working on. In one, the above module appears in the reloader_thread's reloadable module list. In the other, it does not. The default sitetemplate is used in both apps. I is not currently clear to me why there is a difference between the two apps. The work around is to provide a real site template in the config file(s) via sitetemplate. -Matt Thorn
[TurboGears] Re: Indentity: flash when login fails ?
Should I understand that problems like wrong password is not managed by Identity ? But this must be managed by a Form manager ?
[TurboGears] Installation with no internet connection
Hi... I have to do a TurboGears installation with no Internet connection. What I want to know is if I have to download all the packages listed here http://www.turbogears.com/download/index.html or only the TurboGears egg should do. thanx
[TurboGears] Re: Indentity: flash when login fails ?
I'm not certain I understand your question. The identity framework will determine when the supplied password is incorrect and redirect to the URL specified by the config variable "identity.failure_url".What you choose to do in the controller that handles the failure URL is entirely up to you.On 7 Nov, 2005, at 7:37 am, william wrote:Should I understand that problems like "wrong password" is not managed by Identity ? But this must be managed by a "Form" manager ? --Jeff Watkinshttp://newburyportion.com/
[TurboGears] Re: Installation with no internet connection
You would need to download all the eggs On 11/7/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi... I have to do a TurboGears installation with no Internet connection. What I want to know is if I have to download all the packages listed here http://www.turbogears.com/download/index.html or only the TurboGears egg should do. thanx -- cheers elvelind grandin
[TurboGears] Re: Installation with no internet connection
Thanx, that's what I figured. But there I so many that I was hoping there would be a all-in-one approach.
[TurboGears] Re: Installation with no internet connection
perhaps we could zip them up or something On 11/7/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thanx, that's what I figured. But there I so many that I was hoping there would be a all-in-one approach. -- cheers elvelind grandin
[TurboGears] Ajaxy Exception Catching
Has everybody seen this? http://blog.ianbicking.org/ajaxy-exception-catching.html If you haven't, go take a look, it's really, really cool !! Cheers Ronald Ronald Jaramillo mail: ronald AT checkandshare DOT com blog: http://www.checkandshare.com/blog
[TurboGears] Re: Installation with no internet connection
Elvelind Grandin wrote: You would need to download all the eggs More precisely, you need to download only the eggs for your platform. If you're on Windows, you don't need the Mac eggs or vice versa. If a particular package doesn't have either a generic egg, or an egg for your platform, you'll need to download the source package. Download them all into a directory, and then use that directory on the easy_install command line in place of the TurboGears download URL, e.g.: ez_setup.py -f somedir --script-dir=/usr/local/bin TurboGears where somedir is the directory where the eggs and source package(s) are. EasyInstall will then attempt to satisfy all the dependencies using the contents of somedir. On 11/7/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have to do a TurboGears installation with no Internet connection. What I want to know is if I have to download all the packages listed here http://www.turbogears.com/download/index.html or only the TurboGears egg should do.
[TurboGears] How to unsubscribe?
How can I unsubscribe this mailing list? -- OGURA Toshiyuki
[TurboGears] Re: Coding style question
Sean Cazzell wrote: Great, I saw your post on CP-dev. I wonder if Ian would consider transitioning SQLObject? I know he mentioned earlier that all of his new code (in other projects) is using names_with_underscores. I'm not sure how feasible it really is. It's an annoying transition to make, as it breaks everything, but only *barely* breaks everything. SQLObject generally provides good backward compatibility. Also, there's quite a bit of indirect documentation out there, little of which is likely to be updated. I am changing some names as I reimplement things (like the new joins are ManyToMany and OneToMany), and new functions added will probably be underscore separated (and it's not uncommon that functions and methods have different styles). But I'm not sure if I can change the naming convention. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
[TurboGears] What about the SimpleAdminIdea ?
When I read the SimpleAdminIdea (http://trac.turbogears.org/turbogears/wiki/SimpleAdminIdeas), I find several good ideas I would like to use (FormIO sound great to me). But, where those ideas are now ? Are there people working on that ? Beta code available ? to test ? Thanks
[TurboGears] Re: TurboGears, or why I chose it over Django and Ruby on Rails
[EMAIL PROTECTED] wrote: IMO, the easiest and the cleanest way is not have turbogear handle the validating. It is unnatural and I found it to be useless if I want to do anything that is useful. Just receive the params as kwargs(which cherrypy would support no matter what change will be there) then validator it using schema or whatever within the handler. One thing that I would like to see is for the passing of args as **kwds to become standard in TG. I write many, many lines of code that look like: def functionname( aaa='', bbb='', ccc='' ddd='' eee='' fff='' ggg=''): followed further down by: ret = dict( aaa=aaa bbb=bbb ccc=ccc ddd=ddd eee=eee fff=fff ggg=ggg ) followed a little further down, by: Person = Person.get(PersonId) ret = dict( aaa=Person.aaa bbb=Person.bbb ccc=Person.ccc ddd=Person.ddd eee=Person.eee fff=Person.fff ggg=Person.ggg ) If TG, SQLObject, and Formencode were all more dictionary oriented, much of that tedious grunt work could be eliminated. I have a project that I had originally written in php. Then I rewrote it in mod_python. I am now finishing it up a rewrite to TG. The mod_python version is smaller (and clearer) than the php version. The TG version is smaller (and I think clearer) than the mod_python version. But the difference in size is not that dramatic. And when I look at my TG code, I see a lot of lines devoted to tediously dealing with individual attributes when I'd rather just take a dictionary, add or modify a couple of the entries, pass it, and have it validated and conditionally saved. Just thought I'd mention this. Thanks, Steve Bergman
[TurboGears] Re: TurboGears, or why I chose it over Django and Ruby on Rails
That is why I want to use the schema more and ask for more dict related functionalities in FormEncode, SQLObject, TG. Coding in this style just makes no sense to me. It looks cool for a quick 20 minutes wiki demo but breaks down when I have lots of fields and lots of tables. Steve Bergman wrote: One thing that I would like to see is for the passing of args as **kwds to become standard in TG. I write many, many lines of code that look like: def functionname( aaa='', bbb='', ccc='' ddd='' eee='' fff='' ggg=''): followed further down by: ret = dict( aaa=aaa bbb=bbb ccc=ccc ddd=ddd eee=eee fff=fff ggg=ggg ) followed a little further down, by: Person = Person.get(PersonId) ret = dict( aaa=Person.aaa bbb=Person.bbb ccc=Person.ccc ddd=Person.ddd eee=Person.eee fff=Person.fff ggg=Person.ggg ) If TG, SQLObject, and Formencode were all more dictionary oriented, much of that tedious grunt work could be eliminated. I have a project that I had originally written in php. Then I rewrote it in mod_python. I am now finishing it up a rewrite to TG. The mod_python version is smaller (and clearer) than the php version. The TG version is smaller (and I think clearer) than the mod_python version. But the difference in size is not that dramatic. And when I look at my TG code, I see a lot of lines devoted to tediously dealing with individual attributes when I'd rather just take a dictionary, add or modify a couple of the entries, pass it, and have it validated and conditionally saved. Just thought I'd mention this. Thanks, Steve Bergman
[TurboGears] Re: TurboGears, or why I chose it over Django and Ruby on Rails
Steve Bergman wrote: [EMAIL PROTECTED] wrote: IMO, the easiest and the cleanest way is not have turbogear handle the validating. It is unnatural and I found it to be useless if I want to do anything that is useful. Just receive the params as kwargs(which cherrypy would support no matter what change will be there) then validator it using schema or whatever within the handler. One thing that I would like to see is for the passing of args as **kwds to become standard in TG. I write many, many lines of code that look like: def functionname( aaa='', bbb='', ccc='' ddd='' eee='' fff='' ggg=''): Of course, with this function definition you are really unpacking a dictionary into local variables (a dictionary of which is available in locals(), though I personally avoid using that). Or CherryPy is unpacking for you. Anyway, there's a dictionary in there just waiting to get out ;) Obviously (hopefully?) you can also use **fields in the function signature. FormEncode definitely prefers dictionaries -- it's not unpacking anything. If you use variabledecode (which can be used with or without FormEncode validators) then you can using naming conventions to get all the values in a subdictionary. E.g., with keys like obj.aaa, obj.bbb, etc, you'll get a dictionary in the variable obj. This can be used to partition variables into a more cohesive set, with less issues of unrelated variables leaking in, or having to rearrange the dictionary that you get (popping keys and the like). -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
[TurboGears] Re: Installation with no internet connection
[EMAIL PROTECTED] wrote: Sound just like what I need. I doing the installation on Windows, tough and I'm not sure what the --script-dir flag stands for. --script-dir sets the location where commands like tg-admin and easy_install will be installed. On Windows, you should pick a directory on your PATH, or omit the option altogether, in which case the scripts will go in C:\Python24\Scripts. If you install them there, you'll have to include that path when you run them, so you may want to either put that directory on your PATH, or else use a --script-dir that's already on your PATH.
[TurboGears] CatWalk, or what I need an automated administration interface to do.
I'm creating a very complex data structure which requires some advanced features: 1. SingleJoin for things like physical/shipping/billing addresses: class Address(SQLObject): # ... class Client(SQLObject): # ... Physical= SingleJoin('Address') Shipping= SingleJoin('Address') # ... 2. Defaults on everything and None values on ForeignKey elements: class Server(SQLObject): # ... Account = ForeignKey('Account', default = None) # ... class Service(SQLObject): Type= EnumCol(enumValues=['TCP','UDP','Both'], default=TCP, title = Port Type) 3. An ability to insert relational data inline. For example, Service is Many:1 with Server, it would be nice to be able to insert Service records from the Server record view. --- CatWalk does not display #1 in anything other than structure view. CatWalk halts insertion and display of #2 if the ForeignKey is None, and does not understand defaults on anything. Number 3 would take a large amount of the tedium away from what I'm doing, which involves much switching between tables to create data in the correct order. *ugh*
[TurboGears] Re: TurboGears, or why I chose it over Django and Ruby on Rails
Leandro Lucarella wrote: With svn's SQLObject now you can do: ret = Person.get(PersonId).sqlmeta.asDict() Yes. I've been looking forward to that feature's debut in TG. Can I also pass a dictionary to SQLObject to set the attributes of an existing or new object to the dictionaries values? It seems like I saw somewhere that I can already do that? If so, then by using Bonono's strategy, I would be able to do exactly what I want. The only tedious grunt work I would have to do would be to initialize my dict entries/attributes/fields once in my method for putting up a form to get values for a new object. Everything else would be just passing dictionaries and possible twiddling with an entry here or there. That would be exactly what I was looking for in TG. I looked at DJango, etc. and decided that they looked too generalized. Django looked great... if all you do is CMS. I wanted a generalized web application framework. Not a web CMS framework. I want as much of the flexibility of mod_python as I can retain, but with the framework handling the wrote mechanical tedium. BTW, bonono, I finally got to the reporting part of my app and tried out the info in the link you provided me a while back to be able to do raw SQL through SQLObject. Works great! But it did demonstrate to me how I'd gotten used to the simplicity of SQLObject for doing simple DB related things. (And it was a bit jarring having to switch gears even insofar as what the fields db fields were named, e.g. employee_phone vs employeePhone.) A fusion of the two ways of doing things into TG would be a match made in heaven. The only problem being that I wouldn't have anything more to complain about! ;-) -Steve
[TurboGears] Re: TurboGears, or why I chose it over Django and Ruby on Rails
Steve Bergman wrote: BTW, bonono, I finally got to the reporting part of my app and tried out the info in the link you provided me a while back to be able to do raw SQL through SQLObject. Works great! But it did demonstrate to me how I'd gotten used to the simplicity of SQLObject for doing simple DB related things. (And it was a bit jarring having to switch gears even insofar as what the fields db fields were named, e.g. employee_phone vs employeePhone.) If you use Class.q.employeePhone, that should translate to class.employee_phone in the SQL. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
[TurboGears] Re: What about the SimpleAdminIdea ?
Hi william, Kevin is busy working on implementing his ideas, you can find the source code of what he has done so far here: http://trac.turbogears.org/turbogears/browser/trunk/turbogears/forms/ and a relevant post here: http://groups.google.com/group/turbogears/browse_frm/thread/d76796b5d25fdccc/0fd7922687514334 Ciao Michele
[TurboGears] Re: TurboGears, or why I chose it over Django and Ruby on Rails
Ian Bicking wrote: If you use Class.q.employeePhone, that should translate to class.employee_phone in the SQL. Is that supposed to work in this context? results = Timesheet._connection.queryAll(SELECT Client.q.clientName, Project.q.projectDesc, Timesheet.q.travelTime, Timesheet.q.regularTime, Timesheet.q.description, TImesheet.q.internalNote FROM Timesheet, Client, Project WHERE timesheet.client_id = Client.id AND timesheet.project_id = Project.id AND date = '%s' AND date = '%s' ORDER BY client.client_name % (beginDate, endDate) ) I'm getting an error saying that Client.q.clientName does not exist. Is there a better way of doing this? Or did I get something wrong?
[TurboGears] Re: TurboGears, or why I chose it over Django and Ruby on Rails
Steve Bergman wrote: Ian Bicking wrote: If you use Class.q.employeePhone, that should translate to class.employee_phone in the SQL. Is that supposed to work in this context? No, you have to use it with SQLBuilder syntax, like queryAll(sqlbuilder.Select( [Client.q.clientName, ...], where=(Timesheet.q.clientID == Client.q.id, ...))) -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
[TurboGears] turbostats ?
Hello, If you werre about to have a website with turbogears how would you handle statistics ? Are there special functions or API for that ? Must we relly on apache or lighttp stats ? Thanks
[TurboGears] TurboTunes: new tutorial/screencast
I've just posted a new tutorial called TurboTunes which shows off CatWalk a bit for people that haven't seen it. Ronald Jaramillo wrote the tutorial and created the sample application. This tutorial is a QuickTime (.mov) file with the video in H.264 and the audio in AAC. This combination provided high-quality results, small (19.3MB) file size and works with the latest QuickTime Player for Mac and Windows, as well as VLC and probably Mplayer. Give it a try and I'm sure you'll let me know if you have trouble viewing it! Also of note: I've gone back to building the website from the trunk (I had been building from the 0.8 branch). 0.9-specific items (such as the new tutorial) are marked as such. This arrangement will hopefully make it easier for people running svn to find docs and for people who are running the current released version to see what's coming next. Kevin -- Kevin Dangoor Author of the Zesty News RSS newsreader email: [EMAIL PROTECTED] company: http://www.BlazingThings.com blog: http://www.BlueSkyOnMars.com
[TurboGears] Re: Getting Started in Docs page
On 11/6/05, Mark Mc Mahon [EMAIL PROTECTED] wrote: Should this first link be called something like Where to Start or First Steps with TurboGears or something like that to avoid confusion? I like the First Steps with TurboGears suggestion, and I've changed the site to that. Kevin
[TurboGears] Re: TurboTunes: new tutorial/screencast
On Nov 7, 2005, at 8:34 PM, Bob Ippolito wrote: On Nov 7, 2005, at 7:58 PM, Kevin Dangoor wrote: I've just posted a new tutorial called TurboTunes which shows off CatWalk a bit for people that haven't seen it. Ronald Jaramillo wrote the tutorial and created the sample application. This tutorial is a QuickTime (.mov) file with the video in H.264 and the audio in AAC. This combination provided high-quality results, small (19.3MB) file size and works with the latest QuickTime Player for Mac and Windows, as well as VLC and probably Mplayer. Give it a try and I'm sure you'll let me know if you have trouble viewing it! Posted it.. where? I don't see it on your blog on on the front page of turbogears.com. I may be blind, URLs help :) I had to look harder, it's relatively tucked away in the docs: http://turbogears.com/docs/TurboTunes/index.html -bob
[TurboGears] Re: TurboTunes: new tutorial/screencast
Of course you'd have to do that right after I got back from making a presentation about TurboGears to our Python group. Now I'm once more hopelessly behind the times! ;-) Looks very cool, thanks for the look at the new 0.9 goodies. -- Mike Pirnat [EMAIL PROTECTED]
[TurboGears] Re: TurboTunes: new tutorial/screencast
On 11/7/05, Bob Ippolito [EMAIL PROTECTED] wrote: I had to look harder, it's relatively tucked away in the docs: http://turbogears.com/docs/TurboTunes/index.html D'oh! Sorry about making you dig around. There will be more prominent links, but I just wanted some confirmation that it was functional. Kevin
[TurboGears] Re: TurboTunes: new tutorial/screencast
On 11/7/05, Mike Pirnat [EMAIL PROTECTED] wrote: Of course you'd have to do that right after I got back from making a presentation about TurboGears to our Python group. Now I'm once more hopelessly behind the times! ;-) Hey, cool! It's nice to hear that people have been spreading the word. Looks very cool, thanks for the look at the new 0.9 goodies. And there's more to come! (Both goodies and looks at them :) Kevin
[TurboGears] Kid version error when setting up a new environment
I am following the guide located at: http://www.turbogears.com/community/contributing.html but am getting the errors below. It looks like the version of Kid I pulled out of svn isn't the version I should have? Thanks, John $ sudo python setup.py develop running develop running egg_info writing requirements to ./TurboGears.egg-info/requires.txt writing ./TurboGears.egg-info/PKG-INFO writing top-level names to ./TurboGears.egg-info/top_level.txt writing entry points to ./TurboGears.egg-info/entry_points.txt running build_ext Creating /usr/lib64/python2.4/site-packages/TurboGears.egg-link (link to .) Adding TurboGears 0.9a0dev-r145 to easy-install.pth file Installing tg-admin script to /usr/bin Installed /home/john/turbogears/trunk Processing dependencies for TurboGears==0.9a0dev-r145 Searching for kid=0.7adev-r186 Reading http://www.python.org/pypi/kid/ Reading http://lesscode.org/projects/kid/ No local packages or download links found for kid=0.7adev-r186 error: Could not find distribution for Requirement.parse('kid=0.7adev-r186')
[TurboGears] Re: TurboTunes: new tutorial/screencast
Kevin Dangoor, el martes 8 de noviembre a las 00:12 me escribiste: On 11/7/05, Bob Ippolito [EMAIL PROTECTED] wrote: I had to look harder, it's relatively tucked away in the docs: http://turbogears.com/docs/TurboTunes/index.html D'oh! Sorry about making you dig around. There will be more prominent links, but I just wanted some confirmation that it was functional. Working great in mplayer! -- Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/ ., \ GPG: 5F5A8D05 // F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05 / '' PITUFO ENRIQUE ATEMORIZA CATAMARCA, AMPLIAREMOS -- Crónica TV
[TurboGears] Re: TurboTunes: new tutorial/screencast
On Nov 7, 2005, at 9:12 PM, Kevin Dangoor wrote: On 11/7/05, Bob Ippolito [EMAIL PROTECTED] wrote: I had to look harder, it's relatively tucked away in the docs: http://turbogears.com/docs/TurboTunes/index.html D'oh! Sorry about making you dig around. There will be more prominent links, but I just wanted some confirmation that it was functional. I just gave it a look. The content is quite good, and the new codec settings played great in QuickTime (it even looked fine scaled up to fullscreen on my tibook). Two things: 1. next time, it would be cool if you could say MochiKit with the correct pronunciation ('mō ch ē kit.. like the Japanese mochi). For some reason other people are saying it like you did ;) I'm planning to do a screencast pretty soon showing off some of what MochiKit can do (entirely from the interpreter example), but I think TG has a few more eyes and ears on it. 2. In the loadJSONDoc code, you should be able to just do:: loadJSONDoc(artists, list); ... which would implicitly call queryString(list), notice that it is a HTML node and call formContents(list) for its arguments: (list.name, list.value) and build a URL like artists?song=2. Anyway, that's what it's supposed to do. If it doesn't then that's a bug and I'll fix it before 1.1 (I haven't tested it with SELECT lists yet). -bob
[TurboGears] Re: TurboTunes: new tutorial/screencast
On Nov 7, 2005, at 11:03 PM, Ian Bicking wrote: Kevin Dangoor wrote: I've just posted a new tutorial called TurboTunes which shows off CatWalk a bit for people that haven't seen it. Ronald Jaramillo wrote the tutorial and created the sample application. This tutorial is a QuickTime (.mov) file with the video in H.264 and the audio in AAC. This combination provided high-quality results, small (19.3MB) file size and works with the latest QuickTime Player for Mac and Windows, as well as VLC and probably Mplayer. Give it a try and I'm sure you'll let me know if you have trouble viewing it! Also of note: I've gone back to building the website from the trunk (I had been building from the 0.8 branch). 0.9-specific items (such as the new tutorial) are marked as such. This arrangement will hopefully make it easier for people running svn to find docs and for people who are running the current released version to see what's coming next. Spiffy; works fine with VLC for me. I like the rotating G. One data design note -- I don't think you should normally give length to StringCol (i.e., you should use TEXT). Fixed-length fields are a relic of the 80's; modern databases can and do deal pretty well with arbitrary length text fields. Except MySQL doesn't allow indexes on them. Dumb MySQL. In fact, if I remember correctly (and I may not), many databases will be more space-efficient with arbitrary length fields, because they don't preallocate the full length, but they frequently do for fixed length fields. Also, less typing! Yeah, and space efficiency is directly proportional to performance, because modern databases are almost always bound by IO. -bob