Browse Source

Zwischenstand erster Praktikumstag: Aufgaben 1-3 funktionieren, Aufgabe 4 ist noch zu implementieren

master
Jonka Winkle 5 years ago
parent
commit
f226586b89

+ 3
- 0
.idea/dictionaries/Lenovo.xml View File

@@ -0,0 +1,3 @@
<component name="ProjectDictionaryState">
<dictionary name="Lenovo" />
</component>

+ 9
- 3
.idea/inspectionProfiles/Project_Default.xml View File

@@ -4,12 +4,18 @@
<inspection_tool class="PyCompatibilityInspection" enabled="true" level="WARNING" enabled_by_default="true">
<option name="ourVersions">
<value>
<list size="2">
<item index="0" class="java.lang.String" itemvalue="2.7" />
<item index="1" class="java.lang.String" itemvalue="3.7" />
<list size="1">
<item index="0" class="java.lang.String" itemvalue="3.7" />
</list>
</value>
</option>
</inspection_tool>
<inspection_tool class="PyPep8Inspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
<inspection_tool class="PyPep8NamingInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
<inspection_tool class="SpellCheckingInspection" enabled="false" level="TYPO" enabled_by_default="false">
<option name="processCode" value="true" />
<option name="processLiterals" value="true" />
<option name="processComments" value="true" />
</inspection_tool>
</profile>
</component>

+ 135
- 116
.idea/workspace.xml View File

