This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// sm.cpp | |
#define XP_UNIX | |
#include "mozjs/jsapi.h" | |
#include <string> | |
#include <string.h> | |
#include <assert.h> | |
#include <malloc.h> | |
/* The class of the global object. */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pymongo.connection import Connection , ConnectionFailure | |
import datetime | |
try: | |
connection = Connection("localhost", 27017) | |
except ConnectionFailure: | |
page_content = """<span class = "error">could not connect connect:besure that Mongo is running on localhost:27017</span>""" | |
except Exception, detail: | |
page_content = """<span class = "error">could not connect connect:besure that Mongo is running on localhost:27017</span>""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pymongo.connection import Connection , ConnectionFailure | |
import datetime | |
try: | |
connection = Connection("localhost", 27017) | |
except ConnectionFailure: | |
page_content = """<span class = "error">could not connect connect:besure that Mongo is running on localhost:27017</span>""" | |
except Exception, detail: | |
page_content = """<span class = "error">could not connect connect:besure that Mongo is running on localhost:27017</span>""" |
NewerOlder