This file contains hidden or 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
[ajung@dev1 onkopedia_buildout]$ bin/zopepy scripts/read-autoren.py | |
Traceback (most recent call last): | |
File "bin/zopepy", line 375, in <module> | |
exec(compile(__file__f.read(), __file__, "exec")) | |
File "scripts/read-autoren.py", line 12, in <module> | |
result = proxy.dgho.getLLPerson() | |
File "/opt/buildout.python/parts/opt/lib/python2.7/xmlrpclib.py", line 1233, in __call__ | |
return self.__send(self.__name, args) | |
File "/opt/buildout.python/parts/opt/lib/python2.7/xmlrpclib.py", line 1591, in __request | |
verbose=self.__verbose |
This file contains hidden or 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 time | |
from arango import Arango | |
# Initialize the API wrapper | |
arango = Arango(host="localhost", port=8529) | |
try: | |
arango.delete_database("my_database") | |
except: | |
pass |
This file contains hidden or 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 remodel.models import Model | |
class Order(Model): | |
pass | |
for i in range(1000): | |
print i | |
my_order = Order.create(customer='Andrei', shop='GitHub') | |
my_order['total'] = 100 |
This file contains hidden or 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 rethinkdb as r | |
db = r.connect( "localhost", 28015).repl() | |
rows = list() | |
for i in range(1000): | |
rows.extend([ | |
{ "name": "William Adama", "tv_show": "Battlestar Galactica", | |
"posts": [ | |
{"title": "Decommissioning speech", "content": "The Cylon War is long over..."}, | |
{"title": "We are at war", "content": "Moments ago, this ship received..."}, |
This file contains hidden or 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 sqlalchemy import * | |
from sqlalchemy.orm import sessionmaker | |
from sqlalchemy.ext.declarative import declarative_base | |
from sqlalchemy.dialects.postgresql import JSON | |
from sqlalchemy.orm import relationship | |
from sqlalchemy.ext.declarative import declared_attr | |
################################################################ | |
# DPIS database model |
This file contains hidden or 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 click | |
import transaction | |
from pyramid.paster import bootstrap | |
from resultreporter_site.resources import Country | |
from resultreporter_site.resources import Region | |
from resultreporter_site.resources import Parish | |
from resultreporter_site.resources import Parish | |
from resultreporter_site.resources import School |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
body { | |
background: rgb(0, 255, 94); | |
background: -moz-linear-gradient(326deg, rgb(0, 255, 94) 20%, rgb(255, 255, 250) 77%); | |
background: -webkit-linear-gradient(326deg, rgb(0, 255, 94) 20%, rgb(255, 255, 250) 77%); | |
background: -o-linear-gradient(326deg, rgb(0, 255, 94) 20%, rgb(255, 255, 250) 77%); |
This file contains hidden or 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
def context_property(name, default=None): | |
def getter(self, default=default): | |
return getattr(self.context, name, default) | |
def setter(self, value): | |
setattr(self.context, name, value) | |
def deleter(self): | |
delattr(self.context, name) |
This file contains hidden or 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
Sehr geehrte/r {kunde_text}, | |
Ihr Kundenkonto mit der Kennung {kennung} wurde in unserem Webportal gelöscht. | |
Damit wurden alle persönlichen Bestelldaten aus unserem System entfernt. | |
Vielen Dank, dass Sie unsere Dienste genutzt haben. | |
Sollten Sie noch Fragen zur Löschung Ihres Kundenkontos haben, wenden Sie sich | |
bitte an unsere Kundenbetreuung .... |
This file contains hidden or 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
<html> | |
<head> | |
<style type="text/css"> | |
.rotated { | |
color: blue; | |
font-size: 2em; | |
page-break-after: always; | |
} | |
.rotated:left { |