Switched to Apache licensing

This commit is contained in:
Sandy Walsh 2014-03-28 11:47:16 -03:00
parent fd5810301f
commit eae07eecac
73 changed files with 1365 additions and 691 deletions

202
LICENSE Normal file
View File

@ -0,0 +1,202 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
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.

View File

@ -44,7 +44,6 @@ master_doc = 'index'
# General information about the project. # General information about the project.
project = u'StackTach' project = u'StackTach'
copyright = u'2014, Sandy Walsh'
# The version info for the project you're documenting, acts as replacement for # The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the # |version| and |release|, also used in various other places throughout the
@ -165,7 +164,7 @@ html_static_path = ['_static']
#html_show_sphinx = True #html_show_sphinx = True
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
#html_show_copyright = True html_show_copyright = False
# If true, an OpenSearch description file will be output, and all pages will # If true, an OpenSearch description file will be output, and all pages will
# contain a <link> tag referring to it. The value of this option must be the # contain a <link> tag referring to it. The value of this option must be the
@ -241,7 +240,7 @@ man_pages = [
# dir menu entry, description, category) # dir menu entry, description, category)
texinfo_documents = [ texinfo_documents = [
('index', 'StackTach', u'StackTach Documentation', ('index', 'StackTach', u'StackTach Documentation',
u'Sandy Walsh', 'StackTach', 'One line description of project.', u'Sandy Walsh', 'StackTach', 'Usage, monitoring and billing for OpenStack.',
'Miscellaneous'), 'Miscellaneous'),
] ]

View File

@ -1,3 +1,19 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
import datetime import datetime
import json import json
import sys import sys

View File

@ -1,23 +1,19 @@
# Copyright (c) 2012 - Rackspace Inc. # Licensed to the Apache Software Foundation (ASF) under one
# # or more contributor license agreements. See the NOTICE file
# Permission is hereby granted, free of charge, to any person obtaining a copy # distributed with this work for additional information
# of this software and associated documentation files (the "Software"), to # regarding copyright ownership. The ASF licenses this file
# deal in the Software without restriction, including without limitation the # to you under the Apache License, Version 2.0 (the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # "License"); you may not use this file except in compliance
# sell copies of the Software, and to permit persons to whom the Software is # with the License. You may obtain a copy of the License at
# furnished to do so, subject to the following conditions: #
# # http://www.apache.org/licenses/LICENSE-2.0
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. # Unless required by applicable law or agreed to in writing,
# # software distributed under the License is distributed on an
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # KIND, either express or implied. See the License for the
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # specific language governing permissions and limitations
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # under the License.
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
import datetime import datetime
import os import os
import sys import sys
@ -68,4 +64,4 @@ def add_past_usage(raws):
start_raws = models.RawData.objects.filter(event=REBUILD_START) start_raws = models.RawData.objects.filter(event=REBUILD_START)
add_past_usage(start_raws) add_past_usage(start_raws)
end_raws = models.RawData.objects.filter(event=REBUILD_END) end_raws = models.RawData.objects.filter(event=REBUILD_END)
add_past_usage(end_raws) add_past_usage(end_raws)

View File

@ -1,23 +1,19 @@
# Copyright (c) 2012 - Rackspace Inc. # Licensed to the Apache Software Foundation (ASF) under one
# # or more contributor license agreements. See the NOTICE file
# Permission is hereby granted, free of charge, to any person obtaining a copy # distributed with this work for additional information
# of this software and associated documentation files (the "Software"), to # regarding copyright ownership. The ASF licenses this file
# deal in the Software without restriction, including without limitation the # to you under the Apache License, Version 2.0 (the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # "License"); you may not use this file except in compliance
# sell copies of the Software, and to permit persons to whom the Software is # with the License. You may obtain a copy of the License at
# furnished to do so, subject to the following conditions: #
# # http://www.apache.org/licenses/LICENSE-2.0
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. # Unless required by applicable law or agreed to in writing,
# # software distributed under the License is distributed on an
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # KIND, either express or implied. See the License for the
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # specific language governing permissions and limitations
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # under the License.
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
import datetime import datetime
import os import os
import sys import sys

View File

@ -1,3 +1,19 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
import datetime import datetime
import os import os
import sys import sys

View File

@ -1,3 +1,19 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
import datetime import datetime
import os import os
import sys import sys

View File

@ -1,3 +1,19 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
import datetime import datetime
import os import os
import sys import sys

View File

@ -1,23 +1,19 @@
# Copyright (c) 2013 - Rackspace Inc. # Licensed to the Apache Software Foundation (ASF) under one
# # or more contributor license agreements. See the NOTICE file
# Permission is hereby granted, free of charge, to any person obtaining a copy # distributed with this work for additional information
# of this software and associated documentation files (the "Software"), to # regarding copyright ownership. The ASF licenses this file
# deal in the Software without restriction, including without limitation the # to you under the Apache License, Version 2.0 (the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # "License"); you may not use this file except in compliance
# sell copies of the Software, and to permit persons to whom the Software is # with the License. You may obtain a copy of the License at
# furnished to do so, subject to the following conditions: #
# # http://www.apache.org/licenses/LICENSE-2.0
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. # Unless required by applicable law or agreed to in writing,
# # software distributed under the License is distributed on an
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # KIND, either express or implied. See the License for the
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # specific language governing permissions and limitations
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # under the License.
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
import os import os
import sys import sys
@ -40,4 +36,4 @@ def add_past_exists(instance_tenant_id_maps):
distinct_exists_instances = models.InstanceExists.objects.all().values('instance').distinct() distinct_exists_instances = models.InstanceExists.objects.all().values('instance').distinct()
instance_tenant_id_maps = models.RawData.objects.filter(instance__in=distinct_exists_instances).distinct().values('instance', 'tenant') instance_tenant_id_maps = models.RawData.objects.filter(instance__in=distinct_exists_instances).distinct().values('instance', 'tenant')
add_past_exists(instance_tenant_id_maps) add_past_exists(instance_tenant_id_maps)

View File

@ -1,23 +1,19 @@
# Copyright (c) 2013 - Rackspace Inc. # Licensed to the Apache Software Foundation (ASF) under one
# # or more contributor license agreements. See the NOTICE file
# Permission is hereby granted, free of charge, to any person obtaining a copy # distributed with this work for additional information
# of this software and associated documentation files (the "Software"), to # regarding copyright ownership. The ASF licenses this file
# deal in the Software without restriction, including without limitation the # to you under the Apache License, Version 2.0 (the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # "License"); you may not use this file except in compliance
# sell copies of the Software, and to permit persons to whom the Software is # with the License. You may obtain a copy of the License at
# furnished to do so, subject to the following conditions: #
# # http://www.apache.org/licenses/LICENSE-2.0
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. # Unless required by applicable law or agreed to in writing,
# # software distributed under the License is distributed on an
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # KIND, either express or implied. See the License for the
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # specific language governing permissions and limitations
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # under the License.
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
import os import os
import sys import sys

View File

@ -1,3 +1,20 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
# This is a one-time utility script for backfilling reports. # This is a one-time utility script for backfilling reports.
# Be sure to set up your DJANGO_SETTINGS_MODULE env var first. # Be sure to set up your DJANGO_SETTINGS_MODULE env var first.

View File

@ -1,3 +1,19 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
import datetime import datetime
import json import json
import sys import sys

View File

@ -1,3 +1,19 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
import argparse import argparse
import datetime import datetime
import json import json

View File

@ -1,23 +1,19 @@
# Copyright (c) 2013 - Rackspace Inc. # Licensed to the Apache Software Foundation (ASF) under one
# # or more contributor license agreements. See the NOTICE file
# Permission is hereby granted, free of charge, to any person obtaining a copy # distributed with this work for additional information
# of this software and associated documentation files (the "Software"), to # regarding copyright ownership. The ASF licenses this file
# deal in the Software without restriction, including without limitation the # to you under the Apache License, Version 2.0 (the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # "License"); you may not use this file except in compliance
# sell copies of the Software, and to permit persons to whom the Software is # with the License. You may obtain a copy of the License at
# furnished to do so, subject to the following conditions: #
# # http://www.apache.org/licenses/LICENSE-2.0
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. # Unless required by applicable law or agreed to in writing,
# # software distributed under the License is distributed on an
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # KIND, either express or implied. See the License for the
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # specific language governing permissions and limitations
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # under the License.
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
import argparse import argparse
import datetime import datetime
import json import json

View File

@ -1,23 +1,19 @@
# Copyright (c) 2013 - Rackspace Inc. # Licensed to the Apache Software Foundation (ASF) under one
# # or more contributor license agreements. See the NOTICE file
# Permission is hereby granted, free of charge, to any person obtaining a copy # distributed with this work for additional information
# of this software and associated documentation files (the "Software"), to # regarding copyright ownership. The ASF licenses this file
# deal in the Software without restriction, including without limitation the # to you under the Apache License, Version 2.0 (the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # "License"); you may not use this file except in compliance
# sell copies of the Software, and to permit persons to whom the Software is # with the License. You may obtain a copy of the License at
# furnished to do so, subject to the following conditions: #
# # http://www.apache.org/licenses/LICENSE-2.0
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. # Unless required by applicable law or agreed to in writing,
# # software distributed under the License is distributed on an
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # KIND, either express or implied. See the License for the
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # specific language governing permissions and limitations
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # under the License.
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
import argparse import argparse
import datetime import datetime
import functools import functools

View File

@ -1,3 +1,19 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
import argparse import argparse
import datetime import datetime
import json import json

View File

@ -1,4 +1,19 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
import datetime import datetime
import json import json
import logging import logging

View File

@ -1,3 +1,19 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
import datetime import datetime
from django.db.models import F from django.db.models import F
from django.db.models import Q from django.db.models import Q
@ -131,4 +147,4 @@ def get_previous_period(time, period_length):
month=time.month, month=time.month,
day=time.day, day=time.day,
hour=time.hour) hour=time.hour)
return start, end return start, end

