Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pygeoip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
pygeoip
Commits
4c3ec00b
Commit
4c3ec00b
authored
Sep 20, 2012
by
William Tisäter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make epydoc generation work and update documentation
parent
054066d5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
42 additions
and
41 deletions
+42
-41
apidocs/html/class-tree.html
+1
-1
apidocs/html/help.html
+1
-1
apidocs/html/identifier-index.html
+1
-1
apidocs/html/module-tree.html
+1
-1
apidocs/html/pygeoip-module.html
+1
-1
apidocs/html/pygeoip-pysrc.html
+0
-0
apidocs/html/pygeoip.GeoIP-class.html
+1
-1
apidocs/html/pygeoip.GeoIPBase-class.html
+1
-1
apidocs/html/pygeoip.GeoIPError-class.html
+1
-1
apidocs/html/pygeoip.GeoIPMetaclass-class.html
+1
-1
apidocs/html/pygeoip.const-module.html
+1
-1
apidocs/html/pygeoip.const-pysrc.html
+1
-1
apidocs/html/pygeoip.timezone-module.html
+1
-1
apidocs/html/pygeoip.timezone-pysrc.html
+17
-18
apidocs/html/pygeoip.util-module.html
+1
-1
apidocs/html/pygeoip.util-pysrc.html
+1
-1
epydoc.ini
+0
-0
pygeoip/__init__.py
+11
-9
No files found.
apidocs/html/class-tree.html
View file @
4c3ec00b
...
@@ -123,7 +123,7 @@
...
@@ -123,7 +123,7 @@
<table
border=
"0"
cellpadding=
"0"
cellspacing=
"0"
width=
"100%%"
>
<table
border=
"0"
cellpadding=
"0"
cellspacing=
"0"
width=
"100%%"
>
<tr>
<tr>
<td
align=
"left"
class=
"footer"
>
<td
align=
"left"
class=
"footer"
>
Generated by Epydoc 3.0.1 on Thu Sep 20 1
1:41:42
2012
Generated by Epydoc 3.0.1 on Thu Sep 20 1
7:58:04
2012
</td>
</td>
<td
align=
"right"
class=
"footer"
>
<td
align=
"right"
class=
"footer"
>
<a
target=
"mainFrame"
href=
"http://epydoc.sourceforge.net"
<a
target=
"mainFrame"
href=
"http://epydoc.sourceforge.net"
...
...
apidocs/html/help.html
View file @
4c3ec00b
...
@@ -256,7 +256,7 @@ page was last updated. </p>
...
@@ -256,7 +256,7 @@ page was last updated. </p>
<table
border=
"0"
cellpadding=
"0"
cellspacing=
"0"
width=
"100%%"
>
<table
border=
"0"
cellpadding=
"0"
cellspacing=
"0"
width=
"100%%"
>
<tr>
<tr>
<td
align=
"left"
class=
"footer"
>
<td
align=
"left"
class=
"footer"
>
Generated by Epydoc 3.0.1 on Thu Sep 20 1
1:41:42
2012
Generated by Epydoc 3.0.1 on Thu Sep 20 1
7:58:04
2012
</td>
</td>
<td
align=
"right"
class=
"footer"
>
<td
align=
"right"
class=
"footer"
>
<a
target=
"mainFrame"
href=
"http://epydoc.sourceforge.net"
<a
target=
"mainFrame"
href=
"http://epydoc.sourceforge.net"
...
...
apidocs/html/identifier-index.html
View file @
4c3ec00b
...
@@ -437,7 +437,7 @@
...
@@ -437,7 +437,7 @@
<table
border=
"0"
cellpadding=
"0"
cellspacing=
"0"
width=
"100%%"
>
<table
border=
"0"
cellpadding=
"0"
cellspacing=
"0"
width=
"100%%"
>
<tr>
<tr>
<td
align=
"left"
class=
"footer"
>
<td
align=
"left"
class=
"footer"
>
Generated by Epydoc 3.0.1 on Thu Sep 20 1
1:41:42
2012
Generated by Epydoc 3.0.1 on Thu Sep 20 1
7:58:04
2012
</td>
</td>
<td
align=
"right"
class=
"footer"
>
<td
align=
"right"
class=
"footer"
>
<a
target=
"mainFrame"
href=
"http://epydoc.sourceforge.net"
<a
target=
"mainFrame"
href=
"http://epydoc.sourceforge.net"
...
...
apidocs/html/module-tree.html
View file @
4c3ec00b
...
@@ -99,7 +99,7 @@
...
@@ -99,7 +99,7 @@
<table
border=
"0"
cellpadding=
"0"
cellspacing=
"0"
width=
"100%%"
>
<table
border=
"0"
cellpadding=
"0"
cellspacing=
"0"
width=
"100%%"
>
<tr>
<tr>
<td
align=
"left"
class=
"footer"
>
<td
align=
"left"
class=
"footer"
>
Generated by Epydoc 3.0.1 on Thu Sep 20 1
1:41:42
2012
Generated by Epydoc 3.0.1 on Thu Sep 20 1
7:58:04
2012
</td>
</td>
<td
align=
"right"
class=
"footer"
>
<td
align=
"right"
class=
"footer"
>
<a
target=
"mainFrame"
href=
"http://epydoc.sourceforge.net"
<a
target=
"mainFrame"
href=
"http://epydoc.sourceforge.net"
...
...
apidocs/html/pygeoip-module.html
View file @
4c3ec00b
...
@@ -239,7 +239,7 @@
...
@@ -239,7 +239,7 @@
<table
border=
"0"
cellpadding=
"0"
cellspacing=
"0"
width=
"100%%"
>
<table
border=
"0"
cellpadding=
"0"
cellspacing=
"0"
width=
"100%%"
>
<tr>
<tr>
<td
align=
"left"
class=
"footer"
>
<td
align=
"left"
class=
"footer"
>
Generated by Epydoc 3.0.1 on Thu Sep 20 1
1:41:42
2012
Generated by Epydoc 3.0.1 on Thu Sep 20 1
7:58:04
2012
</td>
</td>
<td
align=
"right"
class=
"footer"
>
<td
align=
"right"
class=
"footer"
>
<a
target=
"mainFrame"
href=
"http://epydoc.sourceforge.net"
<a
target=
"mainFrame"
href=
"http://epydoc.sourceforge.net"
...
...
apidocs/html/pygeoip-pysrc.html
View file @
4c3ec00b
This diff is collapsed.
Click to expand it.
apidocs/html/pygeoip.GeoIP-class.html
View file @
4c3ec00b
...
@@ -1026,7 +1026,7 @@ object --+
...
@@ -1026,7 +1026,7 @@ object --+
<table
border=
"0"
cellpadding=
"0"
cellspacing=
"0"
width=
"100%%"
>
<table
border=
"0"
cellpadding=
"0"
cellspacing=
"0"
width=
"100%%"
>
<tr>
<tr>
<td
align=
"left"
class=
"footer"
>
<td
align=
"left"
class=
"footer"
>
Generated by Epydoc 3.0.1 on Thu Sep 20 1
1:41:42
2012
Generated by Epydoc 3.0.1 on Thu Sep 20 1
7:58:04
2012
</td>
</td>
<td
align=
"right"
class=
"footer"
>
<td
align=
"right"
class=
"footer"
>
<a
target=
"mainFrame"
href=
"http://epydoc.sourceforge.net"
<a
target=
"mainFrame"
href=
"http://epydoc.sourceforge.net"
...
...
apidocs/html/pygeoip.GeoIPBase-class.html
View file @
4c3ec00b
...
@@ -167,7 +167,7 @@ object --+
...
@@ -167,7 +167,7 @@ object --+
<table
border=
"0"
cellpadding=
"0"
cellspacing=
"0"
width=
"100%%"
>
<table
border=
"0"
cellpadding=
"0"
cellspacing=
"0"
width=
"100%%"
>
<tr>
<tr>
<td
align=
"left"
class=
"footer"
>
<td
align=
"left"
class=
"footer"
>
Generated by Epydoc 3.0.1 on Thu Sep 20 1
1:41:42
2012
Generated by Epydoc 3.0.1 on Thu Sep 20 1
7:58:04
2012
</td>
</td>
<td
align=
"right"
class=
"footer"
>
<td
align=
"right"
class=
"footer"
>
<a
target=
"mainFrame"
href=
"http://epydoc.sourceforge.net"
<a
target=
"mainFrame"
href=
"http://epydoc.sourceforge.net"
...
...
apidocs/html/pygeoip.GeoIPError-class.html
View file @
4c3ec00b
...
@@ -177,7 +177,7 @@ exceptions.BaseException --+
...
@@ -177,7 +177,7 @@ exceptions.BaseException --+
<table
border=
"0"
cellpadding=
"0"
cellspacing=
"0"
width=
"100%%"
>
<table
border=
"0"
cellpadding=
"0"
cellspacing=
"0"
width=
"100%%"
>
<tr>
<tr>
<td
align=
"left"
class=
"footer"
>
<td
align=
"left"
class=
"footer"
>
Generated by Epydoc 3.0.1 on Thu Sep 20 1
1:41:42
2012
Generated by Epydoc 3.0.1 on Thu Sep 20 1
7:58:04
2012
</td>
</td>
<td
align=
"right"
class=
"footer"
>
<td
align=
"right"
class=
"footer"
>
<a
target=
"mainFrame"
href=
"http://epydoc.sourceforge.net"
<a
target=
"mainFrame"
href=
"http://epydoc.sourceforge.net"
...
...
apidocs/html/pygeoip.GeoIPMetaclass-class.html
View file @
4c3ec00b
...
@@ -337,7 +337,7 @@ object --+
...
@@ -337,7 +337,7 @@ object --+
<table
border=
"0"
cellpadding=
"0"
cellspacing=
"0"
width=
"100%%"
>
<table
border=
"0"
cellpadding=
"0"
cellspacing=
"0"
width=
"100%%"
>
<tr>
<tr>
<td
align=
"left"
class=
"footer"
>
<td
align=
"left"
class=
"footer"
>
Generated by Epydoc 3.0.1 on Thu Sep 20 1
1:41:42
2012
Generated by Epydoc 3.0.1 on Thu Sep 20 1
7:58:04
2012
</td>
</td>
<td
align=
"right"
class=
"footer"
>
<td
align=
"right"
class=
"footer"
>
<a
target=
"mainFrame"
href=
"http://epydoc.sourceforge.net"
<a
target=
"mainFrame"
href=
"http://epydoc.sourceforge.net"
...
...
apidocs/html/pygeoip.const-module.html
View file @
4c3ec00b
...
@@ -538,7 +538,7 @@
...
@@ -538,7 +538,7 @@
<table
border=
"0"
cellpadding=
"0"
cellspacing=
"0"
width=
"100%%"
>
<table
border=
"0"
cellpadding=
"0"
cellspacing=
"0"
width=
"100%%"
>
<tr>
<tr>
<td
align=
"left"
class=
"footer"
>
<td
align=
"left"
class=
"footer"
>
Generated by Epydoc 3.0.1 on Thu Sep 20 1
1:41:42
2012
Generated by Epydoc 3.0.1 on Thu Sep 20 1
7:58:04
2012
</td>
</td>
<td
align=
"right"
class=
"footer"
>
<td
align=
"right"
class=
"footer"
>
<a
target=
"mainFrame"
href=
"http://epydoc.sourceforge.net"
<a
target=
"mainFrame"
href=
"http://epydoc.sourceforge.net"
...
...
apidocs/html/pygeoip.const-pysrc.html
View file @
4c3ec00b
...
@@ -482,7 +482,7 @@ expandto(location.href);
...
@@ -482,7 +482,7 @@ expandto(location.href);
<table
border=
"0"
cellpadding=
"0"
cellspacing=
"0"
width=
"100%%"
>
<table
border=
"0"
cellpadding=
"0"
cellspacing=
"0"
width=
"100%%"
>
<tr>
<tr>
<td
align=
"left"
class=
"footer"
>
<td
align=
"left"
class=
"footer"
>
Generated by Epydoc 3.0.1 on Thu Sep 20 1
1:41:42
2012
Generated by Epydoc 3.0.1 on Thu Sep 20 1
7:58:04
2012
</td>
</td>
<td
align=
"right"
class=
"footer"
>
<td
align=
"right"
class=
"footer"
>
<a
target=
"mainFrame"
href=
"http://epydoc.sourceforge.net"
<a
target=
"mainFrame"
href=
"http://epydoc.sourceforge.net"
...
...
apidocs/html/pygeoip.timezone-module.html
View file @
4c3ec00b
...
@@ -212,7 +212,7 @@
...
@@ -212,7 +212,7 @@
<table
border=
"0"
cellpadding=
"0"
cellspacing=
"0"
width=
"100%%"
>
<table
border=
"0"
cellpadding=
"0"
cellspacing=
"0"
width=
"100%%"
>
<tr>
<tr>
<td
align=
"left"
class=
"footer"
>
<td
align=
"left"
class=
"footer"
>
Generated by Epydoc 3.0.1 on Thu Sep 20 1
1:41:42
2012
Generated by Epydoc 3.0.1 on Thu Sep 20 1
7:58:04
2012
</td>
</td>
<td
align=
"right"
class=
"footer"
>
<td
align=
"right"
class=
"footer"
>
<a
target=
"mainFrame"
href=
"http://epydoc.sourceforge.net"
<a
target=
"mainFrame"
href=
"http://epydoc.sourceforge.net"
...
...
apidocs/html/pygeoip.timezone-pysrc.html
View file @
4c3ec00b
...
@@ -760,23 +760,22 @@
...
@@ -760,23 +760,22 @@
<a
name=
"L697"
></a><tt
class=
"py-lineno"
>
697
</tt>
<tt
class=
"py-line"
><tt
id=
"link-694"
class=
"py-name"
><a
title=
"pygeoip.timezone._country"
class=
"py-name"
href=
"#"
onclick=
"return doclink('link-694', '_country', 'link-0');"
>
_country
</a></tt><tt
class=
"py-op"
>
[
</tt><tt
class=
"py-string"
>
"ZM"
</tt><tt
class=
"py-op"
>
]
</tt>
<tt
class=
"py-op"
>
=
</tt>
<tt
class=
"py-string"
>
"Africa/Lusaka"
</tt>
</tt>
<a
name=
"L697"
></a><tt
class=
"py-lineno"
>
697
</tt>
<tt
class=
"py-line"
><tt
id=
"link-694"
class=
"py-name"
><a
title=
"pygeoip.timezone._country"
class=
"py-name"
href=
"#"
onclick=
"return doclink('link-694', '_country', 'link-0');"
>
_country
</a></tt><tt
class=
"py-op"
>
[
</tt><tt
class=
"py-string"
>
"ZM"
</tt><tt
class=
"py-op"
>
]
</tt>
<tt
class=
"py-op"
>
=
</tt>
<tt
class=
"py-string"
>
"Africa/Lusaka"
</tt>
</tt>
<a
name=
"L698"
></a><tt
class=
"py-lineno"
>
698
</tt>
<tt
class=
"py-line"
><tt
id=
"link-695"
class=
"py-name"
><a
title=
"pygeoip.timezone._country"
class=
"py-name"
href=
"#"
onclick=
"return doclink('link-695', '_country', 'link-0');"
>
_country
</a></tt><tt
class=
"py-op"
>
[
</tt><tt
class=
"py-string"
>
"ZW"
</tt><tt
class=
"py-op"
>
]
</tt>
<tt
class=
"py-op"
>
=
</tt>
<tt
class=
"py-string"
>
"Africa/Harare"
</tt>
</tt>
<a
name=
"L698"
></a><tt
class=
"py-lineno"
>
698
</tt>
<tt
class=
"py-line"
><tt
id=
"link-695"
class=
"py-name"
><a
title=
"pygeoip.timezone._country"
class=
"py-name"
href=
"#"
onclick=
"return doclink('link-695', '_country', 'link-0');"
>
_country
</a></tt><tt
class=
"py-op"
>
[
</tt><tt
class=
"py-string"
>
"ZW"
</tt><tt
class=
"py-op"
>
]
</tt>
<tt
class=
"py-op"
>
=
</tt>
<tt
class=
"py-string"
>
"Africa/Harare"
</tt>
</tt>
<a
name=
"L699"
></a><tt
class=
"py-lineno"
>
699
</tt>
<tt
class=
"py-line"
>
</tt>
<a
name=
"L699"
></a><tt
class=
"py-lineno"
>
699
</tt>
<tt
class=
"py-line"
>
</tt>
<a
name=
"L700"
></a><tt
class=
"py-lineno"
>
700
</tt>
<tt
class=
"py-line"
>
</tt>
<a
name=
"time_zone_by_country_and_region"
></a><div
id=
"time_zone_by_country_and_region-def"
><a
name=
"L700"
></a><tt
class=
"py-lineno"
>
700
</tt>
<a
class=
"py-toggle"
href=
"#"
id=
"time_zone_by_country_and_region-toggle"
onclick=
"return toggle('time_zone_by_country_and_region');"
>
-
</a><tt
class=
"py-line"
><tt
class=
"py-keyword"
>
def
</tt>
<a
class=
"py-def-name"
href=
"pygeoip.timezone-module.html#time_zone_by_country_and_region"
>
time_zone_by_country_and_region
</a><tt
class=
"py-op"
>
(
</tt><tt
class=
"py-param"
>
country_code
</tt><tt
class=
"py-op"
>
,
</tt>
<tt
class=
"py-param"
>
region_name
</tt><tt
class=
"py-op"
>
=
</tt><tt
class=
"py-name"
>
None
</tt><tt
class=
"py-op"
>
)
</tt><tt
class=
"py-op"
>
:
</tt>
</tt>
<a
name=
"time_zone_by_country_and_region"
></a><div
id=
"time_zone_by_country_and_region-def"
><a
name=
"L701"
></a><tt
class=
"py-lineno"
>
701
</tt>
<a
class=
"py-toggle"
href=
"#"
id=
"time_zone_by_country_and_region-toggle"
onclick=
"return toggle('time_zone_by_country_and_region');"
>
-
</a><tt
class=
"py-line"
><tt
class=
"py-keyword"
>
def
</tt>
<a
class=
"py-def-name"
href=
"pygeoip.timezone-module.html#time_zone_by_country_and_region"
>
time_zone_by_country_and_region
</a><tt
class=
"py-op"
>
(
</tt><tt
class=
"py-param"
>
country_code
</tt><tt
class=
"py-op"
>
,
</tt>
<tt
class=
"py-param"
>
region_name
</tt><tt
class=
"py-op"
>
=
</tt><tt
class=
"py-name"
>
None
</tt><tt
class=
"py-op"
>
)
</tt><tt
class=
"py-op"
>
:
</tt>
</tt>
</div><div
id=
"time_zone_by_country_and_region-collapsed"
style=
"display:none;"
pad=
"+++"
indent=
"++++"
></div><div
id=
"time_zone_by_country_and_region-expanded"
><a
name=
"L701"
></a><tt
class=
"py-lineno"
>
701
</tt>
<tt
class=
"py-line"
>
</tt>
</div><div
id=
"time_zone_by_country_and_region-collapsed"
style=
"display:none;"
pad=
"+++"
indent=
"++++"
></div><div
id=
"time_zone_by_country_and_region-expanded"
><a
name=
"L702"
></a><tt
class=
"py-lineno"
>
702
</tt>
<tt
class=
"py-line"
>
</tt>
<a
name=
"L702"
></a><tt
class=
"py-lineno"
>
702
</tt>
<tt
class=
"py-line"
>
<tt
class=
"py-keyword"
>
if
</tt>
<tt
class=
"py-name"
>
country_code
</tt>
<tt
class=
"py-keyword"
>
not
</tt>
<tt
class=
"py-keyword"
>
in
</tt>
<tt
id=
"link-696"
class=
"py-name"
><a
title=
"pygeoip.timezone._country"
class=
"py-name"
href=
"#"
onclick=
"return doclink('link-696', '_country', 'link-0');"
>
_country
</a></tt><tt
class=
"py-op"
>
:
</tt>
</tt>
<a
name=
"L703"
></a><tt
class=
"py-lineno"
>
703
</tt>
<tt
class=
"py-line"
>
<tt
class=
"py-keyword"
>
if
</tt>
<tt
class=
"py-name"
>
country_code
</tt>
<tt
class=
"py-keyword"
>
not
</tt>
<tt
class=
"py-keyword"
>
in
</tt>
<tt
id=
"link-696"
class=
"py-name"
><a
title=
"pygeoip.timezone._country"
class=
"py-name"
href=
"#"
onclick=
"return doclink('link-696', '_country', 'link-0');"
>
_country
</a></tt><tt
class=
"py-op"
>
:
</tt>
</tt>
<a
name=
"L703"
></a><tt
class=
"py-lineno"
>
703
</tt>
<tt
class=
"py-line"
>
<tt
class=
"py-keyword"
>
return
</tt>
<tt
class=
"py-name"
>
None
</tt>
</tt>
<a
name=
"L704"
></a><tt
class=
"py-lineno"
>
704
</tt>
<tt
class=
"py-line"
>
<tt
class=
"py-keyword"
>
return
</tt>
<tt
class=
"py-name"
>
None
</tt>
</tt>
<a
name=
"L704"
></a><tt
class=
"py-lineno"
>
704
</tt>
<tt
class=
"py-line"
>
</tt>
<a
name=
"L705"
></a><tt
class=
"py-lineno"
>
705
</tt>
<tt
class=
"py-line"
>
</tt>
<a
name=
"L705"
></a><tt
class=
"py-lineno"
>
705
</tt>
<tt
class=
"py-line"
>
<tt
class=
"py-keyword"
>
if
</tt>
<tt
class=
"py-keyword"
>
not
</tt>
<tt
class=
"py-name"
>
region_name
</tt>
<tt
class=
"py-keyword"
>
or
</tt>
<tt
class=
"py-name"
>
region_name
</tt>
<tt
class=
"py-op"
>
==
</tt>
<tt
class=
"py-string"
>
'00'
</tt><tt
class=
"py-op"
>
:
</tt>
</tt>
<a
name=
"L706"
></a><tt
class=
"py-lineno"
>
706
</tt>
<tt
class=
"py-line"
>
<tt
class=
"py-keyword"
>
if
</tt>
<tt
class=
"py-keyword"
>
not
</tt>
<tt
class=
"py-name"
>
region_name
</tt>
<tt
class=
"py-keyword"
>
or
</tt>
<tt
class=
"py-name"
>
region_name
</tt>
<tt
class=
"py-op"
>
==
</tt>
<tt
class=
"py-string"
>
'00'
</tt><tt
class=
"py-op"
>
:
</tt>
</tt>
<a
name=
"L706"
></a><tt
class=
"py-lineno"
>
706
</tt>
<tt
class=
"py-line"
>
<tt
class=
"py-name"
>
region_name
</tt>
<tt
class=
"py-op"
>
=
</tt>
<tt
class=
"py-name"
>
None
</tt>
</tt>
<a
name=
"L707"
></a><tt
class=
"py-lineno"
>
707
</tt>
<tt
class=
"py-line"
>
<tt
class=
"py-name"
>
region_name
</tt>
<tt
class=
"py-op"
>
=
</tt>
<tt
class=
"py-name"
>
None
</tt>
</tt>
<a
name=
"L707"
></a><tt
class=
"py-lineno"
>
707
</tt>
<tt
class=
"py-line"
>
</tt>
<a
name=
"L708"
></a><tt
class=
"py-lineno"
>
708
</tt>
<tt
class=
"py-line"
>
</tt>
<a
name=
"L708"
></a><tt
class=
"py-lineno"
>
708
</tt>
<tt
class=
"py-line"
>
<tt
class=
"py-name"
>
timezones
</tt>
<tt
class=
"py-op"
>
=
</tt>
<tt
id=
"link-697"
class=
"py-name"
><a
title=
"pygeoip.timezone._country"
class=
"py-name"
href=
"#"
onclick=
"return doclink('link-697', '_country', 'link-0');"
>
_country
</a></tt><tt
class=
"py-op"
>
[
</tt><tt
class=
"py-name"
>
country_code
</tt><tt
class=
"py-op"
>
]
</tt>
</tt>
<a
name=
"L709"
></a><tt
class=
"py-lineno"
>
709
</tt>
<tt
class=
"py-line"
>
<tt
class=
"py-name"
>
timezones
</tt>
<tt
class=
"py-op"
>
=
</tt>
<tt
id=
"link-697"
class=
"py-name"
><a
title=
"pygeoip.timezone._country"
class=
"py-name"
href=
"#"
onclick=
"return doclink('link-697', '_country', 'link-0');"
>
_country
</a></tt><tt
class=
"py-op"
>
[
</tt><tt
class=
"py-name"
>
country_code
</tt><tt
class=
"py-op"
>
]
</tt>
</tt>
<a
name=
"L709"
></a><tt
class=
"py-lineno"
>
709
</tt>
<tt
class=
"py-line"
>
</tt>
<a
name=
"L710"
></a><tt
class=
"py-lineno"
>
710
</tt>
<tt
class=
"py-line"
>
</tt>
<a
name=
"L710"
></a><tt
class=
"py-lineno"
>
710
</tt>
<tt
class=
"py-line"
>
<tt
class=
"py-keyword"
>
if
</tt>
<tt
class=
"py-name"
>
isinstance
</tt><tt
class=
"py-op"
>
(
</tt><tt
class=
"py-name"
>
timezones
</tt><tt
class=
"py-op"
>
,
</tt>
<tt
class=
"py-name"
>
str
</tt><tt
class=
"py-op"
>
)
</tt><tt
class=
"py-op"
>
:
</tt>
</tt>
<a
name=
"L711"
></a><tt
class=
"py-lineno"
>
711
</tt>
<tt
class=
"py-line"
>
<tt
class=
"py-keyword"
>
if
</tt>
<tt
class=
"py-name"
>
isinstance
</tt><tt
class=
"py-op"
>
(
</tt><tt
class=
"py-name"
>
timezones
</tt><tt
class=
"py-op"
>
,
</tt>
<tt
class=
"py-name"
>
str
</tt><tt
class=
"py-op"
>
)
</tt><tt
class=
"py-op"
>
:
</tt>
</tt>
<a
name=
"L711"
></a><tt
class=
"py-lineno"
>
711
</tt>
<tt
class=
"py-line"
>
<tt
class=
"py-keyword"
>
return
</tt>
<tt
class=
"py-name"
>
timezones
</tt>
</tt>
<a
name=
"L712"
></a><tt
class=
"py-lineno"
>
712
</tt>
<tt
class=
"py-line"
>
<tt
class=
"py-keyword"
>
return
</tt>
<tt
class=
"py-name"
>
timezones
</tt>
</tt>
<a
name=
"L712"
></a><tt
class=
"py-lineno"
>
712
</tt>
<tt
class=
"py-line"
>
</tt>
<a
name=
"L713"
></a><tt
class=
"py-lineno"
>
713
</tt>
<tt
class=
"py-line"
>
</tt>
<a
name=
"L713"
></a><tt
class=
"py-lineno"
>
713
</tt>
<tt
class=
"py-line"
>
<tt
class=
"py-keyword"
>
if
</tt>
<tt
class=
"py-name"
>
region_name
</tt><tt
class=
"py-op"
>
:
</tt>
</tt>
<a
name=
"L714"
></a><tt
class=
"py-lineno"
>
714
</tt>
<tt
class=
"py-line"
>
<tt
class=
"py-keyword"
>
if
</tt>
<tt
class=
"py-name"
>
region_name
</tt><tt
class=
"py-op"
>
:
</tt>
</tt>
<a
name=
"L714"
></a><tt
class=
"py-lineno"
>
714
</tt>
<tt
class=
"py-line"
>
<tt
class=
"py-keyword"
>
return
</tt>
<tt
class=
"py-name"
>
timezones
</tt><tt
class=
"py-op"
>
.
</tt><tt
class=
"py-name"
>
get
</tt><tt
class=
"py-op"
>
(
</tt><tt
class=
"py-name"
>
region_name
</tt><tt
class=
"py-op"
>
)
</tt>
</tt>
<a
name=
"L715"
></a><tt
class=
"py-lineno"
>
715
</tt>
<tt
class=
"py-line"
>
<tt
class=
"py-keyword"
>
return
</tt>
<tt
class=
"py-name"
>
timezones
</tt><tt
class=
"py-op"
>
.
</tt><tt
class=
"py-name"
>
get
</tt><tt
class=
"py-op"
>
(
</tt><tt
class=
"py-name"
>
region_name
</tt><tt
class=
"py-op"
>
)
</tt>
</tt>
</div><a
name=
"L715"
></a><tt
class=
"py-lineno"
>
715
</tt>
<tt
class=
"py-line"
>
</tt><script
type=
"text/javascript"
>
</div><a
name=
"L716"
></a><tt
class=
"py-lineno"
>
716
</tt>
<tt
class=
"py-line"
>
</tt><script
type=
"text/javascript"
>
<!--
<!--
expandto
(
location
.
href
);
expandto
(
location
.
href
);
// -->
// -->
...
@@ -814,7 +813,7 @@ expandto(location.href);
...
@@ -814,7 +813,7 @@ expandto(location.href);
<table
border=
"0"
cellpadding=
"0"
cellspacing=
"0"
width=
"100%%"
>
<table
border=
"0"
cellpadding=
"0"
cellspacing=
"0"
width=
"100%%"
>
<tr>
<tr>
<td
align=
"left"
class=
"footer"
>
<td
align=
"left"
class=
"footer"
>
Generated by Epydoc 3.0.1 on Thu Sep 20 1
1:41:42
2012
Generated by Epydoc 3.0.1 on Thu Sep 20 1
7:58:05
2012
</td>
</td>
<td
align=
"right"
class=
"footer"
>
<td
align=
"right"
class=
"footer"
>
<a
target=
"mainFrame"
href=
"http://epydoc.sourceforge.net"
<a
target=
"mainFrame"
href=
"http://epydoc.sourceforge.net"
...
...
apidocs/html/pygeoip.util-module.html
View file @
4c3ec00b
...
@@ -216,7 +216,7 @@
...
@@ -216,7 +216,7 @@
<table
border=
"0"
cellpadding=
"0"
cellspacing=
"0"
width=
"100%%"
>
<table
border=
"0"
cellpadding=
"0"
cellspacing=
"0"
width=
"100%%"
>
<tr>
<tr>
<td
align=
"left"
class=
"footer"
>
<td
align=
"left"
class=
"footer"
>
Generated by Epydoc 3.0.1 on Thu Sep 20 1
1:41:42
2012
Generated by Epydoc 3.0.1 on Thu Sep 20 1
7:58:04
2012
</td>
</td>
<td
align=
"right"
class=
"footer"
>
<td
align=
"right"
class=
"footer"
>
<a
target=
"mainFrame"
href=
"http://epydoc.sourceforge.net"
<a
target=
"mainFrame"
href=
"http://epydoc.sourceforge.net"
...
...
apidocs/html/pygeoip.util-pysrc.html
View file @
4c3ec00b
...
@@ -140,7 +140,7 @@ expandto(location.href);
...
@@ -140,7 +140,7 @@ expandto(location.href);
<table
border=
"0"
cellpadding=
"0"
cellspacing=
"0"
width=
"100%%"
>
<table
border=
"0"
cellpadding=
"0"
cellspacing=
"0"
width=
"100%%"
>
<tr>
<tr>
<td
align=
"left"
class=
"footer"
>
<td
align=
"left"
class=
"footer"
>
Generated by Epydoc 3.0.1 on Thu Sep 20 1
1:41:42
2012
Generated by Epydoc 3.0.1 on Thu Sep 20 1
7:58:04
2012
</td>
</td>
<td
align=
"right"
class=
"footer"
>
<td
align=
"right"
class=
"footer"
>
<a
target=
"mainFrame"
href=
"http://epydoc.sourceforge.net"
<a
target=
"mainFrame"
href=
"http://epydoc.sourceforge.net"
...
...
config
.ini
→
epydoc
.ini
View file @
4c3ec00b
File moved
pygeoip/__init__.py
View file @
4c3ec00b
...
@@ -27,8 +27,9 @@ You should have received a copy of the GNU Lesser General Public License
...
@@ -27,8 +27,9 @@ You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/lgpl.txt>.
along with this program. If not, see <http://www.gnu.org/licenses/lgpl.txt>.
"""
"""
from
__future__
import
with_statement
,
absolute_import
,
division
from
__future__
import
with_statement
,
division
import
os
import
os
import
six
import
math
import
math
import
socket
import
socket
import
mmap
import
mmap
...
@@ -40,21 +41,21 @@ try:
...
@@ -40,21 +41,21 @@ try:
except
ImportError
:
except
ImportError
:
from
io
import
StringIO
from
io
import
StringIO
from
.
import
const
import
const
from
.
util
import
ip2long
from
util
import
ip2long
from
.
timezone
import
time_zone_by_country_and_region
from
timezone
import
time_zone_by_country_and_region
import
six
MMAP_CACHE
=
const
.
MMAP_CACHE
MMAP_CACHE
=
const
.
MMAP_CACHE
MEMORY_CACHE
=
const
.
MEMORY_CACHE
MEMORY_CACHE
=
const
.
MEMORY_CACHE
STANDARD
=
const
.
STANDARD
STANDARD
=
const
.
STANDARD
class
GeoIPError
(
Exception
):
class
GeoIPError
(
Exception
):
pass
pass
class
GeoIPMetaclass
(
type
):
class
GeoIPMetaclass
(
type
):
def
__new__
(
cls
,
*
args
,
**
kwargs
):
def
__new__
(
cls
,
*
args
,
**
kwargs
):
"""
"""
Singleton method to gets an instance without reparsing the db. Unique
Singleton method to gets an instance without reparsing the db. Unique
...
@@ -77,10 +78,11 @@ class GeoIPMetaclass(type):
...
@@ -77,10 +78,11 @@ class GeoIPMetaclass(type):
return
cls
.
_instances
[
filename
]
return
cls
.
_instances
[
filename
]
GeoIPBase
=
GeoIPMetaclass
(
'GeoIPBase'
,
(
object
,),
{})
GeoIPBase
=
GeoIPMetaclass
(
'GeoIPBase'
,
(
object
,),
{})
class
GeoIP
(
GeoIPBase
):
class
GeoIP
(
GeoIPBase
):
def
__init__
(
self
,
filename
,
flags
=
0
):
def
__init__
(
self
,
filename
,
flags
=
0
):
"""
"""
Initialize the class.
Initialize the class.
...
@@ -617,8 +619,8 @@ class GeoIP(GeoIPBase):
...
@@ -617,8 +619,8 @@ class GeoIP(GeoIPBase):
Look up the time zone for a given IP address.
Look up the time zone for a given IP address.
Use this method if you have a Region or City database.
Use this method if you have a Region or City database.
@param
hostname
: IP address
@param
addr
: IP address
@type
hostname
: str
@type
addr
: str
@return: Time zone
@return: Time zone
@rtype: str
@rtype: str
"""
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment