﻿#! /usr/bin/python
#  -*- coding: utf-8 -*-
#
#  <NAME> 2008 - 2011
#  Python 2.6, 3.1
#
#  for Simutrans
#  http://www.simutrans.com
#
#  code is public domain
#

# module simuauthors.py - PASSIVE, not a script!

# when adding new author, please follow the pattern

# ----------------------------------------------------------------------------

whitelist = [

# single authors!
# ---------------

 "Raven",

 "<NAME>",

 "Napik",

 "Patrick",

 "<NAME>",

 "Shunter",

 "Hajo",

 "Isaac",

 "<NAME>",

 "DirrrtyDirk",

 "yoshi",

 "Joker",

 "<NAME>",

 "<NAME>",

 "Martin",

 "<NAME>",

 "BlackBox",

 "MHz",

 "Kierongreen",

 "Vitus",

 "Gelion",

 "prissi",

 "Nabe",

 "Pawel",

 "<NAME>",

 "powersack",

 "Sindor",

 "<NAME>",

 "Shorty",

 "AvG",

 "<NAME>",

 "MiP",

 "Trikky",

 "Stormoog",

 "<NAME>",

 "TommPa9",

 "<NAME>",

 "<NAME>",
 
 "<NAME>",
 
 "Haru",
 
 "DanteDarkstar",
 
 "Zeno",
 
 "Asterix909",
 
 "vilvoh",
 
 "Rmax500",
 
 "Propermike",
 
 "Gouv",
 
 "Sique",
 
 "Karl",
 
 "Zkou2",

 ];

# ----------------------------------------------------------------------------

# helper functions
# ----------------

# queries can be in form "autor1 & author2 & author3 & ..."

def SplitAuthors(astr) :
	tmp = astr.split("&")
	for i in range(len(tmp)) :
		# range -> xrange makes py3 die, and the amount will be low in real situations
		tmp[i] = tmp[i].strip()
	return tmp


def CheckAuthors(astr) :
	# TRUE if all authors
	tmp = SplitAuthors(astr)
	for author in tmp :
		if author not in whitelist :
			return False
	return True

# EOF
﻿#! /usr/bin/python
#  -*- coding: utf-8 -*-
#
#  <NAME> 2008 - 2011
#  Python 2.6, 3.1
#
#  for Simutrans
#  http://www.simutrans.com
#
#  code is public domain
#

# module simuauthors.py - PASSIVE, not a script!

# when adding new author, please follow the pattern

# ----------------------------------------------------------------------------

whitelist = [

# single authors!
# ---------------

 "Raven",

 "<NAME>",

 "Napik",

 "Patrick",

 "<NAME>",

 "Shunter",

 "Hajo",

 "Isaac",

 "<NAME>",

 "DirrrtyDirk",

 "yoshi",

 "Joker",

 "<NAME>",

 "<NAME>",

 "Martin",

 "<NAME>",

 "BlackBox",

 "MHz",

 "Kierongreen",

 "Vitus",

 "Gelion",

 "prissi",

 "Nabe",

 "Pawel",

 "<NAME>",

 "powersack",

 "Sindor",

 "<NAME>",

 "Shorty",

 "AvG",

 "<NAME>",

 "MiP",

 "Trikky",

 "Stormoog",

 "<NAME>",

 "TommPa9",

 "<NAME>",

 "<NAME>",
 
 "<NAME>",
 
 "Haru",
 
 "DanteDarkstar",
 
 "Zeno",
 
 "Asterix909",
 
 "vilvoh",
 
 "Rmax500",
 
 "Propermike",
 
 "Gouv",
 
 "Sique",
 
 "Karl",
 
 "Zkou2",

 ];

# ----------------------------------------------------------------------------

# helper functions
# ----------------

# queries can be in form "autor1 & author2 & author3 & ..."

def SplitAuthors(astr) :
	tmp = astr.split("&")
	for i in range(len(tmp)) :
		# range -> xrange makes py3 die, and the amount will be low in real situations
		tmp[i] = tmp[i].strip()
	return tmp


def CheckAuthors(astr) :
	# TRUE if all authors
	tmp = SplitAuthors(astr)
	for author in tmp :
		if author not in whitelist :
			return False
	return True

# EOF
#! /usr/bin/python #  -*- coding: utf-8 -*- # #  <NAME> 2008 - 2011 #  Python 2.6, 3.1 # #  for Simutrans #  http://www.simutrans.com # #  code is public domain # # module simuauthors.py - PASSIVE, not a script! # when adding new author, please follow the pattern # ---------------------------------------------------------------------------- # single authors! # --------------- # ---------------------------------------------------------------------------- # helper functions # ---------------- # queries can be in form "autor1 & author2 & author3 & ..." # range -> xrange makes py3 die, and the amount will be low in real situations # TRUE if all authors # EOF