View File

@ -1,3 +1,20 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
#!/usr/bin/env python #!/usr/bin/env python
from setuptools import setup from setuptools import setup
@ -5,4 +22,4 @@ from setuptools import setup
setup( setup(
setup_requires=['pbr'], setup_requires=['pbr'],
pbr=True, pbr=True,
) )

View File

@ -1,3 +1,19 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
import calendar import calendar
import datetime import datetime
import decimal import decimal

View File

@ -1,3 +1,19 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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 stacktach import stacklog from stacktach import stacklog
from stacktach import models from stacktach import models

View File

@ -1,23 +1,19 @@
# Copyright (c) 2012 - Rackspace Inc. # Licensed to the Apache Software Foundation (ASF) under one
# # or more contributor license agreements. See the NOTICE file
# Permission is hereby granted, free of charge, to any person obtaining a copy # distributed with this work for additional information
# of this software and associated documentation files (the "Software"), to # regarding copyright ownership. The ASF licenses this file
# deal in the Software without restriction, including without limitation the # to you under the Apache License, Version 2.0 (the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # "License"); you may not use this file except in compliance
# sell copies of the Software, and to permit persons to whom the Software is # with the License. You may obtain a copy of the License at
# furnished to do so, subject to the following conditions: #
# # http://www.apache.org/licenses/LICENSE-2.0
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. # Unless required by applicable law or agreed to in writing,
# # software distributed under the License is distributed on an
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # KIND, either express or implied. See the License for the
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # specific language governing permissions and limitations
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # under the License.
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
import decimal import decimal
import functools import functools
import json import json

