All pastes #595903 Raw Edit

lol

public python v1 · immutable
#595903 ·published 2007-06-29 18:25 UTC
rendered paste body
#!/usr/bin/env python"""	Simple lib to deals with openvpn	- to know stats	- to deal with certificates	- to generate dns zone	- update the mapsome pb : 	do we need to save users / ip / informations into a db ? 	or into sqlite ?ovpn"""from sqlalchemy import *class Certif:	"""Generate / revoke certificate"""	def __init__(self):		pass	def generate(self, user):		pass	def revoke(self, user):		passclass Zone:	"""Manage a dns zone for the vpn"""	def __init__(self):		pass	def load(self):		"""Load the current dns file"""		pass	def write(self, what):		"""Writes the new zone file"""		if isinstence(what, list):			for line in list:				self.write(line)		elif isinstence(what, string):			self.write(what)		passclass User:	"""blah"""	def __init__(self, info):		if not instance(info, dict):			raise TypeError		self.info = info		self.certificate = None		pass	def certificate(self):		passclass Ovpn:	"""just returns informations"""	def __init__(self):		self.users = []		pass	def user_list(self):		pass	def new_user(self):		pass	def del_user(self):		pass	def services_list(self):		pass