5dollarwhitebox.org - theboxownsyou

  • blog
  • projects
  • articles
  • tech wiki
  • about
  • login
Home

RSS Feed

Blogs

The comment you are replying to does not exist.

Configuring Self-Referential Relationships in TurboGears 2.1

drks — Thu, 2010-07-08 22:13

It has been a while since I felt inclined to put my face through a wall, and endure physical pain rather than be defeated yet another hour (or day) on a Python/TurboGears road block. Well, over the last few days I have been stumped by self-referential relationships in SQLAlchemy. For those not familiar, this is a simple yet common scenario where a Model has a parent or child of itself that is the same Model. For example:

 

  • drks's blog
  • Add new comment
  • Read more

Cement CLI Application Framework for Python 0.8.2 (stable) Released

drks — Mon, 2010-05-10 21:43

The latest stable release of Cement has been pushed to PyPi and is now available for installation and upgrade. This is mostly a bug fix and clean up release, and includes the following changes:

 +  Enable passing output to a file rather than STDOUT (GH#20)
 +  Support engine:template mix from @expose()
 +  Namespace get_config() returns ConfigObj object (as is documented)
 +  Set all namespace's config options per cli options (if they have the key)
    regardless of what namespace is called.  I.e. If --myoption is passed to
    a command in the 'mynam' namespace, mynam.config['myoption'] is set as well
    as any other namespace that has that config key.
 +  log.warn on OptionConflictError
 -  Don't render genshi output if --quiet is passed
 -  Resolve GH#6 Make plugin templates pass full version, required_cement_api,
    etc when registering their namespace
 -  Resolve GH#27 Remove unused app_basepath from config templates

Hack onward!

  • drks's blog
  • Add new comment
  • Read more

Python/TurboGears: Modifying request.environ Before Controller Dispatch

drks — Wed, 2010-04-07 10:42

Two days. Two days of banging my head against a wall trying to figure out the simplest of issues. "How do I modify request.environ before controller dispatch"? Why would you want to do that you ask. Well, it started with my last article API Key [Token] Based Authentication in TurboGears 2.1. In it I described my quest to enable token/key based authentication, of which I was successful... but ne'r did I think I would be forced to revisit the issue.

  • drks's blog
  • Add new comment
  • Read more

Cement CLI Application Framework for Python 0.8 Stable Released

drks — Tue, 2010-03-23 17:57

The latest version of Cement is now available for direct download from PyPI. The version includes the following changes from the previously stable 0.6:

0.8 - Mar 24, 2010
-----------------------------------------------------------------------------
 
 + 0.8 Stable Release
 
 
0.7.3 - unreleased
-----------------------------------------------------------------------------
 
 +  Paster now creates 'yourapp-plugin-yourplugin' rather than a plural 
    '-plugins-' which is more standard.

  • drks's blog
  • Add new comment
  • Read more

Cement CLI Application Framework for Python 0.7.2dev - Testers Welcome

drks — Sat, 2010-03-06 11:06

Hello hello. I've spent quite a bit of time cleaning up The Cement CLI Application Framework and pushing it closer to a one-point-oh release. For the most part I'm completely happy with the code, but I know there will be some things that pop up. Also, before a true 1.0 release I really need to add test cases. Dunnnn dunnnnnnnnnn.

  • drks's blog
  • Add new comment
  • Read more

Ruby ParseConfig 0.5.2 Released

drks — Sat, 2010-02-27 19:08

The latest version of Ruby ParseConfig library is now available. This release has the following changes:

Sat Feb 27, 2010 - v0.5.2
- Re-releasing under MIT License.
- Fixed issue with the add() method where if you added a group outside
  of the import_config() method, the group would not be properly added to
  self.groups[].
- Added feature that if you attempt to add a group that already exists, the 
  groups will be merged together.  Any existing params in the original
  group will be overwritten by the new ones.

  • drks's blog
  • Add new comment
  • Read more

Cement CLI Application Framework Version 0.6 Released!

drks — Wed, 2010-02-03 10:42

I've just finished releasing Cement-0.6 to PyPi. I'm really proud of how the project has turned out, and how much time it currently saves me every time I start a new project. I really hope the community starts to work with it and that it provides a solid development platform from which to base their applications.

This version has a lot of enhancements, and provides the following features:

* Multiple Configuration file parsing (default: /etc, ~/)
* Command line argument and option parsing

  • drks's blog
  • Add new comment
  • Read more

A Better Way To Write Linux Command Line Applications with Python

drks — Thu, 2009-12-17 02:41

I've spent the last week or so working on a new project to standardize how I write Linux command line applications, and also make it easier to reuse helper code and plugins. The result is the Cement CLI Application Framework for Python.

  • drks's blog
  • Add new comment
  • Read more

Rebuilding MacFuse SSHFS on Mac OSX Snow Leopard (64bit)

drks — Wed, 2009-10-07 21:34

This is more for my own reference, as a lot of my blog posts are. But after following the examples of a few hits I found on Google, the following is the fix that worked. For those that don't know, with the release of Mac OSX Snow Leopard MacFuse's SSHFS would no longer work. I would constantly receive the error:

remote host has disconnected



After googling a bit I came across Racker Hacker's fix that should have worked, however doing so introduced a second problem. The pre-compiled binaries from MacFuse are built against the standard 32bit kernel that OSX Snow Leopard ships with. I on the other hand am running the 64bit version of the kernel, therefore rendering my MacFuse install busted.

The fix for me was to checkout the latest development sources, compile, and upgrade MacFuse on my machine. The following steps outline how I did that via the shell:

  • drks's blog
  • 9 comments
  • Read more

Ruby ParseConfig 0.5 Released - Easily Parse Standard *Nix Style Config Files

drks — Mon, 2009-09-21 17:35

Latest update of the Ruby ParseConfig library adds a few new features, including the ability to do [grouping]. For example, reading a MySQL config file:

#!/usr/bin/ruby
 
require('rubygems')
require('parseconfig')
 
c = ParseConfig.new('./my.cnf')
puts
puts "Available config groups: #{c.groups}"
puts
puts "config['client']['user'] => #{c.params['client']['user']}"
puts "config['client']['password'] => #{c.params['client']['password']}"
puts

And the output:

 

  • drks's blog
  • 2 comments
  • Read more
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • next ›
  • last »

Syndicate content



Who's online

There are currently 0 users and 1 guest online.
  • blog
  • projects
  • articles
  • tech wiki
  • about
  • login

5dollarwhitebox.org is not responsible in anyway for actions performed based on information found on this site.