View File

@ -1,3 +1,19 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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 operator import itemgetter from operator import itemgetter

View File

@ -1,3 +1,19 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
import kombu import kombu
import kombu.entity import kombu.entity
import kombu.pools import kombu.pools

View File

@ -1,3 +1,20 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import datetime import datetime
from south.db import db from south.db import db
@ -257,4 +274,4 @@ class Migration(SchemaMigration):
} }
} }
complete_apps = ['stacktach'] complete_apps = ['stacktach']

View File

@ -1,3 +1,20 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import datetime import datetime
from south.db import db from south.db import db
@ -208,4 +225,4 @@ class Migration(SchemaMigration):
} }
} }
complete_apps = ['stacktach'] complete_apps = ['stacktach']

View File

@ -1,3 +1,20 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import copy import copy
import gc import gc

View File

@ -1,3 +1,20 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import datetime import datetime
from south.db import db from south.db import db
@ -157,4 +174,4 @@ class Migration(SchemaMigration):
} }
} }
complete_apps = ['stacktach'] complete_apps = ['stacktach']

View File

@ -1,3 +1,20 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import datetime import datetime
from south.db import db from south.db import db
@ -186,4 +203,4 @@ class Migration(SchemaMigration):
} }
} }
complete_apps = ['stacktach'] complete_apps = ['stacktach']

View File

@ -1,3 +1,20 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import datetime import datetime
from south.db import db from south.db import db
@ -305,4 +322,4 @@ class Migration(SchemaMigration):
} }
} }
complete_apps = ['stacktach'] complete_apps = ['stacktach']

View File

@ -1,3 +1,20 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import datetime import datetime
from south.db import db from south.db import db
@ -225,4 +242,4 @@ class Migration(SchemaMigration):
} }
} }
complete_apps = ['stacktach'] complete_apps = ['stacktach']

View File

@ -1,3 +1,20 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import datetime import datetime
from south.db import db from south.db import db

View File

@ -1,3 +1,20 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import datetime import datetime
from south.db import db from south.db import db
@ -220,4 +237,4 @@ class Migration(SchemaMigration):
} }
} }
complete_apps = ['stacktach'] complete_apps = ['stacktach']

View File

@ -1,3 +1,20 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import datetime import datetime
from south.db import db from south.db import db
@ -241,4 +258,4 @@ class Migration(SchemaMigration):
} }
} }
complete_apps = ['stacktach'] complete_apps = ['stacktach']

View File

@ -1,3 +1,20 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import datetime import datetime
from south.db import db from south.db import db
@ -226,4 +243,4 @@ class Migration(SchemaMigration):
} }
} }
complete_apps = ['stacktach'] complete_apps = ['stacktach']

View File

@ -1,3 +1,20 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import datetime import datetime
from south.db import db from south.db import db
@ -236,4 +253,4 @@ class Migration(SchemaMigration):
} }
} }
complete_apps = ['stacktach'] complete_apps = ['stacktach']

View File

@ -1,16 +1,18 @@
# Copyright 2012 - Dark Secret Software Inc. # Licensed to the Apache Software Foundation (ASF) under one
# All Rights Reserved. # or more contributor license agreements. See the NOTICE file
# # distributed with this work for additional information
# Licensed under the Apache License, Version 2.0 (the "License"); you may # regarding copyright ownership. The ASF licenses this file
# not use this file except in compliance with the License. You may obtain # to you under the Apache License, Version 2.0 (the
# a copy of the License at # "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 #
# # 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 # Unless required by applicable law or agreed to in writing,
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # software distributed under the License is distributed on an
# License for the specific language governing permissions and limitations # "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. # under the License.
import datetime import datetime
import copy import copy

View File

@ -1,22 +1,19 @@
# Copyright (c) 2013 - Rackspace Inc. # Licensed to the Apache Software Foundation (ASF) under one
# # or more contributor license agreements. See the NOTICE file
# Permission is hereby granted, free of charge, to any person obtaining a copy # distributed with this work for additional information
# of this software and associated documentation files (the "Software"), to # regarding copyright ownership. The ASF licenses this file
# deal in the Software without restriction, including without limitation the # to you under the Apache License, Version 2.0 (the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # "License"); you may not use this file except in compliance
# sell copies of the Software, and to permit persons to whom the Software is # with the License. You may obtain a copy of the License at
# furnished to do so, subject to the following conditions: #
# # http://www.apache.org/licenses/LICENSE-2.0
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. # Unless required by applicable law or agreed to in writing,
# # software distributed under the License is distributed on an
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # KIND, either express or implied. See the License for the
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # specific language governing permissions and limitations
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # under the License.
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
from stacktach import utils from stacktach import utils
from stacktach import stacklog from stacktach import stacklog
from stacktach import image_type from stacktach import image_type

View File

@ -1,23 +1,19 @@
# Copyright (c) 2013 - Rackspace Inc. # Licensed to the Apache Software Foundation (ASF) under one
# # or more contributor license agreements. See the NOTICE file
# Permission is hereby granted, free of charge, to any person obtaining a copy # distributed with this work for additional information
# of this software and associated documentation files (the "Software"), to # regarding copyright ownership. The ASF licenses this file
# deal in the Software without restriction, including without limitation the # to you under the Apache License, Version 2.0 (the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # "License"); you may not use this file except in compliance
# sell copies of the Software, and to permit persons to whom the Software is # with the License. You may obtain a copy of the License at
# furnished to do so, subject to the following conditions: #
# # http://www.apache.org/licenses/LICENSE-2.0
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. # Unless required by applicable law or agreed to in writing,
# # software distributed under the License is distributed on an
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # KIND, either express or implied. See the License for the
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # specific language governing permissions and limitations
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # under the License.
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
import json import json
from stacktach import models from stacktach import models

