~afb/smart/mongodb

« back to all changes in this revision

Viewing changes to smart/channels/rpm_mongo_info.py

  • Committer: Anders F Bjorklund
  • Date: 2011-05-30 21:55:04 UTC
  • Revision ID: afb@users.sourceforge.net-20110530215504-cd6gn60llaocrv6z
initial implementation of rpm-mongo

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Copyright (c) 2004 Conectiva, Inc.
 
3
#
 
4
# Written by Anders F Bjorklund <afb@users.sourceforge.net>
 
5
#
 
6
# This file is part of Smart Package Manager.
 
7
#
 
8
# Smart Package Manager is free software; you can redistribute it and/or
 
9
# modify it under the terms of the GNU General Public License as published
 
10
# by the Free Software Foundation; either version 2 of the License, or (at
 
11
# your option) any later version.
 
12
#
 
13
# Smart Package Manager is distributed in the hope that it will be useful,
 
14
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
16
# General Public License for more details.
 
17
#
 
18
# You should have received a copy of the GNU General Public License
 
19
# along with Smart Package Manager; if not, write to the Free Software
 
20
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
21
#
 
22
from smart import _
 
23
 
 
24
kind = "package"
 
25
 
 
26
name = _("RPM Mongo")
 
27
 
 
28
description = _("""
 
29
Repository metadata served by MongoDB.
 
30
""")
 
31
 
 
32
fields = [("baseurl", _("Base URL"), str, None,
 
33
           _("URL where packages are found")),
 
34
          ("host", _("Host"), str, "127.0.0.1",
 
35
           _("Database host")),
 
36
          ("db", _("Database"), str, "test",
 
37
           _("Database name"))]