This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services.redmine = { | |
enable = true; | |
databasePassword = "123456"; | |
themes = { | |
circle = pkgs.fetchurl { | |
url = "http://www.redminecrm.com/license_manager/11619/circle_theme-1_0_2.zip"; | |
md5 = "2cfc2e534dc57e8ce9475103ce087618"; | |
}; | |
}; | |
plugins = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services.redmine = { | |
enable = true; | |
databasePassword = "123456"; | |
themes = { | |
circle = pkgs.fetchurl { | |
url = "http://www.redminecrm.com/license_manager/11619/circle_theme-1_0_2.zip"; | |
md5 = "2cfc2e534dc57e8ce9475103ce087618"; | |
}; | |
}; | |
plugins = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am iElectric on github. | |
* I am ielectric (https://keybase.io/ielectric) on keybase. | |
* I have a public key whose fingerprint is BD8D E44A 13F1 0123 657F E672 50B6 E094 CDFE 8848 | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[32487:0525/125411:INFO:CONSOLE(28)] ""Error while emitting" "modeset" "Cannot read property 'requiredCapabilities' of undefined" "TypeError: Cannot read property 'requiredCapabilities' of undefined\n at Object.api.isVisible (app://./js/command.js:76:47)\n at eval (app://./js/handlers.js:104:32)\n at Array.filter (native)\n at getHandlerCommandsForMode (app://./js/handlers.js:103:41)\n at runSessionHandler (app://./js/handlers.js:115:32)\n at analyze (app://./js/handlers.js:190:13)\n at eval (app://./js/handlers.js:41:21)\n at EventEmitter.emit (app://./js/lib/events.js:47:30)\n at Object.api.setSessionMode (app://./js/modes.js:110:30)\n at eval (app://./js/session_manager.js:52:31)"", source: app://./js/log.js (28) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Day job: | |
Django/Plone/Pyramid developer | |
Favorite Python project: | |
Pyramid | |
Favorite Conference: | |
Plone Conf 2010 | |
Python Experience Level: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
view_macros python:path('here/%s/macros|nothing' % view_template); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.core.management.commands.runserver import BaseRunserverCommand | |
from django.conf import settings | |
from dozer import Profiler | |
class Command(BaseRunserverCommand): | |
def get_handler(self, *args, **options): | |
""" | |
Returns the normal handler wrapped in a warm Dozer embrace. | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Sample specific search query to airbnb returning list of new flats (compared to last run) as stdout (meant to be used as crontab). | |
Copyright 2011 Domen Kozar. All rights reserved. | |
Redistribution and use in source and binary forms, with or without modification, are | |
permitted provided that the following conditions are met: | |
1. Redistributions of source code must retain the above copyright notice, this list of | |
conditions and the following disclaimer. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import string | |
from sqlalchemy.engine.reflection import Inspector | |
class LowerCaseInspector(Inspector): | |
"""Implements reflection inspector that reflects everything lowercase""" | |
def get_table_names(self, *a, **kw): | |
tables = super(LowerCaseInspector, self).get_table_names(*a, **kw) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import deform | |
import colander | |
class TestSchema(colander.MappingSchema): | |
list = colander.SchemaNode(colander.Integer(), | |
widget=deform.widget.SelectWidget(values=[(1, 'one'), (2, 'two')])) | |
class Test2Schema(colander.MappingSchema): | |
list = colander.SchemaNode(colander.Integer(), |
OlderNewer