View File

@ -1,3 +1,20 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
class NotFound(Exception): class NotFound(Exception):
def __init__(self, message="NotFound"): def __init__(self, message="NotFound"):
self.message = message self.message = message

View File

@ -1,3 +1,19 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
import requests import requests
from stacktach import utils as stackutils from stacktach import utils as stackutils

View File

@ -1,3 +1,19 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
def empty_reconciler_instance(): def empty_reconciler_instance():
r_instance = { r_instance = {
'id': None, 'id': None,

View File

@ -1,23 +1,19 @@
# Copyright (c) 2013 - Rackspace Inc. # Licensed to the Apache Software Foundation (ASF) under one
# # or more contributor license agreements. See the NOTICE file
# Permission is hereby granted, free of charge, to any person obtaining a copy # distributed with this work for additional information
# of this software and associated documentation files (the "Software"), to # regarding copyright ownership. The ASF licenses this file
# deal in the Software without restriction, including without limitation the # to you under the Apache License, Version 2.0 (the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # "License"); you may not use this file except in compliance
# sell copies of the Software, and to permit persons to whom the Software is # with the License. You may obtain a copy of the License at
# furnished to do so, subject to the following conditions: #
# # http://www.apache.org/licenses/LICENSE-2.0
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. # Unless required by applicable law or agreed to in writing,
# # software distributed under the License is distributed on an
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # KIND, either express or implied. See the License for the
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # specific language governing permissions and limitations
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # under the License.
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
import logging import logging
import logging.handlers import logging.handlers
import multiprocessing import multiprocessing

View File

@ -1,3 +1,19 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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 copy import deepcopy from copy import deepcopy
import decimal import decimal
import datetime import datetime

View File

@ -1,23 +1,19 @@
# Copyright (c) 2012 - Rackspace Inc. # Licensed to the Apache Software Foundation (ASF) under one
# # or more contributor license agreements. See the NOTICE file
# Permission is hereby granted, free of charge, to any person obtaining a copy # distributed with this work for additional information
# of this software and associated documentation files (the "Software"), to # regarding copyright ownership. The ASF licenses this file
# deal in the Software without restriction, including without limitation the # to you under the Apache License, Version 2.0 (the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # "License"); you may not use this file except in compliance
# sell copies of the Software, and to permit persons to whom the Software is # with the License. You may obtain a copy of the License at
# furnished to do so, subject to the following conditions: #
# # http://www.apache.org/licenses/LICENSE-2.0
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. # Unless required by applicable law or agreed to in writing,
# # software distributed under the License is distributed on an
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # KIND, either express or implied. See the License for the
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # specific language governing permissions and limitations
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # under the License.
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
import json import json
import views import views
@ -53,4 +49,4 @@ def create_raw(deployment, when, event, instance=INSTANCE_ID_1,
} }
raw = RawData(**raw_values) raw = RawData(**raw_values)
raw.save() raw.save()
return raw return raw

View File

@ -1,23 +1,19 @@
# Copyright (c) 2013 - Rackspace Inc. # Licensed to the Apache Software Foundation (ASF) under one
# # or more contributor license agreements. See the NOTICE file
# Permission is hereby granted, free of charge, to any person obtaining a copy # distributed with this work for additional information
# of this software and associated documentation files (the "Software"), to # regarding copyright ownership. The ASF licenses this file
# deal in the Software without restriction, including without limitation the # to you under the Apache License, Version 2.0 (the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # "License"); you may not use this file except in compliance
# sell copies of the Software, and to permit persons to whom the Software is # with the License. You may obtain a copy of the License at
# furnished to do so, subject to the following conditions: #
# # http://www.apache.org/licenses/LICENSE-2.0
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. # Unless required by applicable law or agreed to in writing,
# # software distributed under the License is distributed on an
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # KIND, either express or implied. See the License for the
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # specific language governing permissions and limitations
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # under the License.
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
from datetime import datetime from datetime import datetime
from django.test import TransactionTestCase from django.test import TransactionTestCase
import db import db

View File

@ -1,3 +1,19 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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 django.conf.urls import patterns, url from django.conf.urls import patterns, url
from stacktach import stacklog from stacktach import stacklog

View File

@ -1,3 +1,19 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
import datetime import datetime
import uuid import uuid
@ -42,4 +58,4 @@ def is_uuid_like(val):
def is_request_id_like(val): def is_request_id_like(val):
if val[0:4] == 'req-': if val[0:4] == 'req-':
val = val[4:] val = val[4:]
return is_uuid_like(val) return is_uuid_like(val)

View File

@ -1,4 +1,19 @@
# Copyright 2012 - Dark Secret Software Inc. # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
import datetime import datetime
import json import json

View File

@ -109,7 +109,7 @@ under the License.
<span style='font-size: small'>v2</span> <span style='font-size: small'>v2</span>
</div> </div>
<a href="https://github.com/rackspace/stacktach"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_green_007200.png" alt="Fork me on GitHub"></a> <a href="https://github.com/rackerlabs/stacktach"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_green_007200.png" alt="Fork me on GitHub"></a>
{% block body %} {% block body %}
{% endblock %} {% endblock %}

View File

@ -1,23 +1,19 @@
# Copyright (c) 2012 - Rackspace Inc. # Licensed to the Apache Software Foundation (ASF) under one
# # or more contributor license agreements. See the NOTICE file
# Permission is hereby granted, free of charge, to any person obtaining a copy # distributed with this work for additional information
# of this software and associated documentation files (the "Software"), to # regarding copyright ownership. The ASF licenses this file
# deal in the Software without restriction, including without limitation the # to you under the Apache License, Version 2.0 (the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # "License"); you may not use this file except in compliance
# sell copies of the Software, and to permit persons to whom the Software is # with the License. You may obtain a copy of the License at
# furnished to do so, subject to the following conditions: #
# # http://www.apache.org/licenses/LICENSE-2.0
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. # Unless required by applicable law or agreed to in writing,
# # software distributed under the License is distributed on an
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # KIND, either express or implied. See the License for the
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # specific language governing permissions and limitations
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # under the License.
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
import os import os
import re import re
import sys import sys
@ -106,4 +102,4 @@ class StacktachBaseTestCase(unittest.TestCase):
if callableObj is None: if callableObj is None:
return context return context
with context: with context:
callableObj(*args, **kwargs) callableObj(*args, **kwargs)

View File

@ -1,23 +1,19 @@
# Copyright (c) 2012 - Rackspace Inc. # Licensed to the Apache Software Foundation (ASF) under one
# # or more contributor license agreements. See the NOTICE file
# Permission is hereby granted, free of charge, to any person obtaining a copy # distributed with this work for additional information
# of this software and associated documentation files (the "Software"), to # regarding copyright ownership. The ASF licenses this file
# deal in the Software without restriction, including without limitation the # to you under the Apache License, Version 2.0 (the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # "License"); you may not use this file except in compliance
# sell copies of the Software, and to permit persons to whom the Software is # with the License. You may obtain a copy of the License at
# furnished to do so, subject to the following conditions: #
# # http://www.apache.org/licenses/LICENSE-2.0
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. # Unless required by applicable law or agreed to in writing,
# # software distributed under the License is distributed on an
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # KIND, either express or implied. See the License for the
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # specific language governing permissions and limitations
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # under the License.
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
import datetime import datetime
import decimal import decimal

View File

@ -1,23 +1,19 @@
# Copyright (c) 2012 - Rackspace Inc. # Licensed to the Apache Software Foundation (ASF) under one
# # or more contributor license agreements. See the NOTICE file
# Permission is hereby granted, free of charge, to any person obtaining a copy # distributed with this work for additional information
# of this software and associated documentation files (the "Software"), to # regarding copyright ownership. The ASF licenses this file
# deal in the Software without restriction, including without limitation the # to you under the Apache License, Version 2.0 (the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # "License"); you may not use this file except in compliance
# sell copies of the Software, and to permit persons to whom the Software is # with the License. You may obtain a copy of the License at
# furnished to do so, subject to the following conditions: #
# # http://www.apache.org/licenses/LICENSE-2.0
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. # Unless required by applicable law or agreed to in writing,
# # software distributed under the License is distributed on an
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # KIND, either express or implied. See the License for the
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # specific language governing permissions and limitations
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # under the License.
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
import datetime import datetime
import json import json

View File

@ -1,22 +1,19 @@
# Copyright (c) 2013 - Rackspace Inc. # Licensed to the Apache Software Foundation (ASF) under one
# # or more contributor license agreements. See the NOTICE file
# Permission is hereby granted, free of charge, to any person obtaining a copy # distributed with this work for additional information
# of this software and associated documentation files (the "Software"), to # regarding copyright ownership. The ASF licenses this file
# deal in the Software without restriction, including without limitation the # to you under the Apache License, Version 2.0 (the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # "License"); you may not use this file except in compliance
# sell copies of the Software, and to permit persons to whom the Software is # with the License. You may obtain a copy of the License at
# furnished to do so, subject to the following conditions: #
# # http://www.apache.org/licenses/LICENSE-2.0
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. # Unless required by applicable law or agreed to in writing,
# # software distributed under the License is distributed on an
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # KIND, either express or implied. See the License for the
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # specific language governing permissions and limitations
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # under the License.
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
import datetime import datetime
import decimal import decimal
import json import json

View File

@ -1,23 +1,19 @@
# Copyright (c) 2013 - Rackspace Inc. # Licensed to the Apache Software Foundation (ASF) under one
# # or more contributor license agreements. See the NOTICE file
# Permission is hereby granted, free of charge, to any person obtaining a copy # distributed with this work for additional information
# of this software and associated documentation files (the "Software"), to # regarding copyright ownership. The ASF licenses this file
# deal in the Software without restriction, including without limitation the # to you under the Apache License, Version 2.0 (the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # "License"); you may not use this file except in compliance
# sell copies of the Software, and to permit persons to whom the Software is # with the License. You may obtain a copy of the License at
# furnished to do so, subject to the following conditions: #
# # http://www.apache.org/licenses/LICENSE-2.0
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. # Unless required by applicable law or agreed to in writing,
# # software distributed under the License is distributed on an
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # KIND, either express or implied. See the License for the
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # specific language governing permissions and limitations
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # under the License.
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
import json import json
import mox import mox

View File

@ -1,23 +1,19 @@
# Copyright (c) 2013 - Rackspace Inc. # Licensed to the Apache Software Foundation (ASF) under one
# # or more contributor license agreements. See the NOTICE file
# Permission is hereby granted, free of charge, to any person obtaining a copy # distributed with this work for additional information
# of this software and associated documentation files (the "Software"), to # regarding copyright ownership. The ASF licenses this file
# deal in the Software without restriction, including without limitation the # to you under the Apache License, Version 2.0 (the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # "License"); you may not use this file except in compliance
# sell copies of the Software, and to permit persons to whom the Software is # with the License. You may obtain a copy of the License at
# furnished to do so, subject to the following conditions: #
# # http://www.apache.org/licenses/LICENSE-2.0
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. # Unless required by applicable law or agreed to in writing,
# # software distributed under the License is distributed on an
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # KIND, either express or implied. See the License for the
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # specific language governing permissions and limitations
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # under the License.
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
import datetime import datetime
import decimal import decimal
import json import json
@ -32,7 +28,9 @@ from stacktach import datetime_to_decimal as dt
from stacktach import stacklog from stacktach import stacklog
from stacktach import models from stacktach import models
from tests.unit import StacktachBaseTestCase from tests.unit import StacktachBaseTestCase
from utils import make_verifier_config, LAUNCHED_AT_1, INSTANCE_FLAVOR_ID_1, INSTANCE_FLAVOR_ID_2, FLAVOR_FIELD_NAME, DELETED_AT_1, LAUNCHED_AT_2, DELETED_AT_2 from utils import make_verifier_config, LAUNCHED_AT_1, INSTANCE_FLAVOR_ID_1
from utils import INSTANCE_FLAVOR_ID_2, FLAVOR_FIELD_NAME, DELETED_AT_1
from utils import LAUNCHED_AT_2, DELETED_AT_2
from utils import INSTANCE_ID_1 from utils import INSTANCE_ID_1
from utils import RAX_OPTIONS_1 from utils import RAX_OPTIONS_1
from utils import RAX_OPTIONS_2 from utils import RAX_OPTIONS_2

View File

@ -1,23 +1,19 @@
# Copyright (c) 2013 - Rackspace Inc. # Licensed to the Apache Software Foundation (ASF) under one
# # or more contributor license agreements. See the NOTICE file
# Permission is hereby granted, free of charge, to any person obtaining a copy # distributed with this work for additional information
# of this software and associated documentation files (the "Software"), to # regarding copyright ownership. The ASF licenses this file
# deal in the Software without restriction, including without limitation the # to you under the Apache License, Version 2.0 (the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # "License"); you may not use this file except in compliance
# sell copies of the Software, and to permit persons to whom the Software is # with the License. You may obtain a copy of the License at
# furnished to do so, subject to the following conditions: #
# # http://www.apache.org/licenses/LICENSE-2.0
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. # Unless required by applicable law or agreed to in writing,
# # software distributed under the License is distributed on an
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # KIND, either express or implied. See the License for the
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # specific language governing permissions and limitations
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # under the License.
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
import datetime import datetime
import mox import mox

View File

@ -1,23 +1,19 @@
# Copyright (c) 2012 - Rackspace Inc. # Licensed to the Apache Software Foundation (ASF) under one
# # or more contributor license agreements. See the NOTICE file
# Permission is hereby granted, free of charge, to any person obtaining a copy # distributed with this work for additional information
# of this software and associated documentation files (the "Software"), to # regarding copyright ownership. The ASF licenses this file
# deal in the Software without restriction, including without limitation the # to you under the Apache License, Version 2.0 (the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # "License"); you may not use this file except in compliance
# sell copies of the Software, and to permit persons to whom the Software is # with the License. You may obtain a copy of the License at
# furnished to do so, subject to the following conditions: #
# # http://www.apache.org/licenses/LICENSE-2.0
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. # Unless required by applicable law or agreed to in writing,
# # software distributed under the License is distributed on an
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # KIND, either express or implied. See the License for the
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # specific language governing permissions and limitations
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # under the License.
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
import datetime import datetime
import json import json

View File

@ -1,23 +1,19 @@
# Copyright (c) 2012 - Rackspace Inc. # Licensed to the Apache Software Foundation (ASF) under one
# # or more contributor license agreements. See the NOTICE file
# Permission is hereby granted, free of charge, to any person obtaining a copy # distributed with this work for additional information
# of this software and associated documentation files (the "Software"), to # regarding copyright ownership. The ASF licenses this file
# deal in the Software without restriction, including without limitation the # to you under the Apache License, Version 2.0 (the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # "License"); you may not use this file except in compliance
# sell copies of the Software, and to permit persons to whom the Software is # with the License. You may obtain a copy of the License at
# furnished to do so, subject to the following conditions: #
# # http://www.apache.org/licenses/LICENSE-2.0
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. # Unless required by applicable law or agreed to in writing,
# # software distributed under the License is distributed on an
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # KIND, either express or implied. See the License for the
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # specific language governing permissions and limitations
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # under the License.
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
import mox import mox
import decimal import decimal

View File

@ -1,23 +1,19 @@
# Copyright (c) 2012 - Rackspace Inc. # Licensed to the Apache Software Foundation (ASF) under one
# # or more contributor license agreements. See the NOTICE file
# Permission is hereby granted, free of charge, to any person obtaining a copy # distributed with this work for additional information
# of this software and associated documentation files (the "Software"), to # regarding copyright ownership. The ASF licenses this file
# deal in the Software without restriction, including without limitation the # to you under the Apache License, Version 2.0 (the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # "License"); you may not use this file except in compliance
# sell copies of the Software, and to permit persons to whom the Software is # with the License. You may obtain a copy of the License at
# furnished to do so, subject to the following conditions: #
# # http://www.apache.org/licenses/LICENSE-2.0
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. # Unless required by applicable law or agreed to in writing,
# # software distributed under the License is distributed on an
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # KIND, either express or implied. See the License for the
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # specific language governing permissions and limitations
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # under the License.
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
import json import json
import kombu import kombu

View File

@ -1,23 +1,19 @@
# Copyright (c) 2012 - Rackspace Inc. # Licensed to the Apache Software Foundation (ASF) under one
# # or more contributor license agreements. See the NOTICE file
# Permission is hereby granted, free of charge, to any person obtaining a copy # distributed with this work for additional information
# of this software and associated documentation files (the "Software"), to # regarding copyright ownership. The ASF licenses this file
# deal in the Software without restriction, including without limitation the # to you under the Apache License, Version 2.0 (the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # "License"); you may not use this file except in compliance
# sell copies of the Software, and to permit persons to whom the Software is # with the License. You may obtain a copy of the License at
# furnished to do so, subject to the following conditions: #
# # http://www.apache.org/licenses/LICENSE-2.0
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. # Unless required by applicable law or agreed to in writing,
# # software distributed under the License is distributed on an
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # KIND, either express or implied. See the License for the
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # specific language governing permissions and limitations
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # under the License.
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
import datetime import datetime
import decimal import decimal
@ -201,4 +197,4 @@ def make_verifier_config(notifs):
NOVA_VERIFIER_EVENT_TYPE, NOVA_VERIFIER_EVENT_TYPE,
GLANCE_VERIFIER_EVENT_TYPE, GLANCE_VERIFIER_EVENT_TYPE,
FLAVOR_FIELD_NAME) FLAVOR_FIELD_NAME)
return config return config

