#   Copyright 2011 Alexandre Zani (alexandre.zani@gmail.com) 
#
#   Licensed under the Apache License, Version 2.0 (the "License");
#   you may not use this file except in compliance with the License.
#   You may obtain a copy of the License at
#
#       http://www.apache.org/licenses/LICENSE-2.0
#
#   Unless required by applicable law or agreed to in writing, software
#   distributed under the License is distributed on an "AS IS" BASIS,
#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#   See the License for the specific language governing permissions and
#   limitations under the License.

from hsr.model.meta import Base
from sqlalchemy import Column, String, Integer

class Site(Base):
  __tablename__ = "sites"

  id = Column(Integer, primary_key=True)
  name = Column(String)

  def __init__(self, site_id, site_name):
    self.id = site_id
    self.name = site_name

  def __repr__(self):
    return "<Site (%i, %s)>" % (self.id, self.name)

  def to_dict(self):
    return {
        'id': self.id,
        'name': self.name,
        }

ee4eeefe99d0d74ff0db8ff2e82ef8627fd5a565
<mask token>


class Site(Base):
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def __repr__(self):
        return '<Site (%i, %s)>' % (self.id, self.name)

    def to_dict(self):
        return {'id': self.id, 'name': self.name}

<mask token>


class Site(Base):
    <mask token>
    <mask token>
    <mask token>

    def __init__(self, site_id, site_name):
        self.id = site_id
        self.name = site_name

    def __repr__(self):
        return '<Site (%i, %s)>' % (self.id, self.name)

    def to_dict(self):
        return {'id': self.id, 'name': self.name}

<mask token>


class Site(Base):
    __tablename__ = 'sites'
    id = Column(Integer, primary_key=True)
    name = Column(String)

    def __init__(self, site_id, site_name):
        self.id = site_id
        self.name = site_name

    def __repr__(self):
        return '<Site (%i, %s)>' % (self.id, self.name)

    def to_dict(self):
        return {'id': self.id, 'name': self.name}

from hsr.model.meta import Base
from sqlalchemy import Column, String, Integer


class Site(Base):
    __tablename__ = 'sites'
    id = Column(Integer, primary_key=True)
    name = Column(String)

    def __init__(self, site_id, site_name):
        self.id = site_id
        self.name = site_name

    def __repr__(self):
        return '<Site (%i, %s)>' % (self.id, self.name)

    def to_dict(self):
        return {'id': self.id, 'name': self.name}

#   Copyright 2011 Alexandre Zani (alexandre.zani@gmail.com) 
#
#   Licensed under the Apache License, Version 2.0 (the "License");
#   you may not use this file except in compliance with the License.
#   You may obtain a copy of the License at
#
#       http://www.apache.org/licenses/LICENSE-2.0
#
#   Unless required by applicable law or agreed to in writing, software
#   distributed under the License is distributed on an "AS IS" BASIS,
#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#   See the License for the specific language governing permissions and
#   limitations under the License.

from hsr.model.meta import Base
from sqlalchemy import Column, String, Integer

class Site(Base):
  __tablename__ = "sites"

  id = Column(Integer, primary_key=True)
  name = Column(String)

  def __init__(self, site_id, site_name):
    self.id = site_id
    self.name = site_name

  def __repr__(self):
    return "<Site (%i, %s)>" % (self.id, self.name)

  def to_dict(self):
    return {
        'id': self.id,
        'name': self.name,
        }
