1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663 |
- [
- {
- "label": "glob",
- "kind": 6,
- "isExtraImport": true,
- "importPath": "glob",
- "description": "glob",
- "detail": "glob",
- "documentation": {}
- },
- {
- "label": "os",
- "kind": 6,
- "isExtraImport": true,
- "importPath": "os",
- "description": "os",
- "detail": "os",
- "documentation": {}
- },
- {
- "label": "shutil",
- "kind": 6,
- "isExtraImport": true,
- "importPath": "shutil",
- "description": "shutil",
- "detail": "shutil",
- "documentation": {}
- },
- {
- "label": "sys",
- "kind": 6,
- "isExtraImport": true,
- "importPath": "sys",
- "description": "sys",
- "detail": "sys",
- "documentation": {}
- },
- {
- "label": "sysconfig",
- "kind": 6,
- "isExtraImport": true,
- "importPath": "sysconfig",
- "description": "sysconfig",
- "detail": "sysconfig",
- "documentation": {}
- },
- {
- "label": "tempfile",
- "kind": 6,
- "isExtraImport": true,
- "importPath": "tempfile",
- "description": "tempfile",
- "detail": "tempfile",
- "documentation": {}
- },
- {
- "label": "site",
- "kind": 6,
- "isExtraImport": true,
- "importPath": "site",
- "description": "site",
- "detail": "site",
- "documentation": {}
- },
- {
- "label": "subprocess",
- "kind": 6,
- "isExtraImport": true,
- "importPath": "subprocess",
- "description": "subprocess",
- "detail": "subprocess",
- "documentation": {}
- },
- {
- "label": "models",
- "importPath": "django.db",
- "description": "django.db",
- "isExtraImport": true,
- "detail": "django.db",
- "documentation": {}
- },
- {
- "label": "models",
- "importPath": "django.db",
- "description": "django.db",
- "isExtraImport": true,
- "detail": "django.db",
- "documentation": {}
- },
- {
- "label": "models",
- "importPath": "django.db",
- "description": "django.db",
- "isExtraImport": true,
- "detail": "django.db",
- "documentation": {}
- },
- {
- "label": "models",
- "importPath": "django.db",
- "description": "django.db",
- "isExtraImport": true,
- "detail": "django.db",
- "documentation": {}
- },
- {
- "label": "models",
- "importPath": "django.db",
- "description": "django.db",
- "isExtraImport": true,
- "detail": "django.db",
- "documentation": {}
- },
- {
- "label": "models",
- "importPath": "django.db",
- "description": "django.db",
- "isExtraImport": true,
- "detail": "django.db",
- "documentation": {}
- },
- {
- "label": "models",
- "importPath": "django.db",
- "description": "django.db",
- "isExtraImport": true,
- "detail": "django.db",
- "documentation": {}
- },
- {
- "label": "models",
- "importPath": "django.db",
- "description": "django.db",
- "isExtraImport": true,
- "detail": "django.db",
- "documentation": {}
- },
- {
- "label": "models",
- "importPath": "django.db",
- "description": "django.db",
- "isExtraImport": true,
- "detail": "django.db",
- "documentation": {}
- },
- {
- "label": "models",
- "importPath": "django.db",
- "description": "django.db",
- "isExtraImport": true,
- "detail": "django.db",
- "documentation": {}
- },
- {
- "label": "models",
- "importPath": "django.db",
- "description": "django.db",
- "isExtraImport": true,
- "detail": "django.db",
- "documentation": {}
- },
- {
- "label": "migrations",
- "importPath": "django.db",
- "description": "django.db",
- "isExtraImport": true,
- "detail": "django.db",
- "documentation": {}
- },
- {
- "label": "models",
- "importPath": "django.db",
- "description": "django.db",
- "isExtraImport": true,
- "detail": "django.db",
- "documentation": {}
- },
- {
- "label": "migrations",
- "importPath": "django.db",
- "description": "django.db",
- "isExtraImport": true,
- "detail": "django.db",
- "documentation": {}
- },
- {
- "label": "models",
- "importPath": "django.db",
- "description": "django.db",
- "isExtraImport": true,
- "detail": "django.db",
- "documentation": {}
- },
- {
- "label": "migrations",
- "importPath": "django.db",
- "description": "django.db",
- "isExtraImport": true,
- "detail": "django.db",
- "documentation": {}
- },
- {
- "label": "models",
- "importPath": "django.db",
- "description": "django.db",
- "isExtraImport": true,
- "detail": "django.db",
- "documentation": {}
- },
- {
- "label": "PolymorphicModel",
- "importPath": "polymorphic.models",
- "description": "polymorphic.models",
- "isExtraImport": true,
- "detail": "polymorphic.models",
- "documentation": {}
- },
- {
- "label": "PolymorphicModel",
- "importPath": "polymorphic.models",
- "description": "polymorphic.models",
- "isExtraImport": true,
- "detail": "polymorphic.models",
- "documentation": {}
- },
- {
- "label": "PolymorphicModel",
- "importPath": "polymorphic.models",
- "description": "polymorphic.models",
- "isExtraImport": true,
- "detail": "polymorphic.models",
- "documentation": {}
- },
- {
- "label": "random",
- "kind": 6,
- "isExtraImport": true,
- "importPath": "random",
- "description": "random",
- "detail": "random",
- "documentation": {}
- },
- {
- "label": "django.core.validators",
- "kind": 6,
- "isExtraImport": true,
- "importPath": "django.core.validators",
- "description": "django.core.validators",
- "detail": "django.core.validators",
- "documentation": {}
- },
- {
- "label": "MaxValueValidator",
- "importPath": "django.core.validators",
- "description": "django.core.validators",
- "isExtraImport": true,
- "detail": "django.core.validators",
- "documentation": {}
- },
- {
- "label": "MinValueValidator",
- "importPath": "django.core.validators",
- "description": "django.core.validators",
- "isExtraImport": true,
- "detail": "django.core.validators",
- "documentation": {}
- },
- {
- "label": "MaxValueValidator",
- "importPath": "django.core.validators",
- "description": "django.core.validators",
- "isExtraImport": true,
- "detail": "django.core.validators",
- "documentation": {}
- },
- {
- "label": "MinValueValidator",
- "importPath": "django.core.validators",
- "description": "django.core.validators",
- "isExtraImport": true,
- "detail": "django.core.validators",
- "documentation": {}
- },
- {
- "label": "MaxValueValidator",
- "importPath": "django.core.validators",
- "description": "django.core.validators",
- "isExtraImport": true,
- "detail": "django.core.validators",
- "documentation": {}
- },
- {
- "label": "MinValueValidator",
- "importPath": "django.core.validators",
- "description": "django.core.validators",
- "isExtraImport": true,
- "detail": "django.core.validators",
- "documentation": {}
- },
- {
- "label": "MaxValueValidator",
- "importPath": "django.core.validators",
- "description": "django.core.validators",
- "isExtraImport": true,
- "detail": "django.core.validators",
- "documentation": {}
- },
- {
- "label": "MinValueValidator",
- "importPath": "django.core.validators",
- "description": "django.core.validators",
- "isExtraImport": true,
- "detail": "django.core.validators",
- "documentation": {}
- },
- {
- "label": "*",
- "importPath": "django.core.validators",
- "description": "django.core.validators",
- "isExtraImport": true,
- "detail": "django.core.validators",
- "documentation": {}
- },
- {
- "label": "SpecialOrder",
- "importPath": "mygame.backend.event",
- "description": "mygame.backend.event",
- "isExtraImport": true,
- "detail": "mygame.backend.event",
- "documentation": {}
- },
- {
- "label": "SpecialOrder",
- "importPath": "mygame.backend.event",
- "description": "mygame.backend.event",
- "isExtraImport": true,
- "detail": "mygame.backend.event",
- "documentation": {}
- },
- {
- "label": "threading",
- "kind": 6,
- "isExtraImport": true,
- "importPath": "threading",
- "description": "threading",
- "detail": "threading",
- "documentation": {}
- },
- {
- "label": "time",
- "kind": 6,
- "isExtraImport": true,
- "importPath": "time",
- "description": "time",
- "detail": "time",
- "documentation": {}
- },
- {
- "label": "django.db.models.deletion",
- "kind": 6,
- "isExtraImport": true,
- "importPath": "django.db.models.deletion",
- "description": "django.db.models.deletion",
- "detail": "django.db.models.deletion",
- "documentation": {}
- },
- {
- "label": "template",
- "importPath": "django",
- "description": "django",
- "isExtraImport": true,
- "detail": "django",
- "documentation": {}
- },
- {
- "label": "forms",
- "importPath": "django",
- "description": "django",
- "isExtraImport": true,
- "detail": "django",
- "documentation": {}
- },
- {
- "label": "admin",
- "importPath": "django.contrib",
- "description": "django.contrib",
- "isExtraImport": true,
- "detail": "django.contrib",
- "documentation": {}
- },
- {
- "label": "admin",
- "importPath": "django.contrib",
- "description": "django.contrib",
- "isExtraImport": true,
- "detail": "django.contrib",
- "documentation": {}
- },
- {
- "label": "AppConfig",
- "importPath": "django.apps",
- "description": "django.apps",
- "isExtraImport": true,
- "detail": "django.apps",
- "documentation": {}
- },
- {
- "label": "asyncio",
- "kind": 6,
- "isExtraImport": true,
- "importPath": "asyncio",
- "description": "asyncio",
- "detail": "asyncio",
- "documentation": {}
- },
- {
- "label": "AsyncWebsocketConsumer",
- "importPath": "channels.generic.websocket",
- "description": "channels.generic.websocket",
- "isExtraImport": true,
- "detail": "channels.generic.websocket",
- "documentation": {}
- },
- {
- "label": "database_sync_to_async",
- "importPath": "channels.db",
- "description": "channels.db",
- "isExtraImport": true,
- "detail": "channels.db",
- "documentation": {}
- },
- {
- "label": "re_path",
- "importPath": "django.urls",
- "description": "django.urls",
- "isExtraImport": true,
- "detail": "django.urls",
- "documentation": {}
- },
- {
- "label": "path",
- "importPath": "django.urls",
- "description": "django.urls",
- "isExtraImport": true,
- "detail": "django.urls",
- "documentation": {}
- },
- {
- "label": "reverse",
- "importPath": "django.urls",
- "description": "django.urls",
- "isExtraImport": true,
- "detail": "django.urls",
- "documentation": {}
- },
- {
- "label": "path",
- "importPath": "django.urls",
- "description": "django.urls",
- "isExtraImport": true,
- "detail": "django.urls",
- "documentation": {}
- },
- {
- "label": "include",
- "importPath": "django.urls",
- "description": "django.urls",
- "isExtraImport": true,
- "detail": "django.urls",
- "documentation": {}
- },
- {
- "label": "include",
- "importPath": "django.urls",
- "description": "django.urls",
- "isExtraImport": true,
- "detail": "django.urls",
- "documentation": {}
- },
- {
- "label": "path",
- "importPath": "django.urls",
- "description": "django.urls",
- "isExtraImport": true,
- "detail": "django.urls",
- "documentation": {}
- },
- {
- "label": "TestCase",
- "importPath": "django.test",
- "description": "django.test",
- "isExtraImport": true,
- "detail": "django.test",
- "documentation": {}
- },
- {
- "label": "get_object_or_404",
- "importPath": "django.shortcuts",
- "description": "django.shortcuts",
- "isExtraImport": true,
- "detail": "django.shortcuts",
- "documentation": {}
- },
- {
- "label": "render",
- "importPath": "django.shortcuts",
- "description": "django.shortcuts",
- "isExtraImport": true,
- "detail": "django.shortcuts",
- "documentation": {}
- },
- {
- "label": "redirect",
- "importPath": "django.shortcuts",
- "description": "django.shortcuts",
- "isExtraImport": true,
- "detail": "django.shortcuts",
- "documentation": {}
- },
- {
- "label": "HttpResponseRedirect",
- "importPath": "django.http",
- "description": "django.http",
- "isExtraImport": true,
- "detail": "django.http",
- "documentation": {}
- },
- {
- "label": "*",
- "importPath": "mygame.forms",
- "description": "mygame.forms",
- "isExtraImport": true,
- "detail": "mygame.forms",
- "documentation": {}
- },
- {
- "label": "User",
- "importPath": "django.contrib.auth.models",
- "description": "django.contrib.auth.models",
- "isExtraImport": true,
- "detail": "django.contrib.auth.models",
- "documentation": {}
- },
- {
- "label": "authenticate",
- "importPath": "django.contrib.auth",
- "description": "django.contrib.auth",
- "isExtraImport": true,
- "detail": "django.contrib.auth",
- "documentation": {}
- },
- {
- "label": "login",
- "importPath": "django.contrib.auth",
- "description": "django.contrib.auth",
- "isExtraImport": true,
- "detail": "django.contrib.auth",
- "documentation": {}
- },
- {
- "label": "EngineeringModel",
- "importPath": "mygame.backend.engineeringmodel",
- "description": "mygame.backend.engineeringmodel",
- "isExtraImport": true,
- "detail": "mygame.backend.engineeringmodel",
- "documentation": {}
- },
- {
- "label": "get_asgi_application",
- "importPath": "django.core.asgi",
- "description": "django.core.asgi",
- "isExtraImport": true,
- "detail": "django.core.asgi",
- "documentation": {}
- },
- {
- "label": "AuthMiddlewareStack",
- "importPath": "channels.auth",
- "description": "channels.auth",
- "isExtraImport": true,
- "detail": "channels.auth",
- "documentation": {}
- },
- {
- "label": "AuthMiddlewareStack",
- "importPath": "channels.auth",
- "description": "channels.auth",
- "isExtraImport": true,
- "detail": "channels.auth",
- "documentation": {}
- },
- {
- "label": "ProtocolTypeRouter",
- "importPath": "channels.routing",
- "description": "channels.routing",
- "isExtraImport": true,
- "detail": "channels.routing",
- "documentation": {}
- },
- {
- "label": "URLRouter",
- "importPath": "channels.routing",
- "description": "channels.routing",
- "isExtraImport": true,
- "detail": "channels.routing",
- "documentation": {}
- },
- {
- "label": "ProtocolTypeRouter",
- "importPath": "channels.routing",
- "description": "channels.routing",
- "isExtraImport": true,
- "detail": "channels.routing",
- "documentation": {}
- },
- {
- "label": "URLRouter",
- "importPath": "channels.routing",
- "description": "channels.routing",
- "isExtraImport": true,
- "detail": "channels.routing",
- "documentation": {}
- },
- {
- "label": "AllowedHostsOriginValidator",
- "importPath": "channels.security.websocket",
- "description": "channels.security.websocket",
- "isExtraImport": true,
- "detail": "channels.security.websocket",
- "documentation": {}
- },
- {
- "label": "mygame.routing",
- "kind": 6,
- "isExtraImport": true,
- "importPath": "mygame.routing",
- "description": "mygame.routing",
- "detail": "mygame.routing",
- "documentation": {}
- },
- {
- "label": "Path",
- "importPath": "pathlib",
- "description": "pathlib",
- "isExtraImport": true,
- "detail": "pathlib",
- "documentation": {}
- },
- {
- "label": "settings",
- "importPath": "django.conf",
- "description": "django.conf",
- "isExtraImport": true,
- "detail": "django.conf",
- "documentation": {}
- },
- {
- "label": "static",
- "importPath": "django.conf.urls.static",
- "description": "django.conf.urls.static",
- "isExtraImport": true,
- "detail": "django.conf.urls.static",
- "documentation": {}
- },
- {
- "label": "get_wsgi_application",
- "importPath": "django.core.wsgi",
- "description": "django.core.wsgi",
- "isExtraImport": true,
- "detail": "django.core.wsgi",
- "documentation": {}
- },
- {
- "label": "x",
- "kind": 5,
- "importPath": "Ausarbeitung.thesis-template-master.listings.example",
- "description": "Ausarbeitung.thesis-template-master.listings.example",
- "peekOfCode": "x = 1\nif x == 1:\n # indented four spaces\n print(\"x is 1.\")",
- "detail": "Ausarbeitung.thesis-template-master.listings.example",
- "documentation": {}
- },
- {
- "label": "Tee",
- "kind": 6,
- "importPath": "environment.Scripts.pywin32_postinstall",
- "description": "environment.Scripts.pywin32_postinstall",
- "peekOfCode": "class Tee:\n def __init__(self, file):\n self.f = file\n def write(self, what):\n if self.f is not None:\n try:\n self.f.write(what.replace(\"\\n\", \"\\r\\n\"))\n except IOError:\n pass\n tee_f.write(what)",
- "detail": "environment.Scripts.pywin32_postinstall",
- "documentation": {}
- },
- {
- "label": "CopyTo",
- "kind": 2,
- "importPath": "environment.Scripts.pywin32_postinstall",
- "description": "environment.Scripts.pywin32_postinstall",
- "peekOfCode": "def CopyTo(desc, src, dest):\n import win32api\n import win32con\n while 1:\n try:\n win32api.CopyFile(src, dest, 0)\n return\n except win32api.error as details:\n if details.winerror == 5: # access denied - user not admin.\n raise",
- "detail": "environment.Scripts.pywin32_postinstall",
- "documentation": {}
- },
- {
- "label": "LoadSystemModule",
- "kind": 2,
- "importPath": "environment.Scripts.pywin32_postinstall",
- "description": "environment.Scripts.pywin32_postinstall",
- "peekOfCode": "def LoadSystemModule(lib_dir, modname):\n # See if this is a debug build.\n import importlib.machinery\n import importlib.util\n suffix = \"_d\" if \"_d.pyd\" in importlib.machinery.EXTENSION_SUFFIXES else \"\"\n filename = \"%s%d%d%s.dll\" % (\n modname,\n sys.version_info[0],\n sys.version_info[1],\n suffix,",
- "detail": "environment.Scripts.pywin32_postinstall",
- "documentation": {}
- },
- {
- "label": "SetPyKeyVal",
- "kind": 2,
- "importPath": "environment.Scripts.pywin32_postinstall",
- "description": "environment.Scripts.pywin32_postinstall",
- "peekOfCode": "def SetPyKeyVal(key_name, value_name, value):\n root_hkey = get_root_hkey()\n root_key = winreg.OpenKey(root_hkey, root_key_name)\n try:\n my_key = winreg.CreateKey(root_key, key_name)\n try:\n winreg.SetValueEx(my_key, value_name, 0, winreg.REG_SZ, value)\n if verbose:\n print(\"-> %s\\\\%s[%s]=%r\" % (root_key_name, key_name, value_name, value))\n finally:",
- "detail": "environment.Scripts.pywin32_postinstall",
- "documentation": {}
- },
- {
- "label": "UnsetPyKeyVal",
- "kind": 2,
- "importPath": "environment.Scripts.pywin32_postinstall",
- "description": "environment.Scripts.pywin32_postinstall",
- "peekOfCode": "def UnsetPyKeyVal(key_name, value_name, delete_key=False):\n root_hkey = get_root_hkey()\n root_key = winreg.OpenKey(root_hkey, root_key_name)\n try:\n my_key = winreg.OpenKey(root_key, key_name, 0, winreg.KEY_SET_VALUE)\n try:\n winreg.DeleteValue(my_key, value_name)\n if verbose:\n print(\"-> DELETE %s\\\\%s[%s]\" % (root_key_name, key_name, value_name))\n finally:",
- "detail": "environment.Scripts.pywin32_postinstall",
- "documentation": {}
- },
- {
- "label": "RegisterCOMObjects",
- "kind": 2,
- "importPath": "environment.Scripts.pywin32_postinstall",
- "description": "environment.Scripts.pywin32_postinstall",
- "peekOfCode": "def RegisterCOMObjects(register=True):\n import win32com.server.register\n if register:\n func = win32com.server.register.RegisterClasses\n else:\n func = win32com.server.register.UnregisterClasses\n flags = {}\n if not verbose:\n flags[\"quiet\"] = 1\n for module, klass_name in com_modules:",
- "detail": "environment.Scripts.pywin32_postinstall",
- "documentation": {}
- },
- {
- "label": "RegisterHelpFile",
- "kind": 2,
- "importPath": "environment.Scripts.pywin32_postinstall",
- "description": "environment.Scripts.pywin32_postinstall",
- "peekOfCode": "def RegisterHelpFile(register=True, lib_dir=None):\n if lib_dir is None:\n lib_dir = sysconfig.get_paths()[\"platlib\"]\n if register:\n # Register the .chm help file.\n chm_file = os.path.join(lib_dir, \"PyWin32.chm\")\n if os.path.isfile(chm_file):\n # This isn't recursive, so if 'Help' doesn't exist, we croak\n SetPyKeyVal(\"Help\", None, None)\n SetPyKeyVal(\"Help\\\\Pythonwin Reference\", None, chm_file)",
- "detail": "environment.Scripts.pywin32_postinstall",
- "documentation": {}
- },
- {
- "label": "RegisterPythonwin",
- "kind": 2,
- "importPath": "environment.Scripts.pywin32_postinstall",
- "description": "environment.Scripts.pywin32_postinstall",
- "peekOfCode": "def RegisterPythonwin(register=True, lib_dir=None):\n \"\"\"Add (or remove) Pythonwin to context menu for python scripts.\n ??? Should probably also add Edit command for pys files also.\n Also need to remove these keys on uninstall, but there's no function\n like file_created to add registry entries to uninstall log ???\n \"\"\"\n import os\n if lib_dir is None:\n lib_dir = sysconfig.get_paths()[\"platlib\"]\n classes_root = get_root_hkey()",
- "detail": "environment.Scripts.pywin32_postinstall",
- "documentation": {}
- },
- {
- "label": "get_shortcuts_folder",
- "kind": 2,
- "importPath": "environment.Scripts.pywin32_postinstall",
- "description": "environment.Scripts.pywin32_postinstall",
- "peekOfCode": "def get_shortcuts_folder():\n if get_root_hkey() == winreg.HKEY_LOCAL_MACHINE:\n try:\n fldr = get_special_folder_path(\"CSIDL_COMMON_PROGRAMS\")\n except OSError:\n # No CSIDL_COMMON_PROGRAMS on this platform\n fldr = get_special_folder_path(\"CSIDL_PROGRAMS\")\n else:\n # non-admin install - always goes in this user's start menu.\n fldr = get_special_folder_path(\"CSIDL_PROGRAMS\")",
- "detail": "environment.Scripts.pywin32_postinstall",
- "documentation": {}
- },
- {
- "label": "get_system_dir",
- "kind": 2,
- "importPath": "environment.Scripts.pywin32_postinstall",
- "description": "environment.Scripts.pywin32_postinstall",
- "peekOfCode": "def get_system_dir():\n import win32api # we assume this exists.\n try:\n import pythoncom\n import win32process\n from win32com.shell import shell, shellcon\n try:\n if win32process.IsWow64Process():\n return shell.SHGetSpecialFolderPath(0, shellcon.CSIDL_SYSTEMX86)\n return shell.SHGetSpecialFolderPath(0, shellcon.CSIDL_SYSTEM)",
- "detail": "environment.Scripts.pywin32_postinstall",
- "documentation": {}
- },
- {
- "label": "fixup_dbi",
- "kind": 2,
- "importPath": "environment.Scripts.pywin32_postinstall",
- "description": "environment.Scripts.pywin32_postinstall",
- "peekOfCode": "def fixup_dbi():\n # We used to have a dbi.pyd with our .pyd files, but now have a .py file.\n # If the user didn't uninstall, they will find the .pyd which will cause\n # problems - so handle that.\n import win32api\n import win32con\n pyd_name = os.path.join(os.path.dirname(win32api.__file__), \"dbi.pyd\")\n pyd_d_name = os.path.join(os.path.dirname(win32api.__file__), \"dbi_d.pyd\")\n py_name = os.path.join(os.path.dirname(win32con.__file__), \"dbi.py\")\n for this_pyd in (pyd_name, pyd_d_name):",
- "detail": "environment.Scripts.pywin32_postinstall",
- "documentation": {}
- },
- {
- "label": "install",
- "kind": 2,
- "importPath": "environment.Scripts.pywin32_postinstall",
- "description": "environment.Scripts.pywin32_postinstall",
- "peekOfCode": "def install(lib_dir):\n import traceback\n # The .pth file is now installed as a regular file.\n # Create the .pth file in the site-packages dir, and use only relative paths\n # We used to write a .pth directly to sys.prefix - clobber it.\n if os.path.isfile(os.path.join(sys.prefix, \"pywin32.pth\")):\n os.unlink(os.path.join(sys.prefix, \"pywin32.pth\"))\n # The .pth may be new and therefore not loaded in this session.\n # Setup the paths just in case.\n for name in \"win32 win32\\\\lib Pythonwin\".split():",
- "detail": "environment.Scripts.pywin32_postinstall",
- "documentation": {}
- },
- {
- "label": "uninstall",
- "kind": 2,
- "importPath": "environment.Scripts.pywin32_postinstall",
- "description": "environment.Scripts.pywin32_postinstall",
- "peekOfCode": "def uninstall(lib_dir):\n # First ensure our system modules are loaded from pywin32_system, so\n # we can remove the ones we copied...\n LoadSystemModule(lib_dir, \"pywintypes\")\n LoadSystemModule(lib_dir, \"pythoncom\")\n try:\n RegisterCOMObjects(False)\n except Exception as why:\n print(\"Failed to unregister COM objects: %s\" % (why,))\n try:",
- "detail": "environment.Scripts.pywin32_postinstall",
- "documentation": {}
- },
- {
- "label": "verify_destination",
- "kind": 2,
- "importPath": "environment.Scripts.pywin32_postinstall",
- "description": "environment.Scripts.pywin32_postinstall",
- "peekOfCode": "def verify_destination(location):\n if not os.path.isdir(location):\n raise argparse.ArgumentTypeError('Path \"{}\" does not exist!'.format(location))\n return location\ndef main():\n import argparse\n parser = argparse.ArgumentParser(\n formatter_class=argparse.RawDescriptionHelpFormatter,\n description=\"\"\"A post-install script for the pywin32 extensions.\n * Typical usage:",
- "detail": "environment.Scripts.pywin32_postinstall",
- "documentation": {}
- },
- {
- "label": "main",
- "kind": 2,
- "importPath": "environment.Scripts.pywin32_postinstall",
- "description": "environment.Scripts.pywin32_postinstall",
- "peekOfCode": "def main():\n import argparse\n parser = argparse.ArgumentParser(\n formatter_class=argparse.RawDescriptionHelpFormatter,\n description=\"\"\"A post-install script for the pywin32 extensions.\n * Typical usage:\n > python pywin32_postinstall.py -install\n If you installed pywin32 via a .exe installer, this should be run\n automatically after installation, but if it fails you can run it again.\n If you installed pywin32 via PIP, you almost certainly need to run this to",
- "detail": "environment.Scripts.pywin32_postinstall",
- "documentation": {}
- },
- {
- "label": "tee_f",
- "kind": 5,
- "importPath": "environment.Scripts.pywin32_postinstall",
- "description": "environment.Scripts.pywin32_postinstall",
- "peekOfCode": "tee_f = open(os.path.join(tempfile.gettempdir(), \"pywin32_postinstall.log\"), \"w\")\nclass Tee:\n def __init__(self, file):\n self.f = file\n def write(self, what):\n if self.f is not None:\n try:\n self.f.write(what.replace(\"\\n\", \"\\r\\n\"))\n except IOError:\n pass",
- "detail": "environment.Scripts.pywin32_postinstall",
- "documentation": {}
- },
- {
- "label": "sys.stderr",
- "kind": 5,
- "importPath": "environment.Scripts.pywin32_postinstall",
- "description": "environment.Scripts.pywin32_postinstall",
- "peekOfCode": "sys.stderr = Tee(sys.stderr)\nsys.stdout = Tee(sys.stdout)\ncom_modules = [\n # module_name, class_names\n (\"win32com.servers.interp\", \"Interpreter\"),\n (\"win32com.servers.dictionary\", \"DictionaryPolicy\"),\n (\"win32com.axscript.client.pyscript\", \"PyScript\"),\n]\n# Is this a 'silent' install - ie, avoid all dialogs.\n# Different than 'verbose'",
- "detail": "environment.Scripts.pywin32_postinstall",
- "documentation": {}
- },
- {
- "label": "sys.stdout",
- "kind": 5,
- "importPath": "environment.Scripts.pywin32_postinstall",
- "description": "environment.Scripts.pywin32_postinstall",
- "peekOfCode": "sys.stdout = Tee(sys.stdout)\ncom_modules = [\n # module_name, class_names\n (\"win32com.servers.interp\", \"Interpreter\"),\n (\"win32com.servers.dictionary\", \"DictionaryPolicy\"),\n (\"win32com.axscript.client.pyscript\", \"PyScript\"),\n]\n# Is this a 'silent' install - ie, avoid all dialogs.\n# Different than 'verbose'\nsilent = 0",
- "detail": "environment.Scripts.pywin32_postinstall",
- "documentation": {}
- },
- {
- "label": "com_modules",
- "kind": 5,
- "importPath": "environment.Scripts.pywin32_postinstall",
- "description": "environment.Scripts.pywin32_postinstall",
- "peekOfCode": "com_modules = [\n # module_name, class_names\n (\"win32com.servers.interp\", \"Interpreter\"),\n (\"win32com.servers.dictionary\", \"DictionaryPolicy\"),\n (\"win32com.axscript.client.pyscript\", \"PyScript\"),\n]\n# Is this a 'silent' install - ie, avoid all dialogs.\n# Different than 'verbose'\nsilent = 0\n# Verbosity of output messages.",
- "detail": "environment.Scripts.pywin32_postinstall",
- "documentation": {}
- },
- {
- "label": "silent",
- "kind": 5,
- "importPath": "environment.Scripts.pywin32_postinstall",
- "description": "environment.Scripts.pywin32_postinstall",
- "peekOfCode": "silent = 0\n# Verbosity of output messages.\nverbose = 1\nroot_key_name = \"Software\\\\Python\\\\PythonCore\\\\\" + sys.winver\ntry:\n # When this script is run from inside the bdist_wininst installer,\n # file_created() and directory_created() are additional builtin\n # functions which write lines to Python23\\pywin32-install.log. This is\n # a list of actions for the uninstaller, the format is inspired by what\n # the Wise installer also creates.",
- "detail": "environment.Scripts.pywin32_postinstall",
- "documentation": {}
- },
- {
- "label": "verbose",
- "kind": 5,
- "importPath": "environment.Scripts.pywin32_postinstall",
- "description": "environment.Scripts.pywin32_postinstall",
- "peekOfCode": "verbose = 1\nroot_key_name = \"Software\\\\Python\\\\PythonCore\\\\\" + sys.winver\ntry:\n # When this script is run from inside the bdist_wininst installer,\n # file_created() and directory_created() are additional builtin\n # functions which write lines to Python23\\pywin32-install.log. This is\n # a list of actions for the uninstaller, the format is inspired by what\n # the Wise installer also creates.\n file_created\n is_bdist_wininst = True",
- "detail": "environment.Scripts.pywin32_postinstall",
- "documentation": {}
- },
- {
- "label": "root_key_name",
- "kind": 5,
- "importPath": "environment.Scripts.pywin32_postinstall",
- "description": "environment.Scripts.pywin32_postinstall",
- "peekOfCode": "root_key_name = \"Software\\\\Python\\\\PythonCore\\\\\" + sys.winver\ntry:\n # When this script is run from inside the bdist_wininst installer,\n # file_created() and directory_created() are additional builtin\n # functions which write lines to Python23\\pywin32-install.log. This is\n # a list of actions for the uninstaller, the format is inspired by what\n # the Wise installer also creates.\n file_created\n is_bdist_wininst = True\nexcept NameError:",
- "detail": "environment.Scripts.pywin32_postinstall",
- "documentation": {}
- },
- {
- "label": "run_test",
- "kind": 2,
- "importPath": "environment.Scripts.pywin32_testall",
- "description": "environment.Scripts.pywin32_testall",
- "peekOfCode": "def run_test(script, cmdline_extras):\n dirname, scriptname = os.path.split(script)\n # some tests prefer to be run from their directory.\n cmd = [sys.executable, \"-u\", scriptname] + cmdline_extras\n print(\"--- Running '%s' ---\" % script)\n sys.stdout.flush()\n result = subprocess.run(cmd, check=False, cwd=dirname)\n print(\"*** Test script '%s' exited with %s\" % (script, result.returncode))\n sys.stdout.flush()\n if result.returncode:",
- "detail": "environment.Scripts.pywin32_testall",
- "documentation": {}
- },
- {
- "label": "find_and_run",
- "kind": 2,
- "importPath": "environment.Scripts.pywin32_testall",
- "description": "environment.Scripts.pywin32_testall",
- "peekOfCode": "def find_and_run(possible_locations, extras):\n for maybe in possible_locations:\n if os.path.isfile(maybe):\n run_test(maybe, extras)\n break\n else:\n raise RuntimeError(\n \"Failed to locate a test script in one of %s\" % possible_locations\n )\ndef main():",
- "detail": "environment.Scripts.pywin32_testall",
- "documentation": {}
- },
- {
- "label": "main",
- "kind": 2,
- "importPath": "environment.Scripts.pywin32_testall",
- "description": "environment.Scripts.pywin32_testall",
- "peekOfCode": "def main():\n import argparse\n code_directories = [this_dir] + site_packages\n parser = argparse.ArgumentParser(\n description=\"A script to trigger tests in all subprojects of PyWin32.\"\n )\n parser.add_argument(\n \"-no-user-interaction\",\n default=False,\n action=\"store_true\",",
- "detail": "environment.Scripts.pywin32_testall",
- "documentation": {}
- },
- {
- "label": "this_dir",
- "kind": 5,
- "importPath": "environment.Scripts.pywin32_testall",
- "description": "environment.Scripts.pywin32_testall",
- "peekOfCode": "this_dir = os.path.dirname(__file__)\nsite_packages = [\n site.getusersitepackages(),\n] + site.getsitepackages()\nfailures = []\n# Run a test using subprocess and wait for the result.\n# If we get an returncode != 0, we know that there was an error, but we don't\n# abort immediately - we run as many tests as we can.\ndef run_test(script, cmdline_extras):\n dirname, scriptname = os.path.split(script)",
- "detail": "environment.Scripts.pywin32_testall",
- "documentation": {}
- },
- {
- "label": "site_packages",
- "kind": 5,
- "importPath": "environment.Scripts.pywin32_testall",
- "description": "environment.Scripts.pywin32_testall",
- "peekOfCode": "site_packages = [\n site.getusersitepackages(),\n] + site.getsitepackages()\nfailures = []\n# Run a test using subprocess and wait for the result.\n# If we get an returncode != 0, we know that there was an error, but we don't\n# abort immediately - we run as many tests as we can.\ndef run_test(script, cmdline_extras):\n dirname, scriptname = os.path.split(script)\n # some tests prefer to be run from their directory.",
- "detail": "environment.Scripts.pywin32_testall",
- "documentation": {}
- },
- {
- "label": "failures",
- "kind": 5,
- "importPath": "environment.Scripts.pywin32_testall",
- "description": "environment.Scripts.pywin32_testall",
- "peekOfCode": "failures = []\n# Run a test using subprocess and wait for the result.\n# If we get an returncode != 0, we know that there was an error, but we don't\n# abort immediately - we run as many tests as we can.\ndef run_test(script, cmdline_extras):\n dirname, scriptname = os.path.split(script)\n # some tests prefer to be run from their directory.\n cmd = [sys.executable, \"-u\", scriptname] + cmdline_extras\n print(\"--- Running '%s' ---\" % script)\n sys.stdout.flush()",
- "detail": "environment.Scripts.pywin32_testall",
- "documentation": {}
- },
- {
- "label": "Action",
- "kind": 6,
- "importPath": "mygame.backend.action",
- "description": "mygame.backend.action",
- "peekOfCode": "class Action(PolymorphicModel):\n name = models.CharField(default=\"random Action\", max_length=20)\n actionmaker = models.ForeignKey(\"Company\", default=1, on_delete=models.CASCADE)\n def execute(self):\n pass\n def cancel(self):\n pass\n def addActionToCompany(self):\n self.actionmaker.addAction(self)\n def __str__(self):",
- "detail": "mygame.backend.action",
- "documentation": {}
- },
- {
- "label": "ActionEmploy",
- "kind": 6,
- "importPath": "mygame.backend.action",
- "description": "mygame.backend.action",
- "peekOfCode": "class ActionEmploy(Action):\n worker = models.ForeignKey(Worker, default=1, on_delete=models.CASCADE)\n @classmethod\n def create(cls, worker, actionmaker):\n # klassenobject erstellen\n name = \"Hiring \" + worker.name\n action = cls(name=name, worker=worker, actionmaker=actionmaker)\n action.save()\n # worker von market entferenen und action zu company hinzufügen\n actionmaker.removeFromWorkermarket(worker)",
- "detail": "mygame.backend.action",
- "documentation": {}
- },
- {
- "label": "ActionUnemploy",
- "kind": 6,
- "importPath": "mygame.backend.action",
- "description": "mygame.backend.action",
- "peekOfCode": "class ActionUnemploy(Action):\n worker = models.ForeignKey(Worker, null=True, blank=True, on_delete=models.CASCADE)\n @classmethod\n def create(cls, worker, actionmaker):\n # klassenobject erstellen\n name = \"Firing \" + worker.name\n action = cls(name=name, worker=worker, actionmaker=actionmaker)\n action.save()\n # workerstatus anpassen und action zu company hinzufügen\n actionmaker.workers.remove(worker)",
- "detail": "mygame.backend.action",
- "documentation": {}
- },
- {
- "label": "ActionOffer",
- "kind": 6,
- "importPath": "mygame.backend.action",
- "description": "mygame.backend.action",
- "peekOfCode": "class ActionOffer(Action):\n order = models.ForeignKey(Order, default=1, on_delete=models.CASCADE)\n amount = models.IntegerField(default=0)\n @classmethod\n def create(cls, order, amount, actionmaker):\n # klassenobject erstellen\n name = \"Offer for \" + order.name\n action = cls(\n name=name,\n order=order,",
- "detail": "mygame.backend.action",
- "documentation": {}
- },
- {
- "label": "ActionCancelOrder",
- "kind": 6,
- "importPath": "mygame.backend.action",
- "description": "mygame.backend.action",
- "peekOfCode": "class ActionCancelOrder(Action):\n order = models.ForeignKey(Order, default=1, on_delete=models.CASCADE)\n @classmethod\n def create(cls, order, actionmaker):\n # klassenobject erstellen\n name = \"Cancel \" + order.name\n action = cls(\n name=name,\n order=order,\n actionmaker=actionmaker,",
- "detail": "mygame.backend.action",
- "documentation": {}
- },
- {
- "label": "ActionTrain",
- "kind": 6,
- "importPath": "mygame.backend.action",
- "description": "mygame.backend.action",
- "peekOfCode": "class ActionTrain(Action):\n worker = models.ForeignKey(Worker, null=True, blank=True, on_delete=models.CASCADE)\n trainskill = models.CharField(default=\"empty\", max_length=50)\n cost = models.IntegerField(default=1000)\n @classmethod\n def create(cls, worker, trainskill, actionmaker):\n # klassenobject erstellen\n name = \"Train Worker \" + worker.name\n action = cls(\n name=name,",
- "detail": "mygame.backend.action",
- "documentation": {}
- },
- {
- "label": "AttributeSet",
- "kind": 6,
- "importPath": "mygame.backend.attributeset",
- "description": "mygame.backend.attributeset",
- "peekOfCode": "class AttributeSet(models.Model):\n experience = models.IntegerField(default=10)\n reliability = models.IntegerField(default=10)\n python = models.IntegerField(default=10)\n javascript = models.IntegerField(default=10)\n cpp = models.IntegerField(default=10)\n management = models.IntegerField(default=10)\n def __str__(self):\n return \"AttributeSet\"\n @classmethod",
- "detail": "mygame.backend.attributeset",
- "documentation": {}
- },
- {
- "label": "Company",
- "kind": 6,
- "importPath": "mygame.backend.company",
- "description": "mygame.backend.company",
- "peekOfCode": "class Company(models.Model):\n name = models.CharField(default=\"A company\", max_length=20)\n user = models.CharField(default=\"default User\", max_length=20)\n customersatisfaction = models.IntegerField(\n default=100, validators=[MinValueValidator(0), MaxValueValidator(100)]\n )\n workersatisfaction = models.IntegerField(\n default=100, validators=[MinValueValidator(0), MaxValueValidator(100)]\n )\n money = models.IntegerField(default=100000)",
- "detail": "mygame.backend.company",
- "documentation": {}
- },
- {
- "label": "EngineeringModel",
- "kind": 6,
- "importPath": "mygame.backend.engineeringmodel",
- "description": "mygame.backend.engineeringmodel",
- "peekOfCode": "class EngineeringModel(PolymorphicModel):\n name = models.CharField(default=\"random EngineeringModel\", max_length=30)\n description = models.CharField(default=\"random description\", max_length=200)\n pros = models.CharField(default=\"random pro\", max_length=100)\n cons = models.CharField(default=\"random con\", max_length=100)\n # wird bei zuweisen des models ausgelöst\n def recalculate(self, order, company):\n pass\n # wird bei workload berechnung ausgelöst, wenn workermodel nicht ordermodel\n def penalty(self, worker, order):",
- "detail": "mygame.backend.engineeringmodel",
- "documentation": {}
- },
- {
- "label": "ModelV",
- "kind": 6,
- "importPath": "mygame.backend.engineeringmodel",
- "description": "mygame.backend.engineeringmodel",
- "peekOfCode": "class ModelV(EngineeringModel):\n def recalculate(self, order, company):\n # positives\n # +10 workerSatisfaction +10 happyness\n company.calculateAllWorkersHappyness(addhappyness=10)\n company.calculateWorkerSatisfaction(number=10)\n # +10 customerSatisfaction\n company.calculateCustomerSatisfaction(10)\n # negatives\n # 1: extra work for SOPrototyp und SOChangeRequirement",
- "detail": "mygame.backend.engineeringmodel",
- "documentation": {}
- },
- {
- "label": "ModelSpiral",
- "kind": 6,
- "importPath": "mygame.backend.engineeringmodel",
- "description": "mygame.backend.engineeringmodel",
- "peekOfCode": "class ModelSpiral(EngineeringModel):\n def recalculate(self, order, company):\n # positives\n # 1: BONUS AUF SOPrototyp UND SOChangeRequirement\n # +10 customerSatisfaciton\n company.calculateCustomerSatisfaction(10)\n # negatives\n # 1: -10 happyness and workersatisfaction\n company.calculateAllWorkersHappyness(addhappyness=-10)\n company.calculateWorkerSatisfaction(number=-10)",
- "detail": "mygame.backend.engineeringmodel",
- "documentation": {}
- },
- {
- "label": "ModelWaterfall",
- "kind": 6,
- "importPath": "mygame.backend.engineeringmodel",
- "description": "mygame.backend.engineeringmodel",
- "peekOfCode": "class ModelWaterfall(EngineeringModel):\n def recalculate(self, order, company):\n # positives\n # +10 workerSatisfaction +10 happyness\n company.calculateAllWorkersHappyness(addhappyness=10)\n company.calculateWorkerSatisfaction(number=10)\n # -10% workload\n order.changeWorkload(0.9)\n # negatives\n # 1: extra work for SOPrototyp und SOChangeRequirement",
- "detail": "mygame.backend.engineeringmodel",
- "documentation": {}
- },
- {
- "label": "ModelScrum",
- "kind": 6,
- "importPath": "mygame.backend.engineeringmodel",
- "description": "mygame.backend.engineeringmodel",
- "peekOfCode": "class ModelScrum(EngineeringModel):\n def recalculate(self, order, company):\n # positives\n # 1: BONUS bei SOPrototyp und SOChangeRequirement\n # 2: +20% if skilledModel of worker is scrum\n # IN BONUS HIER UNTEN\n # # negatives\n # 1: random workload shift zwischen 1% und +20%\n randnum = round(random.uniform(1.01, 1.2), 2)\n order.changeWorkload(randnum)",
- "detail": "mygame.backend.engineeringmodel",
- "documentation": {}
- },
- {
- "label": "ModelChaotic",
- "kind": 6,
- "importPath": "mygame.backend.engineeringmodel",
- "description": "mygame.backend.engineeringmodel",
- "peekOfCode": "class ModelChaotic(EngineeringModel):\n def recalculate(self, order, company):\n # positives\n # NIX\n # negatives:\n # +10% workload\n order.changeWorkload(1.1)\n # -20 workerSatisfaction -10 happyness\n company.calculateAllWorkersHappyness(addhappyness=-10)\n company.calculateWorkerSatisfaction(number=-20)",
- "detail": "mygame.backend.engineeringmodel",
- "documentation": {}
- },
- {
- "label": "ModelHeyJoe",
- "kind": 6,
- "importPath": "mygame.backend.engineeringmodel",
- "description": "mygame.backend.engineeringmodel",
- "peekOfCode": "class ModelHeyJoe(EngineeringModel):\n def recalculate(self, order, company):\n # positives\n # 1: BONUS AUF SOPrototyp UND SOChangeRequirement\n # +30 customerSatisfaciton\n company.calculateCustomerSatisfaction(30)\n # negatives\n # 1: -10 happyness and workersatisfaction\n company.calculateAllWorkersHappyness(addhappyness=-15)\n company.calculateWorkerSatisfaction(number=-15)",
- "detail": "mygame.backend.engineeringmodel",
- "documentation": {}
- },
- {
- "label": "Event",
- "kind": 6,
- "importPath": "mygame.backend.event",
- "description": "mygame.backend.event",
- "peekOfCode": "class Event(PolymorphicModel):\n name = models.CharField(default=\"random Event\", max_length=40)\n description = models.CharField(default=\"Event description here\", max_length=200)\n @classmethod\n def createEmpty(cls):\n emptyEvent = cls(\n name=\"Your E-Mails are empty\",\n description=\"You do not have E-Mails this round.\",\n )\n emptyEvent.save()",
- "detail": "mygame.backend.event",
- "documentation": {}
- },
- {
- "label": "EventOfferAccepted",
- "kind": 6,
- "importPath": "mygame.backend.event",
- "description": "mygame.backend.event",
- "peekOfCode": "class EventOfferAccepted(Event):\n order = models.ForeignKey(\"Order\", default=1, on_delete=models.CASCADE)\n modelset = models.BooleanField(default=False)\n def setModel(self, model):\n self.order.setEngineeringmodel(model)\n self.modelset = True\n self.save()\nclass SpecialOrder(Event):\n occuranceProbability = models.IntegerField(\n default=100, validators=[MinValueValidator(0), MaxValueValidator(100)]",
- "detail": "mygame.backend.event",
- "documentation": {}
- },
- {
- "label": "SpecialOrder",
- "kind": 6,
- "importPath": "mygame.backend.event",
- "description": "mygame.backend.event",
- "peekOfCode": "class SpecialOrder(Event):\n occuranceProbability = models.IntegerField(\n default=100, validators=[MinValueValidator(0), MaxValueValidator(100)]\n )\n validModels = models.ManyToManyField(EngineeringModel, blank=True)\n occured = models.BooleanField(default=False)\n hint = models.CharField(default=\"no hint\", max_length=100)\n def getValidModels(self):\n vmodels = []\n for model in self.validModels.all():",
- "detail": "mygame.backend.event",
- "documentation": {}
- },
- {
- "label": "SOPrototyp",
- "kind": 6,
- "importPath": "mygame.backend.event",
- "description": "mygame.backend.event",
- "peekOfCode": "class SOPrototyp(SpecialOrder):\n @classmethod\n def createRandom(cls, ordername):\n name = \"Specialorder prototyp request from \" + ordername\n description = (\n \"Your customer for the order \"\n + ordername\n + \" wants you to produce a prototyp for them to review.\"\n )\n # hier random low <5% per round oder high < 40% per round",
- "detail": "mygame.backend.event",
- "documentation": {}
- },
- {
- "label": "SORegularIncrementUpdates",
- "kind": 6,
- "importPath": "mygame.backend.event",
- "description": "mygame.backend.event",
- "peekOfCode": "class SORegularIncrementUpdates(SpecialOrder):\n @classmethod\n def createRandom(cls, ordername):\n name = \"Specialorder regular incremental updates request from \" + ordername\n description = (\n \"Your customer for the order \"\n + ordername\n + \" wants to get regular updates on the increments of the project!\"\n )\n # hier random low <5% per round oder high < 40% per round",
- "detail": "mygame.backend.event",
- "documentation": {}
- },
- {
- "label": "SOChangeRequirement",
- "kind": 6,
- "importPath": "mygame.backend.event",
- "description": "mygame.backend.event",
- "peekOfCode": "class SOChangeRequirement(SpecialOrder):\n @classmethod\n def createRandom(cls, ordername):\n name = \"Specialorder change requirement request from \" + ordername\n description = (\n \"Your customer for the order \"\n + ordername\n + \" wants to change some requirements on your order. \"\n )\n # hier random low <5% per round oder high < 40% per round",
- "detail": "mygame.backend.event",
- "documentation": {}
- },
- {
- "label": "Game",
- "kind": 6,
- "importPath": "mygame.backend.game",
- "description": "mygame.backend.game",
- "peekOfCode": "class Game(models.Model):\n name = models.CharField(default=\"Game\", max_length=20)\n gamemaster = models.CharField(max_length=20)\n running = models.BooleanField(default=False)\n participants = models.ManyToManyField(Company)\n maxRounds = models.IntegerField(default=10)\n currentRound = models.IntegerField(default=1)\n ordermarket = models.ManyToManyField(Order)\n actionpool = models.ManyToManyField(\"Action\")\n timer = models.ForeignKey(Timer, default=1, on_delete=models.CASCADE)",
- "detail": "mygame.backend.game",
- "documentation": {}
- },
- {
- "label": "WorkerNames",
- "kind": 6,
- "importPath": "mygame.backend.names",
- "description": "mygame.backend.names",
- "peekOfCode": "class WorkerNames(models.Model):\n name = models.CharField(default=\"no name\", max_length=20)\nclass OrderNames(models.Model):\n name = models.CharField(default=\"no name\", max_length=20)",
- "detail": "mygame.backend.names",
- "documentation": {}
- },
- {
- "label": "OrderNames",
- "kind": 6,
- "importPath": "mygame.backend.names",
- "description": "mygame.backend.names",
- "peekOfCode": "class OrderNames(models.Model):\n name = models.CharField(default=\"no name\", max_length=20)",
- "detail": "mygame.backend.names",
- "documentation": {}
- },
- {
- "label": "Offer",
- "kind": 6,
- "importPath": "mygame.backend.offer",
- "description": "mygame.backend.offer",
- "peekOfCode": "class Offer(models.Model):\n company = models.ForeignKey(\"Company\", default=1, on_delete=models.CASCADE)\n amount = models.IntegerField(default=0)\n order = models.ForeignKey(\"Order\", default=1, on_delete=models.CASCADE)\n def offerAcceptedEvent(self):\n name = \"Offer for \" + self.order.name\n description = (\n \"Your offer for the order \"\n + self.order.name\n + \" has been accepted!\"",
- "detail": "mygame.backend.offer",
- "documentation": {}
- },
- {
- "label": "Order",
- "kind": 6,
- "importPath": "mygame.backend.order",
- "description": "mygame.backend.order",
- "peekOfCode": "class Order(models.Model):\n name = models.CharField(default=\"random order\", max_length=20)\n profit = models.IntegerField(default=1000)\n status = models.IntegerField(\n default=0, validators=[MinValueValidator(0), MaxValueValidator(1)]\n )\n maxRounds = models.IntegerField(\n default=5, validators=[MinValueValidator(5), MaxValueValidator(100)]\n )\n requiredWorkload = models.ForeignKey(",
- "detail": "mygame.backend.order",
- "documentation": {}
- },
- {
- "label": "TimerThread",
- "kind": 6,
- "importPath": "mygame.backend.timer",
- "description": "mygame.backend.timer",
- "peekOfCode": "class TimerThread(threading.Thread):\n def __init__(self, timermodel, callback):\n super(TimerThread, self).__init__()\n self.timermodel = timermodel\n self.callback = callback\n def run(self):\n self.timermodel.running = True\n while self.timermodel.remainingtimer >= 0 and self.timermodel.running:\n time.sleep(1)\n self.timermodel.remainingtimer -= 1",
- "detail": "mygame.backend.timer",
- "documentation": {}
- },
- {
- "label": "Timer",
- "kind": 6,
- "importPath": "mygame.backend.timer",
- "description": "mygame.backend.timer",
- "peekOfCode": "class Timer(models.Model):\n timer = models.IntegerField(default=60)\n remainingtimer = models.IntegerField(default=60)\n running = models.BooleanField(default=False)\n def start(self, callback):\n self.thread = TimerThread(self, callback)\n self.thread.start()\n def stop(self):\n self.thread.stop()",
- "detail": "mygame.backend.timer",
- "documentation": {}
- },
- {
- "label": "Worker",
- "kind": 6,
- "importPath": "mygame.backend.worker",
- "description": "mygame.backend.worker",
- "peekOfCode": "class Worker(models.Model):\n name = models.CharField(default=\"random worker\", max_length=20)\n attributes = models.ForeignKey(AttributeSet, default=1, on_delete=models.CASCADE)\n skilledModels = models.ForeignKey(\n EngineeringModel, on_delete=models.CASCADE, blank=True\n )\n amplifyer = models.FloatField(\n default=1, validators=[MinValueValidator(1.0), MaxValueValidator(2.0)]\n )\n salary = models.IntegerField(default=1000)",
- "detail": "mygame.backend.worker",
- "documentation": {}
- },
- {
- "label": "Migration",
- "kind": 6,
- "importPath": "mygame.migrations.0001_initial",
- "description": "mygame.migrations.0001_initial",
- "peekOfCode": "class Migration(migrations.Migration):\n initial = True\n dependencies = [\n ('contenttypes', '0002_remove_content_type_name'),\n ]\n operations = [\n migrations.CreateModel(\n name='Action',\n fields=[\n ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),",
- "detail": "mygame.migrations.0001_initial",
- "documentation": {}
- },
- {
- "label": "Migration",
- "kind": 6,
- "importPath": "mygame.migrations.0002_game_running",
- "description": "mygame.migrations.0002_game_running",
- "peekOfCode": "class Migration(migrations.Migration):\n dependencies = [\n ('mygame', '0001_initial'),\n ]\n operations = [\n migrations.AddField(\n model_name='game',\n name='running',\n field=models.BooleanField(default=False),\n ),",
- "detail": "mygame.migrations.0002_game_running",
- "documentation": {}
- },
- {
- "label": "Migration",
- "kind": 6,
- "importPath": "mygame.migrations.0003_modelheyjoe",
- "description": "mygame.migrations.0003_modelheyjoe",
- "peekOfCode": "class Migration(migrations.Migration):\n dependencies = [\n ('mygame', '0002_game_running'),\n ]\n operations = [\n migrations.CreateModel(\n name='ModelHeyJoe',\n fields=[\n ('engineeringmodel_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='mygame.engineeringmodel')),\n ],",
- "detail": "mygame.migrations.0003_modelheyjoe",
- "documentation": {}
- },
- {
- "label": "isInstanceOf",
- "kind": 2,
- "importPath": "mygame.templatetags.filters",
- "description": "mygame.templatetags.filters",
- "peekOfCode": "def isInstanceOf(value, classname):\n classobject = eval(classname)\n return isinstance(value, classobject)",
- "detail": "mygame.templatetags.filters",
- "documentation": {}
- },
- {
- "label": "register",
- "kind": 5,
- "importPath": "mygame.templatetags.filters",
- "description": "mygame.templatetags.filters",
- "peekOfCode": "register = template.Library()\n#so kann man isinstance im frontend nutzen \n# (KLASSEN DIE MAN FILTERN WILL IMPORTIEREN)\n@register.filter\ndef isInstanceOf(value, classname):\n classobject = eval(classname)\n return isinstance(value, classobject)",
- "detail": "mygame.templatetags.filters",
- "documentation": {}
- },
- {
- "label": "MygameConfig",
- "kind": 6,
- "importPath": "mygame.apps",
- "description": "mygame.apps",
- "peekOfCode": "class MygameConfig(AppConfig):\n default_auto_field = 'django.db.models.BigAutoField'\n name = 'mygame'",
- "detail": "mygame.apps",
- "documentation": {}
- },
- {
- "label": "TimerConsumer",
- "kind": 6,
- "importPath": "mygame.consumers",
- "description": "mygame.consumers",
- "peekOfCode": "class TimerConsumer(AsyncWebsocketConsumer):\n async def connect(self):\n await self.accept()\n self.gameid = self.scope[\"url_route\"][\"kwargs\"][\"gameid\"]\n self.game = await self.getGame()\n timer = await self.getRemainingTimer()\n await self.send(text_data=str(timer))\n self.timerTask = asyncio.ensure_future(self.timer(timer))\n async def timer(self, timer):\n await asyncio.sleep(1)",
- "detail": "mygame.consumers",
- "documentation": {}
- },
- {
- "label": "LoginForm",
- "kind": 6,
- "importPath": "mygame.forms",
- "description": "mygame.forms",
- "peekOfCode": "class LoginForm(forms.Form):\n username = forms.CharField(\n label=\"Username\", min_length=4, max_length=30, widget=forms.TextInput\n )\n password = forms.CharField(\n label=\"Password\", min_length=4, max_length=30, widget=forms.PasswordInput\n )\n game_id = forms.CharField(label=\"Game ID\", widget=forms.NumberInput)\n create_join_game = forms.ChoiceField(\n label=\"Create/Join Game\",",
- "detail": "mygame.forms",
- "documentation": {}
- },
- {
- "label": "GamesettingsForm",
- "kind": 6,
- "importPath": "mygame.forms",
- "description": "mygame.forms",
- "peekOfCode": "class GamesettingsForm(forms.Form):\n rounds = forms.CharField(label=\"set number of rounds:\", required=False, widget=forms.NumberInput)\n timer = forms.CharField(label=\"set roundtimer:\", required=False, widget=forms.NumberInput)\n ordermarketsize = forms.CharField(label=\"set ordermarket size:\", required=False, widget=forms.NumberInput)",
- "detail": "mygame.forms",
- "documentation": {}
- },
- {
- "label": "InitialDatabase",
- "kind": 6,
- "importPath": "mygame.initialdatabase",
- "description": "mygame.initialdatabase",
- "peekOfCode": "class InitialDatabase:\n # Names generiert von chatgpt https://chat.openai.com/\n # Workernames\n workernames = [\n \"Emma\",\n \"Mia\",\n \"Hannah\",\n \"Emilia\",\n \"Lina\",\n \"Ulma\",",
- "detail": "mygame.initialdatabase",
- "documentation": {}
- },
- {
- "label": "websocket_urlpatterns",
- "kind": 5,
- "importPath": "mygame.routing",
- "description": "mygame.routing",
- "peekOfCode": "websocket_urlpatterns = [\n re_path(r\"^mygame/company/(?P<gameid>\\d+)/$\", consumers.TimerConsumer.as_asgi())\n]",
- "detail": "mygame.routing",
- "documentation": {}
- },
- {
- "label": "urlpatterns",
- "kind": 5,
- "importPath": "mygame.urls",
- "description": "mygame.urls",
- "peekOfCode": "urlpatterns = [\n path(\"\", views.loginView, name=\"loginView\"),\n path(\"lobby/<int:gameid>/<str:username>\", views.lobby, name=\"lobby\"),\n path(\"gamerules/<int:gameid>/\", views.gamerules, name=\"gamerules\"),\n path(\n \"company/<int:gameid>/<str:username>/startGame/\",\n views.startGame,\n name=\"startGame\",\n ),\n path(",
- "detail": "mygame.urls",
- "documentation": {}
- },
- {
- "label": "loginView",
- "kind": 2,
- "importPath": "mygame.views",
- "description": "mygame.views",
- "peekOfCode": "def loginView(request):\n if request.method == \"POST\":\n try:\n form = LoginForm(request.POST)\n if form.is_valid():\n username = form.cleaned_data[\"username\"]\n gameid = form.cleaned_data[\"game_id\"]\n password = form.cleaned_data[\"password\"]\n choice = form.cleaned_data[\"create_join_game\"]\n # Create oder Join angewählt?",
- "detail": "mygame.views",
- "documentation": {}
- },
- {
- "label": "lobby",
- "kind": 2,
- "importPath": "mygame.views",
- "description": "mygame.views",
- "peekOfCode": "def lobby(request, gameid, username):\n game = get_object_or_404(Game, id=gameid)\n if request.method == \"POST\":\n if request.POST.get(\"action\", False) == \"clearlobby\":\n game.clearParticipants(username)\n if request.POST.get(\"action\", False) == \"changesettings\":\n gamesettingsform = GamesettingsForm(\n request.POST,\n initial={\n \"timer\": game.timer.timer,",
- "detail": "mygame.views",
- "documentation": {}
- },
- {
- "label": "gamerules",
- "kind": 2,
- "importPath": "mygame.views",
- "description": "mygame.views",
- "peekOfCode": "def gamerules(request, gameid):\n game = get_object_or_404(Game, id=gameid)\n return render(\n request,\n \"mygame/gamerules.html\",\n {\n \"game\": game,\n },\n )\ndef startGame(request, gameid, username):",
- "detail": "mygame.views",
- "documentation": {}
- },
- {
- "label": "startGame",
- "kind": 2,
- "importPath": "mygame.views",
- "description": "mygame.views",
- "peekOfCode": "def startGame(request, gameid, username):\n game = get_object_or_404(Game, id=gameid)\n game.startGame()\n return redirect(\"company\", gameid=gameid, username=username)\ndef company(request, gameid, username):\n game = get_object_or_404(Game, id=gameid)\n company = get_object_or_404(Company, user=username)\n if request.method == \"POST\":\n if request.POST[\"action\"] == \"next round\":\n gameend = game.processGameround()",
- "detail": "mygame.views",
- "documentation": {}
- },
- {
- "label": "company",
- "kind": 2,
- "importPath": "mygame.views",
- "description": "mygame.views",
- "peekOfCode": "def company(request, gameid, username):\n game = get_object_or_404(Game, id=gameid)\n company = get_object_or_404(Company, user=username)\n if request.method == \"POST\":\n if request.POST[\"action\"] == \"next round\":\n gameend = game.processGameround()\n if gameend:\n return redirect(\"standings\", gameid=gameid, username=username)\n else:\n eventtuple = company.getEvent(0, \"default\")",
- "detail": "mygame.views",
- "documentation": {}
- },
- {
- "label": "companyWorker",
- "kind": 2,
- "importPath": "mygame.views",
- "description": "mygame.views",
- "peekOfCode": "def companyWorker(request, gameid, username, workerid):\n game = get_object_or_404(Game, id=gameid)\n company = get_object_or_404(Company, user=username)\n try:\n viewedworker = Worker.objects.get(id=workerid)\n except:\n return render(\n request,\n \"mygame/company.html\",\n {\"game\": game, \"company\": company},",
- "detail": "mygame.views",
- "documentation": {}
- },
- {
- "label": "companyOrder",
- "kind": 2,
- "importPath": "mygame.views",
- "description": "mygame.views",
- "peekOfCode": "def companyOrder(request, gameid, username, orderid):\n game = get_object_or_404(Game, id=gameid)\n company = get_object_or_404(Company, user=username)\n try:\n viewedorder = get_object_or_404(Order, id=orderid)\n except:\n return render(\n request,\n \"mygame/company.html\",\n {\"game\": game, \"company\": company},",
- "detail": "mygame.views",
- "documentation": {}
- },
- {
- "label": "companyTraining",
- "kind": 2,
- "importPath": "mygame.views",
- "description": "mygame.views",
- "peekOfCode": "def companyTraining(request, gameid, username, workerid):\n game = get_object_or_404(Game, id=gameid)\n company = get_object_or_404(Company, user=username)\n try:\n trainworker = get_object_or_404(Worker, id=workerid)\n except:\n return render(\n request,\n \"mygame/company.html\",\n {\"game\": game, \"company\": company},",
- "detail": "mygame.views",
- "documentation": {}
- },
- {
- "label": "companyAction",
- "kind": 2,
- "importPath": "mygame.views",
- "description": "mygame.views",
- "peekOfCode": "def companyAction(request, gameid, username, actionid):\n game = get_object_or_404(Game, id=gameid)\n company = get_object_or_404(Company, user=username)\n # hier schauen welche action es ist dann aus entsprechender table holen\n try:\n viewedaction = get_object_or_404(Action, id=actionid)\n except:\n return render(\n request,\n \"mygame/company.html\",",
- "detail": "mygame.views",
- "documentation": {}
- },
- {
- "label": "companyEvent",
- "kind": 2,
- "importPath": "mygame.views",
- "description": "mygame.views",
- "peekOfCode": "def companyEvent(request, gameid, username, eventnumber):\n game = get_object_or_404(Game, id=gameid)\n company = get_object_or_404(Company, user=username)\n if request.method == \"POST\":\n if request.POST.get(\"action\", False) == \"previous\":\n eventresult = company.getEvent(eventnumber, \"previous\")\n if request.POST.get(\"action\", False) == \"next\":\n eventresult = company.getEvent(eventnumber, \"next\")\n else:\n eventresult = company.getEvent(eventnumber, \"default\")",
- "detail": "mygame.views",
- "documentation": {}
- },
- {
- "label": "companyEventSetModel",
- "kind": 2,
- "importPath": "mygame.views",
- "description": "mygame.views",
- "peekOfCode": "def companyEventSetModel(request, gameid, username, eventid, modelnumber):\n game = get_object_or_404(Game, id=gameid)\n company = get_object_or_404(Company, user=username)\n engineeringmodels = EngineeringModel.objects.all()\n if request.method == \"POST\":\n if request.POST.get(\"action\", False) == \"previous\":\n modelnumber -= 1\n if modelnumber < 0:\n modelnumber = engineeringmodels.count() - 1\n engineeringmodel = engineeringmodels[modelnumber]",
- "detail": "mygame.views",
- "documentation": {}
- },
- {
- "label": "companySpecialOrder",
- "kind": 2,
- "importPath": "mygame.views",
- "description": "mygame.views",
- "peekOfCode": "def companySpecialOrder(request, gameid, username, specialorderid):\n game = get_object_or_404(Game, id=gameid)\n company = get_object_or_404(Company, user=username)\n if request.method == \"POST\":\n specialorder = SpecialOrder.objects.get(id=specialorderid)\n for order in company.orders.all():\n if order.specialorder.id == specialorderid:\n order = order\n if request.POST.get(\"action\", False) == \"handle\":\n event = specialorder.handle(order=order, company=company, handle=True)",
- "detail": "mygame.views",
- "documentation": {}
- },
- {
- "label": "standings",
- "kind": 2,
- "importPath": "mygame.views",
- "description": "mygame.views",
- "peekOfCode": "def standings(request, gameid, username):\n game = get_object_or_404(Game, id=gameid)\n company = get_object_or_404(Company, user=username)\n leaderboard = game.createLeaderboard()\n return render(\n request,\n \"mygame/standings.html\",\n {\"game\": game, \"company\": company, \"leaderboard\": leaderboard},\n )",
- "detail": "mygame.views",
- "documentation": {}
- },
- {
- "label": "app",
- "kind": 5,
- "importPath": "Webgame.asgi",
- "description": "Webgame.asgi",
- "peekOfCode": "app = get_asgi_application()\nfrom channels.auth import AuthMiddlewareStack\nfrom channels.routing import ProtocolTypeRouter, URLRouter\nfrom channels.security.websocket import AllowedHostsOriginValidator\nfrom channels.routing import ProtocolTypeRouter, URLRouter\nfrom channels.auth import AuthMiddlewareStack\nimport mygame.routing\napplication = ProtocolTypeRouter(\n {\n \"http\": app,",
- "detail": "Webgame.asgi",
- "documentation": {}
- },
- {
- "label": "application",
- "kind": 5,
- "importPath": "Webgame.asgi",
- "description": "Webgame.asgi",
- "peekOfCode": "application = ProtocolTypeRouter(\n {\n \"http\": app,\n \"websocket\": AllowedHostsOriginValidator(\n AuthMiddlewareStack(URLRouter(mygame.routing.websocket_urlpatterns))\n ),\n }\n)",
- "detail": "Webgame.asgi",
- "documentation": {}
- },
- {
- "label": "urlpatterns",
- "kind": 5,
- "importPath": "Webgame.routing",
- "description": "Webgame.routing",
- "peekOfCode": "urlpatterns = [\n # ... andere URLs in deinem Projekt ...\n path(\"mygame/\", include(\"mygame.routing\")),\n]",
- "detail": "Webgame.routing",
- "documentation": {}
- },
- {
- "label": "BASE_DIR",
- "kind": 5,
- "importPath": "Webgame.settings",
- "description": "Webgame.settings",
- "peekOfCode": "BASE_DIR = Path(__file__).resolve().parent.parent\n# Quick-start development settings - unsuitable for production\n# See https://docs.djangoproject.com/en/4.1/howto/deployment/checklist/\n# SECURITY WARNING: keep the secret key used in production secret!\nSECRET_KEY = \"django-insecure-mmfrxsf3o6)_4@caak0h_ldedii4x_(&fhg8b7(hd77bfmlo1#\"\n# SECURITY WARNING: don't run with debug turned on in production!\nDEBUG = True\nALLOWED_HOSTS = [\"*\"]\n# Application definition\nINSTALLED_APPS = [",
- "detail": "Webgame.settings",
- "documentation": {}
- },
- {
- "label": "SECRET_KEY",
- "kind": 5,
- "importPath": "Webgame.settings",
- "description": "Webgame.settings",
- "peekOfCode": "SECRET_KEY = \"django-insecure-mmfrxsf3o6)_4@caak0h_ldedii4x_(&fhg8b7(hd77bfmlo1#\"\n# SECURITY WARNING: don't run with debug turned on in production!\nDEBUG = True\nALLOWED_HOSTS = [\"*\"]\n# Application definition\nINSTALLED_APPS = [\n \"daphne\",\n \"channels\",\n \"polymorphic\",\n \"django.contrib.admin\",",
- "detail": "Webgame.settings",
- "documentation": {}
- },
- {
- "label": "DEBUG",
- "kind": 5,
- "importPath": "Webgame.settings",
- "description": "Webgame.settings",
- "peekOfCode": "DEBUG = True\nALLOWED_HOSTS = [\"*\"]\n# Application definition\nINSTALLED_APPS = [\n \"daphne\",\n \"channels\",\n \"polymorphic\",\n \"django.contrib.admin\",\n \"django.contrib.auth\",\n \"django.contrib.contenttypes\",",
- "detail": "Webgame.settings",
- "documentation": {}
- },
- {
- "label": "ALLOWED_HOSTS",
- "kind": 5,
- "importPath": "Webgame.settings",
- "description": "Webgame.settings",
- "peekOfCode": "ALLOWED_HOSTS = [\"*\"]\n# Application definition\nINSTALLED_APPS = [\n \"daphne\",\n \"channels\",\n \"polymorphic\",\n \"django.contrib.admin\",\n \"django.contrib.auth\",\n \"django.contrib.contenttypes\",\n \"django.contrib.sessions\",",
- "detail": "Webgame.settings",
- "documentation": {}
- },
- {
- "label": "INSTALLED_APPS",
- "kind": 5,
- "importPath": "Webgame.settings",
- "description": "Webgame.settings",
- "peekOfCode": "INSTALLED_APPS = [\n \"daphne\",\n \"channels\",\n \"polymorphic\",\n \"django.contrib.admin\",\n \"django.contrib.auth\",\n \"django.contrib.contenttypes\",\n \"django.contrib.sessions\",\n \"django.contrib.messages\",\n \"django.contrib.staticfiles\",",
- "detail": "Webgame.settings",
- "documentation": {}
- },
- {
- "label": "ASGI_APPLICATION",
- "kind": 5,
- "importPath": "Webgame.settings",
- "description": "Webgame.settings",
- "peekOfCode": "ASGI_APPLICATION = \"Webgame.asgi.application\"\nCHANNEL_LAYERS = {\n \"default\": {\n \"BACKEND\": \"channels.layers.InMemoryChannelLayer\",\n },\n}\nCHANNELS_SETTINGS = {\n \"CHANNELS_WS_PROTOCOL_TIMEOUT\": 5,\n}\nMIDDLEWARE = [",
- "detail": "Webgame.settings",
- "documentation": {}
- },
- {
- "label": "CHANNEL_LAYERS",
- "kind": 5,
- "importPath": "Webgame.settings",
- "description": "Webgame.settings",
- "peekOfCode": "CHANNEL_LAYERS = {\n \"default\": {\n \"BACKEND\": \"channels.layers.InMemoryChannelLayer\",\n },\n}\nCHANNELS_SETTINGS = {\n \"CHANNELS_WS_PROTOCOL_TIMEOUT\": 5,\n}\nMIDDLEWARE = [\n \"django.middleware.security.SecurityMiddleware\",",
- "detail": "Webgame.settings",
- "documentation": {}
- },
- {
- "label": "CHANNELS_SETTINGS",
- "kind": 5,
- "importPath": "Webgame.settings",
- "description": "Webgame.settings",
- "peekOfCode": "CHANNELS_SETTINGS = {\n \"CHANNELS_WS_PROTOCOL_TIMEOUT\": 5,\n}\nMIDDLEWARE = [\n \"django.middleware.security.SecurityMiddleware\",\n \"django.contrib.sessions.middleware.SessionMiddleware\",\n \"django.middleware.common.CommonMiddleware\",\n \"django.middleware.csrf.CsrfViewMiddleware\",\n \"django.contrib.auth.middleware.AuthenticationMiddleware\",\n \"django.contrib.messages.middleware.MessageMiddleware\",",
- "detail": "Webgame.settings",
- "documentation": {}
- },
- {
- "label": "MIDDLEWARE",
- "kind": 5,
- "importPath": "Webgame.settings",
- "description": "Webgame.settings",
- "peekOfCode": "MIDDLEWARE = [\n \"django.middleware.security.SecurityMiddleware\",\n \"django.contrib.sessions.middleware.SessionMiddleware\",\n \"django.middleware.common.CommonMiddleware\",\n \"django.middleware.csrf.CsrfViewMiddleware\",\n \"django.contrib.auth.middleware.AuthenticationMiddleware\",\n \"django.contrib.messages.middleware.MessageMiddleware\",\n \"django.middleware.clickjacking.XFrameOptionsMiddleware\",\n]\nROOT_URLCONF = \"Webgame.urls\"",
- "detail": "Webgame.settings",
- "documentation": {}
- },
- {
- "label": "ROOT_URLCONF",
- "kind": 5,
- "importPath": "Webgame.settings",
- "description": "Webgame.settings",
- "peekOfCode": "ROOT_URLCONF = \"Webgame.urls\"\nTEMPLATES = [\n {\n \"BACKEND\": \"django.template.backends.django.DjangoTemplates\",\n \"DIRS\": [os.path.join(BASE_DIR, \"templates\")],\n \"APP_DIRS\": True,\n \"OPTIONS\": {\n \"context_processors\": [\n \"django.template.context_processors.debug\",\n \"django.template.context_processors.request\",",
- "detail": "Webgame.settings",
- "documentation": {}
- },
- {
- "label": "TEMPLATES",
- "kind": 5,
- "importPath": "Webgame.settings",
- "description": "Webgame.settings",
- "peekOfCode": "TEMPLATES = [\n {\n \"BACKEND\": \"django.template.backends.django.DjangoTemplates\",\n \"DIRS\": [os.path.join(BASE_DIR, \"templates\")],\n \"APP_DIRS\": True,\n \"OPTIONS\": {\n \"context_processors\": [\n \"django.template.context_processors.debug\",\n \"django.template.context_processors.request\",\n \"django.contrib.auth.context_processors.auth\",",
- "detail": "Webgame.settings",
- "documentation": {}
- },
- {
- "label": "WSGI_APPLICATION",
- "kind": 5,
- "importPath": "Webgame.settings",
- "description": "Webgame.settings",
- "peekOfCode": "WSGI_APPLICATION = \"Webgame.wsgi.application\"\n# Database\n# https://docs.djangoproject.com/en/4.1/ref/settings/#databases\nDATABASES = {\n \"default\": {\n \"ENGINE\": \"django.db.backends.sqlite3\",\n \"NAME\": BASE_DIR / \"db.sqlite3\",\n }\n}\n# Password validation",
- "detail": "Webgame.settings",
- "documentation": {}
- },
- {
- "label": "DATABASES",
- "kind": 5,
- "importPath": "Webgame.settings",
- "description": "Webgame.settings",
- "peekOfCode": "DATABASES = {\n \"default\": {\n \"ENGINE\": \"django.db.backends.sqlite3\",\n \"NAME\": BASE_DIR / \"db.sqlite3\",\n }\n}\n# Password validation\n# https://docs.djangoproject.com/en/4.1/ref/settings/#auth-password-validators\nAUTH_PASSWORD_VALIDATORS = [\n {",
- "detail": "Webgame.settings",
- "documentation": {}
- },
- {
- "label": "AUTH_PASSWORD_VALIDATORS",
- "kind": 5,
- "importPath": "Webgame.settings",
- "description": "Webgame.settings",
- "peekOfCode": "AUTH_PASSWORD_VALIDATORS = [\n {\n \"NAME\": \"django.contrib.auth.password_validation.UserAttributeSimilarityValidator\",\n },\n {\n \"NAME\": \"django.contrib.auth.password_validation.MinimumLengthValidator\",\n },\n {\n \"NAME\": \"django.contrib.auth.password_validation.CommonPasswordValidator\",\n },",
- "detail": "Webgame.settings",
- "documentation": {}
- },
- {
- "label": "LANGUAGE_CODE",
- "kind": 5,
- "importPath": "Webgame.settings",
- "description": "Webgame.settings",
- "peekOfCode": "LANGUAGE_CODE = \"en-us\"\nTIME_ZONE = \"UTC\"\nUSE_I18N = True\nUSE_TZ = True\n# Static files (CSS, JavaScript, Images)\n# https://docs.djangoproject.com/en/4.1/howto/static-files/\nSTATIC_URL = \"/static/\"\nSTATIC_ROOT = \"/app/static/\"\n# Default primary key field type\n# https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field",
- "detail": "Webgame.settings",
- "documentation": {}
- },
- {
- "label": "TIME_ZONE",
- "kind": 5,
- "importPath": "Webgame.settings",
- "description": "Webgame.settings",
- "peekOfCode": "TIME_ZONE = \"UTC\"\nUSE_I18N = True\nUSE_TZ = True\n# Static files (CSS, JavaScript, Images)\n# https://docs.djangoproject.com/en/4.1/howto/static-files/\nSTATIC_URL = \"/static/\"\nSTATIC_ROOT = \"/app/static/\"\n# Default primary key field type\n# https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field\nDEFAULT_AUTO_FIELD = \"django.db.models.BigAutoField\"",
- "detail": "Webgame.settings",
- "documentation": {}
- },
- {
- "label": "USE_I18N",
- "kind": 5,
- "importPath": "Webgame.settings",
- "description": "Webgame.settings",
- "peekOfCode": "USE_I18N = True\nUSE_TZ = True\n# Static files (CSS, JavaScript, Images)\n# https://docs.djangoproject.com/en/4.1/howto/static-files/\nSTATIC_URL = \"/static/\"\nSTATIC_ROOT = \"/app/static/\"\n# Default primary key field type\n# https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field\nDEFAULT_AUTO_FIELD = \"django.db.models.BigAutoField\"",
- "detail": "Webgame.settings",
- "documentation": {}
- },
- {
- "label": "USE_TZ",
- "kind": 5,
- "importPath": "Webgame.settings",
- "description": "Webgame.settings",
- "peekOfCode": "USE_TZ = True\n# Static files (CSS, JavaScript, Images)\n# https://docs.djangoproject.com/en/4.1/howto/static-files/\nSTATIC_URL = \"/static/\"\nSTATIC_ROOT = \"/app/static/\"\n# Default primary key field type\n# https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field\nDEFAULT_AUTO_FIELD = \"django.db.models.BigAutoField\"",
- "detail": "Webgame.settings",
- "documentation": {}
- },
- {
- "label": "STATIC_URL",
- "kind": 5,
- "importPath": "Webgame.settings",
- "description": "Webgame.settings",
- "peekOfCode": "STATIC_URL = \"/static/\"\nSTATIC_ROOT = \"/app/static/\"\n# Default primary key field type\n# https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field\nDEFAULT_AUTO_FIELD = \"django.db.models.BigAutoField\"",
- "detail": "Webgame.settings",
- "documentation": {}
- },
- {
- "label": "STATIC_ROOT",
- "kind": 5,
- "importPath": "Webgame.settings",
- "description": "Webgame.settings",
- "peekOfCode": "STATIC_ROOT = \"/app/static/\"\n# Default primary key field type\n# https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field\nDEFAULT_AUTO_FIELD = \"django.db.models.BigAutoField\"",
- "detail": "Webgame.settings",
- "documentation": {}
- },
- {
- "label": "DEFAULT_AUTO_FIELD",
- "kind": 5,
- "importPath": "Webgame.settings",
- "description": "Webgame.settings",
- "peekOfCode": "DEFAULT_AUTO_FIELD = \"django.db.models.BigAutoField\"",
- "detail": "Webgame.settings",
- "documentation": {}
- },
- {
- "label": "urlpatterns",
- "kind": 5,
- "importPath": "Webgame.urls",
- "description": "Webgame.urls",
- "peekOfCode": "urlpatterns = [\n path(\"admin/\", admin.site.urls),\n path(\"mygame/\", include(\"mygame.urls\")),\n]\nif settings.DEBUG:\n urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)",
- "detail": "Webgame.urls",
- "documentation": {}
- },
- {
- "label": "application",
- "kind": 5,
- "importPath": "Webgame.wsgi",
- "description": "Webgame.wsgi",
- "peekOfCode": "application = get_wsgi_application()",
- "detail": "Webgame.wsgi",
- "documentation": {}
- },
- {
- "label": "main",
- "kind": 2,
- "importPath": "manage",
- "description": "manage",
- "peekOfCode": "def main():\n \"\"\"Run administrative tasks.\"\"\"\n os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Webgame.settings')\n try:\n from django.core.management import execute_from_command_line\n except ImportError as exc:\n raise ImportError(\n \"Couldn't import Django. Are you sure it's installed and \"\n \"available on your PYTHONPATH environment variable? Did you \"\n \"forget to activate a virtual environment?\"",
- "detail": "manage",
- "documentation": {}
- }
- ]
|