@@ -2,7 +2,12 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="39276d0a-00e3-48d0-9c0e-a0d08278b21f" name="Default Changelist" comment="Fertiges PONG-Spiel (Beta-Version zu finden unter &quot;Tag2_EigenesSpiel.py&quot;)">
<change afterPath="$PROJECT_DIR$/.idea/inspectionProfiles/Project_Default.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/.idea/dictionaries/Lenovo.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Aufg3_YingUndYang_Server.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Yang_File.html" afterDir="false" />
<change afterPath="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Ying_File.html" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/inspectionProfiles/Project_Default.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/inspectionProfiles/Project_Default.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="SHOW_DIALOG" value="false" />
@@ -17,6 +22,7 @@
<SUITE FILE_PATH="coverage/Web__und_Skriptsprachen__Python_Blockkurs_$Tag2_EigenesSpiel.coverage" NAME="Tag2_EigenesSpiel Coverage Results" MODIFIED="1538827299769" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
<SUITE FILE_PATH="coverage/Web__und_Skriptsprachen__Python_Blockkurs_$AB1_Aufg5.coverage" NAME="AB1_Aufg5 Coverage Results" MODIFIED="1538811804618" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
<SUITE FILE_PATH="coverage/Web__und_Skriptsprachen__Python_Blockkurs_$FirstProgram.coverage" NAME="FirstProgram Coverage Results" MODIFIED="1538766705533" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
<SUITE FILE_PATH="coverage/Web__und_Skriptsprachen__Python_Blockkurs_$Aufg3_YingUndYang_Server.coverage" NAME="Aufg3_YingUndYang_Server Coverage Results" MODIFIED="1539861830668" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung" />
</component>
<component name="DatabaseView">
<option name="SHOW_INTERMEDIATE" value="true" />
@@ -36,7 +42,7 @@
<session id="2005159020">
<usages-collector id="statistics.lifecycle.project">
<counts>
<entry key="project.closed" value="17" />
<entry key="project.closed" value="18" />
<entry key="project.open.time.1" value="1" />
<entry key="project.open.time.10" value="3" />
<entry key="project.open.time.11" value="3" />
@@ -44,88 +50,81 @@
<entry key="project.open.time.13" value="1" />
<entry key="project.open.time.14" value="3" />
<entry key="project.open.time.15" value="1" />
<entry key="project.open.time.16" value="1" />
<entry key="project.open.time.59" value="1" />
<entry key="project.open.time.8" value="2" />
<entry key="project.open.time.9" value="1" />
<entry key="project.opened" value="18" />
<entry key="project.opened" value="19" />
</counts>
</usages-collector>
<usages-collector id="statistics.file.extensions.open">
<counts>
<entry key="css" value="2" />
<entry key="html" value="4" />
<entry key="js" value="1" />
<entry key="py" value="8" />
<entry key="htm" value="2" />
<entry key="html" value="10" />
<entry key="js" value="2" />
<entry key="py" value="11" />
<entry key="txt" value="1" />
</counts>
</usages-collector>
<usages-collector id="statistics.file.types.open">
<counts>
<entry key="CSS" value="2" />
<entry key="HTML" value="4" />
<entry key="JavaScript" value="1" />
<entry key="HTML" value="12" />
<entry key="JavaScript" value="2" />
<entry key="PLAIN_TEXT" value="1" />
<entry key="Python" value="8" />
<entry key="Python" value="11" />
</counts>
</usages-collector>
<usages-collector id="statistics.file.extensions.edit">
<counts>
<entry key="css" value="197" />
<entry key="html" value="789" />
<entry key="html" value="925" />
<entry key="js" value="1018" />
<entry key="py" value="7455" />
<entry key="py" value="8566" />
<entry key="txt" value="126" />
</counts>
</usages-collector>
<usages-collector id="statistics.file.types.edit">
<counts>
<entry key="CSS" value="197" />
<entry key="HTML" value="789" />
<entry key="HTML" value="925" />
<entry key="JavaScript" value="1018" />
<entry key="PLAIN_TEXT" value="126" />
<entry key="Python" value="7455" />
<entry key="Python" value="8566" />
</counts>
</usages-collector>
</session>
</component>
<component name="FileEditorManager">
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/Tag2_EigenesSpiel.py">
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Aufg3_YingUndYang_Server.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1037">
<caret line="61" column="4" selection-start-line="61" selection-start-column="4" selection-end-line="63" selection-end-column="42" />
<state relative-caret-position="86">
<caret line="28" column="39" lean-forward="true" selection-start-line="28" selection-start-column="39" selection-end-line="28" selection-end-column="39" />
<folding>
<marker date="1538827277725" expanded="true" signature="32:37" ph="..." />
<marker date="1538827277725" expanded="true" signature="213:307" ph="..." />
<marker date="1538827277725" expanded="true" signature="322:327" ph="..." />
<marker date="1538827277725" expanded="true" signature="462:654" ph="..." />
<marker date="1538827277725" expanded="true" signature="812:814" ph="..." />
<element signature="e#0#18#0" expanded="true" />
<marker date="1539861823498" expanded="true" signature="96:2223" ph="..." />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/Pong.py">
<entry file="file://$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Ying_File.html">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1564">
<caret line="94" column="8" selection-start-line="94" selection-start-column="8" selection-end-line="94" selection-end-column="8" />
<folding>
<element signature="e#0#13#0" expanded="true" />
<marker date="1539359571752" expanded="true" signature="872:1094" ph="..." />
<marker date="1539359571752" expanded="true" signature="1117:1174" ph="..." />
<marker date="1539359571752" expanded="true" signature="2523:2842" ph="..." />
</folding>
<state relative-caret-position="119">
<caret line="7" column="4" selection-start-line="7" selection-start-column="4" selection-end-line="10" selection-end-column="8" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/AB4_Aufg1.html">
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Yang_File.html">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="561">
<caret line="33" column="7" lean-forward="true" selection-start-line="33" selection-start-column="7" selection-end-line="33" selection-end-column="7" />
<state relative-caret-position="153">
<caret line="9" column="55" selection-start-line="9" selection-start-column="55" selection-end-line="9" selection-end-column="55" />
</state>
</provider>
</entry>
@@ -135,10 +134,10 @@
<component name="FileTemplateManagerImpl">
<option name="RECENT_TEMPLATES">
<list>
<option value="Python Script" />
<option value="HTML File" />
<option value="CSS File" />
<option value="JavaScript File" />
<option value="Python Script" />
<option value="HTML File" />
</list>
</option>
</component>
@@ -161,6 +160,9 @@
<option value="$PROJECT_DIR$/Format_zu_AB5.css" />
<option value="$PROJECT_DIR$/AB4_Aufg1.html" />
<option value="$PROJECT_DIR$/Popups_zu_AB6.js" />
<option value="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Ying_File.html" />
<option value="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Yang_File.html" />
<option value="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Aufg3_YingUndYang_Server.py" />
</list>
</option>
</component>
@@ -176,6 +178,38 @@
<option name="width" value="1400" />
<option name="height" value="820" />
</component>
<component name="ProjectInspectionProfilesVisibleTreeState">
<entry key="Project Default">
<profile-state>
<expanded-state>
<State />
<State>
<id>Bitwise operation issuesJavaScript</id>
</State>
<State>
<id>DOM issuesJavaScript</id>
</State>
<State>
<id>Django</id>
</State>
<State>
<id>JavaScript</id>
</State>
<State>
<id>Python</id>
</State>
<State>
<id>SQL</id>
</State>
</expanded-state>
<selected-state>
<State>
<id>PyCompatibilityInspection</id>
</State>
</selected-state>
</profile-state>
</entry>
</component>
<component name="ProjectLevelVcsManager" settingsEditedManually="true">
<ConfirmationsSetting value="2" id="Add" />
</component>
@@ -184,6 +218,7 @@
<foldersAlwaysOnTop value="true" />
</navigator>
<panes>
<pane id="Scope" />
<pane id="ProjectPane">
<subPane>
<expand>
@@ -191,11 +226,15 @@
<item name="Web- und Skriptsprachen (Python-Blockkurs)" type="b2602c69:ProjectViewProjectNode" />
<item name="Web- und Skriptsprachen (Python-Blockkurs)" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="Web- und Skriptsprachen (Python-Blockkurs)" type="b2602c69:ProjectViewProjectNode" />
<item name="Web- und Skriptsprachen (Python-Blockkurs)" type="462c0819:PsiDirectoryNode" />
<item name="mEIM-Praktikum_Webentwicklung" type="462c0819:PsiDirectoryNode" />
</path>
</expand>
<select />
</subPane>
</pane>
<pane id="Scope" />
</panes>
</component>
<component name="PropertiesComponent">
@@ -203,7 +242,7 @@
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
<property name="list.type.of.created.stylesheet" value="CSS" />
<property name="settings.editor.selected.configurable" value="com.jetbrains.python.configuration.PyActiveSdkModuleConfigurable" />
<property name="settings.editor.selected.configurable" value="Errors" />
</component>
<component name="RunDashboard">
<option name="ruleStates">
@@ -217,8 +256,8 @@
</list>
</option>
</component>
<component name="RunManager" selected="Python.Pong">
<configuration name="AB1_Aufg3" type="PythonConfigurationType" factoryName="Python" temporary="true">
<component name="RunManager" selected="Python.Aufg3_YingUndYang_Server">
<configuration name="AB1_Aufg5" type="PythonConfigurationType" factoryName="Python" temporary="true">
<module name="Web- und Skriptsprachen (Python-Blockkurs)" />
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
@@ -231,7 +270,7 @@
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/AB1_Aufg3.py" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/AB1_Aufg5.py" />
<option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" />
@@ -240,7 +279,7 @@
<option name="INPUT_FILE" value="" />
<method v="2" />
</configuration>
<configuration name="AB1_Aufg5" type="PythonConfigurationType" factoryName="Python" temporary="true">
<configuration name="Aufg3_YingUndYang_Server" type="PythonConfigurationType" factoryName="Python" temporary="true">
<module name="Web- und Skriptsprachen (Python-Blockkurs)" />
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
@@ -248,12 +287,12 @@
<env name="PYTHONUNBUFFERED" value="1" />
</envs>
<option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung" />
<option name="IS_MODULE_SDK" value="true" />
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/AB1_Aufg5.py" />
<option name="SCRIPT_NAME" value="C:\JONKA\Uni\7. Semester (Medizintechnik OHM Nürnberg)\Vorlesung Informationssysteme in der medizintechnik (MEIM)\Web- und Skriptsprachen (Python-Blockkurs)\mEIM-Praktikum_Webentwicklung\Tag1_15.10.2018\Aufg3_YingUndYang_Server.py" />
<option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" />
@@ -329,19 +368,19 @@
<method v="2" />
</configuration>
<list>
<item itemvalue="Python.AB1_Aufg3" />
<item itemvalue="Python.AB1_Aufg5" />
<item itemvalue="Python.Tag2_MittelwertAusVariablerAnzahlParameter" />
<item itemvalue="Python.Tag2_EigenesSpiel" />
<item itemvalue="Python.Pong" />
<item itemvalue="Python.Aufg3_YingUndYang_Server" />
</list>
<recent_temporary>
<list>
<item itemvalue="Python.Aufg3_YingUndYang_Server" />
<item itemvalue="Python.Pong" />
<item itemvalue="Python.Tag2_EigenesSpiel" />
<item itemvalue="Python.Tag2_MittelwertAusVariablerAnzahlParameter" />
<item itemvalue="Python.AB1_Aufg5" />
<item itemvalue="Python.AB1_Aufg3" />
</list>
</recent_temporary>
</component>
@@ -396,9 +435,8 @@
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="1616" height="876" extended-state="6" />
<editor active="true" />
<layout>
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.22750643" />
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.23071979" />
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
<window_info id="Favorites" order="2" side_tool="true" />
<window_info anchor="bottom" id="Message" order="0" />
@@ -409,16 +447,16 @@
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
<window_info anchor="bottom" id="TODO" order="6" />
<window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" />
<window_info anchor="bottom" id="Version Control" order="8" show_stripe_button="false" />
<window_info anchor="bottom" id="Version Control" order="8" weight="0.32974428" />
<window_info anchor="bottom" id="Database Changes" order="9" show_stripe_button="false" />
<window_info anchor="bottom" id="Event Log" order="10" side_tool="true" weight="0.32974428" />
<window_info anchor="bottom" id="Terminal" order="11" weight="0.32896653" />
<window_info anchor="bottom" id="Python Console" order="12" weight="0.32896653" />
<window_info anchor="bottom" id="Python Console" order="12" weight="0.32839838" />
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
<window_info anchor="right" id="SciView" order="3" weight="0.32969153" />
<window_info anchor="right" x="0" y="0" width="300" height="620" id="Documentation" order="4" side_tool="true" weight="0.32985073" />
<window_info anchor="right" auto_hide="true" id="SciView" order="3" show_stripe_button="false" type="FLOATING" weight="0.32969153" />
<window_info anchor="right" x="0" y="0" width="300" height="620" id="Documentation" order="4" side_tool="true" weight="0.32969153" />
<window_info anchor="right" id="Database" order="5" weight="0.32969153" />
</layout>
<layout-to-restore>
@@ -505,55 +543,52 @@
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/FirstProgramm.py.txt" />
<entry file="file://$PROJECT_DIR$/AB1_Aufg2.py">
<entry file="file://$PROJECT_DIR$/AB1_Aufg2.py" />
<entry file="file://$PROJECT_DIR$/AB1_Aufg3.py" />
<entry file="file://$PROJECT_DIR$/AB1_Aufg4.py" />
<entry file="file://$PROJECT_DIR$/AB1_Aufg5.py" />
<entry file="file://$PROJECT_DIR$/FirstProgram.py" />
<entry file="file://$PROJECT_DIR$/Tag2_MittelwertAusVariablerAnzahlParameter.py" />
<entry file="file://$APPLICATION_HOME_DIR$/helpers/pydev/_pydev_imps/_pydev_execfile.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="34">
<caret line="2" column="32" selection-start-line="2" selection-start-column="32" selection-end-line="2" selection-end-column="32" />
<state relative-caret-position="289">
<caret line="17" selection-start-line="17" selection-end-line="17" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/AB1_Aufg3.py">
<entry file="file://$PROJECT_DIR$/formatiert.css">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="187">
<caret line="11" selection-start-line="11" selection-end-line="11" />
<state relative-caret-position="17">
<caret line="1" column="15" selection-start-line="1" selection-start-column="15" selection-end-line="1" selection-end-column="15" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/AB1_Aufg4.py">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/AB1_Aufg5.py">
<entry file="file://$PROJECT_DIR$/Format_zu_AB5.css">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="153">
<caret line="9" column="17" selection-start-line="9" selection-start-column="17" selection-end-line="9" selection-end-column="17" />
<state relative-caret-position="561">
<caret line="33" column="22" selection-start-line="33" selection-start-column="22" selection-end-line="33" selection-end-column="22" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/FirstProgram.py">
<provider selected="true" editor-type-id="text-editor">
<state>
<caret column="25" selection-start-column="25" selection-end-column="25" />
</state>
</provider>
<entry file="file://$PROJECT_DIR$/Tag2_EigenesSpiel.py" />
<entry file="file://$PROJECT_DIR$/Pong.py" />
<entry file="file://$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Aufg2_Sockets_Server.py">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/Tag2_MittelwertAusVariablerAnzahlParameter.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="119">
<caret line="7" column="5" selection-start-line="7" selection-start-column="5" selection-end-line="7" selection-end-column="5" />
</state>
</provider>
<entry file="file://$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Aufg2_Sockets_Client.py">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$APPLICATION_HOME_DIR$/helpers/pydev/_pydev_imps/_pydev_execfile.py">
<entry file="file://$PROJECT_DIR$/Popups_zu_AB6.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="289">
<caret line="17" selection-start-line="17" selection-end-line="17" />
<state relative-caret-position="136">
<caret line="8" column="33" selection-start-line="8" selection-start-column="33" selection-end-line="8" selection-end-column="33" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/formatiert.css">
<entry file="file://$PROJECT_DIR$/AB4_Aufg1.html">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="17">
<caret line="1" column="15" selection-start-line="1" selection-start-column="15" selection-end-line="1" selection-end-column="15" />
<state relative-caret-position="371">
<caret line="33" column="7" selection-start-line="33" selection-start-column="7" selection-end-line="33" selection-end-column="7" />
</state>
</provider>
</entry>
@@ -564,58 +599,42 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/AB4_Aufg2.html">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="255">
<caret line="15" column="8" selection-start-line="15" selection-start-column="8" selection-end-line="15" selection-end-column="8" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Format_zu_AB5.css">
<entry file="file://$PROJECT_DIR$/LangesDoc.htm">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="561">
<caret line="33" column="22" selection-start-line="33" selection-start-column="22" selection-end-line="33" selection-end-column="22" />
<state relative-caret-position="68">
<caret line="4" column="32" lean-forward="true" selection-start-line="4" selection-start-column="32" selection-end-line="4" selection-end-column="107" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Popups_zu_AB6.js">
<entry file="file://$PROJECT_DIR$/AB4_Aufg2.html">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="136">
<caret line="8" column="33" selection-start-line="8" selection-start-column="33" selection-end-line="8" selection-end-column="33" />
<state relative-caret-position="255">
<caret line="15" column="8" selection-start-line="15" selection-start-column="8" selection-end-line="15" selection-end-column="8" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Tag2_EigenesSpiel.py">
<entry file="file://$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Aufg3_YingUndYang_Server.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1037">
<caret line="61" column="4" selection-start-line="61" selection-start-column="4" selection-end-line="63" selection-end-column="42" />
<state relative-caret-position="86">
<caret line="28" column="39" lean-forward="true" selection-start-line="28" selection-start-column="39" selection-end-line="28" selection-end-column="39" />
<folding>
<marker date="1538827277725" expanded="true" signature="32:37" ph="..." />
<marker date="1538827277725" expanded="true" signature="213:307" ph="..." />
<marker date="1538827277725" expanded="true" signature="322:327" ph="..." />
<marker date="1538827277725" expanded="true" signature="462:654" ph="..." />
<marker date="1538827277725" expanded="true" signature="812:814" ph="..." />
<element signature="e#0#18#0" expanded="true" />
<marker date="1539861823498" expanded="true" signature="96:2223" ph="..." />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Pong.py">
<entry file="file://$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Ying_File.html">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1564">
<caret line="94" column="8" selection-start-line="94" selection-start-column="8" selection-end-line="94" selection-end-column="8" />
<folding>
<element signature="e#0#13#0" expanded="true" />
<marker date="1539359571752" expanded="true" signature="872:1094" ph="..." />
<marker date="1539359571752" expanded="true" signature="1117:1174" ph="..." />
<marker date="1539359571752" expanded="true" signature="2523:2842" ph="..." />
</folding>
<state relative-caret-position="119">
<caret line="7" column="4" selection-start-line="7" selection-start-column="4" selection-end-line="10" selection-end-column="8" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/AB4_Aufg1.html">
<entry file="file://$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Yang_File.html">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="561">
<caret line="33" column="7" lean-forward="true" selection-start-line="33" selection-start-column="7" selection-end-line="33" selection-end-column="7" />
<state relative-caret-position="153">
<caret line="9" column="55" selection-start-line="9" selection-start-column="55" selection-end-line="9" selection-end-column="55" />
</state>
</provider>
</entry>

