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
class mytest(): | |
def init(self): | |
pass | |
def __getattr__(self, attr): | |
print("looking for ", attr) | |
print("keys: ", self.__dict__.keys()) | |
if not ("_"+attr) in self.__dict__.keys(): | |
if attr in ['a', 'b']: # would be nice to automate the next lines with a decorator on do_calc |
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
# Used this script to transfer issues from my old redmine installation to github | |
# just used two existing codes to export and import and just had to adapt this a tiny bit | |
from redminelib import Redmine # from https://python-redmine.com/resources/index.html | |
import urllib.request | |
import urllib.error | |
import urllib.parse | |
import json | |
import base64 | |
import sys |