17
urls.py
View File

@ -1,3 +1,20 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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 django.conf.urls.defaults import patterns, include, url from django.conf.urls.defaults import patterns, include, url
# Uncomment the next two lines to enable the admin: # Uncomment the next two lines to enable the admin:

View File

@ -1,23 +1,19 @@
# Copyright (c) 2013 - Rackspace Inc. # Licensed to the Apache Software Foundation (ASF) under one
# # or more contributor license agreements. See the NOTICE file
# Permission is hereby granted, free of charge, to any person obtaining a copy # distributed with this work for additional information
# of this software and associated documentation files (the "Software"), to # regarding copyright ownership. The ASF licenses this file
# deal in the Software without restriction, including without limitation the # to you under the Apache License, Version 2.0 (the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # "License"); you may not use this file except in compliance
# sell copies of the Software, and to permit persons to whom the Software is # with the License. You may obtain a copy of the License at
# furnished to do so, subject to the following conditions: #
# # http://www.apache.org/licenses/LICENSE-2.0
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. # Unless required by applicable law or agreed to in writing,
# # software distributed under the License is distributed on an
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # KIND, either express or implied. See the License for the
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # specific language governing permissions and limitations
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # under the License.
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
""" """
Usage: python glance_usage_seed.py [period_length] [sql_connection] Usage: python glance_usage_seed.py [period_length] [sql_connection]
python glance_usage_seed.py hour mysql://user:password@nova-db.example python glance_usage_seed.py hour mysql://user:password@nova-db.example