mEIM-Praktikum_Webentwicklung/Aufg1_Sockets_Client.py → mEIM-Praktikum_Webentwicklung/Tag1_15.10.2018/Aufg1_Sockets_Client.py View File


mEIM-Praktikum_Webentwicklung/Aufg1_Sockets_Server.py → mEIM-Praktikum_Webentwicklung/Tag1_15.10.2018/Aufg1_Sockets_Server.py View File


mEIM-Praktikum_Webentwicklung/Aufg2_Sockets_Client.py → mEIM-Praktikum_Webentwicklung/Tag1_15.10.2018/Aufg2_Sockets_Client.py View File


mEIM-Praktikum_Webentwicklung/Aufg2_Sockets_Server.py → mEIM-Praktikum_Webentwicklung/Tag1_15.10.2018/Aufg2_Sockets_Server.py View File


+ 57
- 0
mEIM-Praktikum_Webentwicklung/Tag1_15.10.2018/Aufg3_YingUndYang_Server.py View File

@@ -0,0 +1,57 @@
import http.server
import urllib.parse

class MyOwnHandler(http.server.BaseHTTPRequestHandler):

def do_GET(self):
self.send_response(200)
self.end_headers()
parsed = urllib.parse.urlparse(self.path)
print("Geparsed wurde: ", parsed)

