Skip to content

Instantly share code, notes, and snippets.

(py_api_proxy) $ vagrant reload
[default] Provisioning enabled with Vagrant::Provisioners::ChefSolo
[default] Attempting graceful shutdown of linux...
[default] Deleting any previously set forwarded ports...
[default] Forwarding ports...
[default] Forwarding "ssh": 22 on adapter #1 => 2222
[default] Clearing previously set shared folders...
[default] Creating shared folders metadata...
[default] Booting VM...
[default] Waiting for VM to boot...
# -*- ruby -*-
Vagrant::Config.run do |config|
# All Vagrant configuration is done here. For a detailed explanation
# and listing of configuration options, please view the documentation
# online.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "base"
config.chef.cookbooks_path = "cookbooks"
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) com.codahale:shore:jar:0.2-SNAPSHOT
Try downloading the file manually from the project website.
diff -r 7315d1068287 -r 9534b00f6aba brcm-accounts-api/src/main/java/com/wesabe/api/accounts/analytics/TagHierarchyBuilder.java
--- a/brcm-accounts-api/src/main/java/com/wesabe/api/accounts/analytics/TagHierarchyBuilder.java Fri Jul 16 20:55:28 2010 -0600
+++ b/brcm-accounts-api/src/main/java/com/wesabe/api/accounts/analytics/TagHierarchyBuilder.java Fri Jul 16 20:56:02 2010 -0600
@@ -56,42 +56,64 @@
private static BigDecimal FACTOR = new BigDecimal("10000");
}
- public static enum HierarchyType implements Function<MonetarySummary, SumOfMoney>, Predicate<Txaction> {
- EARNINGS {
- @Override
;; This buffer is for notes you don't want to save, and for Lisp evaluation.
;; If you want to create a file, visit that file with C-x C-f,
;; then enter the text in that file's own buffer.
INFO:root:Getting WSDL from file:///Users/crose/projects/aed/2366/crm/services/metadata.wsdl
DEBUG:suds.client:sending to (https://service.host/MSCrmServices/2007/MetadataService.asmx)
message:
<SOAP-ENV:Envelope xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://schemas.microsoft.com/crm/2007/WebServices" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<ns0:Body>
class Login():
@cherrypy.expose
def default(self, *args, **kwargs):
return dict_to_html(cherrypy.request._get_dict())
def makeRoutes():
d = cherrypy.dispatch.RoutesDispatcher()
d.mapper.explicit = False
d.connect(name='login', route='login', controller=Login())
crose@chris-rose (webservices) $ curl -v http://localhost:8000/login/
* About to connect() to localhost port 8000 (#0)
* Trying ::1... Connection refused
* Trying fe80::1... Connection refused
* Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 8000 (#0)
> GET /login/ HTTP/1.1
> User-Agent: curl/7.21.0 (x86_64-apple-darwin10.4.0) libcurl/7.21.0 OpenSSL/0.9.8l zlib/1.2.3
> Host: localhost:8000
> Accept: */*
from django import forms
from django.contrib.auth import authenticate
from django.contrib.auth.forms import AuthenticationForm
from django.contrib.auth.models import User
import rest
get_request = rest.get_request
post_request = rest.post_request
class InternalAuthenticationBackend:
== model/users.py ====
Base = declarative_base()
class Company(Base):
__tablename__ = 'company'
company_id = Column(String, primary_key=True)
label = Column(String)
active = Column(Boolean)
"""Routes configuration
The more specific and detailed routes should be defined first so they
may take precedent over the more generic routes. For more information
refer to the routes manual at http://routes.groovie.org/docs/
"""
from routes import Mapper
def make_map(config):
"""Create, configure and return the routes Mapper"""