Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(18)  |  Call(18)  |  Derive(0)  |  Import(0)

src/l/a/lalf-3.0a0/lalf/users.py   lalf(Download)
    def add_bot(self, file, bot, id):
        """
        Add a bot in the sql dump
        """
        sql.insert(file, "users", {
            "user_dateformat" : "D M d, Y g:i a",
            "user_allow_massemail" : "0"})
        sql.insert(file, "user_group", {
            "group_id" : "6",
            "user_id" : id,
            "user_pending" : "0",
            "group_leader" : "0"})
        sql.insert(file, "bots", {
 
        # Add anonymous user
        sql.insert(file, "users", {
            "user_id" : "1",
            "user_type" : "2",
            "user_newpasswd" : "",
            "user_allow_massemail" : "0"})
        sql.insert(file, "user_group", {
            "group_id" : "1",
            "user_id" : "1",

src/l/a/lalf-3.0a0/lalf/user.py   lalf(Download)
            user["user_last_privmsg"] = time.time()
 
        sql.insert(file, "users", user)
 
        sql.insert(file, "user_group", {
        # Administrator
        if self.name == config["admin_name"]:
            sql.insert(file, "user_group", {
                "group_id" : 4,
                "user_id" : self.newid,
                "user_pending" : 0,
                "group_leader" : 0
                })
            sql.insert(file, "user_group", {
            post, uid, bitfield, checksum = phpbb.format_post(about.admin_pm_post)
 
            sql.insert(file, "privmsgs", {
            "msg_id"             : 1,
            'root_level'         : 0,

src/l/a/lalf-3.0a0/lalf/bb.py   lalf(Download)
    def _dump_(self, file):
        # Add bbcodes tags
        sql.truncate(file, "bbcodes")
        for bbcode in phpbb.bbcodes:
            sql.insert(file, "bbcodes", bbcode)

src/l/a/lalf-3.0a0/lalf/forum.py   lalf(Download)
            type = 0
 
        sql.insert(file, "forums", {
            "forum_id" : self.newid,
            "parent_id" : self.parentid,
 
        for acl in phpbb.default_forum_acl(self.newid):
            sql.insert(file, "acl_groups", acl)
 

src/l/a/lalf-3.0a0/lalf/topic.py   lalf(Download)
 
        posts[0]
        sql.insert(file, "topics", {
            "topic_id" : self.id,
            "topic_type" : self.type,
 
        for user, posted in posted.items():
            sql.insert(file, "topics_posted", {
                "user_id" : users.get_newid(user),
                "topic_id" : self.id,

src/l/a/lalf-3.0a0/lalf/post.py   lalf(Download)
    def _dump_(self, file):
        users = self.parent.parent.parent.children[0]
 
        post, uid, bitfield, checksum = phpbb.format_post(self.post)
        sql.insert(file, "posts", {