myOwnPath = parsed.path
print("Variable myOwnath ist :", myOwnPath)

nameOfMyOwnPath = myOwnPath[1:4].upper() #schneidet "/" am Anfang ab und verwandelt "yang" zu "YANG" bzw "ying" zu "YING, damit Titel des HTML-Files später "YANG_File" bzw "YING_File" ist
MyOwnQuery = parsed.query

msg_to_return = f"<html><head><title>{nameOfMyOwnPath}_File</title></head>"

if myOwnPath == "/Ying":
msg_to_return += "<body><p>This is the Ying-page.</p>"
msg_to_return += f"<p>You accessed path: {myOwnPath}</p>"
msg_to_return += '<a href="Yang">Go to Yang-Page</a>'
msg_to_return += "</body></html>"

if myOwnPath == "/Yang":
msg_to_return += "<body><p>This is the Yang-page.</p>"
msg_to_return += f"<p>You accessed path: {myOwnPath}</p>"
msg_to_return += '<a href="Ying">Go to Ying-Page</a>'
msg_to_return += "</body></html>"

self.wfile.write(msg_to_return.encode("utf-8"))


# self.wfile.write(f"<html><head><title>{nameOfMyOwnPath}_File</title></head>".encode('utf-8'))
#
# if myOwnPath == "/Ying":
# self.wfile.write("<body><p>This is the Ying-page.</p>".encode('utf-8'))
# self.wfile.write(f"<p>You accessed path: {myOwnPath}</p>".encode('utf-8'))
# self.wfile.write('<a href="YANG_File">Go to Yang-Page</a>'.encode('utf-8'))
# self.wfile.write("</body></html>".encode('utf-8'))
# self.wfile.close()
#
# if myOwnPath == "/Yang":
# self.wfile.write("<body><p>Sie sind auf der Yang-Seite.</p>".encode('utf-8'))
# self.wfile.write(f"<p>Eigener Pfad: {myOwnPath}</p>".encode('utf-8'))
# self.wfile.write('<a href="YING_File">Gehe zur Ying-Seite</a>'.encode('utf-8'))
# self.wfile.write("</body></html>".encode('utf-8'))
# self.wfile.close()


port = 22233
handler = MyOwnHandler
address = ('', port)

myserver = http.server.HTTPServer(address, handler)
myserver.serve_forever()

+ 13
- 0
mEIM-Praktikum_Webentwicklung/Tag1_15.10.2018/Yang_File.html View File

@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Yang_File</title>
</head>
<body>
<p>
Sie sind auf der Yang-Page :P
<a href="http://localhost:22233/ying"> Gehe zur Ying-Seite</a>
</p>
</body>
</html>

+ 14
- 0
mEIM-Praktikum_Webentwicklung/Tag1_15.10.2018/Ying_File.html View File

@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Ying_File</title>
</head>
<body>
<p>
Sie sind auf der Ying-Page :-)
<a href="http://localhost:22233/yang"> Gehe zu Yang-Page</a>
</p>

</body>
</html>

Loading…
Cancel
Save