View File

@ -1,23 +1,19 @@
# Copyright (c) 2013 - Rackspace Inc. # Licensed to the Apache Software Foundation (ASF) under one
# # or more contributor license agreements. See the NOTICE file
# Permission is hereby granted, free of charge, to any person obtaining a copy # distributed with this work for additional information
# of this software and associated documentation files (the "Software"), to # regarding copyright ownership. The ASF licenses this file
# deal in the Software without restriction, including without limitation the # to you under the Apache License, Version 2.0 (the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # "License"); you may not use this file except in compliance
# sell copies of the Software, and to permit persons to whom the Software is # with the License. You may obtain a copy of the License at
# furnished to do so, subject to the following conditions: #
# # http://www.apache.org/licenses/LICENSE-2.0
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. # Unless required by applicable law or agreed to in writing,
# # software distributed under the License is distributed on an
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # KIND, either express or implied. See the License for the
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # specific language governing permissions and limitations
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # under the License.
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
import os import os
import sys import sys

View File

@ -1,23 +1,19 @@
# Copyright (c) 2013 - Rackspace Inc. # Licensed to the Apache Software Foundation (ASF) under one
# # or more contributor license agreements. See the NOTICE file
# Permission is hereby granted, free of charge, to any person obtaining a copy # distributed with this work for additional information
# of this software and associated documentation files (the "Software"), to # regarding copyright ownership. The ASF licenses this file
# deal in the Software without restriction, including without limitation the # to you under the Apache License, Version 2.0 (the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # "License"); you may not use this file except in compliance
# sell copies of the Software, and to permit persons to whom the Software is # with the License. You may obtain a copy of the License at
# furnished to do so, subject to the following conditions: #
# # http://www.apache.org/licenses/LICENSE-2.0
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. # Unless required by applicable law or agreed to in writing,
# # software distributed under the License is distributed on an
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # KIND, either express or implied. See the License for the
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # specific language governing permissions and limitations
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # under the License.
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
""" """
Usage: python usage_seed.py [period_length] [sql_connection] Usage: python usage_seed.py [period_length] [sql_connection]
python usage_seed.py hour mysql://user:password@nova-db.example.com/nova?charset=utf8 python usage_seed.py hour mysql://user:password@nova-db.example.com/nova?charset=utf8

