The reCAPTCHA PHP library was not found. Please install it into sites/all/modules/recaptcha/recaptcha.
Anonymous (not verified) Says: 2008-10-04 16:08
It's a bit OT but you can write that shell script a bit better:
python manage.py inspectdb |
grep "^class" |
sed "s/^class //g" |
cut -d"(" -f1 |
xargs -I {} echo 'databrowse.site.register({})'\
>> urls.py
E.g., why use both a \ and a | when the | alone suffices?
And of course you can go better: the following will
combine the sed and grep steps:
sed -n "/^class /s///gp" |
With more work you could combine the grep, sed and cut with a single sed or (preferably) awk.
It's a bit OT but you can write that shell script a bit better:
python manage.py inspectdb |
grep "^class" |
sed "s/^class //g" |
cut -d"(" -f1 |
xargs -I {} echo 'databrowse.site.register({})'\
>> urls.py
E.g., why use both a \ and a | when the | alone suffices?
And of course you can go better: the following will
combine the sed and grep steps:
sed -n "/^class /s///gp" |
With more work you could combine the grep, sed and cut with a single sed or (preferably) awk.