PageRenderTime 105ms queryFilters 1ms Sphinxql 62ms app.CodeModel.GetByIds 9ms findMatchingLines 15ms GetByIds 24ms meta 0ms repositoryFilters 6ms languageFilters 2ms sourceFilters 4ms

216,017 results for 'List<Object>' (105 ms)

Source

Language

Repository

127.0.0.1.2014-04-26.19-59-47.e9daa36b-3d1e-4449-a991-0f1cc04788fb https://bitbucket.org/itws2/minutes_of_meeting.git | Unknown | 475 lines
1(dp1
2S'output'
3p2
4S"<type 'exceptions.TypeError'> append() takes exactly one argument (2 given)"
5p3
6sS'layer'
7p4
8S'/ug/ug2k13/cse/srikailash.gandebathula/Desktop/web2py/applications/project/controllers/meet.py'
9p5
10sS'code'
11p6
12S'import os\nimport time\ndef user():\n    """\n    exposes:\n    http://..../[app]/default/user/login\n    http://..../[app]/default/user/logout\n    http://..../[app]/default/user/register\n    http://..../[app]/default/user/profile\n    http://..../[app]/default/user/retrieve_password\n    http://..../[app]/default/user/change_password\n    http://..../[app]/default/user/manage_users (requires membership in\n    use @auth.requires_login()\n        @auth.requires_membership(\'group name\')\n        @auth.requires_permission(\'read\',\'table name\',record_id)\n    to decorate functions that need access control\n    """\n    return dict(form=auth())\n@auth.requires_login()\ndef mycal():\n    rows=db(db.t_appointment.created_by==auth.user.id).select()\n    return dict(rows=rows)\n\ndef index():\n\treturn dict()\n\n@auth.requires_login()\ndef first():\n    user=\'%(first_name)s\'%auth.user\n    print "first"\n    tb1=DB[\'user_list\']\n    test=DB().select(tb1.ALL ,orderby=tb1.id)\n    for i in test:\n\t    if i.user_name == user:\n\t    \tprint user is i.user_name\n\t    \tprint "user found in user_list"\n\t    \tredirect(URL(\'index\'))\n    tb1=DB[\'user_list\']\n    test=DB().select(tb.ALL ,orderby=tb.id)\n    tb2=DB[\'moderator_list\']\n    form = SQLFORM.factory(Field(\'meeting_name\',requires=IS_NOT_EMPTY()),Field(\'subject\',requires=IS_NOT_EMPTY()),Field(\'location\',requires=IS_NOT_EMPTY()),Field(\'date\'),Field(\'already_registered\',\'boolean\'))\n    if form.process().accepted:\n        name = form.vars.meeting_name\n\tif form.vars.already_registered == True:\n\t\tredirect(URL(\'fourth\',vars=dict(name=name)))\n\tname = form.vars.meeting_name\n\tprint "first",DB.tables\n\ttb=DB[\'meeting_list\']\n\ttb.insert(meeting_name=name,moderator_name=user,subject=form.vars.subject,location=form.vars.location,date=form.vars.date)\n\tif name not in DB.tables:\n\t    DB.define_table(name,Field(\'user_name\',\'string\',requires=IS_NOT_EMPTY()),\n\t\t\t    Field(\'body\',\'text\', requires=IS_NOT_EMPTY()),Field(\'time\',\'string\'),migrate=True)#,format=lambda r: r.name or \'anonymous\')\n\t    DB.define_table(name+\'_\'+\'names\',Field(\'user_name\',\'string\', requires=IS_NOT_EMPTY()),migrate=True)\n\t    DB.define_table(name+\'_\'+\'users\',Field(\'user_name\',\'string\', requires=IS_NOT_EMPTY()),migrate=True)\n\t    DB.define_table(name+\'_\'+\'files\',Field(\'user_name\',\'string\', requires=IS_NOT_EMPTY()),Field(\'file\',\'upload\'))\n\tprint "&&&&&&&&&&&&&&&&&"\n        tb2.insert(user_name=user,meeting_name=name)\t\n\tredirect(URL(\'fourth\',vars=dict(name=name)))\n    return dict(form = form)\n\ndef second():\n     name = request.vars.name or redirect(URL(\'first\'))\n     tb = DB[name]\n     txt = DB().select(tb.ALL ,orderby=tb.id)\n     redirect(URL(\'fourth\',vars=dict(name=name)))\n\n\ndef fourth():\n    name = request.vars.name or redirect(URL(\'first\'))\n    tb = DB[name]\n    tb1 = DB[name+\'_\'+\'names\']\n    tb2 = DB[name+\'_\'+\'files\']\n    tb3 = DB[name+\'_\'+\'users\']\n    form1 = SQLFORM(tb2)\n    form = SQLFORM.factory(Field(\'user_name\',\'string\',requires=IS_IN_DB(DB,tb3.user_name)),Field(\'body\',\'text\',requires=IS_NOT_EMPTY()))\n    if form.process(formname=\'form\').accepted:\n\ttb.insert(user_name=form.vars.user_name,body=form.vars.body,time=time.strftime("%d-%a/%H:%M:%S"))\n        response.flash = T("Ur notes is updated!")\n    if form1.process(formname=\'form_one\').accepted:\n        response.flash = T("Ur file is uploaded!")\n    text = DB().select(tb.ALL ,orderby=tb.id)\n    names = DB().select(tb1.ALL,orderby=tb1.id)\n    return dict(text = text,name=name,names=names,form=form,form1=form1)\n\ndef startmeeting():\n    import time\n    session.b=time.strftime("%H:%M:%S")\n    a=session.b\n    name = request.vars.name\n    tb = DB[name]\n    tb1 = DB[name+\'_\'+\'names\']\n    text = DB().select(tb.ALL ,orderby=tb.id)\n    names = DB().select(tb1.ALL,orderby=tb1.id)\n    return dict(text = text,name=name,names=names,a=a)\n\n\ndef fileupload():\n\tform = SQLFORM.factory(Field(\'file\',\'upload\',uploadfolder=os.path.join(request.folder,\'uploads\')),Field(\'user_name\',requires=IS_NOT_EMPTY()))\n \tif form.vars.file and form.process().accepted:\n            response.flash = T("Ur file is uploaded!")\n\treturn dict(form=form)\n\ndef sixth():\n    name = request.get_vars[\'start\'].split(\'/\')\n    tb = DB[name[0]]\n    j = tb(int(name[1])) or redirect(URL(\'fourth\'))\n    print "sixth",j\n    return dict(name=j)\n\ndef seventh():\n    name = request.get_vars[\'start\'].split(\'/\')\n    tb = DB[name[0]]\n    tb.insert(body=name[1],user_name=name[2])\n    text = DB().select(tb.ALL ,orderby=tb.id)\n    name = name[0]\n    return dict(text=text,name=name)\n\ndef eight():\n    name = request.get_vars[\'start\'].split(\'/\')\n    tb = DB[name[0]]\n    txt = DB().select(tb.ALL ,orderby=tb.id)\n    return dict(text=txt,name=name[1])\n\ndef ninth():\n    print "*********"\n    user=request.args[0]\n    meeting=request.args[1]\n    print user +"to be added to" +meeting\n    table_name=meeting+\'_names\'\n    print "table name is"+table_name\n    tb = DB[table_name]\n    text = DB().select(tb.ALL ,orderby=tb.id)\n    print "text is"\n    flag=0\n    for i in text:\n        if i.user_name == user:\t\n\t    print "check22"\n\t    flag=1\n            print "flag set"\n    print "check3333"\n    session.flash=T("user added to the meeting")\t\n\n    if flag == 0:\t\n        print "flag is 0"\n\ttb.insert(user_name=user)\n    \tresponse.flash=T("user added to the meeting")\t\n    return dict(text = text) \n\n\n@auth.requires_login()\ndef tenth():\n\tuser=\'%(first_name)s\'%auth.user\n        tb1=DB[\'moderator_list\']\n\ttest=DB().select(tb1.ALL ,orderby=tb1.id)\n\tfor i in test:\n\t        if i.user_name == user:\n\t                redirect(URL(\'index\'))\n\tprint user\t\n\ttb2=DB[\'user_list\']\n\ttb2.insert(user_name=user)\n\ttable_name=user\n\tresponse.flash=T(\'check1\')\n\tif table_name not in DB.tables:\n             DB.define_table(table_name,Field(\'meetings\'))\n\tform = SQLFORM.factory(Field(\'register_to_meeting\',requires=IS_NOT_EMPTY()))\n\tif form.process().accepted:\n\t\tname=form.vars.register_to_meeting\n\t\tresponse.flash=T(name)\n\t\tresponse.flash=T(\'check2\')\n\t\tmeet_name=name+\'_\'+\'users\'\n\t\tif meet_name not in DB.tables:\n\t\t\tresponse.flash=T(\'Meeting not registered\')\n\t\telse:\n\t\t\ttb=DB[name+\'_\'+\'users\']\n\t\t\ttb.insert(user_name=user)\n\t\t\tresponse.flash=T(\'registration successful\')\n\t\tprint user+\'i am user\'\n\tsession.list=[]\n\ttemp=[]\n\ttb2=DB[\'meeting_list\']\n\ttext2=DB().select(tb2.ALL ,orderby=tb2.id)\n\tfor i in text2:\n\t\tprint i.meeting_list.meeting_name\n\t\tj=i.meeting_list.meeting_name+\'_users\'\n\t\ttb3=DB[j]\n\t\ttext3=DB().select(tb3.ALL ,orderby=tb3.id)\n\t\tfor p in text3:\n\t\t\tif p.user_name == user:\n\t\t\t\ttemp.append(user,i.meeting_list.meeting_name)\n\t\t\t\tsession.list.append(temp)\n\t\t\t\tprint user + " in " + i.meeting_list.meeting_name \n\n\treturn dict(form=form)\n\n\ndef search():\n\treturn dict()\n\ndef adduser():\n\tmeeting_name=request.vars.meeting_name\t\n\tsession.meeting_name=meeting_name\n\tprint "addusr",meeting_name\n\tmeeting_name=meeting_name+\'_users\'\n\ttb=DB[meeting_name]\n\ttext = DB().select(tb.ALL ,orderby=tb.id)\n\tsession.list=[]\n\tfor row in text:\n\t\tflag=0\n\t\tfor i in session.list:\n\t\t\tif i == row.user_name:\n\t\t\t\tflag=1\n\t        if flag is 0:\n\t\t\tprint row.user_name\n\t\t\tsession.list.append(row.user_name)\n\treturn dict()\n\ndef meets():\n\ttb=DB[\'meeting_list\']\n\ttext=DB().select(tb.ALL,orderby=tb.id)\n\treturn dict(text=text)\n\n\ndef showmeet():\n    name = request.get_vars[\'start\']\n    print "check",name\n    tb=DB[\'meeting_list\']\n    n=int(name) \n    text=DB().select(tb.ALL,orderby=tb.id)\n    for i in text:\n\t    if i.id == n:\t\n\t\tname=i\t\n\t        print "row found"\n\t\t   \n    return dict(name=name)\n\nresponse._vars=response._caller(tenth)\n'
13p7
14sS'snapshot'
15p8
IEAutomation.pm https://github.com/gitpan/Win32-IEAutomation.git | Perl | 1,393 lines
1package Win32::IEAutomation;
2
3use strict;
4use Win32::OLE qw(EVENTS);
5
6use Win32::IEAutomation::Element;
7use Win32::IEAutomation::Table;
8use Win32::IEAutomation::WinClicker;
9
10use vars qw($VERSION $warn);
11$VERSION = '0.5';
12
13sub new {
14	my $class = shift;
15	my %options = @_;
UserTypeOps.cs https://bitbucket.org/jdm7dvmoore/msft-research-verve.git | C# | 520 lines
1/* ****************************************************************************
2 *
3 * Copyright (c) Microsoft Corporation. 
4 *
5 * This source code is subject to terms and conditions of the Apache License, Version 2.0. A 
6 * copy of the license can be found in the License.html file at the root of this distribution. If 
7 * you cannot locate the  Apache License, Version 2.0, please send an email to 
8 * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound 
9 * by the terms of the Apache License, Version 2.0.
10 *
11 * You must not remove this notice, or any other, from this software.
12 *
13 *
14 * ***************************************************************************/
15
127.0.0.1.2014-04-22.20-29-01.0b3bf5ef-6f4d-4f77-bc82-ceadae4ebd0f https://bitbucket.org/itws2/minutes_of_meeting.git | Unknown | 395 lines
1(dp1
2S'output'
3p2
4S"<type 'exceptions.TypeError'> append() takes exactly one argument (5 given)"
5p3
6sS'layer'
7p4
8S'/ug/ug2k13/cse/srikailash.gandebathula/Desktop/web2py/applications/project/controllers/meet.py'
9p5
10sS'code'
11p6
12S'import os\nimport time\n\ndef user():\n    """\n    exposes:\n    http://..../[app]/default/user/login\n    http://..../[app]/default/user/logout\n    http://..../[app]/default/user/register\n    http://..../[app]/default/user/profile\n    http://..../[app]/default/user/retrieve_password\n    http://..../[app]/default/user/change_password\n    http://..../[app]/default/user/manage_users (requires membership in\n    use @auth.requires_login()\n        @auth.requires_membership(\'group name\')\n        @auth.requires_permission(\'read\',\'table name\',record_id)\n    to decorate functions that need access control\n    """\n    return dict(form=auth())\n\n@auth.requires_login()\ndef mycal():\n    rows=db(db.t_appointment.created_by==auth.user.id).select()\n    return dict(rows=rows)\n\ndef index():\n\treturn dict()\n\n@auth.requires_login()\ndef first():\n    print "first"\n    user=\'%(first_name)s\'%auth.user\n    form = SQLFORM.factory(Field(\'meeting_name\',requires=IS_NOT_EMPTY()),Field(\'subject\',requires=IS_NOT_EMPTY()),Field(\'location\',requires=IS_NOT_EMPTY()),Field(\'date\'))\n    if form.process().accepted:\n        name = form.vars.meeting_name\n\tprint "first",DB.tables\n\ttb=DB[\'meeting_list\']\n\ttb.insert(meeting_name=name,moderator_name=user,subject=form.vars.subject,location=form.vars.location,date=form.vars.date)\n\tif name not in DB.tables:\n\t    DB.define_table(name,Field(\'user_name\',\'string\',requires=IS_NOT_EMPTY()),\n\t\t\t    Field(\'body\',\'text\', requires=IS_NOT_EMPTY()),Field(\'time\',\'string\'),migrate=True)#,format=lambda r: r.name or \'anonymous\')\n\t    DB.define_table(name+\'_\'+\'names\',Field(\'user_name\',\'string\', requires=IS_NOT_EMPTY()),migrate=True)\n\t    DB.define_table(name+\'_\'+\'users\',Field(\'user_name\',\'string\', requires=IS_NOT_EMPTY()),migrate=True)\n\t    DB.define_table(name+\'_\'+\'files\',Field(\'user_name\',\'string\', requires=IS_NOT_EMPTY()),Field(\'file\',\'upload\'))\n\tredirect(URL(\'fourth\',vars=dict(name=name)))\n    return dict(form = form)\n\ndef second():\n     name = request.vars.name or redirect(URL(\'first\'))\n     tb = DB[name]\n     txt = DB().select(tb.ALL ,orderby=tb.id)\n     redirect(URL(\'fourth\',vars=dict(name=name)))\n\n\ndef fourth():\n    name = request.vars.name or redirect(URL(\'first\'))\n    tb = DB[name]\n    tb1 = DB[name+\'_\'+\'names\']\n    tb2 = DB[name+\'_\'+\'files\']\n    form1 = SQLFORM(tb2)\n    form = SQLFORM.factory(Field(\'user_name\',\'string\',requires=IS_NOT_EMPTY()),Field(\'body\',\'text\',requires=IS_NOT_EMPTY()))\n    if form.process(formname=\'form\').accepted:\n\ttb.insert(user_name=form.vars.user_name,body=form.vars.body,time=time.strftime("%d-%a/%H:%M:%S"))\n        response.flash = T("Ur notes is updated!")\n    if form1.process(formname=\'form_one\').accepted:\n        response.flash = T("Ur file is uploaded!")\n    text = DB().select(tb.ALL ,orderby=tb.id)\n    names = DB().select(tb1.ALL,orderby=tb1.id)\n    return dict(text = text,name=name,names=names,form=form,form1=form1)\n\ndef startmeeting():\n    import time\n    session.b=time.strftime("%H:%M:%S")\n    a=session.b\n    name = request.vars.name\n    tb = DB[name]\n    tb1 = DB[name+\'_\'+\'names\']\n    text = DB().select(tb.ALL ,orderby=tb.id)\n    names = DB().select(tb1.ALL,orderby=tb1.id)\n    return dict(text = text,name=name,names=names,a=a)\n\n\ndef fileupload():\n\tform = SQLFORM.factory(Field(\'file\',\'upload\',uploadfolder=os.path.join(request.folder,\'uploads\')),Field(\'user_name\',requires=IS_NOT_EMPTY()))\n \tif form.vars.file and form.process().accepted:\n            response.flash = T("Ur file is uploaded!")\n\treturn dict(form=form)\n\ndef sixth():\n    name = request.get_vars[\'start\'].split(\'/\')\n    tb = DB[name[0]]\n    j = tb(int(name[1])) or redirect(URL(\'fourth\'))\n    print "sixth",j\n    return dict(name=j)\n\ndef seventh():\n    name = request.get_vars[\'start\'].split(\'/\')\n    tb = DB[name[0]]\n    tb.insert(body=name[1],user_name=name[2])\n    text = DB().select(tb.ALL ,orderby=tb.id)\n    name = name[0]\n    return dict(text=text,name=name)\n\ndef eight():\n    name = request.get_vars[\'start\'].split(\'/\')\n    tb = DB[name[0]]\n    txt = DB().select(tb.ALL ,orderby=tb.id)\n    return dict(text=txt,name=name[1])\n\ndef ninth():\n    name = request.get_vars[\'start\'].split(\'/\')\n    print name\n    table_name=name[0]+\'_names\'\n    table=DB[table_name]\n    print "user_nmae",table\n    text = DB().select(table.ALL ,orderby=table.id)\n    print text\n    flag=0\n    for i in text:\n        if i.user_name == name[1]:\t\n\t    flag=1\n            print "flag set"\n    if flag == 0:\t\n        table.insert(user_name=name[1])\n    response.flash=T("user added to the meeting")\t\n    return dict(text = text) \n\n@auth.requires_login()\ndef tenth():\n\tuser=\'%(first_name)s\'%auth.user\n        print user\t\n\ttable_name=user+\'history\'\n\tresponse.flash=T(\'check1\')\n\tif table_name not in DB.tables:\n             DB.define_table(table_name,Field(\'meetings\'))\n\tform = SQLFORM.factory(Field(\'register_to_meeting\',requires=IS_NOT_EMPTY()))\n\tif form.process().accepted:\n\t\tname=form.vars.register_to_meeting\n\t\t\n\t\tresponse.flash=T(name)\n\t\tresponse.flash=T(\'check2\')\n\t\tmeet_name=name+\'_\'+\'users\'\n\t\tif meet_name not in DB.tables:\n\t\t\tresponse.flash=T(\'Meeting not registered\')\n\t\telse:\n\t\t\ttb=DB[name+\'_\'+\'users\']\n\t\t\ttb.insert(user_name=user)\n\t\t\tresponse.flash=T(\'registration successful\')\n\t\tprint user+\'i am user\'\n\treturn dict(form=form)\n\ndef search():\n\treturn dict()\n\ndef adduser():\n\tmeeting_name=request.vars.meeting_name\t\n\tsession.meeting_name=meeting_name\n\tprint "addusr",meeting_name\n\tmeeting_name=meeting_name+\'_users\'\n\ttb=DB[meeting_name]\n\ttext = DB().select(tb.ALL ,orderby=tb.id)\n\tsession.list=[]\n\tfor row in text:\n\t\tflag=0\n\t\tfor i in session.list:\n\t\t\tif i == row.user_name:\n\t\t\t\tflag=1\n\t        if flag is 0:\n\t\t\tprint row.user_name\n\t\t\tsession.list.append(row.user_name)\n\treturn dict()\n\ndef meets():\n\ttb=DB[\'meeting_list\']\n\ttext=DB().select(tb.ALL,orderby=tb.id)\n\tcount=0\t\n\tsession.meets=[]\n\ttemp=[]\n\tfor row in text:\n\t\ttemp=[]\n\t\ttemp.append(row.meeting_name,row.moderator_name,row.subject,row.location,row.date)\n\t\tsession.meets.append(temp)\n\treturn dict()\n\n\n\n\n\n\nresponse._vars=response._caller(meets)\n'
13p7
14sS'snapshot'
15p8
127.0.0.1.2014-04-22.20-28-09.faaa4522-d820-4e76-a664-a0a02581c8d0 https://bitbucket.org/itws2/minutes_of_meeting.git | Unknown | 386 lines
1(dp1
2S'output'
3p2
4S"<type 'exceptions.AttributeError'> 'Field' object has no attribute 'meeting_name'"
5p3
6sS'layer'
7p4
8S'/ug/ug2k13/cse/srikailash.gandebathula/Desktop/web2py/applications/project/controllers/meet.py'
9p5
10sS'code'
11p6
12S'import os\nimport time\n\ndef user():\n    """\n    exposes:\n    http://..../[app]/default/user/login\n    http://..../[app]/default/user/logout\n    http://..../[app]/default/user/register\n    http://..../[app]/default/user/profile\n    http://..../[app]/default/user/retrieve_password\n    http://..../[app]/default/user/change_password\n    http://..../[app]/default/user/manage_users (requires membership in\n    use @auth.requires_login()\n        @auth.requires_membership(\'group name\')\n        @auth.requires_permission(\'read\',\'table name\',record_id)\n    to decorate functions that need access control\n    """\n    return dict(form=auth())\n\n@auth.requires_login()\ndef mycal():\n    rows=db(db.t_appointment.created_by==auth.user.id).select()\n    return dict(rows=rows)\n\ndef index():\n\treturn dict()\n\n@auth.requires_login()\ndef first():\n    print "first"\n    user=\'%(first_name)s\'%auth.user\n    form = SQLFORM.factory(Field(\'meeting_name\',requires=IS_NOT_EMPTY()),Field(\'subject\',requires=IS_NOT_EMPTY()),Field(\'location\',requires=IS_NOT_EMPTY()),Field(\'date\'))\n    if form.process().accepted:\n        name = form.vars.meeting_name\n\tprint "first",DB.tables\n\ttb=DB[\'meeting_list\']\n\ttb.insert(meeting_name=name,moderator_name=user,subject=form.vars.subject,location=form.vars.location,date=form.vars.date)\n\tif name not in DB.tables:\n\t    DB.define_table(name,Field(\'user_name\',\'string\',requires=IS_NOT_EMPTY()),\n\t\t\t    Field(\'body\',\'text\', requires=IS_NOT_EMPTY()),Field(\'time\',\'string\'),migrate=True)#,format=lambda r: r.name or \'anonymous\')\n\t    DB.define_table(name+\'_\'+\'names\',Field(\'user_name\',\'string\', requires=IS_NOT_EMPTY()),migrate=True)\n\t    DB.define_table(name+\'_\'+\'users\',Field(\'user_name\',\'string\', requires=IS_NOT_EMPTY()),migrate=True)\n\t    DB.define_table(name+\'_\'+\'files\',Field(\'user_name\',\'string\', requires=IS_NOT_EMPTY()),Field(\'file\',\'upload\'))\n\tredirect(URL(\'fourth\',vars=dict(name=name)))\n    return dict(form = form)\n\ndef second():\n     name = request.vars.name or redirect(URL(\'first\'))\n     tb = DB[name]\n     txt = DB().select(tb.ALL ,orderby=tb.id)\n     redirect(URL(\'fourth\',vars=dict(name=name)))\n\n\ndef fourth():\n    name = request.vars.name or redirect(URL(\'first\'))\n    tb = DB[name]\n    tb1 = DB[name+\'_\'+\'names\']\n    tb2 = DB[name+\'_\'+\'files\']\n    form1 = SQLFORM(tb2)\n    form = SQLFORM.factory(Field(\'user_name\',\'string\',requires=IS_NOT_EMPTY()),Field(\'body\',\'text\',requires=IS_NOT_EMPTY()))\n    if form.process(formname=\'form\').accepted:\n\ttb.insert(user_name=form.vars.user_name,body=form.vars.body,time=time.strftime("%d-%a/%H:%M:%S"))\n        response.flash = T("Ur notes is updated!")\n    if form1.process(formname=\'form_one\').accepted:\n        response.flash = T("Ur file is uploaded!")\n    text = DB().select(tb.ALL ,orderby=tb.id)\n    names = DB().select(tb1.ALL,orderby=tb1.id)\n    return dict(text = text,name=name,names=names,form=form,form1=form1)\n\ndef startmeeting():\n    import time\n    session.b=time.strftime("%H:%M:%S")\n    a=session.b\n    name = request.vars.name\n    tb = DB[name]\n    tb1 = DB[name+\'_\'+\'names\']\n    text = DB().select(tb.ALL ,orderby=tb.id)\n    names = DB().select(tb1.ALL,orderby=tb1.id)\n    return dict(text = text,name=name,names=names,a=a)\n\n\ndef fileupload():\n\tform = SQLFORM.factory(Field(\'file\',\'upload\',uploadfolder=os.path.join(request.folder,\'uploads\')),Field(\'user_name\',requires=IS_NOT_EMPTY()))\n \tif form.vars.file and form.process().accepted:\n            response.flash = T("Ur file is uploaded!")\n\treturn dict(form=form)\n\ndef sixth():\n    name = request.get_vars[\'start\'].split(\'/\')\n    tb = DB[name[0]]\n    j = tb(int(name[1])) or redirect(URL(\'fourth\'))\n    print "sixth",j\n    return dict(name=j)\n\ndef seventh():\n    name = request.get_vars[\'start\'].split(\'/\')\n    tb = DB[name[0]]\n    tb.insert(body=name[1],user_name=name[2])\n    text = DB().select(tb.ALL ,orderby=tb.id)\n    name = name[0]\n    return dict(text=text,name=name)\n\ndef eight():\n    name = request.get_vars[\'start\'].split(\'/\')\n    tb = DB[name[0]]\n    txt = DB().select(tb.ALL ,orderby=tb.id)\n    return dict(text=txt,name=name[1])\n\ndef ninth():\n    name = request.get_vars[\'start\'].split(\'/\')\n    print name\n    table_name=name[0]+\'_names\'\n    table=DB[table_name]\n    print "user_nmae",table\n    text = DB().select(table.ALL ,orderby=table.id)\n    print text\n    flag=0\n    for i in text:\n        if i.user_name == name[1]:\t\n\t    flag=1\n            print "flag set"\n    if flag == 0:\t\n        table.insert(user_name=name[1])\n    response.flash=T("user added to the meeting")\t\n    return dict(text = text) \n\n@auth.requires_login()\ndef tenth():\n\tuser=\'%(first_name)s\'%auth.user\n        print user\t\n\ttable_name=user+\'history\'\n\tresponse.flash=T(\'check1\')\n\tif table_name not in DB.tables:\n             DB.define_table(table_name,Field(\'meetings\'))\n\tform = SQLFORM.factory(Field(\'register_to_meeting\',requires=IS_NOT_EMPTY()))\n\tif form.process().accepted:\n\t\tname=form.vars.register_to_meeting\n\t\t\n\t\tresponse.flash=T(name)\n\t\tresponse.flash=T(\'check2\')\n\t\tmeet_name=name+\'_\'+\'users\'\n\t\tif meet_name not in DB.tables:\n\t\t\tresponse.flash=T(\'Meeting not registered\')\n\t\telse:\n\t\t\ttb=DB[name+\'_\'+\'users\']\n\t\t\ttb.insert(user_name=user)\n\t\t\tresponse.flash=T(\'registration successful\')\n\t\tprint user+\'i am user\'\n\treturn dict(form=form)\n\ndef search():\n\treturn dict()\n\ndef adduser():\n\tmeeting_name=request.vars.meeting_name\t\n\tsession.meeting_name=meeting_name\n\tprint "addusr",meeting_name\n\tmeeting_name=meeting_name+\'_users\'\n\ttb=DB[meeting_name]\n\ttext = DB().select(tb.ALL ,orderby=tb.id)\n\tsession.list=[]\n\tfor row in text:\n\t\tflag=0\n\t\tfor i in session.list:\n\t\t\tif i == row.user_name:\n\t\t\t\tflag=1\n\t        if flag is 0:\n\t\t\tprint row.user_name\n\t\t\tsession.list.append(row.user_name)\n\treturn dict()\n\ndef meets():\n\ttb=DB[\'meeting_list\']\n\tcount=0\t\n\tsession.meets=[]\n\ttemp=[]\n\tfor row in tb:\n\t\ttemp=[]\n\t\ttemp.append(row.meeting_name,row.moderator_name,row.subject,row.location,row.date)\n\t\tsession.meets.append(temp)\n\treturn dict()\n\n\n\n\n\n\nresponse._vars=response._caller(meets)\n'
13p7
14sS'snapshot'
15p8
UserTypeOps.cs https://github.com/jschementi/iron.git | C# | 520 lines
1/* ****************************************************************************
2 *
3 * Copyright (c) Microsoft Corporation. 
4 *
5 * This source code is subject to terms and conditions of the Apache License, Version 2.0. A 
6 * copy of the license can be found in the License.html file at the root of this distribution. If 
7 * you cannot locate the  Apache License, Version 2.0, please send an email to 
8 * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound 
9 * by the terms of the Apache License, Version 2.0.
10 *
11 * You must not remove this notice, or any other, from this software.
12 *
13 *
14 * ***************************************************************************/
15
UserTypeOps.cs https://github.com/shayfriedman/ironruby.git | C# | 520 lines
1/* ****************************************************************************
2 *
3 * Copyright (c) Microsoft Corporation. 
4 *
5 * This source code is subject to terms and conditions of the Apache License, Version 2.0. A 
6 * copy of the license can be found in the License.html file at the root of this distribution. If 
7 * you cannot locate the  Apache License, Version 2.0, please send an email to 
8 * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound 
9 * by the terms of the Apache License, Version 2.0.
10 *
11 * You must not remove this notice, or any other, from this software.
12 *
13 *
14 * ***************************************************************************/
15
brython.js https://bitbucket.org/olemis/brython-git.git | JavaScript | 5,401 lines
1// brython.js www.brython.info
2// version 1.1.20130319-232656
3// version compiled from commented, indented source files at http://code.google.com/p/brython/
4__BRYTHON__=new Object()
5__BRYTHON__.__getattr__=function(attr){return this[attr]}
6__BRYTHON__.date=function(){
7if(arguments.length===0){return JSObject(new Date())}
8else if(arguments.length===1){return JSObject(new Date(arguments[0]))}
9else if(arguments.length===7){return JSObject(new Date(arguments[0],
10arguments[1]-1,arguments[2],arguments[3],
11arguments[4],arguments[5],arguments[6]))}
12}
13__BRYTHON__.has_local_storage=typeof(Storage)!=="undefined"
14if(__BRYTHON__.has_local_storage){
15__BRYTHON__.local_storage=function(){return JSObject(localStorage)}
UserTypeOps.cs https://github.com/m4dc4p/ironruby.git | C# | 432 lines
1/* ****************************************************************************
2 *
3 * Copyright (c) Microsoft Corporation. 
4 *
5 * This source code is subject to terms and conditions of the Microsoft Public License. A 
6 * copy of the license can be found in the License.html file at the root of this distribution. If 
7 * you cannot locate the  Microsoft Public License, please send an email to 
8 * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound 
9 * by the terms of the Microsoft Public License.
10 *
11 * You must not remove this notice, or any other, from this software.
12 *
13 *
14 * ***************************************************************************/
15
UserTypeOps.cs https://github.com/coode/ironruby.git | C# | 429 lines
1/* ****************************************************************************
2 *
3 * Copyright (c) Microsoft Corporation. 
4 *
5 * This source code is subject to terms and conditions of the Microsoft Public License. A 
6 * copy of the license can be found in the License.html file at the root of this distribution. If 
7 * you cannot locate the  Microsoft Public License, please send an email to 
8 * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound 
9 * by the terms of the Microsoft Public License.
10 *
11 * You must not remove this notice, or any other, from this software.
12 *
13 *
14 * ***************************************************************************/
15
UserTypeOps.cs https://github.com/togakangaroo/ironruby.git | C# | 429 lines
1/* ****************************************************************************
2 *
3 * Copyright (c) Microsoft Corporation. 
4 *
5 * This source code is subject to terms and conditions of the Microsoft Public License. A 
6 * copy of the license can be found in the License.html file at the root of this distribution. If 
7 * you cannot locate the  Microsoft Public License, please send an email to 
8 * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound 
9 * by the terms of the Microsoft Public License.
10 *
11 * You must not remove this notice, or any other, from this software.
12 *
13 *
14 * ***************************************************************************/
15
UserTypeOps.cs https://github.com/toddb/ironruby.git | C# | 429 lines
1/* ****************************************************************************
2 *
3 * Copyright (c) Microsoft Corporation. 
4 *
5 * This source code is subject to terms and conditions of the Microsoft Public License. A 
6 * copy of the license can be found in the License.html file at the root of this distribution. If 
7 * you cannot locate the  Microsoft Public License, please send an email to 
8 * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound 
9 * by the terms of the Microsoft Public License.
10 *
11 * You must not remove this notice, or any other, from this software.
12 *
13 *
14 * ***************************************************************************/
15
UserTypeOps.cs https://github.com/MiguelMadero/ironruby.git | C# | 429 lines
1/* ****************************************************************************
2 *
3 * Copyright (c) Microsoft Corporation. 
4 *
5 * This source code is subject to terms and conditions of the Microsoft Public License. A 
6 * copy of the license can be found in the License.html file at the root of this distribution. If 
7 * you cannot locate the  Microsoft Public License, please send an email to 
8 * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound 
9 * by the terms of the Microsoft Public License.
10 *
11 * You must not remove this notice, or any other, from this software.
12 *
13 *
14 * ***************************************************************************/
15
UserTypeOps.cs https://github.com/jcteague/ironruby.git | C# | 429 lines
1/* ****************************************************************************
2 *
3 * Copyright (c) Microsoft Corporation. 
4 *
5 * This source code is subject to terms and conditions of the Microsoft Public License. A 
6 * copy of the license can be found in the License.html file at the root of this distribution. If 
7 * you cannot locate the  Microsoft Public License, please send an email to 
8 * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound 
9 * by the terms of the Microsoft Public License.
10 *
11 * You must not remove this notice, or any other, from this software.
12 *
13 *
14 * ***************************************************************************/
15
UserTypeOps.cs https://github.com/atczyc/ironruby.git | C# | 432 lines
1/* ****************************************************************************
2 *
3 * Copyright (c) Microsoft Corporation. 
4 *
5 * This source code is subject to terms and conditions of the Microsoft Public License. A 
6 * copy of the license can be found in the License.html file at the root of this distribution. If 
7 * you cannot locate the  Microsoft Public License, please send an email to 
8 * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound 
9 * by the terms of the Microsoft Public License.
10 *
11 * You must not remove this notice, or any other, from this software.
12 *
13 *
14 * ***************************************************************************/
15
UserTypeOps.cs https://github.com/PascalN2/ironruby.git | C# | 432 lines
1/* ****************************************************************************
2 *
3 * Copyright (c) Microsoft Corporation. 
4 *
5 * This source code is subject to terms and conditions of the Microsoft Public License. A 
6 * copy of the license can be found in the License.html file at the root of this distribution. If 
7 * you cannot locate the  Microsoft Public License, please send an email to 
8 * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound 
9 * by the terms of the Microsoft Public License.
10 *
11 * You must not remove this notice, or any other, from this software.
12 *
13 *
14 * ***************************************************************************/
15
UserTypeOps.cs https://github.com/Hank923/ironruby.git | C# | 432 lines
1/* ****************************************************************************
2 *
3 * Copyright (c) Microsoft Corporation. 
4 *
5 * This source code is subject to terms and conditions of the Microsoft Public License. A 
6 * copy of the license can be found in the License.html file at the root of this distribution. If 
7 * you cannot locate the  Microsoft Public License, please send an email to 
8 * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound 
9 * by the terms of the Microsoft Public License.
10 *
11 * You must not remove this notice, or any other, from this software.
12 *
13 *
14 * ***************************************************************************/
15
UserTypeOps.cs https://github.com/nzm/ironruby.git | C# | 432 lines
1/* ****************************************************************************
2 *
3 * Copyright (c) Microsoft Corporation. 
4 *
5 * This source code is subject to terms and conditions of the Microsoft Public License. A 
6 * copy of the license can be found in the License.html file at the root of this distribution. If 
7 * you cannot locate the  Microsoft Public License, please send an email to 
8 * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound 
9 * by the terms of the Microsoft Public License.
10 *
11 * You must not remove this notice, or any other, from this software.
12 *
13 *
14 * ***************************************************************************/
15
UserTypeOps.cs https://github.com/teejayvanslyke/ironruby.git | C# | 432 lines
1/* ****************************************************************************
2 *
3 * Copyright (c) Microsoft Corporation. 
4 *
5 * This source code is subject to terms and conditions of the Microsoft Public License. A 
6 * copy of the license can be found in the License.html file at the root of this distribution. If 
7 * you cannot locate the  Microsoft Public License, please send an email to 
8 * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound 
9 * by the terms of the Microsoft Public License.
10 *
11 * You must not remove this notice, or any other, from this software.
12 *
13 *
14 * ***************************************************************************/
15
UserTypeOps.cs https://github.com/ironball/ironruby.git | C# | 432 lines
1/* ****************************************************************************
2 *
3 * Copyright (c) Microsoft Corporation. 
4 *
5 * This source code is subject to terms and conditions of the Microsoft Public License. A 
6 * copy of the license can be found in the License.html file at the root of this distribution. If 
7 * you cannot locate the  Microsoft Public License, please send an email to 
8 * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound 
9 * by the terms of the Microsoft Public License.
10 *
11 * You must not remove this notice, or any other, from this software.
12 *
13 *
14 * ***************************************************************************/
15
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21