View File

@ -1,22 +1,19 @@
# Copyright (c) 2012 - Rackspace Inc. # Licensed to the Apache Software Foundation (ASF) under one
# # or more contributor license agreements. See the NOTICE file
# Permission is hereby granted, free of charge, to any person obtaining a copy # distributed with this work for additional information
# of this software and associated documentation files (the "Software"), to # regarding copyright ownership. The ASF licenses this file
# deal in the Software without restriction, including without limitation the # to you under the Apache License, Version 2.0 (the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # "License"); you may not use this file except in compliance
# sell copies of the Software, and to permit persons to whom the Software is # with the License. You may obtain a copy of the License at
# furnished to do so, subject to the following conditions: #
# # http://www.apache.org/licenses/LICENSE-2.0
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. # Unless required by applicable law or agreed to in writing,
# # software distributed under the License is distributed on an
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # KIND, either express or implied. See the License for the
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # specific language governing permissions and limitations
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # under the License.
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
import datetime import datetime

View File

@ -1,23 +1,19 @@
# Copyright (c) 2012 - Rackspace Inc. # Licensed to the Apache Software Foundation (ASF) under one
# # or more contributor license agreements. See the NOTICE file
# Permission is hereby granted, free of charge, to any person obtaining a copy # distributed with this work for additional information
# of this software and associated documentation files (the "Software"), to # regarding copyright ownership. The ASF licenses this file
# deal in the Software without restriction, including without limitation the # to you under the Apache License, Version 2.0 (the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # "License"); you may not use this file except in compliance
# sell copies of the Software, and to permit persons to whom the Software is # with the License. You may obtain a copy of the License at
# furnished to do so, subject to the following conditions: #
# # http://www.apache.org/licenses/LICENSE-2.0
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. # Unless required by applicable law or agreed to in writing,
# # software distributed under the License is distributed on an
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # KIND, either express or implied. See the License for the
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # specific language governing permissions and limitations
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # under the License.
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
import datetime import datetime
import decimal import decimal
import os import os

View File

@ -1,22 +1,19 @@
# Copyright (c) 2013 - Rackspace Inc. # Licensed to the Apache Software Foundation (ASF) under one
# # or more contributor license agreements. See the NOTICE file
# Permission is hereby granted, free of charge, to any person obtaining a copy # distributed with this work for additional information
# of this software and associated documentation files (the "Software"), to # regarding copyright ownership. The ASF licenses this file
# deal in the Software without restriction, including without limitation the # to you under the Apache License, Version 2.0 (the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # "License"); you may not use this file except in compliance
# sell copies of the Software, and to permit persons to whom the Software is # with the License. You may obtain a copy of the License at
# furnished to do so, subject to the following conditions: #
# # http://www.apache.org/licenses/LICENSE-2.0
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. # Unless required by applicable law or agreed to in writing,
# # software distributed under the License is distributed on an
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # KIND, either express or implied. See the License for the
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # specific language governing permissions and limitations
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # under the License.
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
import json import json
import os import os

View File

@ -1,22 +1,19 @@
# Copyright (c) 2012 - Rackspace Inc. # Licensed to the Apache Software Foundation (ASF) under one
# # or more contributor license agreements. See the NOTICE file
# Permission is hereby granted, free of charge, to any person obtaining a copy # distributed with this work for additional information
# of this software and associated documentation files (the "Software"), to # regarding copyright ownership. The ASF licenses this file
# deal in the Software without restriction, including without limitation the # to you under the Apache License, Version 2.0 (the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # "License"); you may not use this file except in compliance
# sell copies of the Software, and to permit persons to whom the Software is # with the License. You may obtain a copy of the License at
# furnished to do so, subject to the following conditions: #
# # http://www.apache.org/licenses/LICENSE-2.0
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. # Unless required by applicable law or agreed to in writing,
# # software distributed under the License is distributed on an
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # KIND, either express or implied. See the License for the
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # specific language governing permissions and limitations
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # under the License.
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
import json import json
import os import os

View File

@ -1,23 +1,19 @@
# Copyright (c) 2012 - Rackspace Inc. # Licensed to the Apache Software Foundation (ASF) under one
# # or more contributor license agreements. See the NOTICE file
# Permission is hereby granted, free of charge, to any person obtaining a copy # distributed with this work for additional information
# of this software and associated documentation files (the "Software"), to # regarding copyright ownership. The ASF licenses this file
# deal in the Software without restriction, including without limitation the # to you under the Apache License, Version 2.0 (the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # "License"); you may not use this file except in compliance
# sell copies of the Software, and to permit persons to whom the Software is # with the License. You may obtain a copy of the License at
# furnished to do so, subject to the following conditions: #
# # http://www.apache.org/licenses/LICENSE-2.0
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. # Unless required by applicable law or agreed to in writing,
# # software distributed under the License is distributed on an
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # KIND, either express or implied. See the License for the
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # specific language governing permissions and limitations
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # under the License.
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
import datetime import datetime
import json import json
import os import os

View File

@ -1,22 +1,19 @@
# Copyright (c) 2012 - Rackspace Inc. # Licensed to the Apache Software Foundation (ASF) under one
# # or more contributor license agreements. See the NOTICE file
# Permission is hereby granted, free of charge, to any person obtaining a copy # distributed with this work for additional information
# of this software and associated documentation files (the "Software"), to # regarding copyright ownership. The ASF licenses this file
# deal in the Software without restriction, including without limitation the # to you under the Apache License, Version 2.0 (the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # "License"); you may not use this file except in compliance
# sell copies of the Software, and to permit persons to whom the Software is # with the License. You may obtain a copy of the License at
# furnished to do so, subject to the following conditions: #
# # http://www.apache.org/licenses/LICENSE-2.0
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. # Unless required by applicable law or agreed to in writing,
# # software distributed under the License is distributed on an
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # KIND, either express or implied. See the License for the
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # specific language governing permissions and limitations
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # under the License.
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
import json import json
import os import os

View File

@ -1,3 +1,21 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
#!/bin/sh #!/bin/sh
### BEGIN INIT INFO ### BEGIN INIT INFO
# Provides: verifier # Provides: verifier

View File

@ -1,22 +1,21 @@
# Copyright (c) 2013 - Rackspace Inc. # Licensed to the Apache Software Foundation (ASF) under one
# # or more contributor license agreements. See the NOTICE file
# Permission is hereby granted, free of charge, to any person obtaining a copy # distributed with this work for additional information
# of this software and associated documentation files (the "Software"), to # regarding copyright ownership. The ASF licenses this file
# deal in the Software without restriction, including without limitation the # to you under the Apache License, Version 2.0 (the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # "License"); you may not use this file except in compliance
# sell copies of the Software, and to permit persons to whom the Software is # with the License. You may obtain a copy of the License at
# furnished to do so, subject to the following conditions: #
# # http://www.apache.org/licenses/LICENSE-2.0
# The above copyright notice and this permission notice shall be included in #
# all copies or substantial portions of the Software. # Unless required by applicable law or agreed to in writing,
# # software distributed under the License is distributed on an
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # KIND, either express or implied. See the License for the
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # specific language governing permissions and limitations
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # under the License.
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
import json import json
import os import os