+++ /dev/null
-*.pyc
-*.swp
-*.log
-cache/??
-osqa.wsgi
-nbproject
-settings_local.py
-.idea
-*.iml
-env
-nbproject
-pip-log.txt
-*.zip
-tmp/*
-forum/upfiles/[^R]*
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>\r
-<project version="4">\r
- <component name="AntConfiguration">\r
- <defaultAnt bundledAnt="true" />\r
- </component>\r
-</project>\r
-\r
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>\r
-<project version="4">\r
- <component name="CompilerConfiguration">\r
- <option name="DEFAULT_COMPILER" value="Javac" />\r
- <resourceExtensions>\r
- <entry name=".+\.(properties|xml|html|dtd|tld)" />\r
- <entry name=".+\.(gif|png|jpeg|jpg)" />\r
- </resourceExtensions>\r
- <wildcardResourcePatterns>\r
- <entry name="?*.properties" />\r
- <entry name="?*.xml" />\r
- <entry name="?*.gif" />\r
- <entry name="?*.png" />\r
- <entry name="?*.jpeg" />\r
- <entry name="?*.jpg" />\r
- <entry name="?*.html" />\r
- <entry name="?*.dtd" />\r
- <entry name="?*.tld" />\r
- <entry name="?*.ftl" />\r
- </wildcardResourcePatterns>\r
- <annotationProcessing enabled="false" useClasspath="true" />\r
- </component>\r
-</project>\r
-\r
+++ /dev/null
-<component name="CopyrightManager">\r
- <settings default="">\r
- <module2copyright />\r
- </settings>\r
-</component>
\ No newline at end of file
+++ /dev/null
-<component name="ProjectDictionaryState">\r
- <dictionary name="Fatima" />\r
-</component>
\ No newline at end of file
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>\r
-<project version="4">\r
- <component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />\r
-</project>\r
-\r
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>\r
-<project version="4">\r
- <component name="AnalysisProjectProfileManager">\r
- <option name="PROJECT_PROFILE" />\r
- <option name="USE_PROJECT_LEVEL_SETTINGS" value="false" />\r
- <list size="0" />\r
- </component>\r
- <component name="Archetypes.Configuration">\r
- <option name="archetypesFileLocation" value="archetypes.xml" />\r
- <option name="workingDirectory" value="" />\r
- </component>\r
- <component name="CCaseConfig">\r
- <option name="checkoutReserved" value="false" />\r
- <option name="markExternalChangeAsUpToDate" value="true" />\r
- <option name="checkInUseHijack" value="true" />\r
- <option name="useUcmModel" value="true" />\r
- <option name="isOffline" value="false" />\r
- <option name="synchOutside" value="false" />\r
- <option name="isHistoryResticted" value="true" />\r
- <option name="useIdenticalSwitch" value="true" />\r
- <option name="synchActivitiesOnRefresh" value="true" />\r
- <option name="lastScr" value="" />\r
- <option name="scrTextFileName" value="" />\r
- <option name="historyRevisionsNumber" value="4" />\r
- </component>\r
- <component name="DaemonCodeAnalyzer">\r
- <disable_hints />\r
- </component>\r
- <component name="DebuggerManager">\r
- <breakpoint_any>\r
- <breakpoint>\r
- <option name="NOTIFY_CAUGHT" value="true" />\r
- <option name="NOTIFY_UNCAUGHT" value="true" />\r
- <option name="ENABLED" value="false" />\r
- <option name="LOG_ENABLED" value="false" />\r
- <option name="LOG_EXPRESSION_ENABLED" value="false" />\r
- <option name="SUSPEND_POLICY" value="SuspendAll" />\r
- <option name="COUNT_FILTER_ENABLED" value="false" />\r
- <option name="COUNT_FILTER" value="0" />\r
- <option name="CONDITION_ENABLED" value="false" />\r
- <option name="CLASS_FILTERS_ENABLED" value="false" />\r
- <option name="INSTANCE_FILTERS_ENABLED" value="false" />\r
- <option name="CONDITION" value="" />\r
- <option name="LOG_MESSAGE" value="" />\r
- </breakpoint>\r
- <breakpoint>\r
- <option name="NOTIFY_CAUGHT" value="true" />\r
- <option name="NOTIFY_UNCAUGHT" value="true" />\r
- <option name="ENABLED" value="false" />\r
- <option name="LOG_ENABLED" value="false" />\r
- <option name="LOG_EXPRESSION_ENABLED" value="false" />\r
- <option name="SUSPEND_POLICY" value="SuspendAll" />\r
- <option name="COUNT_FILTER_ENABLED" value="false" />\r
- <option name="COUNT_FILTER" value="0" />\r
- <option name="CONDITION_ENABLED" value="false" />\r
- <option name="CLASS_FILTERS_ENABLED" value="false" />\r
- <option name="INSTANCE_FILTERS_ENABLED" value="false" />\r
- <option name="CONDITION" value="" />\r
- <option name="LOG_MESSAGE" value="" />\r
- </breakpoint>\r
- </breakpoint_any>\r
- <breakpoint_rules />\r
- <ui_properties />\r
- </component>\r
- <component name="DependencyValidationManager">\r
- <option name="SKIP_IMPORT_STATEMENTS" value="false" />\r
- </component>\r
- <component name="HandyEdit.TapestrySupport" tapestryProject="false" askEnableTapestry="true" componentSpec="true">\r
- <locations pageRoot="" componentRoot="" applicationFile="" pagePropertiesRoot="" />\r
- <packages page="" component="" />\r
- <completion properties="true" methods="false" htmlAttributes="true" />\r
- <toolWindows htmlAttributes="true" />\r
- <ext extensionComponentSpec="jwc" extensionPageSpec="page" extensionScript="script" />\r
- <create />\r
- </component>\r
- <component name="IdProvider" IDEtalkID="119765BF5908F4A0676504FC73A9C8F4" />\r
- <component name="JavadocGenerationManager">\r
- <option name="OUTPUT_DIRECTORY" />\r
- <option name="OPTION_SCOPE" value="protected" />\r
- <option name="OPTION_HIERARCHY" value="true" />\r
- <option name="OPTION_NAVIGATOR" value="true" />\r
- <option name="OPTION_INDEX" value="true" />\r
- <option name="OPTION_SEPARATE_INDEX" value="true" />\r
- <option name="OPTION_DOCUMENT_TAG_USE" value="false" />\r
- <option name="OPTION_DOCUMENT_TAG_AUTHOR" value="false" />\r
- <option name="OPTION_DOCUMENT_TAG_VERSION" value="false" />\r
- <option name="OPTION_DOCUMENT_TAG_DEPRECATED" value="true" />\r
- <option name="OPTION_DEPRECATED_LIST" value="true" />\r
- <option name="OTHER_OPTIONS" value="" />\r
- <option name="HEAP_SIZE" />\r
- <option name="LOCALE" />\r
- <option name="OPEN_IN_BROWSER" value="true" />\r
- </component>\r
- <component name="ModuleEditorState">\r
- <option name="LAST_EDITED_MODULE_NAME" />\r
- <option name="LAST_EDITED_TAB_NAME" />\r
- </component>\r
- <component name="ProjectDetails">\r
- <option name="projectName" value="osqa" />\r
- </component>\r
- <component name="ProjectLevelVcsManager">\r
- <OptionsSetting value="true" id="Add" />\r
- <OptionsSetting value="true" id="Remove" />\r
- <OptionsSetting value="true" id="Checkout" />\r
- <OptionsSetting value="true" id="Update" />\r
- <OptionsSetting value="true" id="Status" />\r
- <OptionsSetting value="true" id="Edit" />\r
- <ConfirmationsSetting value="0" id="Add" />\r
- <ConfirmationsSetting value="0" id="Remove" />\r
- </component>\r
- <component name="ProjectReloadState">\r
- <option name="STATE" value="0" />\r
- </component>\r
- <component name="ProjectRootManager" version="2" project-jdk-name="Python 2.6.4 (C:/Python26/python.exe)" project-jdk-type="Python SDK" />\r
- <component name="Regex">\r
- <option name="pos1" value="218" />\r
- <option name="pos2" value="218" />\r
- <option name="pos3" value="162" />\r
- <option name="pos4" value="444" />\r
- <option name="pos5" value="162" />\r
- <option name="autoUpdate" value="true" />\r
- <option name="referenceOn" value="false" />\r
- <option name="referencePos" value="0" />\r
- <option name="showLabels" value="true" />\r
- </component>\r
- <component name="RunManager">\r
- <configuration default="true" type="Remote" factoryName="Remote">\r
- <option name="USE_SOCKET_TRANSPORT" value="true" />\r
- <option name="SERVER_MODE" value="false" />\r
- <option name="SHMEM_ADDRESS" value="javadebug" />\r
- <option name="HOST" value="localhost" />\r
- <option name="PORT" value="5005" />\r
- <method>\r
- <option name="AntTarget" enabled="false" />\r
- <option name="BuildArtifacts" enabled="false" />\r
- <option name="Maven.BeforeRunTask" enabled="false" />\r
- </method>\r
- </configuration>\r
- <configuration default="true" type="Applet" factoryName="Applet">\r
- <module name="" />\r
- <option name="MAIN_CLASS_NAME" />\r
- <option name="HTML_FILE_NAME" />\r
- <option name="HTML_USED" value="false" />\r
- <option name="WIDTH" value="400" />\r
- <option name="HEIGHT" value="300" />\r
- <option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />\r
- <option name="VM_PARAMETERS" />\r
- <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />\r
- <option name="ALTERNATIVE_JRE_PATH" />\r
- <method>\r
- <option name="AntTarget" enabled="false" />\r
- <option name="BuildArtifacts" enabled="false" />\r
- <option name="Make" enabled="true" />\r
- <option name="Maven.BeforeRunTask" enabled="false" />\r
- </method>\r
- </configuration>\r
- <configuration default="true" type="Application" factoryName="Application">\r
- <extension name="coverage" enabled="false" merge="false" />\r
- <extension name="snapshooter" />\r
- <option name="MAIN_CLASS_NAME" />\r
- <option name="VM_PARAMETERS" />\r
- <option name="PROGRAM_PARAMETERS" />\r
- <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />\r
- <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />\r
- <option name="ALTERNATIVE_JRE_PATH" />\r
- <option name="ENABLE_SWING_INSPECTOR" value="false" />\r
- <option name="ENV_VARIABLES" />\r
- <option name="PASS_PARENT_ENVS" value="true" />\r
- <module name="" />\r
- <envs />\r
- <method>\r
- <option name="AntTarget" enabled="false" />\r
- <option name="BuildArtifacts" enabled="false" />\r
- <option name="Make" enabled="true" />\r
- <option name="Maven.BeforeRunTask" enabled="false" />\r
- </method>\r
- </configuration>\r
- <configuration default="true" type="JUnit" factoryName="JUnit">\r
- <extension name="coverage" enabled="false" merge="false" />\r
- <extension name="snapshooter" />\r
- <module name="" />\r
- <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />\r
- <option name="ALTERNATIVE_JRE_PATH" />\r
- <option name="PACKAGE_NAME" />\r
- <option name="MAIN_CLASS_NAME" />\r
- <option name="METHOD_NAME" />\r
- <option name="TEST_OBJECT" value="class" />\r
- <option name="VM_PARAMETERS" />\r
- <option name="PARAMETERS" />\r
- <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />\r
- <option name="ENV_VARIABLES" />\r
- <option name="PASS_PARENT_ENVS" value="true" />\r
- <option name="TEST_SEARCH_SCOPE">\r
- <value defaultName="moduleWithDependencies" />\r
- </option>\r
- <envs />\r
- <method>\r
- <option name="AntTarget" enabled="false" />\r
- <option name="BuildArtifacts" enabled="false" />\r
- <option name="Make" enabled="true" />\r
- <option name="Maven.BeforeRunTask" enabled="false" />\r
- </method>\r
- </configuration>\r
- <list size="0" />\r
- <configuration name="<template>" type="WebApp" default="true" selected="false">\r
- <Host>localhost</Host>\r
- <Port>5050</Port>\r
- </configuration>\r
- </component>\r
- <component name="ShelveChangesManager" show_recycled="false" />\r
- <component name="StarteamConfiguration">\r
- <option name="SERVER" value="" />\r
- <option name="PORT" value="49201" />\r
- <option name="USER" value="" />\r
- <option name="PASSWORD" value="" />\r
- <option name="PROJECT" value="" />\r
- <option name="VIEW" value="" />\r
- <option name="ALTERNATIVE_WORKING_PATH" value="" />\r
- <option name="LOCK_ON_CHECKOUT" value="false" />\r
- <option name="UNLOCK_ON_CHECKIN" value="false" />\r
- </component>\r
- <component name="SvnBranchConfigurationManager">\r
- <option name="mySupportsUserInfoFilter" value="true" />\r
- </component>\r
- <component name="SvnConfiguration">\r
- <option name="USER" value="" />\r
- <option name="PASSWORD" value="" />\r
- <option name="LAST_MERGED_REVISION" />\r
- <option name="UPDATE_RUN_STATUS" value="false" />\r
- <option name="MERGE_DRY_RUN" value="false" />\r
- <option name="MERGE_DIFF_USE_ANCESTRY" value="true" />\r
- <option name="UPDATE_LOCK_ON_DEMAND" value="false" />\r
- <option name="IGNORE_SPACES_IN_MERGE" value="false" />\r
- <option name="DETECT_NESTED_COPIES" value="false" />\r
- <option name="IGNORE_SPACES_IN_ANNOTATE" value="true" />\r
- <option name="SHOW_MERGE_SOURCES_IN_ANNOTATE" value="true" />\r
- <myIsUseDefaultProxy>false</myIsUseDefaultProxy>\r
- </component>\r
- <component name="WebServicesPlugin" addRequiredLibraries="true" />\r
-</project>\r
-\r
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>\r
-<project version="4">\r
- <component name="ProjectModuleManager">\r
- <modules>\r
- <module fileurl="file://$PROJECT_DIR$/osqa.iml" filepath="$PROJECT_DIR$/osqa.iml" />\r
- </modules>\r
- </component>\r
-</project>\r
-\r
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>\r
-<project version="4">\r
- <component name="Palette2">\r
- <group name="Swing">\r
- <item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">\r
- <default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />\r
- </item>\r
- <item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">\r
- <default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />\r
- </item>\r
- <item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false">\r
- <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />\r
- </item>\r
- <item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true">\r
- <default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />\r
- </item>\r
- <item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false">\r
- <default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />\r
- <initial-values>\r
- <property name="text" value="Button" />\r
- </initial-values>\r
- </item>\r
- <item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false">\r
- <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />\r
- <initial-values>\r
- <property name="text" value="RadioButton" />\r
- </initial-values>\r
- </item>\r
- <item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false">\r
- <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />\r
- <initial-values>\r
- <property name="text" value="CheckBox" />\r
- </initial-values>\r
- </item>\r
- <item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false">\r
- <default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />\r
- <initial-values>\r
- <property name="text" value="Label" />\r
- </initial-values>\r
- </item>\r
- <item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true">\r
- <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">\r
- <preferred-size width="150" height="-1" />\r
- </default-constraints>\r
- </item>\r
- <item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true">\r
- <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">\r
- <preferred-size width="150" height="-1" />\r
- </default-constraints>\r
- </item>\r
- <item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true">\r
- <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">\r
- <preferred-size width="150" height="-1" />\r
- </default-constraints>\r
- </item>\r
- <item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true">\r
- <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">\r
- <preferred-size width="150" height="50" />\r
- </default-constraints>\r
- </item>\r
- <item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true">\r
- <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">\r
- <preferred-size width="150" height="50" />\r
- </default-constraints>\r
- </item>\r
- <item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true">\r
- <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">\r
- <preferred-size width="150" height="50" />\r
- </default-constraints>\r
- </item>\r
- <item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true">\r
- <default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />\r
- </item>\r
- <item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false">\r
- <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">\r
- <preferred-size width="150" height="50" />\r
- </default-constraints>\r
- </item>\r
- <item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false">\r
- <default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">\r
- <preferred-size width="150" height="50" />\r
- </default-constraints>\r
- </item>\r
- <item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false">\r
- <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">\r
- <preferred-size width="150" height="50" />\r
- </default-constraints>\r
- </item>\r
- <item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false">\r
- <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">\r
- <preferred-size width="200" height="200" />\r
- </default-constraints>\r
- </item>\r
- <item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false">\r
- <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">\r
- <preferred-size width="200" height="200" />\r
- </default-constraints>\r
- </item>\r
- <item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true">\r
- <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />\r
- </item>\r
- <item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false">\r
- <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />\r
- </item>\r
- <item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false">\r
- <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />\r
- </item>\r
- <item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false">\r
- <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />\r
- </item>\r
- <item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false">\r
- <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">\r
- <preferred-size width="-1" height="20" />\r
- </default-constraints>\r
- </item>\r
- <item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false">\r
- <default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />\r
- </item>\r
- <item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false">\r
- <default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />\r
- </item>\r
- </group>\r
- </component>\r
-</project>\r
-\r
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>\r
-<project version="4">\r
- <component name="VcsDirectoryMappings">\r
- <mapping directory="" vcs="Git" />\r
- <mapping directory="" vcs="svn" />\r
- </component>\r
-</project>\r
-\r
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>osqa</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.python.pydev.PyDevBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.python.pydev.pythonNature</nature>
- <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
- </natures>
-</projectDescription>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<?eclipse-pydev version="1.0"?>
-
-<pydev_project>
-<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
-<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 2.6</pydev_property>
-<pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH">
-<path>/osqa</path>
-</pydev_pathproperty>
-</pydev_project>
+++ /dev/null
-1) LOGGING
-Please remember that log files may contain plaintext passwords, etc.
-
-Please do not add print statements - at least do not commit them to git
-because in some environments printing to stdout causes errors
-
-Instead use python logging this way:
---------------------------------
-#somewere on top of file
-import logging
-
-#anywhere below
-logging.debug('this maybe works')
-logging.error('have big error!')
-#or even
-logging.debug('') #this will add time, line number, function and file record
-#sometimes useful record for call tracing on its own
-#etc - take a look at http://docs.python.org/library/logging.html
--------------------------------
-
-in OSQA logging is currently set up in settings_local.py.dist
-please update it if you need - in older revs logging strings have less info
-
-messages of interest can be grepped out of the log file by module/file/function name
-e.g. to take out all django_authopenid logs run:
->grep 'osqa\/django_authopenid' log/django.osqa.log | sed 's/^.*MSG: //'
-in the example above 'sed' call truncates out a long prefix
-and makes output look more meaningful
-
-2) DJANGO DEBUG TOOLBAR
-osqa works with django debug toolbar
-if debugging under apache server, check
-that debug toolbar media is loaded correctly
-if toolbar is enabled but you do not see it, possibly some Alias statement
-in apache config is wrong in your VirtualHost or elsewhere
-
-3) If you discover new debugging techniques, please add here.
-Possible areas to improve - at this point there is no SQL query logging,
-as well as request data and http header.
+++ /dev/null
-CONTENTS
-------------------
-A. PREREQUISITES
-B. INSTALLATION
- 1. Settings file
- 2. Database
- 3. Running OSQA in the development server
- 4. Installation under Apache/WSGI
- 5. Email subscriptions
-C. CONFIGURATION PARAMETERS (settings_local.py)
-D. CUSTOMIZATION
-
-
-A. PREREQUISITES
------------------------------------------------
-0. We recommend you to use python-setuptools to install pre-requirement libraries.
-If you haven't installed it, please try to install it first.
-e.g, sudo apt-get install python-setuptools
-
-1. Python2.5/2.6, a rdbm (such as MySql or PostgreSql), Django v1.0/1.1
-Note: email subscription sender job requires Django 1.1, everything else works with 1.0
-Make sure you have the necessary support for python to communicate with your rdbm.
-sudo easy_install mysql-python (for MySql)
-sudo easy_install postgresql_psycopg2 (for PostgreSql)
-
-2. html5lib
-http://code.google.com/p/html5lib/
-Used for HTML sanitizer
-sudo easy_install html5lib
-
-3. Markdown2
-http://code.google.com/p/python-markdown2/
-sudo easy_install markdown2
-
-4. Optional, but highly recommended, you may want to install south from http://south.aeracode.org/ , it will make upgrades a lot easier.
-
-
-5. Also optionally you may want to install Django Debug Toolbar for debugging.
-This is not required and OSQA will just ignore it if you don't have it.
-http://github.com/robhudson/django-debug-toolbar/tree/master
-
-6. Depending on which modules you decide to enable (see bellow for more info on modules),
-you may need to install some aditional dependencies. Here's a list of the dependencies of each bundled module if any:
-
- a) openidauth, depends on Python-openid
- http://openidenabled.com/python-openid/
-
- b) sphinxfulltext, depends on djangosphinx, and obviously you'll have to install the sphinx search engine
- http://sphinxsearch.com/downloads.html
- http://github.com/dcramer/django-sphinx/tree/master/djangosphinx
-
-
-
-B. INSTALLATION
------------------------------------------------
-0. Make sure you have all above python libraries installed.
-
- make osqa installation server-readable on Linux command might be:
- chown -R yourlogin:apache /path/to/OSQA
-
- directories templates/upfiles and log must be server writable
-
- on Linux type chmod
- chmod -R g+w /path/to/OSQA/upfiles
- chmod -R g+w /path/to/log
-
- above it is assumed that webserver runs under group named "apache"
-
-1. Settings file
-
-Copy settings_local.py.dist to settings_local.py and
-update all your settings. Check settings.py and update
-it as well if necessory.
-Section C explains configuration paramaters.
-
-1b. Modules
-
-Decide which modules you want to DISABLE. Each module adds a specific piece of functionality to OSQA, and
-by default, all are enabled, you have to disable the ones you want. If any module doesn't meet the required dependencies it just
-won't load.
-Currently bundled modules are:
-
- localauth - provides local authentication and registration on your site, disable this if you want only external login
- through any external provider
-
- openidauth - adds support for open id on osqa and adds some openid providers to the signin page
-
- oauthauth - adds support for oauth authentication on osqa and adds twitter as a signin provider on the signin page
-
- facebookauth - adds facebook as an authentication provider
-
- pgfulltext - adds support to full text search functionality through postgresql if you're useing it as your rdbm
-
- sphinxfulltext - adds support for full text search with the sphinx search engine
- (detailed instructions are in the module root folder)
-
- robotstxt - adds a robots file editable throug the admin interface
-
- recaptcha - adds support for recaptcha in the registration form
-
- default_badges - the default set of badges, others can be added or used instead
-
- books - don't really does anything, it's disabled by default, and you should keep it that way, you can delete it if you want to
-
-
-2. Database
-
-Prepare your database by using the same database/account
-configuration from above.
-e.g,
-create database osqa DEFAULT CHARACTER SET UTF8 COLLATE utf8_general_ci;
-grant all on osqa.* to 'osqa'@'localhost';
-And then run "python manage.py syncdb" to synchronize your database.
-
-If you're using south, then run "python manage.py migrate forum 0001 --fake".
-
-When you're prompted to create a new superuser, answer "no". Once you get your site running, create a new user through the normal
-OSQA account creation process and that will be your super user.
-
-3. Running OSQA on the development server
-
-Run "python manage.py runserver" to startup django
-development environment.
-(Under Linux you can use command "python manage.py runserver `hostname -i`:8000",
-where you can use any other available number for the port)
-
-4. Installation under Apache/WSGI
-
-4.1 Prepare wsgi script
-
-Make a file readable by your webserver with the following content:
-
----------
-import os
-import sys
-
-sys.path.insert(0,'/one/level/above') #insert to make sure that forum will be found
-sys.path.append('/one/level/above/OSQA') #maybe this is not necessary
-os.environ['DJANGO_SETTINGS_MODULE'] = 'OSQA.settings'
-import django.core.handlers.wsgi
-application = django.core.handlers.wsgi.WSGIHandler()
------------
-
-insert method is used for path because if the forum directory name
-is by accident the same as some other python module
-you wull see strange errors - forum won't be found even though
-it's in the python path. for example using name "test" is
-not a good idea - as there is a module with such name
-
-
-4.2 Configure webserver
-Settings below are not perfect but may be a good starting point
-
----------
-WSGISocketPrefix /path/to/socket/sock #must be readable and writable by apache
-WSGIPythonHome /usr/local #must be readable by apache
-WSGIPythonEggs /var/python/eggs #must be readable and writable by apache
-
-#NOTE: all urs below will need to be adjusted if
-#settings.FORUM_SCRIPT_ALIAS !='' (e.g. = 'forum/')
-#this allows "rooting" forum at http://example.com/forum, if you like
-<VirtualHost ...your ip...:80>
- ServerAdmin forum@example.com
- DocumentRoot /path/to/osqa-site
- ServerName example.com
-
- #run mod_wsgi process for django in daemon mode
- #this allows avoiding confused timezone settings when
- #another application runs in the same virtual host
- WSGIDaemonProcess OSQA
- WSGIProcessGroup OSQA
-
- #force all content to be served as static files
- #otherwise django will be crunching images through itself wasting time
- Alias /m/ /path/to/osqa-site/forum/skins/
- Alias /upfiles/ /path/to/osqa-site/forum/upfiles/
- <Directory /path/to/osqa-site/forum/skins>
- Order deny,allow
- Allow from all
- </Directory>
-
- #this is your wsgi script described in the prev section
- WSGIScriptAlias / /path/to/osqa-site/osqa.wsgi
-
- #this will force admin interface to work only
- #through https (optional)
- #"nimda" is the secret spelling of "admin" ;)
- <Location "/nimda">
- RewriteEngine on
- RewriteRule /nimda(.*)$ https://example.com/nimda$1 [L,R=301]
- </Location>
- CustomLog /var/log/httpd/OSQA/access_log common
- ErrorLog /var/log/httpd/OSQA/error_log
-</VirtualHost>
-#(optional) run admin interface under https
-<VirtualHost ..your ip..:443>
- ServerAdmin forum@example.com
- DocumentRoot /path/to/osqa-site
- ServerName example.com
- SSLEngine on
- SSLCertificateFile /path/to/ssl-certificate/server.crt
- SSLCertificateKeyFile /path/to/ssl-certificate/server.key
- WSGIScriptAlias / /path/to/osqa-site/osqa.wsgi
- CustomLog /var/log/httpd/OSQA/access_log common
- ErrorLog /var/log/httpd/OSQA/error_log
- DirectoryIndex index.html
-</VirtualHost>
--------------
-
-5. Email subscriptions
-
- edit paths in the file cron/send_email_alerts
- set up a cron job to call cron/send_email_alerts once or twice a day
- subscription sender may be tested manually in shell
- by calling cron/send_email_alerts
-
-
-C. CONFIGURATION PARAMETERS
-
-Most stuff can be configured through the admin interface,
-but there are some important settings that need to live in the settings files:
-
-#all forum parameters are set in file settings_local.py
-DEBUG=False #set to True to enable debug mode
-LOG_FILENAME = 'osqa.log' #where logging messages should go
-DATABASE_NAME = 'osqa' # Or path to database file if using sqlite3.
-DATABASE_USER = '' # Not used with sqlite3.
-DATABASE_PASSWORD = '' # Not used with sqlite3.
-DATABASE_ENGINE = 'mysql' #mysql, etc
-SERVER_EMAIL = ''
-DEFAULT_FROM_EMAIL = ''
-EMAIL_HOST_USER = ''
-EMAIL_HOST_PASSWORD = '' #not necessary if mailserver is run on local machine
-EMAIL_SUBJECT_PREFIX = '[OSQA] '
-EMAIL_HOST='osqa.com'
-EMAIL_PORT='25'
-EMAIL_USE_TLS=False
-TIME_ZONE = 'America/Tijuana'
-
-#if you set FORUM_SCRIPT_ALIAS= 'forum/'
-#then OSQA will run at url http://example.com/forum
-#FORUM_SCRIPT_ALIAS cannot have leading slash, otherwise it can be set to anything
-FORUM_SCRIPT_ALIAS = '' #no leading slash, default = '' empty string
-
-LANGUAGE_CODE = 'en' #forum language (see language instructions on the wiki)
-EMAIL_VALIDATION = 'off' #string - on|off
-MIN_USERNAME_LENGTH = 1
-EMAIL_UNIQUE = False #if True, email addresses must be unique in all accounts
-APP_URL = 'http://osqa.com' #used by email notif system and RSS
-WIKI_ON = True #if False - community wiki feature is disabled
-
-FEEDBACK_SITE_URL = None #None or url
-LOGIN_URL = '/%s%s%s' % (FORUM_SCRIPT_ALIAS,'account/','signin/')
-
-DJANGO_VERSION = 1.1 #must be either 1.0 or 1.1
-RESOURCE_REVISION=4 #increment when you update media files - clients will be forced to load new version
-
-D. Customization
-
-Other than settings_local.py the following will most likely need customization:
-* locale/*/django.po - language files that may also contain your site-specific messages
- if you want to start with english messages file - look for words like "forum" and
- "OSQA" in the msgstr lines
-* templates/header.html and templates/footer.html may contain extra links
-* templates/faq.html - put answers to users frequent questions
-* templates/content/style/style.css - modify style sheet to add disctinctive look to your forum
+++ /dev/null
-* Install virtualenv and pip:
- easy_install virtualenv
- easy_install pip
-
-* Install MySQL:
- sudo apt-get install mysql-client mysql-server
-
-* Install sphinxsearch. See:
- [optional]
- http://sphinxsearch.com/downloads.html
- http://www.hackido.com/2009/01/install-sphinx-search-on-ubuntu.html
- git://github.com/johnl/deb-sphinx-search.git
-
-* Install a virtual environment OUTSIDE of this directory:
- pip install -E ~/env -r osqa-requirements.txt
-[there is discussion on the pinax forums about what it should be outside
-the source directory]
-
-* Notice that you will need to register with recaptcha.net and receive
- recaptcha public and private keys that need to be saved in your
- settings_local.py file
-
-* Start your environment:
- source ~/env/bin/activate
-
-* Install mysql-python into your virtualenv, because we can't
-automagically install it with pip:
- easy_install --prefix ~/env/ mysql-python
-
-For more information about why pip can't automatically install the
-MySQL driver, see this message: http://groups.google.com/group/python-virtualenv/msg/ea988085951c92b3
+++ /dev/null
-Detailed instructions for installing OSQA on WebFaction
-
-Adapted from http://code.pinaxproject.com/wiki/DetailedPinaxWebfaction/
-
-Please email turian at gmail with any updates or corrections.
-
-
-Installing OSQA on Webfaction
-------------------------------------
-
-Details the steps for setting up OSQA on a Webfaction shared-hosting
-account, including email setup, using Apache2, mod_wsgi, psycopg2.
-
-If you want to search-and-replace through this file, you will need to replace:
- osqa_server [name of Webfaction application, which will be in ~/webapps/]
- osqa_static [name of Webfaction application for static media serving]
- DOMAIN.com [domain name for OSQA site]
- PORT [port number assigned by WebFaction to your mod_wsgi application]
- SITENAME [name you give the OSQA site, which will contain the apache logs]
- MYOSQA [name of the OSQA project]
- MAILBOX_USERNAME [username you give the email address]
- MAILBOX_PASSWORD [password that webfaction gives to this email username]
- OSQADATABASE_NAME [username you give the database]
- OSQADATABASE_PASSWORD [password that webfaction gives to this database]
- ~/envs/osqa [directory for the OSQA python environment, grep for 'env']
- USERNAME [your WebFaction username]
-
-Some things I'm not sure about:
-
-Here's what I don't know how to do:
- * Set up a nginx server for static media.
- * Configure sphinx search
- * Use PostgreSQL, not MySQL: http://osqa.net/question/13/can-i-use-osqa-with-postgresql
-
-
-Webfaction Control Panel
---------------------------
-
-(Note: if you sign up and pick django it will create the application
-for you, website/subdomain and associate the two for you.)
-
- If necessary, add or create any domains or subdomains you may need.
-
- https://panel.webfaction.com/domain/list/
-
- Let's call the domain DOMAIN.com.
-
- Create a new Webfaction application with a "Type:" of "mod_wsgi
- 2.5/Python2.5", naming it "osqa_server". (These instructions
- might also work with mod_wsgi 2.0, if you like.)
-
- https://panel.webfaction.com/app_/list
-
- Note the port number assigned to the mod_wsgi application. Call
- it PORT.
-
- Create a new Webfaction website which will associate the subdomain
- with the new osqa_server application. Give it name SITENAME, at least one
- domain, and set it to use the osqa_server application for the site's
- root location, "/".
-
- https://panel.webfaction.com/site/list
-
- You will need to create a database, typically one for each project
- you create. Change the type to PostgreSql and modify the name (it
- defaults to your webfaction account name) by adding an underscore
- and a project-specific identifier such as "_osqa". Before
- leaving this section of the control panel, you may wish to change
- the password.
-
- https://panel.webfaction.com/database/create
-
- Call these OSQADATABASE_NAME and OSQADATABASE_PASSWORD.
-
- Save the database password for later.
-
- [The following I haven't figured out yet]
- You will probably want to add a static media server. This is a
- Webfaction application. I created one of type "Static only (no
- .htaccess)" and with the name of "osqa_static".
-
- https://panel.webfaction.com/app_/create
-
- To configure email, you need an email mailbox. Add one here. Note
- that your mailbox password shouldn't be the same password you use
- to SSH to webfaction.
-
- https://panel.webfaction.com/mailbox/list
-
- Save the mail password for later.
- We will call the username and password MAILBOX_USERNAME and
- MAILBOX_PASSWORD, respectively.
- You might also consider adding an email address like admin@DOMAIN.com,
- here:
-
- https://panel.webfaction.com/email/list
-
-
-OSQA Software
---------------
-
- Log onto webfaction and get the code. I use my fork because I have
- a simple pip installation:
- git://github.com/turian/osqa.git
- In my situation, I keep source code in ~/utils/src, create
- virtual environments in ~/envs/osqa, and create Pinax projects in
- ~/webapps/osqa_server/projects.
-
- You will need pip + virtualenv installed:
-
- easy_install --prefix=~/utils/ pip
- easy_install --prefix=~/utils/ virtualenv
-
- cd ~/utils/src/
- git clone git://github.com/turian/osqa.git
- cd osqa
-
- # We need python2.5 to be compatible with WSGI
- python2.5 ~/utils/bin/pip install -E ~/envs/osqa -r osqa-requirements.txt
- source ~/envs/osqa/bin/activate
-
- # [Optional] If you want a MySQL database
- easy_install-2.5 --prefix ~/envs/osqa/ mysql-python
-
-Additional Software
--------------------
-
- [Note that PostgreSQL installation doesn't work for me.]
-
- You will need to install psycopg2 separately for PostgreSQL.
- Psycopg2 requires a little fiddling. Continuing to
- work in the ~/utils/src/ directory:
-
- cd ~/utils/src/
- wget http://initd.org/pub/software/psycopg/psycopg2-2.0.13.tar.gz
- tar zxf psycopg2-2.0.13.tar.gz
- cd psycopg2-2.0.13
- nano setup.cfg
-
- # edit the line reading "#pg_config=" so that it reads:
- "pg_config=/usr/local/pgsql/bin/pg_config"
-
- python2.5 setup.py build
- python2.5 setup.py install
-
-
-Create a Project
-----------------
-
- In Pinax, you clone a project from OSQA.
- However, OSQA we just copy it.
-
- cd ~/webapps/osqa_server
- mkdir projects
- cd projects
- cp -R ~/utils/src/osqa MYOSQA
- cd MYOSQA
- export OSQAPROJECT=`pwd`
-
- Make some directories, as described in the OSQA INSTALL file:
- [okay I haven't actually done this yet]
-
-# mkdir -p $OSQASITE/upfiles/
-# mkdir -p $OSQALOG
-# sudo chown -R `whoami`:www-data $OSQASITE
-# sudo chown -R `whoami`:www-data $OSQALOG
-# chmod -R g+w $OSQASITE/upfiles
-# chmod -R g+w $OSQALOG
-
-
- Edit the settings files:
-
- cd $OSQAPROJECT
- cp settings_local.py.dist settings_local.py
- vi settings_local.py settings.py
-
- Pay attention to the following settings:
-
- DATABASE_ENGINE = 'mysql'
- DATABASE_NAME = 'OSQADATABASE_NAME'
- DATABASE_USER = 'OSQADATABASE_NAME'
- DATABASE_PASSWORD = 'OSQADATABASE_PASSWORD'
-
- EMAIL_HOST='smtp.webfaction.com'
- EMAIL_HOST_USER='MAILBOX_USERNAME'
- EMAIL_HOST_PASSWORD='MAILBOX_PASSWORD'
- EMAIL_PORT='25'
- DEFAULT_FROM_EMAIL = 'MAILBOX_USERNAME@DOMAIN.com'
- SERVER_EMAIL = 'MAILBOX_USERNAME@DOMAIN.com'
- # The following setting might not be necessary, it's used in Pinax tho
- CONTACT_EMAIL = "MAILBOX_USERNAME@DOMAIN.com"
-
- APP_URL = 'http://DOMAIN.com' #used by email notif system and RSS
-
- [Later on, the install instructions should talk about]
- SERVE_MEDIA = False # [Not present, not ready yet]
-
- Create a directory for logs:
-
- cd $OSQAPROJECT
- mkdir log
-
- Modify mail cron scripts "cron/send_email_alerts" as follows:
- [Pinax has cron/emit_notices.sh, cron/retry_deferred.sh,
- cron/send_mail.sh, are these also necessary?]
-
- #!/bin/sh
-
- WORKON_HOME=~/envs/osqa
- PROJECT_ROOT=~/webapps/osqa_server/projects/MYOSQA/
-
- # activate virtual environment
- . $WORKON_HOME/bin/activate
-
- cd $PROJECT_ROOT
- python manage.py send_email_alerts >> $PROJECT_ROOT/log/cron_mail.log 2>&1
-
- Use command "crontab -e" to add this script to your cron file, to run twice a day::
-
- 1 0,12 * * * ~/webapps/osqa_server/projects/MYOSQA/cron/send_email_alerts
-
- [Configure sphinx]
-
- Create the database tables, indices, and so forth:
-
- python manage.py syncdb
-
- [Ignore the following static media steps, I haven't tried them]
- Build media directory links within the project and create symbolic
- links on the static media server.
- python manage.py build_media -all
- mkdir ~/webapps/OSQA_STATIC/MYOSQA
- ln -sd ~/webapps/osqa_server/projects/MYOSQA/site_media ~/webapps/OSQA_STATIC/MYOSQA/site_media
-
-
- Set up the badges:
-
- 1. You should run the SQL commands in:
-
- sql_scripts/badges.sql
-
- 2. Edit paths in the file `cron/multi_award_badges`. (This
- file doesn't yet exist in the git repositories, so just
- copy `cron/send_email_alerts` and make sure the command
- `multi_award_badges` is executed.)
-
- 3. Run `cron/multi_award_badges` to make sure it works okay.
-
- 4. Use `crontab -e` to call `cron/multi_award_badges` maybe
- four times an hour.
-
- 4,19,34,49 * * * * ~/webapps/osqa_server/projects/MYOSQA/cron/multi_award_badges
-
- 5. Repeat steps 1-4 for `cron/once_award_badges`.
-
-
-Configure Apache2
-----------------
-
- Edit ~/webapps/osqa_server/apache2/conf/httpd.conf as follows::
-
- ServerAdmin "MAILBOX_USERNAME@DOMAIN.com"
- ServerRoot "/home/USERNAME/webapps/osqa_server/apache2"
- ServerName DOMAIN.com
-
- LoadModule dir_module modules/mod_dir.so
- LoadModule env_module modules/mod_env.so
- #LoadModule setenvif_module modules/mod_setenvif.so
- LoadModule log_config_module modules/mod_log_config.so
- LoadModule mime_module modules/mod_mime.so
- LoadModule rewrite_module modules/mod_rewrite.so
- LoadModule wsgi_module modules/mod_wsgi.so
-
- KeepAlive Off
- Listen PORT
- LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
- CustomLog /home/USERNAME/logs/user/access_osqa_server_log combined
- ErrorLog /home/USERNAME/logs/user/error_osqa_server_log
- ServerLimit 2
-
- #SetEnvIf X-Forwarded-SSL on HTTPS=1
-
- WSGIPythonPath /home/USERNAME/envs/osqa/lib/python2.5/site-packages/
- WSGIScriptAlias / /home/USERNAME/webapps/osqa_server/projects/MYOSQA/osqa.wsgi
-
- LoadModule alias_module modules/mod_alias.so
- WSGIDaemonProcess osqaWSGI user=USERNAME group=USERNAME threads=25 python-path=/home/USERNAME/envs/osqa/lib/python2.5/site-packages
- WSGIProcessGroup osqaWSGI
-
- NameVirtualHost 127.0.0.1:PORT
-
- #ErrorLog "logs/MYOSQA_2009_05_06.log"
- SetHandler none
- #Alias /site_media /home/USERNAME/webapps/static/MYOSQA/site_media
-
- #force all content to be served as static files
- #otherwise django will be crunching images through itself wasting time
- Alias /content/ /home/USERNAME/webapps/osqa_server/projects/MYOSQA/templates/content/
- Alias /forum/admin/media/ /home/turian/envs/osqa/lib/python2.5/site-packages/django/contrib/admin/media/
- #AliasMatch /([^/]*\.css) /home/USERNAME/webapps/osqa_server/projects/MYOSQA/templates/content/style/$1
- <Directory "/home/USERNAME/webapps/osqa_server/projects/MYOSQA/templates/content">
- # Order deny,allow
- # Allow from all
- </Directory>
-
- If you want virtual hosts of the admin interface under HTTPS, please
- look at OSQA's install file.
-
- Create osqa.wsgi and edit it:
- cp osqa.wsgi.dist osqa.wsgi
-
- Edit ~/webapps/osqa_server/projects/MYOSQA/deploy/osqa.wsgi as follows::
-
- import os
- import sys
-
- # redirect sys.stdout to sys.stderr for bad libraries like geopy that uses
- # print statements for optional import exceptions.
- sys.stdout = sys.stderr
-
- from os.path import abspath, dirname, join
- from site import addsitedir
-
- # add the virtual environment site-packages to the path
- from site import addsitedir
- addsitedir('/home/USERNAME/envs/osqa/lib/python2.5/site-packages')
-
- sys.path.insert(0, abspath(join(dirname(__file__), "../")))
- sys.path.append(abspath(dirname(__file__)))
-
- from django.conf import settings
- os.environ["DJANGO_SETTINGS_MODULE"] = "MYOSQA.settings"
-
- #print sys.path
-
- from django.core.handlers.wsgi import WSGIHandler
- application = WSGIHandler()
-
-And then you're up and running with:
-
- ~/webapps/osqa_server/apache2/bin/stop
- ~/webapps/osqa_server/apache2/bin/start
-
-You should log in to the admin interface (http://DOMAIN.com/admin/),
-and go to "Sites > Sites", and change the domain name that is used in
-all emails.
+++ /dev/null
-Copyright (C) 2009. Chen Gang
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see <http://www.gnu.org/licenses/>.
+++ /dev/null
-There are two kinds of things that can be done:
-refactorings (think of jogging in the morning, going to a spa, well make the code better :)
-new features (go to law school, get a job, do something real)
-Just a joke - pick yourself a task and work on it.
-
-==Refactoring==
-* validate HTML
-* set up loading of default settings from inside the /forum dir
-* automatic dependency checking for modules
-* propose how to rename directory forum --> osqa
- without breaking things and keeping name of the project root
- named the same way - osqa
-
-==New features==
-Whoever wants - pick a feature from the WISH_LIST
-add it here and start working on it
-If you are not starting immediately - leave it on the wishlist :)
-
-==Notes==
-1)after this is done most new suggested features
- may be worked on easily since most of them
- only require editing view functions and templates
-
- However, anyone can work on new features anyway - you'll
- just have to probably copy-paste your code into
- the branch undergoing refactoring which involves
- splitting the files. Auto merging across split points
- is harder or impossible.
+++ /dev/null
-This is OSQA project - open source Q&A system
-
-Project Q&A site - http://meta.osqa.net
-Homepage - http://www.osqa.net
-MASTER devel. code - http://github.com/OSQA/osqa/
-Bug tracking - http://jira.osqa.net (bugs can be also at http://meta.osqa.net too)
-Wiki - http://wiki.osqa.net
-
-OSQA is based on the CNPROG project, originally created by Mike Chen and Sailing Cai.
-
+++ /dev/null
-This document is a map for our activities down the road - therefore ROADMAP.
-ROADMAP does not specify deadlines - those belong to the PENDING file
-
-Intro
-=========
-ROADMAP aims to streamline activities of the OSQA open source project and
-to minimize ad-hoc approaches of "big-picture" level.
-
-With one exception: under extreme time pressure improvised approaches are perfectly acceptable.
-
-Items in this document must be discussed in public via dev@osqa.net
-
-Architecture
-=============
-
-Sub-systems
------------------
-* authentication system
-* Q&A system
-
-Authentication system
--------------------------
-* MUST authenticate people visiting the website via web browsers.
-* Upon successful authentication must associates the visitor with
- his/her Django system user account
-* MUST allow multiple methods of authentication to the same account
-* MUST support a method to recover lost authentication link by email
-* MAY offer an option to "soft-validate" user's email (send a link
- with a special key, so that user clicks and we know that email is valid)
- "soft" - meaning that lack of validation won't block people
- from using the site
-
+++ /dev/null
-If you're upgrading your code, please take the following steps in consideration:\r
-\r
-If your current code is older than March 27 2010, you'll have to run the syncdb management command again\r
-and the create_subscriptions command.\r
-\r
-If your code is older than March 29 2010, you'll have to run the create_extended_user management command.\r
-\r
-Starting at April 6 2010 we started bundling south migrations with OSQA. If your code is older than that, you'll need to run\r
-"python manage.py migrate forum 0001 --fake", after that, or if your code is newer than this date just run "python manage.py migrate forum"\r
-each time you upgrade your code.
\ No newline at end of file
+++ /dev/null
-* The wonder bar (integrated the search / ask functionality)\r
-* The authentication system ???\r
-* allow multiple logins to the same account
-* allow multiple logins to the same account\r
-* more advanced templating/skinning system\r
-* per-tag email subscriptions\r
-* view for personalized news on the site\r
-* a little flag popping when there are news\r
-* drill-down mode for navigation by tags\r
-* improved admin console\r
-* sort out mess with profile - currently we patch django User\r
-
-* Some functionality should be moved out of the forums app, in the case
-that the forum app is restricted only to authenticated users:
-
- (r'^%s/$' % _('signin/'), 'django_authopenid.views.signin'),
- url(r'^%s$' % _('about/'), app.about, name='about'),
- url(r'^%s$' % _('faq/'), app.faq, name='faq'),
- url(r'^%s$' % _('privacy/'), app.privacy, name='privacy'),
- url(r'^%s$' % _('logout/'), app.logout, name='logout'),
- url(r'^%s$' % _('feedback/'), app.feedback, name='feedback'),
- (r'^%sfb/' % _('account/'), include('fbconnect.urls')),
- (r'^%s' % _('account/'), include('django_authopenid.urls')),
-
+++ /dev/null
-this directory contains sample commands to be executed
-by cron
-
-files with names ending "virtuanenv" should work under Python virtualenv system
-other files - with standard unix setup
+++ /dev/null
-#!/bin/sh
-PYTHONPATH=/path/to/dir_above_osqa_site
-export PYTHONPATH
-PROJECT_ROOT=$PYTHONPATH/osqa_site
-python manage.py multi_award_badges >> $PROJECT_ROOT/log/cron_badges.log 2>&1
+++ /dev/null
-#!/bin/sh
-
-WORKON_HOME=~/envs/osqa
-PROJECT_ROOT=~/webapps/osqa_server/projects/osqa/
-
-# activate virtual environment
-. $WORKON_HOME/bin/activate
-
-cd $PROJECT_ROOT
-python manage.py multi_award_badges >> $PROJECT_ROOT/log/cron_badges.log 2>&1
+++ /dev/null
-#!/bin/sh
-PYTHONPATH=/path/to/dir_above_osqa_site
-export PYTHONPATH
-PROJECT_ROOT=$PYTHONPATH/osqa_site
-python manage.py once_award_badges >> $PROJECT_ROOT/log/cron_badges.log 2>&1
-
-
-#!/bin/sh
-PYTHONPATH=/usr/local/sites/osqa_production
-export PYTHONPATH
-PROJECT_ROOT=$PYTHONPATH/robofaqs
-python $PROJECT_ROOT/manage.py once_award_badges >> $PROJECT_ROOT/log/cron_badges.log 2>&1
-python $PROJECT_ROOT/manage.py multi_award_badges >> $PROJECT_ROOT/log/cron_badges.log 2>&1
-python $PROJECT_ROOT/manage.py send_email_alerts >> $PROJECT_ROOT/log/cron_email.log 2>&1
\ No newline at end of file
+++ /dev/null
-#!/bin/sh
-
-WORKON_HOME=~/envs/osqa
-PROJECT_ROOT=~/webapps/osqa_server/projects/osqa/
-
-# activate virtual environment
-. $WORKON_HOME/bin/activate
-
-cd $PROJECT_ROOT
-python manage.py once_award_badges >> $PROJECT_ROOT/log/cron_badges.log 2>&1
+++ /dev/null
-#!/bin/sh
-PYTHONPATH=/path/to/dir_above_osqa_site
-export PYTHONPATH
-PROJECT_ROOT=$PYTHONPATH/osqa_site
-/path/to/python $PROJECT_ROOT/manage.py send_email_alerts
+++ /dev/null
-#!/bin/sh
-
-WORKON_HOME=~/envs/osqa
-PROJECT_ROOT=~/webapps/osqa_server/projects/osqa/
-
-# activate virtual environment
-. $WORKON_HOME/bin/activate
-
-cd $PROJECT_ROOT
-python manage.py send_email_alerts >> $PROJECT_ROOT/log/cron_mail.log 2>&1
+++ /dev/null
-#please take care not to dos2unix anything in your .git directory
-#because that will probably break your repo
-dos2unix `find . -name '*.py'`
-dos2unix `find . -name '*.po'`
-dos2unix `find . -name '*.js'`
-dos2unix `find . -name '*.css'`
-dos2unix `find . -name '*.txt'`
-dos2unix `find ./sphinx -type f`
-dos2unix `find ./cron -type f`
-dos2unix settings_local.py.dist
-dos2unix README
-dos2unix INSTALL
+++ /dev/null
-__all__ = ['admin','auth','const','feed','forms','managers','models','sitemap','urls','views']
+++ /dev/null
-import datetime\r
-from django.db.models.signals import post_save\r
-from forum.models import *\r
-from forum.models.base import marked_deleted\r
-from forum.models.meta import vote_canceled\r
-from forum.authentication import user_updated\r
-from forum.const import *\r
-\r
-def record_ask_event(instance, created, **kwargs):\r
- if created:\r
- activity = Activity(user=instance.author, active_at=instance.added_at, content_object=instance, activity_type=TYPE_ACTIVITY_ASK_QUESTION)\r
- activity.save()\r
-\r
-post_save.connect(record_ask_event, sender=Question)\r
-\r
-\r
-def record_answer_event(instance, created, **kwargs):\r
- if created:\r
- activity = Activity(user=instance.author, active_at=instance.added_at, content_object=instance, activity_type=TYPE_ACTIVITY_ANSWER)\r
- activity.save()\r
-\r
-post_save.connect(record_answer_event, sender=Answer)\r
-\r
-\r
-def record_comment_event(instance, created, **kwargs):\r
- if created:\r
- act_type = (instance.content_object.__class__ is Question) and TYPE_ACTIVITY_COMMENT_QUESTION or TYPE_ACTIVITY_COMMENT_ANSWER\r
- activity = Activity(user=instance.user, active_at=instance.added_at, content_object=instance, activity_type=act_type)\r
- activity.save()\r
-\r
-post_save.connect(record_comment_event, sender=Comment)\r
-\r
-\r
-def record_question_revision_event(instance, created, **kwargs):\r
- if created and instance.revision <> 1:\r
- activity = Activity(user=instance.author, active_at=instance.revised_at, content_object=instance, activity_type=TYPE_ACTIVITY_UPDATE_QUESTION)\r
- activity.save()\r
-\r
-post_save.connect(record_question_revision_event, sender=QuestionRevision)\r
-\r
-\r
-def record_answer_revision_event(instance, created, **kwargs):\r
- if created and instance.revision <> 1:\r
- activity = Activity(user=instance.author, active_at=instance.revised_at, content_object=instance, activity_type=TYPE_ACTIVITY_UPDATE_ANSWER)\r
- activity.save()\r
-\r
-post_save.connect(record_answer_revision_event, sender=AnswerRevision)\r
-\r
-\r
-def record_award_event(instance, created, **kwargs):\r
- if created:\r
- activity = Activity(user=instance.user, active_at=instance.awarded_at, content_object=instance,\r
- activity_type=TYPE_ACTIVITY_PRIZE)\r
- activity.save()\r
-\r
-post_save.connect(record_award_event, sender=Award)\r
-\r
-\r
-def record_answer_accepted(instance, created, **kwargs):\r
- if not created and 'accepted' in instance.get_dirty_fields() and instance.accepted:\r
- activity = Activity(user=instance.question.author, active_at=datetime.datetime.now(), \\r
- content_object=instance, activity_type=TYPE_ACTIVITY_MARK_ANSWER)\r
- activity.save()\r
-\r
-post_save.connect(record_answer_accepted, sender=Answer)\r
-\r
-\r
-def update_last_seen(instance, **kwargs):\r
- user = instance.user\r
- user.last_seen = datetime.datetime.now()\r
- user.save()\r
-\r
-post_save.connect(update_last_seen, sender=Activity)\r
-\r
-\r
-def record_vote(instance, created, **kwargs):\r
- if created:\r
- act_type = (instance.vote == 1) and TYPE_ACTIVITY_VOTE_UP or TYPE_ACTIVITY_VOTE_DOWN\r
-\r
- activity = Activity(user=instance.user, active_at=instance.voted_at, content_object=instance, activity_type=act_type)\r
- activity.save()\r
-\r
-post_save.connect(record_vote, sender=Vote)\r
-\r
-\r
-def record_cancel_vote(instance, **kwargs):\r
- act_type = (instance.vote == 1) and TYPE_ACTIVITY_CANCEL_VOTE_UP or TYPE_ACTIVITY_CANCEL_VOTE_DOWN\r
- activity = Activity(user=instance.user, active_at=datetime.datetime.now(), content_object=instance, activity_type=act_type)\r
- activity.save()\r
-\r
-vote_canceled.connect(record_cancel_vote)\r
-\r
-\r
-def record_delete_post(instance, **kwargs):\r
- act_type = (instance.__class__ is Question) and TYPE_ACTIVITY_DELETE_QUESTION or TYPE_ACTIVITY_DELETE_ANSWER\r
- activity = Activity(user=instance.deleted_by, active_at=datetime.datetime.now(), content_object=instance, activity_type=act_type)\r
- activity.save()\r
-\r
-marked_deleted.connect(record_delete_post, sender=Question)\r
-marked_deleted.connect(record_delete_post, sender=Answer)\r
-\r
-\r
-def record_update_tags(instance, created, **kwargs):\r
- if not created and 'tagnames' in instance.get_dirty_fields():\r
- activity = Activity(user=instance.author, active_at=datetime.datetime.now(), content_object=instance, activity_type=TYPE_ACTIVITY_UPDATE_TAGS)\r
- activity.save()\r
-\r
-post_save.connect(record_update_tags, sender=Question)\r
-\r
-\r
-def record_mark_offensive(instance, created, **kwargs):\r
- if created:\r
- activity = Activity(user=instance.user, active_at=datetime.datetime.now(), content_object=instance.content_object, activity_type=TYPE_ACTIVITY_MARK_OFFENSIVE)\r
- activity.save()\r
-\r
-post_save.connect(record_mark_offensive, sender=FlaggedItem)\r
-\r
-\r
-def record_favorite_question(instance, created, **kwargs):\r
- if created:\r
- activity = Activity(user=instance.user, active_at=datetime.datetime.now(), content_object=instance, activity_type=TYPE_ACTIVITY_FAVORITE)\r
- activity.save()\r
-\r
-post_save.connect(record_favorite_question, sender=FavoriteQuestion)\r
-\r
-\r
-def record_user_full_updated(instance, **kwargs):\r
- activity = Activity(user=instance, active_at=datetime.datetime.now(), content_object=instance, activity_type=TYPE_ACTIVITY_USER_FULL_UPDATED)\r
- activity.save()\r
-\r
-user_updated.connect(record_user_full_updated, sender=User)\r
-\r
+++ /dev/null
-# -*- coding: utf-8 -*-
-
-from django.contrib import admin
-from models import *
-
-class AnonymousQuestionAdmin(admin.ModelAdmin):
- """AnonymousQuestion admin class"""
-
-class QuestionAdmin(admin.ModelAdmin):
- """Question admin class"""
-
-class TagAdmin(admin.ModelAdmin):
- """Tag admin class"""
-
-class Answerdmin(admin.ModelAdmin):
- """Answer admin class"""
-
-class CommentAdmin(admin.ModelAdmin):
- """ admin class"""
-
-class VoteAdmin(admin.ModelAdmin):
- """ admin class"""
-
-class FlaggedItemAdmin(admin.ModelAdmin):
- """ admin class"""
-
-class FavoriteQuestionAdmin(admin.ModelAdmin):
- """ admin class"""
-
-class QuestionRevisionAdmin(admin.ModelAdmin):
- """ admin class"""
-
-class AnswerRevisionAdmin(admin.ModelAdmin):
- """ admin class"""
-
-class AwardAdmin(admin.ModelAdmin):
- """ admin class"""
-
-class BadgeAdmin(admin.ModelAdmin):
- """ admin class"""
-
-class ReputeAdmin(admin.ModelAdmin):
- """ admin class"""
-
-class ActivityAdmin(admin.ModelAdmin):
- """ admin class"""
-
-#class BookAdmin(admin.ModelAdmin):
-# """ admin class"""
-
-#class BookAuthorInfoAdmin(admin.ModelAdmin):
-# """ admin class"""
-
-#class BookAuthorRssAdmin(admin.ModelAdmin):
-# """ admin class"""
-
-admin.site.register(Question, QuestionAdmin)
-admin.site.register(Tag, TagAdmin)
-admin.site.register(Answer, Answerdmin)
-admin.site.register(Comment, CommentAdmin)
-admin.site.register(Vote, VoteAdmin)
-admin.site.register(FlaggedItem, FlaggedItemAdmin)
-admin.site.register(FavoriteQuestion, FavoriteQuestionAdmin)
-admin.site.register(QuestionRevision, QuestionRevisionAdmin)
-admin.site.register(AnswerRevision, AnswerRevisionAdmin)
-admin.site.register(Badge, BadgeAdmin)
-admin.site.register(Award, AwardAdmin)
-admin.site.register(Repute, ReputeAdmin)
-admin.site.register(Activity, ActivityAdmin)
-#admin.site.register(Book, BookAdmin)
-#admin.site.register(BookAuthorInfo, BookAuthorInfoAdmin)
-#admin.site.register(BookAuthorRss, BookAuthorRssAdmin)
+++ /dev/null
-import re
-import django.dispatch
-from forum.modules import get_modules_script_classes
-from forum.authentication.base import AuthenticationConsumer, ConsumerTemplateContext
-
-class ConsumerAndContext:
- def __init__(self, id, consumer, context):
- self.id = id
- self._consumer = consumer
-
- context.id = id
- self.context = context
-
- @property
- def consumer(self):
- return self._consumer()
-
-consumers = dict([
- (re.sub('AuthConsumer$', '', name).lower(), cls) for name, cls
- in get_modules_script_classes('authentication', AuthenticationConsumer).items()
- if not re.search('AbstractAuthConsumer$', name)
- ])
-
-contexts = dict([
- (re.sub('AuthContext$', '', name).lower(), cls) for name, cls
- in get_modules_script_classes('authentication', ConsumerTemplateContext).items()
- ])
-
-AUTH_PROVIDERS = dict([
- (name, ConsumerAndContext(name, consumers[name], contexts[name])) for name in consumers.keys()
- if name in contexts
- ])
-
-
-#todo: probably this don't belong here, also this post_stored routine needs a lot of work
-user_logged_in = django.dispatch.Signal(providing_args=["user", "old_session"])
-user_updated = django.dispatch.Signal(providing_args=["instance", "updated_by"])
-
-def post_stored_anonymous_content(user,old_session,**kwargs):
- from forum.models import AnonymousQuestion, AnonymousAnswer
- aq_list = AnonymousQuestion.objects.filter(session_key = old_session)
- aa_list = AnonymousAnswer.objects.filter(session_key = old_session)
- import settings
- if settings.EMAIL_VALIDATION == 'on':#add user to the record
- for aq in aq_list:
- aq.author = user
- aq.save()
- for aa in aa_list:
- aa.author = user
- aa.save()
- #maybe add pending posts message?
- else: #just publish the questions
- for aq in aq_list:
- aq.publish(user)
- for aa in aa_list:
- aa.publish(user)
-
-user_logged_in.connect(post_stored_anonymous_content)
\ No newline at end of file
+++ /dev/null
-
-class AuthenticationConsumer(object):
-
- def prepare_authentication_request(self, request, redirect_to):
- raise NotImplementedError()
-
- def process_authentication_request(self, response):
- raise NotImplementedError()
-
- def get_user_data(self, key):
- raise NotImplementedError()
-
-
-class ConsumerTemplateContext(object):
- """
- Class that provides information about a certain authentication provider context in the signin page.
-
- class attributes:
-
- mode - one of BIGICON, SMALLICON, FORM
-
- human_name - the human readable name of the provider
-
- extra_js - some providers require us to load extra javascript on the signin page for them to work,
- this is the place to add those files in the form of a list
-
- extra_css - same as extra_js but for css files
- """
- mode = ''
- weight = 500
- human_name = ''
- extra_js = []
- extra_css = []
- show_to_logged_in_user = True
-
- @classmethod
- def readable_key(cls, key):
- return key.key
-
-class InvalidAuthentication(Exception):
- def __init__(self, message):
- self.message = message
-
-
\ No newline at end of file
+++ /dev/null
-from forum.utils.forms import NextUrlField, UserNameField, UserEmailField, SetPasswordForm
-from forum.models import Question, User
-from django.contrib.contenttypes.models import ContentType
-from django.utils.translation import ugettext as _
-from django.utils.safestring import mark_safe
-from django import forms
-import logging
-
-class SimpleRegistrationForm(forms.Form):
- next = NextUrlField()
- username = UserNameField()
- email = UserEmailField()
-
-class TemporaryLoginRequestForm(forms.Form):
- def __init__(self, data=None):
- super(TemporaryLoginRequestForm, self).__init__(data)
- self.user_cache = None
-
- email = forms.EmailField(
- required=True,
- label=_("Your account email"),
- error_messages={
- 'required': _("You cannot leave this field blank"),
- 'invalid': _('please enter a valid email address'),
- }
- )
-
- def clean_email(self):
- try:
- user = User.objects.get(email=self.cleaned_data['email'])
- except:
- raise forms.ValidationError(_("Sorry, but this email is not on our database."))
-
- self.user_cache = user
- return self.cleaned_data['email']
-
-
-class SimpleEmailSubscribeForm(forms.Form):
- SIMPLE_SUBSCRIBE_CHOICES = (
- ('y',_('okay, let\'s try!')),
- ('n',_('no OSQA community email please, thanks'))
- )
- subscribe = forms.ChoiceField(widget=forms.widgets.RadioSelect(), \
- error_messages={'required':_('please choose one of the options above')},
- choices=SIMPLE_SUBSCRIBE_CHOICES)
-
-
-class ChangePasswordForm(SetPasswordForm):
- """ change password form """
- oldpw = forms.CharField(widget=forms.PasswordInput(attrs={'class':'required'}),
- label=mark_safe(_('Current password')))
-
- def __init__(self, data=None, user=None, *args, **kwargs):
- if user is None:
- raise TypeError("Keyword argument 'user' must be supplied")
- super(ChangePasswordForm, self).__init__(data, *args, **kwargs)
- self.user = user
-
- def clean_oldpw(self):
- """ test old password """
- if not self.user.check_password(self.cleaned_data['oldpw']):
- raise forms.ValidationError(_("Old password is incorrect. \
- Please enter the correct password."))
- return self.cleaned_data['oldpw']
+++ /dev/null
-import re
-
-from forum.badges.base import AbstractBadge
-from forum.modules import get_modules_script_classes
-
-ALL_BADGES = [
- cls() for name, cls
- in get_modules_script_classes('badges', AbstractBadge).items()
- if not re.search('AbstractBadge$', name)
- ]
+++ /dev/null
-import re
-from string import lower
-
-from django.contrib.contenttypes.models import ContentType
-from django.db.models.signals import post_save
-
-from forum.models.user import activity_record
-from forum.models import Badge, Award, Activity
-
-import logging
-
-class AbstractBadge(object):
-
- _instance = None
-
- @property
- def name(self):
- return " ".join(re.findall(r'([A-Z][a-z1-9]+)', re.sub('Badge', '', self.__class__.__name__)))
-
- @property
- def description(self):
- raise NotImplementedError
-
- def __new__(cls, *args, **kwargs):
- if cls._instance is None:
- cls.badge = "-".join(map(lower, re.findall(r'([A-Z][a-z1-9]+)', re.sub('Badge', '', cls.__name__))))
- cls._instance = super(AbstractBadge, cls).__new__(cls, *args, **kwargs)
-
- return cls._instance
-
- def install(self):
- try:
- installed = Badge.objects.get(slug=self.badge)
- except:
- badge = Badge(name=self.name, description=self.description, slug=self.badge, type=self.type)
- badge.save()
-
- def award_badge(self, user, obj=None, award_once=False):
- try:
- badge = Badge.objects.get(slug=self.badge)
- except:
- logging.log('Trying to award a badge not installed in the database.')
- return
-
- content_type = ContentType.objects.get_for_model(obj.__class__)
-
- awarded = user.awards.filter(badge=badge)
-
- if not award_once:
- awarded = awarded.filter(content_type=content_type, object_id=obj.id)
-
- if len(awarded):
- logging.log(1, 'Trying to award badged already awarded.')
- return
-
- award = Award(user=user, badge=badge, content_type=content_type, object_id=obj.id)
- award.save()
-
-class CountableAbstractBadge(AbstractBadge):
-
- def __init__(self, model, field, expected_value, handler):
- def wrapper(instance, **kwargs):
- dirty_fields = instance.get_dirty_fields()
- if field in dirty_fields and instance.__dict__[field] == expected_value:
- handler(instance=instance)
-
- post_save.connect(wrapper, sender=model, weak=False)
-
-class PostCountableAbstractBadge(CountableAbstractBadge):
- def __init__(self, model, field, expected_value):
-
- def handler(instance):
- self.award_badge(instance.author, instance)
-
- super(PostCountableAbstractBadge, self).__init__(model, field, expected_value, handler)
-
-
-class ActivityAbstractBadge(AbstractBadge):
-
- def __init__(self, activity_type, handler):
-
- def wrapper(sender, **kwargs):
- handler(instance=kwargs['instance'])
-
- activity_record.connect(wrapper, sender=activity_type, weak=False)
-
-
-class ActivityCountAbstractBadge(AbstractBadge):
-
- def __init__(self, activity_type, count):
-
- def handler(sender, **kwargs):
- instance = kwargs['instance']
- if Activity.objects.filter(user=instance.user, activity_type__in=activity_type).count() == count:
- self.award_badge(instance.user, instance.content_object)
-
- if not isinstance(activity_type, (tuple, list)):
- activity_type = (activity_type, )
-
- for type in activity_type:
- activity_record.connect(handler, sender=type, weak=False)
-
-class FirstActivityAbstractBadge(ActivityCountAbstractBadge):
-
- def __init__(self, activity_type):
- super(FirstActivityAbstractBadge, self).__init__(activity_type, 1)
+++ /dev/null
-# encoding:utf-8
-from django.utils.translation import ugettext as _
-"""
-All constants could be used in other modules
-For reasons that models, views can't have unicode text in this project, all unicode text go here.
-"""
-CLOSE_REASONS = (
- (1, _('duplicate question')),
- (2, _('question is off-topic or not relevant')),
- (3, _('too subjective and argumentative')),
- (4, _('is not an answer to the question')),
- (5, _('the question is answered, right answer was accepted')),
- (6, _('problem is not reproducible or outdated')),
- (7, _('question contains offensive inappropriate, or malicious remarks')),
- (8, _('spam or advertising')),
-)
-
-TYPE_REPUTATION_GAIN_BY_UPVOTED = 1
-TYPE_REPUTATION_GAIN_BY_ANSWER_ACCEPTED = 2
-TYPE_REPUTATION_GAIN_BY_ACCEPTING_ANSWER = 3
-TYPE_REPUTATION_GAIN_BY_DOWNVOTE_CANCELED = 4
-TYPE_REPUTATION_GAIN_BY_CANCELING_DOWNVOTE = 5
-TYPE_REPUTATION_LOST_BY_CANCELLING_ACCEPTED_ANSWER = -1
-TYPE_REPUTATION_LOST_BY_ACCEPTED_ANSWER_CANCELED = -2
-TYPE_REPUTATION_LOST_BY_DOWNVOTED = -3
-TYPE_REPUTATION_LOST_BY_FLAGGED = -4
-TYPE_REPUTATION_LOST_BY_DOWNVOTING = -5
-TYPE_REPUTATION_LOST_BY_FLAGGED_3_TIMES = -6
-TYPE_REPUTATION_LOST_BY_FLAGGED_5_TIMES = -7
-TYPE_REPUTATION_LOST_BY_UPVOTE_CANCELED = -8
-
-TYPE_REPUTATION = (
- (TYPE_REPUTATION_GAIN_BY_UPVOTED, 'gain_by_upvoted'),
- (TYPE_REPUTATION_GAIN_BY_ANSWER_ACCEPTED, 'gain_by_answer_accepted'),
- (TYPE_REPUTATION_GAIN_BY_ACCEPTING_ANSWER, 'gain_by_accepting_answer'),
- (TYPE_REPUTATION_GAIN_BY_DOWNVOTE_CANCELED, 'gain_by_downvote_canceled'),
- (TYPE_REPUTATION_GAIN_BY_CANCELING_DOWNVOTE, 'gain_by_canceling_downvote'),
- (TYPE_REPUTATION_LOST_BY_CANCELLING_ACCEPTED_ANSWER, 'lose_by_canceling_accepted_answer'),
- (TYPE_REPUTATION_LOST_BY_ACCEPTED_ANSWER_CANCELED, 'lose_by_accepted_answer_cancled'),
- (TYPE_REPUTATION_LOST_BY_DOWNVOTED, 'lose_by_downvoted'),
- (TYPE_REPUTATION_LOST_BY_FLAGGED, 'lose_by_flagged'),
- (TYPE_REPUTATION_LOST_BY_DOWNVOTING, 'lose_by_downvoting'),
- (TYPE_REPUTATION_LOST_BY_FLAGGED_3_TIMES, 'lose_by_flagged_lastrevision_3_times'),
- (TYPE_REPUTATION_LOST_BY_FLAGGED_5_TIMES, 'lose_by_flagged_lastrevision_5_times'),
- (TYPE_REPUTATION_LOST_BY_UPVOTE_CANCELED, 'lose_by_upvote_canceled'),
-)
-
-TYPE_ACTIVITY_ASK_QUESTION=1
-TYPE_ACTIVITY_ANSWER=2
-TYPE_ACTIVITY_COMMENT_QUESTION=3
-TYPE_ACTIVITY_COMMENT_ANSWER=4
-TYPE_ACTIVITY_UPDATE_QUESTION=5
-TYPE_ACTIVITY_UPDATE_ANSWER=6
-TYPE_ACTIVITY_PRIZE=7
-TYPE_ACTIVITY_MARK_ANSWER=8
-TYPE_ACTIVITY_VOTE_UP=9
-TYPE_ACTIVITY_VOTE_DOWN=10
-TYPE_ACTIVITY_CANCEL_VOTE_UP=11
-TYPE_ACTIVITY_CANCEL_VOTE_DOWN=19
-TYPE_ACTIVITY_DELETE_QUESTION=12
-TYPE_ACTIVITY_DELETE_ANSWER=13
-TYPE_ACTIVITY_MARK_OFFENSIVE=14
-TYPE_ACTIVITY_UPDATE_TAGS=15
-TYPE_ACTIVITY_FAVORITE=16
-TYPE_ACTIVITY_USER_FULL_UPDATED = 17
-TYPE_ACTIVITY_QUESTION_EMAIL_UPDATE_SENT = 18
-#TYPE_ACTIVITY_EDIT_QUESTION=17
-#TYPE_ACTIVITY_EDIT_ANSWER=18
-
-TYPE_ACTIVITY = (
- (TYPE_ACTIVITY_ASK_QUESTION, _('question')),
- (TYPE_ACTIVITY_ANSWER, _('answer')),
- (TYPE_ACTIVITY_COMMENT_QUESTION, _('commented question')),
- (TYPE_ACTIVITY_COMMENT_ANSWER, _('commented answer')),
- (TYPE_ACTIVITY_UPDATE_QUESTION, _('edited question')),
- (TYPE_ACTIVITY_UPDATE_ANSWER, _('edited answer')),
- (TYPE_ACTIVITY_PRIZE, _('received award')),
- (TYPE_ACTIVITY_MARK_ANSWER, _('marked best answer')),
- (TYPE_ACTIVITY_VOTE_UP, _('upvoted')),
- (TYPE_ACTIVITY_VOTE_DOWN, _('downvoted')),
- (TYPE_ACTIVITY_CANCEL_VOTE_UP, _('upvote canceled')),
- (TYPE_ACTIVITY_CANCEL_VOTE_DOWN, _('downvote canceled')),
- (TYPE_ACTIVITY_DELETE_QUESTION, _('deleted question')),
- (TYPE_ACTIVITY_DELETE_ANSWER, _('deleted answer')),
- (TYPE_ACTIVITY_MARK_OFFENSIVE, _('marked offensive')),
- (TYPE_ACTIVITY_UPDATE_TAGS, _('updated tags')),
- (TYPE_ACTIVITY_FAVORITE, _('selected favorite')),
- (TYPE_ACTIVITY_USER_FULL_UPDATED, _('completed user profile')),
- (TYPE_ACTIVITY_QUESTION_EMAIL_UPDATE_SENT, _('email update sent to user')),
-)
-
-TYPE_RESPONSE = {
- 'QUESTION_ANSWERED' : _('question_answered'),
- 'QUESTION_COMMENTED': _('question_commented'),
- 'ANSWER_COMMENTED' : _('answer_commented'),
- 'ANSWER_ACCEPTED' : _('answer_accepted'),
-}
-
-CONST = {
- 'closed' : _('[closed]'),
- 'deleted' : _('[deleted]'),
- 'default_version' : _('initial version'),
- 'retagged' : _('retagged'),
-}
-
-BRONZE_BADGE = 3
-SILVER_BADGE = 2
-GOLD_BADGE = 1
-
-NOTIFICATION_CHOICES = (
- ('i', _('Instantly')),
- ('d', _('Daily')),
- ('w', _('Weekly')),
- ('n', _('No notifications')),
-)
+++ /dev/null
-from django.conf import settings
-def application_settings(context):
- my_settings = {
- 'APP_TITLE' : settings.APP_TITLE,
- 'APP_SHORT_NAME' : settings.APP_SHORT_NAME,
- 'APP_URL' : settings.APP_URL,
- 'APP_KEYWORDS' : settings.APP_KEYWORDS,
- 'APP_DESCRIPTION' : settings.APP_DESCRIPTION,
- 'APP_INTRO' : settings.APP_INTRO,
- 'APP_LOGO' : settings.APP_LOGO,
- 'EMAIL_VALIDATION': settings.EMAIL_VALIDATION,
- 'FEEDBACK_SITE_URL': settings.FEEDBACK_SITE_URL,
- 'FORUM_SCRIPT_ALIAS': settings.FORUM_SCRIPT_ALIAS,
- 'LANGUAGE_CODE': settings.LANGUAGE_CODE,
- 'GOOGLE_SITEMAP_CODE':settings.GOOGLE_SITEMAP_CODE,
- 'GOOGLE_ANALYTICS_KEY':settings.GOOGLE_ANALYTICS_KEY,
- 'WIKI_ON':settings.WIKI_ON,
- 'RESOURCE_REVISION':settings.RESOURCE_REVISION,
- 'OSQA_SKIN':settings.OSQA_DEFAULT_SKIN,
- 'APP_FAVICON':settings.APP_FAVICON,
- }
- return {'settings':my_settings}
-
-def auth_processor(request):
- """
- Returns context variables required by apps that use Django's authentication
- system.
-
- If there is no 'user' attribute in the request, uses AnonymousUser (from
- django.contrib.auth).
- """
- if hasattr(request, 'user'):
- user = request.user
- if user.is_authenticated():
- messages = user.message_set.all()
- else:
- messages = None
- else:
- from django.contrib.auth.models import AnonymousUser
- user = AnonymousUser()
- messages = None
-
- from django.core.context_processors import PermWrapper
- return {
- 'user': user,
- 'messages': messages,
- 'perms': PermWrapper(user),
- }
+++ /dev/null
-#!/usr/bin/env python
-#encoding:utf-8
-#-------------------------------------------------------------------------------
-# Name: Syndication feed class for subsribtion
-# Purpose:
-#
-# Author: Mike
-#
-# Created: 29/01/2009
-# Copyright: (c) CNPROG.COM 2009
-# Licence: GPL V2
-#-------------------------------------------------------------------------------
-from django.contrib.syndication.feeds import Feed, FeedDoesNotExist
-from django.utils.translation import ugettext as _
-from models import Question
-from django.conf import settings
-class RssLastestQuestionsFeed(Feed):
- title = settings.APP_TITLE + _(' - ')+ _('latest questions')
- link = settings.APP_URL #+ '/' + _('question/')
- description = settings.APP_DESCRIPTION
- #ttl = 10
- copyright = settings.APP_COPYRIGHT
-
- def item_link(self, item):
- return self.link + item.get_absolute_url()
-
- def item_author_name(self, item):
- return item.author.username
-
- def item_author_link(self, item):
- return item.author.get_profile_url()
-
- def item_pubdate(self, item):
- return item.added_at
-
- def items(self, item):
- return Question.objects.filter(deleted=False).order_by('-last_activity_at')[:30]
-
-def main():
- pass
-
-if __name__ == '__main__':
- main()
+++ /dev/null
-import re
-from datetime import date
-from django import forms
-from models import *
-from const import *
-from django.utils.translation import ugettext as _
-from forum.models import User
-from django.contrib.contenttypes.models import ContentType
-from django.utils.safestring import mark_safe
-from forum.utils.forms import NextUrlField, UserNameField, SetPasswordForm
-from django.conf import settings
-from django.contrib.contenttypes.models import ContentType
-import logging
-
-class TitleField(forms.CharField):
- def __init__(self, *args, **kwargs):
- super(TitleField, self).__init__(*args, **kwargs)
- self.required = True
- self.widget = forms.TextInput(attrs={'size' : 70, 'autocomplete' : 'off'})
- self.max_length = 255
- self.label = _('title')
- self.help_text = _('please enter a descriptive title for your question')
- self.initial = ''
-
- def clean(self, value):
- if len(value) < 10:
- raise forms.ValidationError(_('title must be > 10 characters'))
-
- return value
-
-class EditorField(forms.CharField):
- def __init__(self, *args, **kwargs):
- super(EditorField, self).__init__(*args, **kwargs)
- self.required = True
- self.widget = forms.Textarea(attrs={'id':'editor'})
- self.label = _('content')
- self.help_text = u''
- self.initial = ''
-
- def clean(self, value):
- if len(value) < 10:
- raise forms.ValidationError(_('question content must be > 10 characters'))
-
- return value
-
-class TagNamesField(forms.CharField):
- def __init__(self, *args, **kwargs):
- super(TagNamesField, self).__init__(*args, **kwargs)
- self.required = True
- self.widget = forms.TextInput(attrs={'size' : 50, 'autocomplete' : 'off'})
- self.max_length = 255
- self.label = _('tags')
- #self.help_text = _('please use space to separate tags (this enables autocomplete feature)')
- self.help_text = _('Tags are short keywords, with no spaces within. Up to five tags can be used.')
- self.initial = ''
-
- def clean(self, value):
- value = super(TagNamesField, self).clean(value)
- data = value.strip()
- if len(data) < 1:
- raise forms.ValidationError(_('tags are required'))
-
- split_re = re.compile(r'[ ,]+')
- list = split_re.split(data)
- list_temp = []
- if len(list) > 5:
- raise forms.ValidationError(_('please use 5 tags or less'))
-
- tagname_re = re.compile(r'[a-z0-9]+')
- for tag in list:
- if len(tag) > 20:
- raise forms.ValidationError(_('tags must be shorter than 20 characters'))
- if not tagname_re.match(tag):
- raise forms.ValidationError(_('please use following characters in tags: letters \'a-z\', numbers, and characters \'.-_#\''))
- # only keep one same tag
- if tag not in list_temp and len(tag.strip()) > 0:
- list_temp.append(tag)
- return u' '.join(list_temp)
-
-class WikiField(forms.BooleanField):
- def __init__(self, *args, **kwargs):
- super(WikiField, self).__init__(*args, **kwargs)
- self.required = False
- self.label = _('community wiki')
- self.help_text = _('if you choose community wiki option, the question and answer do not generate points and name of author will not be shown')
- def clean(self,value):
- return value and settings.WIKI_ON
-
-class EmailNotifyField(forms.BooleanField):
- def __init__(self, *args, **kwargs):
- super(EmailNotifyField, self).__init__(*args, **kwargs)
- self.required = False
- self.widget.attrs['class'] = 'nomargin'
-
-class SummaryField(forms.CharField):
- def __init__(self, *args, **kwargs):
- super(SummaryField, self).__init__(*args, **kwargs)
- self.required = False
- self.widget = forms.TextInput(attrs={'size' : 50, 'autocomplete' : 'off'})
- self.max_length = 300
- self.label = _('update summary:')
- self.help_text = _('enter a brief summary of your revision (e.g. fixed spelling, grammar, improved style, this field is optional)')
-
-class ModerateUserForm(forms.ModelForm):
- is_approved = forms.BooleanField(label=_("Automatically accept user's contributions for the email updates"),
- required=False)
-
- def clean_is_approved(self):
- if 'is_approved' not in self.cleaned_data:
- self.cleaned_data['is_approved'] = False
- return self.cleaned_data['is_approved']
-
- class Meta:
- model = User
- fields = ('is_approved',)
-
-class FeedbackForm(forms.Form):
- name = forms.CharField(label=_('Your name:'), required=False)
- email = forms.EmailField(label=_('Email (not shared with anyone):'), required=False)
- message = forms.CharField(label=_('Your message:'), max_length=800,widget=forms.Textarea(attrs={'cols':60}))
- next = NextUrlField()
-
-class AskForm(forms.Form):
- title = TitleField()
- text = EditorField()
- tags = TagNamesField()
- wiki = WikiField()
-
- openid = forms.CharField(required=False, max_length=255, widget=forms.TextInput(attrs={'size' : 40, 'class':'openid-input'}))
- user = forms.CharField(required=False, max_length=255, widget=forms.TextInput(attrs={'size' : 35}))
- email = forms.CharField(required=False, max_length=255, widget=forms.TextInput(attrs={'size' : 35}))
-
-class AnswerForm(forms.Form):
- text = EditorField()
- wiki = WikiField()
- openid = forms.CharField(required=False, max_length=255, widget=forms.TextInput(attrs={'size' : 40, 'class':'openid-input'}))
- user = forms.CharField(required=False, max_length=255, widget=forms.TextInput(attrs={'size' : 35}))
- email = forms.CharField(required=False, max_length=255, widget=forms.TextInput(attrs={'size' : 35}))
- email_notify = EmailNotifyField()
- def __init__(self, question, user, *args, **kwargs):
- super(AnswerForm, self).__init__(*args, **kwargs)
- self.fields['email_notify'].widget.attrs['id'] = 'question-subscribe-updates';
- if question.wiki and settings.WIKI_ON:
- self.fields['wiki'].initial = True
- if user.is_authenticated():
- if user in question.followed_by.all():
- self.fields['email_notify'].initial = True
- return
- self.fields['email_notify'].initial = False
-
-
-class CloseForm(forms.Form):
- reason = forms.ChoiceField(choices=CLOSE_REASONS)
-
-class RetagQuestionForm(forms.Form):
- tags = TagNamesField()
- # initialize the default values
- def __init__(self, question, *args, **kwargs):
- super(RetagQuestionForm, self).__init__(*args, **kwargs)
- self.fields['tags'].initial = question.tagnames
-
-class RevisionForm(forms.Form):
- """
- Lists revisions of a Question or Answer
- """
- revision = forms.ChoiceField(widget=forms.Select(attrs={'style' : 'width:520px'}))
-
- def __init__(self, post, latest_revision, *args, **kwargs):
- super(RevisionForm, self).__init__(*args, **kwargs)
- revisions = post.revisions.all().values_list(
- 'revision', 'author__username', 'revised_at', 'summary')
- date_format = '%c'
- self.fields['revision'].choices = [
- (r[0], u'%s - %s (%s) %s' % (r[0], r[1], r[2].strftime(date_format), r[3]))
- for r in revisions]
- self.fields['revision'].initial = latest_revision.revision
-
-class EditQuestionForm(forms.Form):
- title = TitleField()
- text = EditorField()
- tags = TagNamesField()
- summary = SummaryField()
-
- def __init__(self, question, revision, *args, **kwargs):
- super(EditQuestionForm, self).__init__(*args, **kwargs)
- self.fields['title'].initial = revision.title
- self.fields['text'].initial = revision.text
- self.fields['tags'].initial = revision.tagnames
- # Once wiki mode is enabled, it can't be disabled
- if not question.wiki:
- self.fields['wiki'] = WikiField()
-
-class EditAnswerForm(forms.Form):
- text = EditorField()
- summary = SummaryField()
-
- def __init__(self, answer, revision, *args, **kwargs):
- super(EditAnswerForm, self).__init__(*args, **kwargs)
- self.fields['text'].initial = revision.text
-
-class EditUserForm(forms.Form):
- email = forms.EmailField(label=u'Email', help_text=_('this email does not have to be linked to gravatar'), required=True, max_length=255, widget=forms.TextInput(attrs={'size' : 35}))
- if settings.EDITABLE_SCREEN_NAME:
- username = UserNameField(label=_('Screen name'))
- realname = forms.CharField(label=_('Real name'), required=False, max_length=255, widget=forms.TextInput(attrs={'size' : 35}))
- website = forms.URLField(label=_('Website'), required=False, max_length=255, widget=forms.TextInput(attrs={'size' : 35}))
- city = forms.CharField(label=_('Location'), required=False, max_length=255, widget=forms.TextInput(attrs={'size' : 35}))
- birthday = forms.DateField(label=_('Date of birth'), help_text=_('will not be shown, used to calculate age, format: YYYY-MM-DD'), required=False, widget=forms.TextInput(attrs={'size' : 35}))
- about = forms.CharField(label=_('Profile'), required=False, widget=forms.Textarea(attrs={'cols' : 60}))
-
- def __init__(self, user, *args, **kwargs):
- super(EditUserForm, self).__init__(*args, **kwargs)
- logging.debug('initializing the form')
- if settings.EDITABLE_SCREEN_NAME:
- self.fields['username'].initial = user.username
- self.fields['username'].user_instance = user
- self.fields['email'].initial = user.email
- self.fields['realname'].initial = user.real_name
- self.fields['website'].initial = user.website
- self.fields['city'].initial = user.location
-
- if user.date_of_birth is not None:
- self.fields['birthday'].initial = user.date_of_birth
- else:
- self.fields['birthday'].initial = '1990-01-01'
- self.fields['about'].initial = user.about
- self.user = user
-
- def clean_email(self):
- """For security reason one unique email in database"""
- if self.user.email != self.cleaned_data['email']:
- #todo dry it, there is a similar thing in openidauth
- if settings.EMAIL_UNIQUE == True:
- if 'email' in self.cleaned_data:
- try:
- user = User.objects.get(email = self.cleaned_data['email'])
- except User.DoesNotExist:
- return self.cleaned_data['email']
- except User.MultipleObjectsReturned:
- raise forms.ValidationError(_('this email has already been registered, please use another one'))
- raise forms.ValidationError(_('this email has already been registered, please use another one'))
- return self.cleaned_data['email']
-
-
-class SubscriptionSettingsForm(forms.Form):
- member_joins = forms.ChoiceField(widget=forms.RadioSelect, choices=NOTIFICATION_CHOICES)
- new_question = forms.ChoiceField(widget=forms.RadioSelect, choices=NOTIFICATION_CHOICES)
- new_question_watched_tags = forms.ChoiceField(widget=forms.RadioSelect, choices=NOTIFICATION_CHOICES)
- subscribed_questions = forms.ChoiceField(widget=forms.RadioSelect, choices=NOTIFICATION_CHOICES)
-
- all_questions = forms.BooleanField(required=False, initial=False)
- all_questions_watched_tags = forms.BooleanField(required=False, initial=False)
- questions_asked = forms.BooleanField(required=False, initial=False)
- questions_answered = forms.BooleanField(required=False, initial=False)
- questions_commented = forms.BooleanField(required=False, initial=False)
- questions_viewed = forms.BooleanField(required=False, initial=False)
-
- notify_answers = forms.BooleanField(required=False, initial=False)
- notify_reply_to_comments = forms.BooleanField(required=False, initial=False)
- notify_comments_own_post = forms.BooleanField(required=False, initial=False)
- notify_comments = forms.BooleanField(required=False, initial=False)
- notify_accepted = forms.BooleanField(required=False, initial=False)
-
+++ /dev/null
-from forum.modules import get_modules_script
-from django.db.models.signals import post_syncdb
-import forum.models
-
-def setup_badges(sender, **kwargs):
- from forum.badges import ALL_BADGES
-
- for badge in ALL_BADGES:
- badge.install()
-
-post_syncdb.connect(setup_badges, sender=forum.models)
-
-get_modules_script('management')
\ No newline at end of file
+++ /dev/null
-#!/usr/bin/env python
-#encoding:utf-8
-#-------------------------------------------------------------------------------
-# Name: Award badges command
-# Purpose: This is a command file croning in background process regularly to
-# query database and award badges for user's special acitivities.
-#
-# Author: Mike, Sailing
-#
-# Created: 22/01/2009
-# Copyright: (c) Mike 2009
-# Licence: GPL V2
-#-------------------------------------------------------------------------------
-
-from datetime import datetime, date
-from django.core.management.base import NoArgsCommand
-from django.db import connection
-from django.shortcuts import get_object_or_404
-from django.contrib.contenttypes.models import ContentType
-
-from forum.models import *
-from forum.const import *
-
-class BaseCommand(NoArgsCommand):
- def update_activities_auditted(self, cursor, activity_ids):
- # update processed rows to auditted
- if len(activity_ids):
- query = "UPDATE activity SET is_auditted = 1 WHERE id in (%s)"\
- % ','.join('%s' % item for item in activity_ids)
- cursor.execute(query)
-
-
-
-
-
+++ /dev/null
-\r
-PG_MIGRATION_QUERY = """\r
-SELECT id AS user_ptr_id, is_approved, email_isvalid, email_key, reputation, gravatar, gold, silver, bronze, questions_per_page, last_seen, real_name, website, location, date_of_birth, about, hide_ignored_questions, tag_filter_setting INTO forum_user FROM auth_user;\r
-\r
-ALTER TABLE forum_user\r
- ADD CONSTRAINT forum_user_pkey PRIMARY KEY(user_ptr_id);\r
-\r
-ALTER TABLE forum_user\r
- ADD CONSTRAINT forum_user_user_ptr_id_fkey FOREIGN KEY (user_ptr_id)\r
- REFERENCES auth_user (id) MATCH SIMPLE\r
- ON UPDATE NO ACTION ON DELETE NO ACTION DEFERRABLE INITIALLY DEFERRED;\r
-\r
-ALTER TABLE forum_user\r
- ADD CONSTRAINT forum_user_reputation_check CHECK (reputation >= 0);\r
-\r
-ALTER TABLE auth_user DROP COLUMN is_approved;\r
-ALTER TABLE auth_user DROP COLUMN email_isvalid;\r
-ALTER TABLE auth_user DROP COLUMN email_key;\r
-ALTER TABLE auth_user DROP COLUMN reputation;\r
-ALTER TABLE auth_user DROP COLUMN gravatar;\r
-ALTER TABLE auth_user DROP COLUMN gold;\r
-ALTER TABLE auth_user DROP COLUMN silver;\r
-ALTER TABLE auth_user DROP COLUMN bronze;\r
-ALTER TABLE auth_user DROP COLUMN questions_per_page;\r
-ALTER TABLE auth_user DROP COLUMN last_seen;\r
-ALTER TABLE auth_user DROP COLUMN real_name;\r
-ALTER TABLE auth_user DROP COLUMN website;\r
-ALTER TABLE auth_user DROP COLUMN "location";\r
-ALTER TABLE auth_user DROP COLUMN date_of_birth;\r
-ALTER TABLE auth_user DROP COLUMN about;\r
-ALTER TABLE auth_user DROP COLUMN hide_ignored_questions;\r
-ALTER TABLE auth_user DROP COLUMN tag_filter_setting;\r
-\r
-"""\r
-\r
-PG_FKEYS_QUERY = """\r
-\r
-ALTER TABLE "public"."activity"\r
-DROP CONSTRAINT "activity_user_id_fkey",\r
-ADD CONSTRAINT "activity_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED;\r
-\r
-ALTER TABLE "public"."answer"\r
-DROP CONSTRAINT "answer_author_id_fkey",\r
-ADD CONSTRAINT "answer_author_id_fkey" FOREIGN KEY ("author_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED,\r
-DROP CONSTRAINT "answer_deleted_by_id_fkey",\r
-ADD CONSTRAINT "answer_deleted_by_id_fkey" FOREIGN KEY ("deleted_by_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED,\r
-DROP CONSTRAINT "answer_last_edited_by_id_fkey",\r
-ADD CONSTRAINT "answer_last_edited_by_id_fkey" FOREIGN KEY ("last_edited_by_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED,\r
-DROP CONSTRAINT "answer_locked_by_id_fkey",\r
-ADD CONSTRAINT "answer_locked_by_id_fkey" FOREIGN KEY ("locked_by_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED;\r
-\r
-ALTER TABLE "public"."answer_revision"\r
-DROP CONSTRAINT "answer_revision_author_id_fkey",\r
-ADD CONSTRAINT "answer_revision_author_id_fkey" FOREIGN KEY ("author_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED;\r
-\r
-ALTER TABLE "public"."award"\r
-DROP CONSTRAINT "award_user_id_fkey",\r
-ADD CONSTRAINT "award_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED;\r
-\r
-ALTER TABLE "public"."comment"\r
-DROP CONSTRAINT "comment_user_id_fkey",\r
-ADD CONSTRAINT "comment_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED;\r
-\r
-ALTER TABLE "public"."favorite_question"\r
-DROP CONSTRAINT "favorite_question_user_id_fkey",\r
-ADD CONSTRAINT "favorite_question_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED;\r
-\r
-ALTER TABLE "public"."flagged_item"\r
-DROP CONSTRAINT "flagged_item_user_id_fkey",\r
-ADD CONSTRAINT "flagged_item_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED;\r
-\r
-ALTER TABLE "public"."forum_anonymousanswer"\r
-DROP CONSTRAINT "forum_anonymousanswer_author_id_fkey",\r
-ADD CONSTRAINT "forum_anonymousanswer_author_id_fkey" FOREIGN KEY ("author_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED;\r
-\r
-ALTER TABLE "public"."forum_anonymousquestion"\r
-DROP CONSTRAINT "forum_anonymousquestion_author_id_fkey",\r
-ADD CONSTRAINT "forum_anonymousquestion_author_id_fkey" FOREIGN KEY ("author_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED;\r
-\r
-ALTER TABLE "public"."forum_authkeyuserassociation"\r
-DROP CONSTRAINT "forum_authkeyuserassociation_user_id_fkey",\r
-ADD CONSTRAINT "forum_authkeyuserassociation_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED;\r
-\r
-ALTER TABLE "public"."forum_markedtag"\r
-DROP CONSTRAINT "forum_markedtag_user_id_fkey",\r
-ADD CONSTRAINT "forum_markedtag_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED;\r
-\r
-ALTER TABLE "public"."forum_questionsubscription"\r
-DROP CONSTRAINT "forum_questionsubscription_user_id_fkey",\r
-ADD CONSTRAINT "forum_questionsubscription_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED;\r
-\r
-ALTER TABLE "public"."forum_subscriptionsettings"\r
-DROP CONSTRAINT "forum_subscriptionsettings_user_id_fkey",\r
-ADD CONSTRAINT "forum_subscriptionsettings_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED;\r
-\r
-ALTER TABLE "public"."forum_validationhash"\r
-DROP CONSTRAINT "forum_validationhash_user_id_fkey",\r
-ADD CONSTRAINT "forum_validationhash_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED;\r
-\r
-ALTER TABLE "public"."question"\r
-DROP CONSTRAINT "question_author_id_fkey",\r
-ADD CONSTRAINT "question_author_id_fkey" FOREIGN KEY ("author_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED,\r
-DROP CONSTRAINT "question_closed_by_id_fkey",\r
-ADD CONSTRAINT "question_closed_by_id_fkey" FOREIGN KEY ("closed_by_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED,\r
-DROP CONSTRAINT "question_deleted_by_id_fkey",\r
-ADD CONSTRAINT "question_deleted_by_id_fkey" FOREIGN KEY ("deleted_by_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED,\r
-DROP CONSTRAINT "question_last_activity_by_id_fkey",\r
-ADD CONSTRAINT "question_last_activity_by_id_fkey" FOREIGN KEY ("last_activity_by_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED,\r
-DROP CONSTRAINT "question_last_edited_by_id_fkey",\r
-ADD CONSTRAINT "question_last_edited_by_id_fkey" FOREIGN KEY ("last_edited_by_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED,\r
-DROP CONSTRAINT "question_locked_by_id_fkey",\r
-ADD CONSTRAINT "question_locked_by_id_fkey" FOREIGN KEY ("locked_by_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED;\r
-\r
-ALTER TABLE "public"."question_followed_by"\r
-DROP CONSTRAINT "question_followed_by_user_id_fkey",\r
-ADD CONSTRAINT "question_followed_by_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED;\r
-\r
-ALTER TABLE "public"."question_revision"\r
-DROP CONSTRAINT "question_revision_author_id_fkey",\r
-ADD CONSTRAINT "question_revision_author_id_fkey" FOREIGN KEY ("author_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED;\r
-\r
-ALTER TABLE "public"."repute"\r
-DROP CONSTRAINT "repute_user_id_fkey",\r
-ADD CONSTRAINT "repute_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED;\r
-\r
-ALTER TABLE "public"."tag"\r
-DROP CONSTRAINT "tag_created_by_id_fkey",\r
-ADD CONSTRAINT "tag_created_by_id_fkey" FOREIGN KEY ("created_by_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED,\r
-DROP CONSTRAINT "tag_deleted_by_id_fkey",\r
-ADD CONSTRAINT "tag_deleted_by_id_fkey" FOREIGN KEY ("deleted_by_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED;\r
-\r
-ALTER TABLE "public"."vote"\r
-DROP CONSTRAINT "vote_user_id_fkey",\r
-ADD CONSTRAINT "vote_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED;\r
-\r
-"""\r
-\r
-MYSQL_MIGRATION_QUERY = """\r
-CREATE TABLE `forum_user` (\r
- `user_ptr_id` int(11) NOT NULL,\r
- `is_approved` tinyint(1) NOT NULL,\r
- `email_isvalid` tinyint(1) NOT NULL,\r
- `email_key` varchar(32) DEFAULT NULL,\r
- `reputation` int(10) unsigned NOT NULL,\r
- `gravatar` varchar(32) NOT NULL,\r
- `gold` smallint(6) NOT NULL,\r
- `silver` smallint(6) NOT NULL,\r
- `bronze` smallint(6) NOT NULL,\r
- `questions_per_page` smallint(6) NOT NULL,\r
- `last_seen` datetime NOT NULL,\r
- `real_name` varchar(100) NOT NULL,\r
- `website` varchar(200) NOT NULL,\r
- `location` varchar(100) NOT NULL,\r
- `date_of_birth` date DEFAULT NULL,\r
- `about` longtext NOT NULL,\r
- `hide_ignored_questions` tinyint(1) NOT NULL,\r
- `tag_filter_setting` varchar(16) NOT NULL,\r
- PRIMARY KEY (`user_ptr_id`),\r
- CONSTRAINT `user_ptr_id_refs_id_71071d7` FOREIGN KEY (`user_ptr_id`) REFERENCES `auth_user` (`id`)\r
-) ENGINE=InnoDB DEFAULT CHARSET=utf8\r
-SELECT id AS user_ptr_id, is_approved, email_isvalid, email_key, reputation, gravatar, gold, silver, bronze, questions_per_page,\r
- last_seen, real_name, website, location, date_of_birth, about, hide_ignored_questions, tag_filter_setting FROM auth_user;\r
-\r
-ALTER TABLE `auth_user`\r
-DROP COLUMN `is_approved`,\r
-DROP COLUMN `email_isvalid`,\r
-DROP COLUMN `email_key`,\r
-DROP COLUMN `reputation`,\r
-DROP COLUMN `gravatar`,\r
-DROP COLUMN `gold`,\r
-DROP COLUMN `silver`,\r
-DROP COLUMN `bronze`,\r
-DROP COLUMN `questions_per_page`,\r
-DROP COLUMN `last_seen`,\r
-DROP COLUMN `real_name`,\r
-DROP COLUMN `website`,\r
-DROP COLUMN `location`,\r
-DROP COLUMN `date_of_birth`,\r
-DROP COLUMN `about`,\r
-DROP COLUMN `hide_ignored_questions`,\r
-DROP COLUMN `tag_filter_setting`;\r
-\r
-"""\r
-\r
-MYSQL_FKEYS_QUERY = """\r
-\r
-ALTER TABLE `activity` DROP FOREIGN KEY `user_id_refs_id_47c8583f`;\r
-ALTER TABLE `activity` ADD CONSTRAINT `user_id_refs_user_ptr_id_62ae9785` FOREIGN KEY (`user_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT;\r
-\r
-ALTER TABLE `answer` DROP FOREIGN KEY `author_id_refs_id_192b0170`;\r
-ALTER TABLE `answer` ADD CONSTRAINT `author_id_refs_user_ptr_id_9681994` FOREIGN KEY (`author_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT;\r
-ALTER TABLE `answer` DROP FOREIGN KEY `deleted_by_id_refs_id_192b0170`;\r
-ALTER TABLE `answer` ADD CONSTRAINT `deleted_by_id_refs_user_ptr_id_9681994` FOREIGN KEY (`deleted_by_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT;\r
-ALTER TABLE `answer` DROP FOREIGN KEY `last_edited_by_id_refs_id_192b0170`;\r
-ALTER TABLE `answer` ADD CONSTRAINT `last_edited_by_id_refs_user_ptr_id_9681994` FOREIGN KEY (`last_edited_by_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT;\r
-ALTER TABLE `answer` DROP FOREIGN KEY `locked_by_id_refs_id_192b0170`;\r
-ALTER TABLE `answer` ADD CONSTRAINT `locked_by_id_refs_user_ptr_id_9681994` FOREIGN KEY (`locked_by_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT;\r
-\r
-ALTER TABLE `answer_revision` DROP FOREIGN KEY `author_id_refs_id_3ccc055f`;\r
-ALTER TABLE `answer_revision` ADD CONSTRAINT `author_id_refs_user_ptr_id_331f0123` FOREIGN KEY (`author_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT;\r
-\r
-ALTER TABLE `award` DROP FOREIGN KEY `user_id_refs_id_2d83e9b6`;\r
-ALTER TABLE `award` ADD CONSTRAINT `user_id_refs_user_ptr_id_1b2d0192` FOREIGN KEY (`user_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT;\r
-\r
-ALTER TABLE `comment` DROP FOREIGN KEY `user_id_refs_id_6be725e8`;\r
-ALTER TABLE `comment` ADD CONSTRAINT `user_id_refs_user_ptr_id_1ac2320c` FOREIGN KEY (`user_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT;\r
-\r
-ALTER TABLE `favorite_question` DROP FOREIGN KEY `user_id_refs_id_52853822`;\r
-ALTER TABLE `favorite_question` ADD CONSTRAINT `user_id_refs_user_ptr_id_3f419c1a` FOREIGN KEY (`user_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT;\r
-\r
-ALTER TABLE `flagged_item` DROP FOREIGN KEY `user_id_refs_id_35e3c608`;\r
-ALTER TABLE `flagged_item` ADD CONSTRAINT `user_id_refs_user_ptr_id_1ce834d4` FOREIGN KEY (`user_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT;\r
-\r
-ALTER TABLE `forum_anonymousanswer` DROP FOREIGN KEY `author_id_refs_id_13fb542e`;\r
-ALTER TABLE `forum_anonymousanswer` ADD CONSTRAINT `author_id_refs_user_ptr_id_6b5b476a` FOREIGN KEY (`author_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT;\r
-\r
-ALTER TABLE `forum_anonymousquestion` DROP FOREIGN KEY `author_id_refs_id_7511a98a`;\r
-ALTER TABLE `forum_anonymousquestion` ADD CONSTRAINT `author_id_refs_user_ptr_id_104edd52` FOREIGN KEY (`author_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT;\r
-\r
-ALTER TABLE `forum_authkeyuserassociation` DROP FOREIGN KEY `user_id_refs_id_2c2a6b01`;\r
-ALTER TABLE `forum_authkeyuserassociation` ADD CONSTRAINT `user_id_refs_user_ptr_id_3f0ec0c3` FOREIGN KEY (`user_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT;\r
-\r
-ALTER TABLE `forum_markedtag` DROP FOREIGN KEY `user_id_refs_id_23b833bd`;\r
-ALTER TABLE `forum_markedtag` ADD CONSTRAINT `user_id_refs_user_ptr_id_5a13f081` FOREIGN KEY (`user_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT;\r
-\r
-ALTER TABLE `forum_questionsubscription` DROP FOREIGN KEY `user_id_refs_id_18e1489`;\r
-ALTER TABLE `forum_questionsubscription` ADD CONSTRAINT `user_id_refs_user_ptr_id_521b19ad` FOREIGN KEY (`user_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT;\r
-\r
-ALTER TABLE `forum_subscriptionsettings` DROP FOREIGN KEY `user_id_refs_id_35edacb4`;\r
-ALTER TABLE `forum_subscriptionsettings` ADD CONSTRAINT `user_id_refs_user_ptr_id_1bc4fc70` FOREIGN KEY (`user_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT;\r
-\r
-ALTER TABLE `forum_validationhash` DROP FOREIGN KEY `user_id_refs_id_2c2d214b`;\r
-ALTER TABLE `forum_validationhash` ADD CONSTRAINT `user_id_refs_user_ptr_id_4e5b2d6f` FOREIGN KEY (`user_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT;\r
-\r
-ALTER TABLE `question` DROP FOREIGN KEY `author_id_refs_id_56e9d00c`;\r
-ALTER TABLE `question` ADD CONSTRAINT `author_id_refs_user_ptr_id_60d41818` FOREIGN KEY (`author_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT;\r
-ALTER TABLE `question` DROP FOREIGN KEY `closed_by_id_refs_id_56e9d00c`;\r
-ALTER TABLE `question` ADD CONSTRAINT `closed_by_id_refs_user_ptr_id_60d41818` FOREIGN KEY (`closed_by_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT;\r
-ALTER TABLE `question` DROP FOREIGN KEY `deleted_by_id_refs_id_56e9d00c`;\r
-ALTER TABLE `question` ADD CONSTRAINT `deleted_by_id_refs_user_ptr_id_60d41818` FOREIGN KEY (`deleted_by_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT;\r
-ALTER TABLE `question` DROP FOREIGN KEY `last_activity_by_id_refs_id_56e9d00c`;\r
-ALTER TABLE `question` ADD CONSTRAINT `last_activity_by_id_refs_user_ptr_id_60d41818` FOREIGN KEY (`last_activity_by_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT;\r
-ALTER TABLE `question` DROP FOREIGN KEY `last_edited_by_id_refs_id_56e9d00c`;\r
-ALTER TABLE `question` ADD CONSTRAINT `last_edited_by_id_refs_user_ptr_id_60d41818` FOREIGN KEY (`last_edited_by_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT;\r
-ALTER TABLE `question` DROP FOREIGN KEY `locked_by_id_refs_id_56e9d00c`;\r
-ALTER TABLE `question` ADD CONSTRAINT `locked_by_id_refs_user_ptr_id_60d41818` FOREIGN KEY (`locked_by_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT;\r
-\r
-ALTER TABLE `question_followed_by` DROP FOREIGN KEY `user_id_refs_id_6d30712d`;\r
-ALTER TABLE `question_followed_by` ADD CONSTRAINT `user_id_refs_user_ptr_id_615e65af` FOREIGN KEY (`user_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT;\r
-\r
-ALTER TABLE `question_revision` DROP FOREIGN KEY `author_id_refs_id_4f88024f`;\r
-ALTER TABLE `question_revision` ADD CONSTRAINT `author_id_refs_user_ptr_id_42e3d48d` FOREIGN KEY (`author_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT;\r
-\r
-ALTER TABLE `repute` DROP FOREIGN KEY `user_id_refs_id_5a426cd`;\r
-ALTER TABLE `repute` ADD CONSTRAINT `user_id_refs_user_ptr_id_5ea9540f` FOREIGN KEY (`user_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT;\r
-\r
-ALTER TABLE `tag` DROP FOREIGN KEY `created_by_id_refs_id_47205d6d`;\r
-ALTER TABLE `tag` ADD CONSTRAINT `created_by_id_refs_user_ptr_id_417f3449` FOREIGN KEY (`created_by_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT;\r
-ALTER TABLE `tag` DROP FOREIGN KEY `deleted_by_id_refs_id_47205d6d`;\r
-ALTER TABLE `tag` ADD CONSTRAINT `deleted_by_id_refs_user_ptr_id_417f3449` FOREIGN KEY (`deleted_by_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT;\r
-\r
-ALTER TABLE `vote` DROP FOREIGN KEY `user_id_refs_id_760a4df0`;\r
-ALTER TABLE `vote` ADD CONSTRAINT `user_id_refs_user_ptr_id_18723e34` FOREIGN KEY (`user_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT;\r
-\r
-"""\r
-\r
-from django.core.management.base import NoArgsCommand\r
-from django.db import connection, transaction\r
-from django.conf import settings\r
-\r
-class Command(NoArgsCommand):\r
- def handle_noargs(self, **options):\r
- if settings.DATABASE_ENGINE in ('postgresql_psycopg2', 'postgresql', ):\r
- migration_query = PG_MIGRATION_QUERY\r
- fkeys_query = PG_FKEYS_QUERY\r
- elif settings.DATABASE_ENGINE == 'mysql':\r
- migration_query = MYSQL_MIGRATION_QUERY\r
- fkeys_query = MYSQL_FKEYS_QUERY\r
- else:\r
- raise Exception("Database backend not suported by this migration command")\r
-\r
- cursor = connection.cursor()\r
- cursor.execute(migration_query)\r
- cursor.execute(fkeys_query)\r
- transaction.commit_unless_managed()
\ No newline at end of file
+++ /dev/null
-from forum.models import User, SubscriptionSettings, QuestionSubscription\r
-from django.core.management.base import NoArgsCommand\r
-\r
-class Command(NoArgsCommand):\r
- def handle_noargs(self, **options):\r
- users = User.objects.all()\r
- for u in users:\r
- s = SubscriptionSettings(user=u)\r
- s.save()\r
-\r
- user_questions = u.questions.all()\r
-\r
- for q in user_questions:\r
- sub = QuestionSubscription(user=u, question=q)\r
- sub.save()
\ No newline at end of file
+++ /dev/null
-from django.core.management.base import NoArgsCommand
-from forum.models import User
-import sys
-
-class Command(NoArgsCommand):
- def handle_noargs(self, **options):
- msg = None
- if msg == None:
- print 'to run this command, please first edit the file %s' % __file__
- sys.exit(1)
- for u in User.objects.all():
- u.message_set.create(message = msg % u.username)
+++ /dev/null
-from django.core.management.base import NoArgsCommand
-from forum.models import Comment
-
-class Command(NoArgsCommand):
- def handle_noargs(self, **options):
- objs = Comment.objects.all()
- print objs
\ No newline at end of file
+++ /dev/null
-from datetime import datetime, timedelta
-from django.core.management.base import NoArgsCommand
-from django.utils.translation import ugettext as _
-from django.template import loader, Context, Template
-from django.core.mail import EmailMultiAlternatives
-from django.conf import settings
-from forum.models import KeyValue, Activity, User, QuestionSubscription
-from forum.utils.mail import send_email
-from forum import const
-
-class QuestionRecord:
- def __init__(self, question):
- self.question = question
- self.records = []
-
- def log_activity(self, activity):
- self.records.append(activity)
-
- def get_activity_since(self, since):
- activity = [r for r in self.records if r.active_at > since]
- answers = [a for a in activity if a.activity_type == const.TYPE_ACTIVITY_ANSWER]
- comments = [a for a in activity if a.activity_type in (const.TYPE_ACTIVITY_COMMENT_QUESTION, const.TYPE_ACTIVITY_COMMENT_ANSWER)]
-
- accepted = [a for a in activity if a.activity_type == const.TYPE_ACTIVITY_MARK_ANSWER]
-
- if len(accepted):
- accepted = accepted[-1:][0]
- else:
- accepted = None
-
- return {
- 'answers': answers,
- 'comments': comments,
- 'accepted': accepted,
- }
-
-
-class Command(NoArgsCommand):
- def handle_noargs(self, **options):
- digest_control = self.get_digest_control()
-
- self.send_digest('daily', 'd', digest_control.value['LAST_DAILY'])
- digest_control.value['LAST_DAILY'] = datetime.now()
-
- if digest_control.value['LAST_WEEKLY'] + timedelta(days=7) <= datetime.now():
- self.send_digest('weekly', 'w', digest_control.value['LAST_WEEKLY'])
- digest_control.value['LAST_WEEKLY'] = datetime.now()
-
- digest_control.save()
-
-
- def send_digest(self, name, char_in_db, control_date):
- new_questions, question_records = self.prepare_activity(control_date)
- new_users = User.objects.filter(date_joined__gt=control_date)
-
- digest_subject = settings.EMAIL_SUBJECT_PREFIX + _('Daily digest')
-
- users = User.objects.filter(subscription_settings__enable_notifications=True)
-
- msgs = []
-
- for u in users:
- context = {
- 'user': u,
- 'digest_type': name,
- }
-
- if u.subscription_settings.member_joins == char_in_db:
- context['new_users'] = new_users
- else:
- context['new_users'] = False
-
- if u.subscription_settings.subscribed_questions == char_in_db:
- activity_in_subscriptions = []
-
- for id, r in question_records.items():
- try:
- subscription = QuestionSubscription.objects.get(question=r.question, user=u)
-
- record = r.get_activity_since(subscription.last_view)
-
- if not u.subscription_settings.notify_answers:
- del record['answers']
-
- if not u.subscription_settings.notify_comments:
- if u.subscription_settings.notify_comments_own_post:
- record.comments = [a for a in record.comments if a.content_object.content_object.author == u]
- record['own_comments_only'] = True
- else:
- del record['comments']
-
- if not u.subscription_settings.notify_accepted:
- del record['accepted']
-
- if record.get('answers', False) or record.get('comments', False) or record.get('accepted', False):
- activity_in_subscriptions.append({'question': r.question, 'activity': record})
- except:
- pass
-
- context['activity_in_subscriptions'] = activity_in_subscriptions
- else:
- context['activity_in_subscriptions'] = False
-
-
- if u.subscription_settings.new_question == char_in_db:
- context['new_questions'] = new_questions
- context['watched_tags_only'] = False
- elif u.subscription_settings.new_question_watched_tags == char_in_db:
- context['new_questions'] = [q for q in new_questions if
- q.tags.filter(id__in=u.marked_tags.filter(user_selections__reason='good')).count() > 0]
- context['watched_tags_only'] = True
- else:
- context['new_questions'] = False
-
- if context['new_users'] or context['activity_in_subscriptions'] or context['new_questions']:
- send_email(digest_subject, (u.username, u.email), "notifications/digest.html", context, threaded=False)
-
-
- def get_digest_control(self):
- try:
- digest_control = KeyValue.objects.get(key='DIGEST_CONTROL')
- except:
- digest_control = KeyValue(key='DIGEST_CONTROL', value={
- 'LAST_DAILY': datetime.now() - timedelta(days=1),
- 'LAST_WEEKLY': datetime.now() - timedelta(days=1),
- })
-
- return digest_control
-
- def prepare_activity(self, since):
- all_activity = Activity.objects.filter(active_at__gt=since, activity_type__in=(
- const.TYPE_ACTIVITY_ASK_QUESTION, const.TYPE_ACTIVITY_ANSWER,
- const.TYPE_ACTIVITY_COMMENT_QUESTION, const.TYPE_ACTIVITY_COMMENT_ANSWER,
- const.TYPE_ACTIVITY_MARK_ANSWER
- )).order_by('active_at')
-
- question_records = {}
- new_questions = []
-
-
- for activity in all_activity:
- try:
- question = self.get_question_for_activity(activity)
-
- if not question.id in question_records:
- question_records[question.id] = QuestionRecord(question)
-
- question_records[question.id].log_activity(activity)
-
- if activity.activity_type == const.TYPE_ACTIVITY_ASK_QUESTION:
- new_questions.append(question)
- except:
- pass
-
- return new_questions, question_records
-
- def get_question_for_activity(self, activity):
- if activity.activity_type == const.TYPE_ACTIVITY_ASK_QUESTION:
- question = activity.content_object
- elif activity.activity_type == const.TYPE_ACTIVITY_ANSWER:
- question = activity.content_object.question
- elif activity.activity_type == const.TYPE_ACTIVITY_COMMENT_QUESTION:
- question = activity.content_object.content_object
- elif activity.activity_type == const.TYPE_ACTIVITY_COMMENT_ANSWER:
- question = activity.content_object.content_object.question
- elif activity.activity_type == const.TYPE_ACTIVITY_MARK_ANSWER:
- question = activity.content_object.question
- else:
- raise Exception
-
- return question
+++ /dev/null
-from django.http import HttpResponseRedirect
-from forum.utils.forms import get_next_url
-from django.utils.translation import ugettext as _
-from forum.user_messages import create_message, get_and_delete_messages
-from django.conf import settings
-from django.core.urlresolvers import reverse
-import logging
-
-class AnonymousMessageManager(object):
- def __init__(self,request):
- self.request = request
- def create(self,message=''):
- create_message(self.request,message)
- def get_and_delete(self):
- messages = get_and_delete_messages(self.request)
- return messages
-
-def dummy_deepcopy(*arg):
- """this is necessary to prevent deepcopy() on anonymous user object
- that now contains reference to request, which cannot be deepcopied
- """
- return None
-
-class ConnectToSessionMessagesMiddleware(object):
- def process_request(self, request):
- if not request.user.is_authenticated():
- request.user.__deepcopy__ = dummy_deepcopy #plug on deepcopy which may be called by django db "driver"
- request.user.message_set = AnonymousMessageManager(request) #here request is linked to anon user
- request.user.get_and_delete_messages = request.user.message_set.get_and_delete
-
- #also set the first greeting one time per session only
- if 'greeting_set' not in request.session:
- request.session['greeting_set'] = True
- msg = _('First time here? Check out the <a href="%s">FAQ</a>!') % reverse('faq')
- request.user.message_set.create(message=msg)
+++ /dev/null
-from django.http import HttpResponseRedirect
-from forum.utils.forms import get_next_url
-import logging
-class CancelActionMiddleware(object):
- def process_view(self, request, view_func, view_args, view_kwargs):
- if 'cancel' in request.REQUEST:
- #todo use session messages for the anonymous users
- try:
- msg = getattr(view_func,'CANCEL_MESSAGE')
- except AttributeError:
- msg = 'action canceled'
- request.user.message_set.create(message=msg)
- return HttpResponseRedirect(get_next_url(request))
- else:
- return None
+++ /dev/null
-from django.contrib.auth.middleware import AuthenticationMiddleware\r
-from forum.models.user import AnonymousUser\r
-\r
-class ExtendedUser(AuthenticationMiddleware): \r
- def process_request(self, request):\r
- super(ExtendedUser, self).process_request(request)\r
- if request.user.is_authenticated():\r
- try:\r
- request.user = request.user.user\r
- return None\r
- except:\r
- pass\r
-\r
- request.user = AnonymousUser()\r
- return None
\ No newline at end of file
+++ /dev/null
-\r
-class RequestUtils(object):\r
- def __init__(self):\r
- self.request = None\r
-\r
- def set_sort_method(self, sort):\r
- self.request.session['questions_sort_method'] = sort\r
-\r
- def sort_method(self, default):\r
- sort = self.request.REQUEST.get('sort', None)\r
- if sort is None:\r
- return self.request.session.get('questions_sort_method', default)\r
- else:\r
- self.set_sort_method(sort)\r
- return sort\r
-\r
- def page_size(self, default):\r
- pagesize = self.request.REQUEST.get('pagesize', None)\r
- if pagesize is None:\r
- return int(self.request.session.get('questions_pagesize', default))\r
- else:\r
- self.request.session['questions_pagesize'] = pagesize\r
- return int(pagesize)\r
-\r
- def process_request(self, request):\r
- self.request = request\r
- request.utils = self\r
- return None
\ No newline at end of file
+++ /dev/null
-# encoding: utf-8\r
-import datetime\r
-from south.db import db\r
-from south.v2 import SchemaMigration\r
-from django.db import models\r
-\r
-class Migration(SchemaMigration):\r
- \r
- def forwards(self, orm):\r
- \r
- # Adding model 'User'\r
- db.create_table('forum_user', (\r
- ('website', self.gf('django.db.models.fields.URLField')(max_length=200, blank=True)),\r
- ('user_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['auth.User'], unique=True, primary_key=True)),\r
- ('hide_ignored_questions', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),\r
- ('is_approved', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),\r
- ('email_isvalid', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),\r
- ('real_name', self.gf('django.db.models.fields.CharField')(max_length=100, blank=True)),\r
- ('about', self.gf('django.db.models.fields.TextField')(blank=True)),\r
- ('silver', self.gf('django.db.models.fields.SmallIntegerField')(default=0)),\r
- ('date_of_birth', self.gf('django.db.models.fields.DateField')(null=True, blank=True)),\r
- ('reputation', self.gf('django.db.models.fields.PositiveIntegerField')(default=1)),\r
- ('gravatar', self.gf('django.db.models.fields.CharField')(max_length=32)),\r
- ('location', self.gf('django.db.models.fields.CharField')(max_length=100, blank=True)),\r
- ('tag_filter_setting', self.gf('django.db.models.fields.CharField')(default='ignored', max_length=16)),\r
- ('gold', self.gf('django.db.models.fields.SmallIntegerField')(default=0)),\r
- ('last_seen', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),\r
- ('email_key', self.gf('django.db.models.fields.CharField')(max_length=32, null=True)),\r
- ('bronze', self.gf('django.db.models.fields.SmallIntegerField')(default=0)),\r
- ('questions_per_page', self.gf('django.db.models.fields.SmallIntegerField')(default=10)),\r
- ))\r
- db.send_create_signal('forum', ['User'])\r
-\r
- # Adding model 'Activity'\r
- db.create_table(u'activity', (\r
- ('is_auditted', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),\r
- ('object_id', self.gf('django.db.models.fields.PositiveIntegerField')()),\r
- ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.User'])),\r
- ('content_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['contenttypes.ContentType'])),\r
- ('active_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),\r
- ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),\r
- ('activity_type', self.gf('django.db.models.fields.SmallIntegerField')()),\r
- ))\r
- db.send_create_signal('forum', ['Activity'])\r
-\r
- # Adding model 'SubscriptionSettings'\r
- db.create_table('forum_subscriptionsettings', (\r
- ('questions_asked', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)),\r
- ('questions_viewed', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),\r
- ('notify_comments', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),\r
- ('new_question', self.gf('django.db.models.fields.CharField')(default='d', max_length=1)),\r
- ('all_questions', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),\r
- ('new_question_watched_tags', self.gf('django.db.models.fields.CharField')(default='i', max_length=1)),\r
- ('questions_answered', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)),\r
- ('notify_comments_own_post', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)),\r
- ('questions_commented', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),\r
- ('subscribed_questions', self.gf('django.db.models.fields.CharField')(default='i', max_length=1)),\r
- ('notify_reply_to_comments', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)),\r
- ('member_joins', self.gf('django.db.models.fields.CharField')(default='n', max_length=1)),\r
- ('user', self.gf('django.db.models.fields.related.OneToOneField')(related_name='subscription_settings', unique=True, to=orm['forum.User'])),\r
- ('notify_answers', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)),\r
- ('enable_notifications', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)),\r
- ('all_questions_watched_tags', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),\r
- ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),\r
- ('notify_accepted', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),\r
- ))\r
- db.send_create_signal('forum', ['SubscriptionSettings'])\r
-\r
- # Adding model 'ValidationHash'\r
- db.create_table('forum_validationhash', (\r
- ('hash_code', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255)),\r
- ('seed', self.gf('django.db.models.fields.CharField')(max_length=12)),\r
- ('expiration', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2010, 4, 7, 10, 36, 23, 812000))),\r
- ('type', self.gf('django.db.models.fields.CharField')(max_length=12)),\r
- ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),\r
- ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.User'])),\r
- ))\r
- db.send_create_signal('forum', ['ValidationHash'])\r
-\r
- # Adding unique constraint on 'ValidationHash', fields ['user', 'type']\r
- db.create_unique('forum_validationhash', ['user_id', 'type'])\r
-\r
- # Adding model 'AuthKeyUserAssociation'\r
- db.create_table('forum_authkeyuserassociation', (\r
- ('added_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),\r
- ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='auth_keys', to=orm['forum.User'])),\r
- ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),\r
- ('key', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255)),\r
- ('provider', self.gf('django.db.models.fields.CharField')(max_length=64)),\r
- ))\r
- db.send_create_signal('forum', ['AuthKeyUserAssociation'])\r
-\r
- # Adding model 'Vote'\r
- db.create_table(u'vote', (\r
- ('object_id', self.gf('django.db.models.fields.PositiveIntegerField')()),\r
- ('voted_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),\r
- ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='votes', to=orm['forum.User'])),\r
- ('content_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['contenttypes.ContentType'])),\r
- ('vote', self.gf('django.db.models.fields.SmallIntegerField')()),\r
- ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),\r
- ))\r
- db.send_create_signal('forum', ['Vote'])\r
-\r
- # Adding unique constraint on 'Vote', fields ['content_type', 'object_id', 'user']\r
- db.create_unique(u'vote', ['content_type_id', 'object_id', 'user_id'])\r
-\r
- # Adding model 'FlaggedItem'\r
- db.create_table(u'flagged_item', (\r
- ('object_id', self.gf('django.db.models.fields.PositiveIntegerField')()),\r
- ('flagged_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),\r
- ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),\r
- ('content_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['contenttypes.ContentType'])),\r
- ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='flaggeditems', to=orm['forum.User'])),\r
- ))\r
- db.send_create_signal('forum', ['FlaggedItem'])\r
-\r
- # Adding unique constraint on 'FlaggedItem', fields ['content_type', 'object_id', 'user']\r
- db.create_unique(u'flagged_item', ['content_type_id', 'object_id', 'user_id'])\r
-\r
- # Adding model 'Comment'\r
- db.create_table(u'comment', (\r
- ('comment', self.gf('django.db.models.fields.CharField')(max_length=300)),\r
- ('object_id', self.gf('django.db.models.fields.PositiveIntegerField')()),\r
- ('added_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),\r
- ('content_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['contenttypes.ContentType'])),\r
- ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),\r
- ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='comments', to=orm['forum.User'])),\r
- ))\r
- db.send_create_signal('forum', ['Comment'])\r
-\r
- # Adding model 'Tag'\r
- db.create_table(u'tag', (\r
- ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255)),\r
- ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),\r
- ('created_by', self.gf('django.db.models.fields.related.ForeignKey')(related_name='created_tags', to=orm['forum.User'])),\r
- ('deleted_by', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='deleted_tags', null=True, to=orm['forum.User'])),\r
- ('used_count', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)),\r
- ('deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),\r
- ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),\r
- ))\r
- db.send_create_signal('forum', ['Tag'])\r
-\r
- # Adding model 'MarkedTag'\r
- db.create_table('forum_markedtag', (\r
- ('reason', self.gf('django.db.models.fields.CharField')(max_length=16)),\r
- ('tag', self.gf('django.db.models.fields.related.ForeignKey')(related_name='user_selections', to=orm['forum.Tag'])),\r
- ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),\r
- ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='tag_selections', to=orm['forum.User'])),\r
- ))\r
- db.send_create_signal('forum', ['MarkedTag'])\r
-\r
- # Adding model 'Question'\r
- db.create_table(u'question', (\r
- ('wiki', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),\r
- ('vote_up_count', self.gf('django.db.models.fields.IntegerField')(default=0)),\r
- ('answer_accepted', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),\r
- ('offensive_flag_count', self.gf('django.db.models.fields.SmallIntegerField')(default=0)),\r
- ('closed_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),\r
- ('deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),\r
- ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),\r
- ('last_activity_by', self.gf('django.db.models.fields.related.ForeignKey')(related_name='last_active_in_questions', to=orm['forum.User'])),\r
- ('view_count', self.gf('django.db.models.fields.IntegerField')(default=0)),\r
- ('locked_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),\r
- ('score', self.gf('django.db.models.fields.IntegerField')(default=0)),\r
- ('author', self.gf('django.db.models.fields.related.ForeignKey')(related_name='questions', to=orm['forum.User'])),\r
- ('comment_count', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)),\r
- ('html', self.gf('django.db.models.fields.TextField')()),\r
- ('vote_down_count', self.gf('django.db.models.fields.IntegerField')(default=0)),\r
- ('closed', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),\r
- ('last_edited_by', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='last_edited_questions', null=True, to=orm['forum.User'])),\r
- ('favourite_count', self.gf('django.db.models.fields.IntegerField')(default=0)),\r
- ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),\r
- ('summary', self.gf('django.db.models.fields.CharField')(max_length=180)),\r
- ('answer_count', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)),\r
- ('last_activity_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),\r
- ('closed_by', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='closed_questions', null=True, to=orm['forum.User'])),\r
- ('close_reason', self.gf('django.db.models.fields.SmallIntegerField')(null=True, blank=True)),\r
- ('locked', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),\r
- ('tagnames', self.gf('django.db.models.fields.CharField')(max_length=125)),\r
- ('locked_by', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='locked_questions', null=True, to=orm['forum.User'])),\r
- ('added_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),\r
- ('deleted_by', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='deleted_questions', null=True, to=orm['forum.User'])),\r
- ('wikified_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),\r
- ('title', self.gf('django.db.models.fields.CharField')(max_length=300)),\r
- ('last_edited_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),\r
- ))\r
- db.send_create_signal('forum', ['Question'])\r
-\r
- # Adding M2M table for field followed_by on 'Question'\r
- db.create_table(u'question_followed_by', (\r
- ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),\r
- ('question', models.ForeignKey(orm['forum.question'], null=False)),\r
- ('user', models.ForeignKey(orm['forum.user'], null=False))\r
- ))\r
- db.create_unique(u'question_followed_by', ['question_id', 'user_id'])\r
-\r
- # Adding M2M table for field tags on 'Question'\r
- db.create_table(u'question_tags', (\r
- ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),\r
- ('question', models.ForeignKey(orm['forum.question'], null=False)),\r
- ('tag', models.ForeignKey(orm['forum.tag'], null=False))\r
- ))\r
- db.create_unique(u'question_tags', ['question_id', 'tag_id'])\r
-\r
- # Adding model 'QuestionSubscription'\r
- db.create_table('forum_questionsubscription', (\r
- ('last_view', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2010, 4, 6, 10, 36, 23, 725000))),\r
- ('auto_subscription', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)),\r
- ('question', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.Question'])),\r
- ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),\r
- ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.User'])),\r
- ))\r
- db.send_create_signal('forum', ['QuestionSubscription'])\r
-\r
- # Adding model 'FavoriteQuestion'\r
- db.create_table(u'favorite_question', (\r
- ('question', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.Question'])),\r
- ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),\r
- ('added_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),\r
- ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='user_favorite_questions', to=orm['forum.User'])),\r
- ))\r
- db.send_create_signal('forum', ['FavoriteQuestion'])\r
-\r
- # Adding model 'QuestionRevision'\r
- db.create_table(u'question_revision', (\r
- ('author', self.gf('django.db.models.fields.related.ForeignKey')(related_name='questionrevisions', to=orm['forum.User'])),\r
- ('tagnames', self.gf('django.db.models.fields.CharField')(max_length=125)),\r
- ('text', self.gf('django.db.models.fields.TextField')()),\r
- ('title', self.gf('django.db.models.fields.CharField')(max_length=300)),\r
- ('question', self.gf('django.db.models.fields.related.ForeignKey')(related_name='revisions', to=orm['forum.Question'])),\r
- ('revised_at', self.gf('django.db.models.fields.DateTimeField')()),\r
- ('summary', self.gf('django.db.models.fields.CharField')(max_length=300, blank=True)),\r
- ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),\r
- ('revision', self.gf('django.db.models.fields.PositiveIntegerField')()),\r
- ))\r
- db.send_create_signal('forum', ['QuestionRevision'])\r
-\r
- # Adding model 'AnonymousQuestion'\r
- db.create_table('forum_anonymousquestion', (\r
- ('wiki', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),\r
- ('ip_addr', self.gf('django.db.models.fields.IPAddressField')(max_length=15)),\r
- ('author', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.User'], null=True)),\r
- ('tagnames', self.gf('django.db.models.fields.CharField')(max_length=125)),\r
- ('text', self.gf('django.db.models.fields.TextField')()),\r
- ('title', self.gf('django.db.models.fields.CharField')(max_length=300)),\r
- ('added_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),\r
- ('summary', self.gf('django.db.models.fields.CharField')(max_length=180)),\r
- ('session_key', self.gf('django.db.models.fields.CharField')(max_length=40)),\r
- ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),\r
- ))\r
- db.send_create_signal('forum', ['AnonymousQuestion'])\r
-\r
- # Adding model 'Answer'\r
- db.create_table(u'answer', (\r
- ('wiki', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),\r
- ('vote_up_count', self.gf('django.db.models.fields.IntegerField')(default=0)),\r
- ('offensive_flag_count', self.gf('django.db.models.fields.SmallIntegerField')(default=0)),\r
- ('deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),\r
- ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),\r
- ('locked_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),\r
- ('score', self.gf('django.db.models.fields.IntegerField')(default=0)),\r
- ('author', self.gf('django.db.models.fields.related.ForeignKey')(related_name='answers', to=orm['forum.User'])),\r
- ('question', self.gf('django.db.models.fields.related.ForeignKey')(related_name='answers', to=orm['forum.Question'])),\r
- ('comment_count', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)),\r
- ('html', self.gf('django.db.models.fields.TextField')()),\r
- ('vote_down_count', self.gf('django.db.models.fields.IntegerField')(default=0)),\r
- ('last_edited_by', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='last_edited_answers', null=True, to=orm['forum.User'])),\r
- ('accepted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),\r
- ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),\r
- ('accepted', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),\r
- ('locked', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),\r
- ('locked_by', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='locked_answers', null=True, to=orm['forum.User'])),\r
- ('added_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),\r
- ('deleted_by', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='deleted_answers', null=True, to=orm['forum.User'])),\r
- ('wikified_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),\r
- ('last_edited_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),\r
- ))\r
- db.send_create_signal('forum', ['Answer'])\r
-\r
- # Adding model 'AnswerRevision'\r
- db.create_table(u'answer_revision', (\r
- ('author', self.gf('django.db.models.fields.related.ForeignKey')(related_name='answerrevisions', to=orm['forum.User'])),\r
- ('text', self.gf('django.db.models.fields.TextField')()),\r
- ('revised_at', self.gf('django.db.models.fields.DateTimeField')()),\r
- ('summary', self.gf('django.db.models.fields.CharField')(max_length=300, blank=True)),\r
- ('answer', self.gf('django.db.models.fields.related.ForeignKey')(related_name='revisions', to=orm['forum.Answer'])),\r
- ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),\r
- ('revision', self.gf('django.db.models.fields.PositiveIntegerField')()),\r
- ))\r
- db.send_create_signal('forum', ['AnswerRevision'])\r
-\r
- # Adding model 'AnonymousAnswer'\r
- db.create_table('forum_anonymousanswer', (\r
- ('wiki', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),\r
- ('ip_addr', self.gf('django.db.models.fields.IPAddressField')(max_length=15)),\r
- ('author', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.User'], null=True)),\r
- ('text', self.gf('django.db.models.fields.TextField')()),\r
- ('question', self.gf('django.db.models.fields.related.ForeignKey')(related_name='anonymous_answers', to=orm['forum.Question'])),\r
- ('added_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),\r
- ('summary', self.gf('django.db.models.fields.CharField')(max_length=180)),\r
- ('session_key', self.gf('django.db.models.fields.CharField')(max_length=40)),\r
- ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),\r
- ))\r
- db.send_create_signal('forum', ['AnonymousAnswer'])\r
-\r
- # Adding model 'Badge'\r
- db.create_table(u'badge', (\r
- ('multiple', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),\r
- ('description', self.gf('django.db.models.fields.CharField')(max_length=300)),\r
- ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),\r
- ('awarded_count', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)),\r
- ('type', self.gf('django.db.models.fields.SmallIntegerField')()),\r
- ('slug', self.gf('django.db.models.fields.SlugField')(db_index=True, max_length=50, blank=True)),\r
- ('name', self.gf('django.db.models.fields.CharField')(max_length=50)),\r
- ))\r
- db.send_create_signal('forum', ['Badge'])\r
-\r
- # Adding unique constraint on 'Badge', fields ['name', 'type']\r
- db.create_unique(u'badge', ['name', 'type'])\r
-\r
- # Adding model 'Award'\r
- db.create_table(u'award', (\r
- ('awarded_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),\r
- ('notified', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),\r
- ('object_id', self.gf('django.db.models.fields.PositiveIntegerField')()),\r
- ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='awards', to=orm['forum.User'])),\r
- ('content_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['contenttypes.ContentType'])),\r
- ('badge', self.gf('django.db.models.fields.related.ForeignKey')(related_name='award_badge', to=orm['forum.Badge'])),\r
- ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),\r
- ))\r
- db.send_create_signal('forum', ['Award'])\r
-\r
- # Adding unique constraint on 'Award', fields ['content_type', 'object_id', 'user', 'badge']\r
- db.create_unique(u'award', ['content_type_id', 'object_id', 'user_id', 'badge_id'])\r
-\r
- # Adding model 'Repute'\r
- db.create_table(u'repute', (\r
- ('positive', self.gf('django.db.models.fields.SmallIntegerField')(default=0)),\r
- ('question', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.Question'])),\r
- ('negative', self.gf('django.db.models.fields.SmallIntegerField')(default=0)),\r
- ('reputation_type', self.gf('django.db.models.fields.SmallIntegerField')()),\r
- ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.User'])),\r
- ('reputed_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),\r
- ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),\r
- ('reputation', self.gf('django.db.models.fields.IntegerField')(default=1)),\r
- ))\r
- db.send_create_signal('forum', ['Repute'])\r
-\r
- # Adding model 'KeyValue'\r
- db.create_table('forum_keyvalue', (\r
- ('value', self.gf('forum.models.utils.PickledObjectField')()),\r
- ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),\r
- ('key', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255)),\r
- ))\r
- db.send_create_signal('forum', ['KeyValue'])\r
- \r
- \r
- def backwards(self, orm):\r
- \r
- # Deleting model 'User'\r
- db.delete_table('forum_user')\r
-\r
- # Deleting model 'Activity'\r
- db.delete_table(u'activity')\r
-\r
- # Deleting model 'SubscriptionSettings'\r
- db.delete_table('forum_subscriptionsettings')\r
-\r
- # Deleting model 'ValidationHash'\r
- db.delete_table('forum_validationhash')\r
-\r
- # Removing unique constraint on 'ValidationHash', fields ['user', 'type']\r
- db.delete_unique('forum_validationhash', ['user_id', 'type'])\r
-\r
- # Deleting model 'AuthKeyUserAssociation'\r
- db.delete_table('forum_authkeyuserassociation')\r
-\r
- # Deleting model 'Vote'\r
- db.delete_table(u'vote')\r
-\r
- # Removing unique constraint on 'Vote', fields ['content_type', 'object_id', 'user']\r
- db.delete_unique(u'vote', ['content_type_id', 'object_id', 'user_id'])\r
-\r
- # Deleting model 'FlaggedItem'\r
- db.delete_table(u'flagged_item')\r
-\r
- # Removing unique constraint on 'FlaggedItem', fields ['content_type', 'object_id', 'user']\r
- db.delete_unique(u'flagged_item', ['content_type_id', 'object_id', 'user_id'])\r
-\r
- # Deleting model 'Comment'\r
- db.delete_table(u'comment')\r
-\r
- # Deleting model 'Tag'\r
- db.delete_table(u'tag')\r
-\r
- # Deleting model 'MarkedTag'\r
- db.delete_table('forum_markedtag')\r
-\r
- # Deleting model 'Question'\r
- db.delete_table(u'question')\r
-\r
- # Removing M2M table for field followed_by on 'Question'\r
- db.delete_table('question_followed_by')\r
-\r
- # Removing M2M table for field tags on 'Question'\r
- db.delete_table('question_tags')\r
-\r
- # Deleting model 'QuestionSubscription'\r
- db.delete_table('forum_questionsubscription')\r
-\r
- # Deleting model 'FavoriteQuestion'\r
- db.delete_table(u'favorite_question')\r
-\r
- # Deleting model 'QuestionRevision'\r
- db.delete_table(u'question_revision')\r
-\r
- # Deleting model 'AnonymousQuestion'\r
- db.delete_table('forum_anonymousquestion')\r
-\r
- # Deleting model 'Answer'\r
- db.delete_table(u'answer')\r
-\r
- # Deleting model 'AnswerRevision'\r
- db.delete_table(u'answer_revision')\r
-\r
- # Deleting model 'AnonymousAnswer'\r
- db.delete_table('forum_anonymousanswer')\r
-\r
- # Deleting model 'Badge'\r
- db.delete_table(u'badge')\r
-\r
- # Removing unique constraint on 'Badge', fields ['name', 'type']\r
- db.delete_unique(u'badge', ['name', 'type'])\r
-\r
- # Deleting model 'Award'\r
- db.delete_table(u'award')\r
-\r
- # Removing unique constraint on 'Award', fields ['content_type', 'object_id', 'user', 'badge']\r
- db.delete_unique(u'award', ['content_type_id', 'object_id', 'user_id', 'badge_id'])\r
-\r
- # Deleting model 'Repute'\r
- db.delete_table(u'repute')\r
-\r
- # Deleting model 'KeyValue'\r
- db.delete_table('forum_keyvalue')\r
- \r
- \r
- models = {\r
- 'auth.group': {\r
- 'Meta': {'object_name': 'Group'},\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),\r
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'})\r
- },\r
- 'auth.permission': {\r
- 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},\r
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),\r
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})\r
- },\r
- 'auth.user': {\r
- 'Meta': {'object_name': 'User'},\r
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),\r
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),\r
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),\r
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),\r
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}),\r
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})\r
- },\r
- 'contenttypes.contenttype': {\r
- 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},\r
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),\r
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})\r
- },\r
- 'forum.activity': {\r
- 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"},\r
- 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}),\r
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})\r
- },\r
- 'forum.anonymousanswer': {\r
- 'Meta': {'object_name': 'AnonymousAnswer'},\r
- 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),\r
- 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'anonymous_answers'", 'to': "orm['forum.Question']"}),\r
- 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),\r
- 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}),\r
- 'text': ('django.db.models.fields.TextField', [], {}),\r
- 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'})\r
- },\r
- 'forum.anonymousquestion': {\r
- 'Meta': {'object_name': 'AnonymousQuestion'},\r
- 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),\r
- 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),\r
- 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}),\r
- 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),\r
- 'text': ('django.db.models.fields.TextField', [], {}),\r
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}),\r
- 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'})\r
- },\r
- 'forum.answer': {\r
- 'Meta': {'object_name': 'Answer', 'db_table': "u'answer'"},\r
- 'accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'accepted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': "orm['forum.User']"}),\r
- 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),\r
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_answers'", 'null': 'True', 'to': "orm['forum.User']"}),\r
- 'html': ('django.db.models.fields.TextField', [], {}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_answers'", 'null': 'True', 'to': "orm['forum.User']"}),\r
- 'locked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'locked_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'locked_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'locked_answers'", 'null': 'True', 'to': "orm['forum.User']"}),\r
- 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),\r
- 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': "orm['forum.Question']"}),\r
- 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})\r
- },\r
- 'forum.answerrevision': {\r
- 'Meta': {'object_name': 'AnswerRevision', 'db_table': "u'answer_revision'"},\r
- 'answer': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Answer']"}),\r
- 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answerrevisions'", 'to': "orm['forum.User']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'revised_at': ('django.db.models.fields.DateTimeField', [], {}),\r
- 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}),\r
- 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}),\r
- 'text': ('django.db.models.fields.TextField', [], {})\r
- },\r
- 'forum.authkeyuserassociation': {\r
- 'Meta': {'object_name': 'AuthKeyUserAssociation'},\r
- 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),\r
- 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"})\r
- },\r
- 'forum.award': {\r
- 'Meta': {'unique_together': "(('content_type', 'object_id', 'user', 'badge'),)", 'object_name': 'Award', 'db_table': "u'award'"},\r
- 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}),\r
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"})\r
- },\r
- 'forum.badge': {\r
- 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"},\r
- 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),\r
- 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}),\r
- 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),\r
- 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}),\r
- 'type': ('django.db.models.fields.SmallIntegerField', [], {})\r
- },\r
- 'forum.comment': {\r
- 'Meta': {'object_name': 'Comment', 'db_table': "u'comment'"},\r
- 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'comment': ('django.db.models.fields.CharField', [], {'max_length': '300'}),\r
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'to': "orm['forum.User']"})\r
- },\r
- 'forum.favoritequestion': {\r
- 'Meta': {'object_name': 'FavoriteQuestion', 'db_table': "u'favorite_question'"},\r
- 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_favorite_questions'", 'to': "orm['forum.User']"})\r
- },\r
- 'forum.flaggeditem': {\r
- 'Meta': {'unique_together': "(('content_type', 'object_id', 'user'),)", 'object_name': 'FlaggedItem', 'db_table': "u'flagged_item'"},\r
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),\r
- 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'to': "orm['forum.User']"})\r
- },\r
- 'forum.keyvalue': {\r
- 'Meta': {'object_name': 'KeyValue'},\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),\r
- 'value': ('forum.models.utils.PickledObjectField', [], {})\r
- },\r
- 'forum.markedtag': {\r
- 'Meta': {'object_name': 'MarkedTag'},\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}),\r
- 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"})\r
- },\r
- 'forum.question': {\r
- 'Meta': {'object_name': 'Question', 'db_table': "u'question'"},\r
- 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'answer_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'answer_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),\r
- 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questions'", 'to': "orm['forum.User']"}),\r
- 'close_reason': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),\r
- 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'closed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'closed_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'closed_questions'", 'null': 'True', 'to': "orm['forum.User']"}),\r
- 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),\r
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_questions'", 'null': 'True', 'to': "orm['forum.User']"}),\r
- 'favorited_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'favorite_questions'", 'through': "'FavoriteQuestion'", 'to': "orm['forum.User']"}),\r
- 'favourite_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'followed_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'followed_questions'", 'to': "orm['forum.User']"}),\r
- 'html': ('django.db.models.fields.TextField', [], {}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_active_in_questions'", 'to': "orm['forum.User']"}),\r
- 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_questions'", 'null': 'True', 'to': "orm['forum.User']"}),\r
- 'locked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'locked_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'locked_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'locked_questions'", 'null': 'True', 'to': "orm['forum.User']"}),\r
- 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),\r
- 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'subscribers': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscriptions'", 'through': "'QuestionSubscription'", 'to': "orm['forum.User']"}),\r
- 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}),\r
- 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),\r
- 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'questions'", 'to': "orm['forum.Tag']"}),\r
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}),\r
- 'view_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})\r
- },\r
- 'forum.questionrevision': {\r
- 'Meta': {'object_name': 'QuestionRevision', 'db_table': "u'question_revision'"},\r
- 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questionrevisions'", 'to': "orm['forum.User']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Question']"}),\r
- 'revised_at': ('django.db.models.fields.DateTimeField', [], {}),\r
- 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}),\r
- 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}),\r
- 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),\r
- 'text': ('django.db.models.fields.TextField', [], {}),\r
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'})\r
- },\r
- 'forum.questionsubscription': {\r
- 'Meta': {'object_name': 'QuestionSubscription'},\r
- 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 6, 10, 36, 23, 725000)'}),\r
- 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})\r
- },\r
- 'forum.repute': {\r
- 'Meta': {'object_name': 'Repute', 'db_table': "u'repute'"},\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'negative': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),\r
- 'positive': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),\r
- 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),\r
- 'reputation': ('django.db.models.fields.IntegerField', [], {'default': '1'}),\r
- 'reputation_type': ('django.db.models.fields.SmallIntegerField', [], {}),\r
- 'reputed_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})\r
- },\r
- 'forum.subscriptionsettings': {\r
- 'Meta': {'object_name': 'SubscriptionSettings'},\r
- 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}),\r
- 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}),\r
- 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),\r
- 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),\r
- 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"})\r
- },\r
- 'forum.tag': {\r
- 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"},\r
- 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}),\r
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}),\r
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),\r
- 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'})\r
- },\r
- 'forum.user': {\r
- 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']},\r
- 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}),\r
- 'bronze': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),\r
- 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),\r
- 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}),\r
- 'gold': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),\r
- 'gravatar': ('django.db.models.fields.CharField', [], {'max_length': '32'}),\r
- 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),\r
- 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}),\r
- 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),\r
- 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}),\r
- 'silver': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),\r
- 'tag_filter_setting': ('django.db.models.fields.CharField', [], {'default': "'ignored'", 'max_length': '16'}),\r
- 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}),\r
- 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'})\r
- },\r
- 'forum.validationhash': {\r
- 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'},\r
- 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 7, 10, 36, 23, 863000)'}),\r
- 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}),\r
- 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})\r
- },\r
- 'forum.vote': {\r
- 'Meta': {'unique_together': "(('content_type', 'object_id', 'user'),)", 'object_name': 'Vote', 'db_table': "u'vote'"},\r
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}),\r
- 'vote': ('django.db.models.fields.SmallIntegerField', [], {}),\r
- 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'})\r
- }\r
- }\r
- \r
- complete_apps = ['forum']\r
+++ /dev/null
-# encoding: utf-8\r
-import datetime\r
-from south.db import db\r
-from south.v2 import SchemaMigration\r
-from django.db import models\r
-\r
-class Migration(SchemaMigration):\r
- \r
- def forwards(self, orm):\r
- \r
- # Adding model 'LikedComment'\r
- db.create_table('forum_likedcomment', (\r
- ('comment', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.Comment'])),\r
- ('canceled', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),\r
- ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),\r
- ('added_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),\r
- ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.User'])),\r
- ))\r
- db.send_create_signal('forum', ['LikedComment'])\r
-\r
- # Adding field 'Repute.value'\r
- db.add_column(u'repute', 'value', self.gf('django.db.models.fields.SmallIntegerField')(default=0), keep_default=False)\r
-\r
- # Adding field 'Repute.user_previous_rep'\r
- db.add_column(u'repute', 'user_previous_rep', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)\r
-\r
- # Adding field 'Vote.canceled'\r
- db.add_column(u'vote', 'canceled', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True), keep_default=False)\r
-\r
- # Removing unique constraint on 'Vote', fields ['object_id', 'content_type', 'user']\r
- db.delete_unique(u'vote', ['object_id', 'content_type_id', 'user_id'])\r
-\r
- # Adding field 'Comment.deleted'\r
- db.add_column(u'comment', 'deleted', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True), keep_default=False)\r
-\r
- # Adding field 'Comment.deleted_by'\r
- db.add_column(u'comment', 'deleted_by', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='deleted_comments', null=True, to=orm['forum.User']), keep_default=False)\r
-\r
- # Adding field 'Comment.score'\r
- db.add_column(u'comment', 'score', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)\r
-\r
- # Adding field 'Comment.deleted_at'\r
- db.add_column(u'comment', 'deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True), keep_default=False)\r
-\r
- # Deleting field 'Answer.locked_at'\r
- db.delete_column(u'answer', 'locked_at')\r
-\r
- # Deleting field 'Answer.locked'\r
- db.delete_column(u'answer', 'locked')\r
-\r
- # Deleting field 'Answer.locked_by'\r
- db.delete_column(u'answer', 'locked_by_id')\r
-\r
- # Adding field 'Answer.accepted_by'\r
- db.add_column(u'answer', 'accepted_by', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.User'], null=True), keep_default=False)\r
-\r
- # Adding field 'FlaggedItem.canceled'\r
- db.add_column(u'flagged_item', 'canceled', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True), keep_default=False)\r
-\r
- # Adding field 'FlaggedItem.reason'\r
- db.add_column(u'flagged_item', 'reason', self.gf('django.db.models.fields.CharField')(max_length=300, null=True), keep_default=False)\r
-\r
- # Removing unique constraint on 'FlaggedItem', fields ['object_id', 'content_type', 'user']\r
- db.delete_unique(u'flagged_item', ['object_id', 'content_type_id', 'user_id'])\r
-\r
- # Adding unique constraint on 'FavoriteQuestion', fields ['question', 'user']\r
- db.create_unique(u'favorite_question', ['question_id', 'user_id'])\r
-\r
- # Deleting field 'User.gravatar'\r
- db.delete_column('forum_user', 'gravatar')\r
-\r
- # Deleting field 'User.tag_filter_setting'\r
- db.delete_column('forum_user', 'tag_filter_setting')\r
-\r
- # Deleting field 'Question.locked_at'\r
- db.delete_column(u'question', 'locked_at')\r
-\r
- # Deleting field 'Question.locked'\r
- db.delete_column(u'question', 'locked')\r
-\r
- # Deleting field 'Question.locked_by'\r
- db.delete_column(u'question', 'locked_by_id')\r
- \r
- \r
- def backwards(self, orm):\r
- \r
- # Deleting model 'LikedComment'\r
- db.delete_table('forum_likedcomment')\r
-\r
- # Deleting field 'Repute.value'\r
- db.delete_column(u'repute', 'value')\r
-\r
- # Deleting field 'Repute.user_previous_rep'\r
- db.delete_column(u'repute', 'user_previous_rep')\r
-\r
- # Deleting field 'Vote.canceled'\r
- db.delete_column(u'vote', 'canceled')\r
-\r
- # Adding unique constraint on 'Vote', fields ['object_id', 'content_type', 'user']\r
- db.create_unique(u'vote', ['object_id', 'content_type_id', 'user_id'])\r
-\r
- # Deleting field 'Comment.deleted'\r
- db.delete_column(u'comment', 'deleted')\r
-\r
- # Deleting field 'Comment.deleted_by'\r
- db.delete_column(u'comment', 'deleted_by_id')\r
-\r
- # Deleting field 'Comment.score'\r
- db.delete_column(u'comment', 'score')\r
-\r
- # Deleting field 'Comment.deleted_at'\r
- db.delete_column(u'comment', 'deleted_at')\r
-\r
- # Adding field 'Answer.locked_at'\r
- db.add_column(u'answer', 'locked_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True), keep_default=False)\r
-\r
- # Adding field 'Answer.locked'\r
- db.add_column(u'answer', 'locked', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True), keep_default=False)\r
-\r
- # Adding field 'Answer.locked_by'\r
- db.add_column(u'answer', 'locked_by', self.gf('django.db.models.fields.related.ForeignKey')(related_name='locked_answers', null=True, to=orm['forum.User'], blank=True), keep_default=False)\r
-\r
- # Deleting field 'Answer.accepted_by'\r
- db.delete_column(u'answer', 'accepted_by_id')\r
-\r
- # Deleting field 'FlaggedItem.canceled'\r
- db.delete_column(u'flagged_item', 'canceled')\r
-\r
- # Deleting field 'FlaggedItem.reason'\r
- db.delete_column(u'flagged_item', 'reason')\r
-\r
- # Adding unique constraint on 'FlaggedItem', fields ['object_id', 'content_type', 'user']\r
- db.create_unique(u'flagged_item', ['object_id', 'content_type_id', 'user_id'])\r
-\r
- # Removing unique constraint on 'FavoriteQuestion', fields ['question', 'user']\r
- db.delete_unique(u'favorite_question', ['question_id', 'user_id'])\r
-\r
- # Adding field 'User.gravatar'\r
- db.add_column('forum_user', 'gravatar', self.gf('django.db.models.fields.CharField')(default='', max_length=32), keep_default=False)\r
-\r
- # Adding field 'User.tag_filter_setting'\r
- db.add_column('forum_user', 'tag_filter_setting', self.gf('django.db.models.fields.CharField')(default='ignored', max_length=16), keep_default=False)\r
-\r
- # Adding field 'Question.locked_at'\r
- db.add_column(u'question', 'locked_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True), keep_default=False)\r
-\r
- # Adding field 'Question.locked'\r
- db.add_column(u'question', 'locked', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True), keep_default=False)\r
-\r
- # Adding field 'Question.locked_by'\r
- db.add_column(u'question', 'locked_by', self.gf('django.db.models.fields.related.ForeignKey')(related_name='locked_questions', null=True, to=orm['forum.User'], blank=True), keep_default=False)\r
- \r
- \r
- models = {\r
- 'auth.group': {\r
- 'Meta': {'object_name': 'Group'},\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),\r
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'})\r
- },\r
- 'auth.permission': {\r
- 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},\r
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),\r
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})\r
- },\r
- 'auth.user': {\r
- 'Meta': {'object_name': 'User'},\r
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),\r
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),\r
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),\r
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),\r
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}),\r
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})\r
- },\r
- 'contenttypes.contenttype': {\r
- 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},\r
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),\r
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})\r
- },\r
- 'forum.activity': {\r
- 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"},\r
- 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}),\r
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})\r
- },\r
- 'forum.anonymousanswer': {\r
- 'Meta': {'object_name': 'AnonymousAnswer'},\r
- 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),\r
- 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'anonymous_answers'", 'to': "orm['forum.Question']"}),\r
- 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),\r
- 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}),\r
- 'text': ('django.db.models.fields.TextField', [], {}),\r
- 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'})\r
- },\r
- 'forum.anonymousquestion': {\r
- 'Meta': {'object_name': 'AnonymousQuestion'},\r
- 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),\r
- 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),\r
- 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}),\r
- 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),\r
- 'text': ('django.db.models.fields.TextField', [], {}),\r
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}),\r
- 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'})\r
- },\r
- 'forum.answer': {\r
- 'Meta': {'object_name': 'Answer', 'db_table': "u'answer'"},\r
- 'accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'accepted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'accepted_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),\r
- 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': "orm['forum.User']"}),\r
- 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),\r
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_answers'", 'null': 'True', 'to': "orm['forum.User']"}),\r
- 'html': ('django.db.models.fields.TextField', [], {}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_answers'", 'null': 'True', 'to': "orm['forum.User']"}),\r
- 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),\r
- 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': "orm['forum.Question']"}),\r
- 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})\r
- },\r
- 'forum.answerrevision': {\r
- 'Meta': {'object_name': 'AnswerRevision', 'db_table': "u'answer_revision'"},\r
- 'answer': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Answer']"}),\r
- 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answerrevisions'", 'to': "orm['forum.User']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'revised_at': ('django.db.models.fields.DateTimeField', [], {}),\r
- 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}),\r
- 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}),\r
- 'text': ('django.db.models.fields.TextField', [], {})\r
- },\r
- 'forum.authkeyuserassociation': {\r
- 'Meta': {'object_name': 'AuthKeyUserAssociation'},\r
- 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),\r
- 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"})\r
- },\r
- 'forum.award': {\r
- 'Meta': {'unique_together': "(('content_type', 'object_id', 'user', 'badge'),)", 'object_name': 'Award', 'db_table': "u'award'"},\r
- 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}),\r
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"})\r
- },\r
- 'forum.badge': {\r
- 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"},\r
- 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),\r
- 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}),\r
- 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),\r
- 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}),\r
- 'type': ('django.db.models.fields.SmallIntegerField', [], {})\r
- },\r
- 'forum.comment': {\r
- 'Meta': {'object_name': 'Comment', 'db_table': "u'comment'"},\r
- 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'comment': ('django.db.models.fields.CharField', [], {'max_length': '300'}),\r
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),\r
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_comments'", 'null': 'True', 'to': "orm['forum.User']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'liked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'comments_liked'", 'through': "'LikedComment'", 'to': "orm['forum.User']"}),\r
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),\r
- 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'to': "orm['forum.User']"})\r
- },\r
- 'forum.favoritequestion': {\r
- 'Meta': {'unique_together': "(('question', 'user'),)", 'object_name': 'FavoriteQuestion', 'db_table': "u'favorite_question'"},\r
- 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_favorite_questions'", 'to': "orm['forum.User']"})\r
- },\r
- 'forum.flaggeditem': {\r
- 'Meta': {'object_name': 'FlaggedItem', 'db_table': "u'flagged_item'"},\r
- 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),\r
- 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),\r
- 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300', 'null': 'True'}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'to': "orm['forum.User']"})\r
- },\r
- 'forum.keyvalue': {\r
- 'Meta': {'object_name': 'KeyValue'},\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),\r
- 'value': ('forum.models.utils.PickledObjectField', [], {})\r
- },\r
- 'forum.likedcomment': {\r
- 'Meta': {'object_name': 'LikedComment'},\r
- 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'comment': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Comment']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})\r
- },\r
- 'forum.markedtag': {\r
- 'Meta': {'object_name': 'MarkedTag'},\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}),\r
- 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"})\r
- },\r
- 'forum.question': {\r
- 'Meta': {'object_name': 'Question', 'db_table': "u'question'"},\r
- 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'answer_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'answer_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),\r
- 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questions'", 'to': "orm['forum.User']"}),\r
- 'close_reason': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),\r
- 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'closed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'closed_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'closed_questions'", 'null': 'True', 'to': "orm['forum.User']"}),\r
- 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),\r
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_questions'", 'null': 'True', 'to': "orm['forum.User']"}),\r
- 'favorited_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'favorite_questions'", 'through': "'FavoriteQuestion'", 'to': "orm['forum.User']"}),\r
- 'favourite_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'followed_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'followed_questions'", 'to': "orm['forum.User']"}),\r
- 'html': ('django.db.models.fields.TextField', [], {}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_active_in_questions'", 'to': "orm['forum.User']"}),\r
- 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_questions'", 'null': 'True', 'to': "orm['forum.User']"}),\r
- 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),\r
- 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'subscribers': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscriptions'", 'through': "'QuestionSubscription'", 'to': "orm['forum.User']"}),\r
- 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}),\r
- 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),\r
- 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'questions'", 'to': "orm['forum.Tag']"}),\r
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}),\r
- 'view_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})\r
- },\r
- 'forum.questionrevision': {\r
- 'Meta': {'object_name': 'QuestionRevision', 'db_table': "u'question_revision'"},\r
- 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questionrevisions'", 'to': "orm['forum.User']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Question']"}),\r
- 'revised_at': ('django.db.models.fields.DateTimeField', [], {}),\r
- 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}),\r
- 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}),\r
- 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),\r
- 'text': ('django.db.models.fields.TextField', [], {}),\r
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'})\r
- },\r
- 'forum.questionsubscription': {\r
- 'Meta': {'object_name': 'QuestionSubscription'},\r
- 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 6, 11, 11, 44, 616000)'}),\r
- 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})\r
- },\r
- 'forum.repute': {\r
- 'Meta': {'object_name': 'Repute', 'db_table': "u'repute'"},\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'negative': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),\r
- 'positive': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),\r
- 'reputation': ('django.db.models.fields.IntegerField', [], {'default': '1'}),\r
- 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),\r
- 'reputation_type': ('django.db.models.fields.SmallIntegerField', [], {}),\r
- 'reputed_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}),\r
- 'user_previous_rep': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'value': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'})\r
- },\r
- 'forum.subscriptionsettings': {\r
- 'Meta': {'object_name': 'SubscriptionSettings'},\r
- 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}),\r
- 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}),\r
- 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),\r
- 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),\r
- 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"})\r
- },\r
- 'forum.tag': {\r
- 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"},\r
- 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}),\r
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}),\r
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),\r
- 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'})\r
- },\r
- 'forum.user': {\r
- 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']},\r
- 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}),\r
- 'bronze': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),\r
- 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),\r
- 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}),\r
- 'gold': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),\r
- 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),\r
- 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}),\r
- 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),\r
- 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}),\r
- 'silver': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),\r
- 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}),\r
- 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'})\r
- },\r
- 'forum.validationhash': {\r
- 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'},\r
- 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 7, 11, 11, 52, 402000)'}),\r
- 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}),\r
- 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})\r
- },\r
- 'forum.vote': {\r
- 'Meta': {'object_name': 'Vote', 'db_table': "u'vote'"},\r
- 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}),\r
- 'vote': ('django.db.models.fields.SmallIntegerField', [], {}),\r
- 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'})\r
- }\r
- }\r
- \r
- complete_apps = ['forum']\r
+++ /dev/null
-# encoding: utf-8\r
-import datetime\r
-from south.db import db\r
-from south.v2 import DataMigration\r
-from django.db import models\r
-\r
-class Migration(DataMigration):\r
- \r
- def forwards(self, orm):\r
- for r in orm.Repute.objects.all():\r
- r.value = r.positive + r.negative\r
- r.user_previous_rep = r.reputation - r.value\r
- r.save()\r
- \r
- \r
- def backwards(self, orm):\r
- for r in orm.Repute.objects.all():\r
- if r.value > 0:\r
- r.positive = r.value\r
- r.negative = 0\r
- else:\r
- r.positive = 0\r
- r.negative = r.value\r
-\r
- r.reputation = r.user_previous_rep + r.value\r
- r.save()\r
- \r
- models = {\r
- 'auth.group': {\r
- 'Meta': {'object_name': 'Group'},\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),\r
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'})\r
- },\r
- 'auth.permission': {\r
- 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},\r
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),\r
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})\r
- },\r
- 'auth.user': {\r
- 'Meta': {'object_name': 'User'},\r
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),\r
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),\r
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),\r
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),\r
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}),\r
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})\r
- },\r
- 'contenttypes.contenttype': {\r
- 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},\r
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),\r
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})\r
- },\r
- 'forum.activity': {\r
- 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"},\r
- 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}),\r
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})\r
- },\r
- 'forum.anonymousanswer': {\r
- 'Meta': {'object_name': 'AnonymousAnswer'},\r
- 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),\r
- 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'anonymous_answers'", 'to': "orm['forum.Question']"}),\r
- 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),\r
- 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}),\r
- 'text': ('django.db.models.fields.TextField', [], {}),\r
- 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'})\r
- },\r
- 'forum.anonymousquestion': {\r
- 'Meta': {'object_name': 'AnonymousQuestion'},\r
- 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),\r
- 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),\r
- 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}),\r
- 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),\r
- 'text': ('django.db.models.fields.TextField', [], {}),\r
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}),\r
- 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'})\r
- },\r
- 'forum.answer': {\r
- 'Meta': {'object_name': 'Answer', 'db_table': "u'answer'"},\r
- 'accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'accepted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'accepted_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),\r
- 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': "orm['forum.User']"}),\r
- 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),\r
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_answers'", 'null': 'True', 'to': "orm['forum.User']"}),\r
- 'html': ('django.db.models.fields.TextField', [], {}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_answers'", 'null': 'True', 'to': "orm['forum.User']"}),\r
- 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),\r
- 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': "orm['forum.Question']"}),\r
- 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})\r
- },\r
- 'forum.answerrevision': {\r
- 'Meta': {'object_name': 'AnswerRevision', 'db_table': "u'answer_revision'"},\r
- 'answer': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Answer']"}),\r
- 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answerrevisions'", 'to': "orm['forum.User']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'revised_at': ('django.db.models.fields.DateTimeField', [], {}),\r
- 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}),\r
- 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}),\r
- 'text': ('django.db.models.fields.TextField', [], {})\r
- },\r
- 'forum.authkeyuserassociation': {\r
- 'Meta': {'object_name': 'AuthKeyUserAssociation'},\r
- 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),\r
- 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"})\r
- },\r
- 'forum.award': {\r
- 'Meta': {'unique_together': "(('content_type', 'object_id', 'user', 'badge'),)", 'object_name': 'Award', 'db_table': "u'award'"},\r
- 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}),\r
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"})\r
- },\r
- 'forum.badge': {\r
- 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"},\r
- 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),\r
- 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}),\r
- 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),\r
- 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}),\r
- 'type': ('django.db.models.fields.SmallIntegerField', [], {})\r
- },\r
- 'forum.comment': {\r
- 'Meta': {'object_name': 'Comment', 'db_table': "u'comment'"},\r
- 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'comment': ('django.db.models.fields.CharField', [], {'max_length': '300'}),\r
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),\r
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_comments'", 'null': 'True', 'to': "orm['forum.User']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'liked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'comments_liked'", 'through': "'LikedComment'", 'to': "orm['forum.User']"}),\r
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),\r
- 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'to': "orm['forum.User']"})\r
- },\r
- 'forum.favoritequestion': {\r
- 'Meta': {'unique_together': "(('question', 'user'),)", 'object_name': 'FavoriteQuestion', 'db_table': "u'favorite_question'"},\r
- 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_favorite_questions'", 'to': "orm['forum.User']"})\r
- },\r
- 'forum.flaggeditem': {\r
- 'Meta': {'object_name': 'FlaggedItem', 'db_table': "u'flagged_item'"},\r
- 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),\r
- 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),\r
- 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300', 'null': 'True'}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'to': "orm['forum.User']"})\r
- },\r
- 'forum.keyvalue': {\r
- 'Meta': {'object_name': 'KeyValue'},\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),\r
- 'value': ('forum.models.utils.PickledObjectField', [], {})\r
- },\r
- 'forum.likedcomment': {\r
- 'Meta': {'object_name': 'LikedComment'},\r
- 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'comment': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Comment']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})\r
- },\r
- 'forum.markedtag': {\r
- 'Meta': {'object_name': 'MarkedTag'},\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}),\r
- 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"})\r
- },\r
- 'forum.question': {\r
- 'Meta': {'object_name': 'Question', 'db_table': "u'question'"},\r
- 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'answer_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'answer_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),\r
- 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questions'", 'to': "orm['forum.User']"}),\r
- 'close_reason': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),\r
- 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'closed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'closed_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'closed_questions'", 'null': 'True', 'to': "orm['forum.User']"}),\r
- 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),\r
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_questions'", 'null': 'True', 'to': "orm['forum.User']"}),\r
- 'favorited_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'favorite_questions'", 'through': "'FavoriteQuestion'", 'to': "orm['forum.User']"}),\r
- 'favourite_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'followed_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'followed_questions'", 'to': "orm['forum.User']"}),\r
- 'html': ('django.db.models.fields.TextField', [], {}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_active_in_questions'", 'to': "orm['forum.User']"}),\r
- 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_questions'", 'null': 'True', 'to': "orm['forum.User']"}),\r
- 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),\r
- 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'subscribers': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscriptions'", 'through': "'QuestionSubscription'", 'to': "orm['forum.User']"}),\r
- 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}),\r
- 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),\r
- 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'questions'", 'to': "orm['forum.Tag']"}),\r
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}),\r
- 'view_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})\r
- },\r
- 'forum.questionrevision': {\r
- 'Meta': {'object_name': 'QuestionRevision', 'db_table': "u'question_revision'"},\r
- 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questionrevisions'", 'to': "orm['forum.User']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Question']"}),\r
- 'revised_at': ('django.db.models.fields.DateTimeField', [], {}),\r
- 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}),\r
- 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}),\r
- 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),\r
- 'text': ('django.db.models.fields.TextField', [], {}),\r
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'})\r
- },\r
- 'forum.questionsubscription': {\r
- 'Meta': {'object_name': 'QuestionSubscription'},\r
- 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 6, 11, 30, 3, 497000)'}),\r
- 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})\r
- },\r
- 'forum.repute': {\r
- 'Meta': {'object_name': 'Repute', 'db_table': "u'repute'"},\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'negative': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),\r
- 'positive': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),\r
- 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),\r
- 'reputation': ('django.db.models.fields.IntegerField', [], {'default': '1'}),\r
- 'reputation_type': ('django.db.models.fields.SmallIntegerField', [], {}),\r
- 'reputed_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}),\r
- 'user_previous_rep': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'value': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'})\r
- },\r
- 'forum.subscriptionsettings': {\r
- 'Meta': {'object_name': 'SubscriptionSettings'},\r
- 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}),\r
- 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}),\r
- 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),\r
- 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),\r
- 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"})\r
- },\r
- 'forum.tag': {\r
- 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"},\r
- 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}),\r
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}),\r
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),\r
- 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'})\r
- },\r
- 'forum.user': {\r
- 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']},\r
- 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}),\r
- 'bronze': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),\r
- 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),\r
- 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}),\r
- 'gold': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),\r
- 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),\r
- 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}),\r
- 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),\r
- 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}),\r
- 'silver': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),\r
- 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}),\r
- 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'})\r
- },\r
- 'forum.validationhash': {\r
- 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'},\r
- 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 7, 11, 30, 3, 573000)'}),\r
- 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}),\r
- 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})\r
- },\r
- 'forum.vote': {\r
- 'Meta': {'object_name': 'Vote', 'db_table': "u'vote'"},\r
- 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}),\r
- 'vote': ('django.db.models.fields.SmallIntegerField', [], {}),\r
- 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'})\r
- }\r
- }\r
- \r
- complete_apps = ['forum']\r
+++ /dev/null
-# encoding: utf-8\r
-import datetime\r
-from south.db import db\r
-from south.v2 import SchemaMigration\r
-from django.db import models\r
-\r
-class Migration(SchemaMigration):\r
- \r
- def forwards(self, orm):\r
- \r
- # Deleting field 'Repute.negative'\r
- db.delete_column(u'repute', 'negative')\r
-\r
- # Deleting field 'Repute.positive'\r
- db.delete_column(u'repute', 'positive')\r
-\r
- # Deleting field 'Repute.reputation'\r
- db.delete_column(u'repute', 'reputation')\r
- \r
- \r
- def backwards(self, orm):\r
- \r
- # Adding field 'Repute.negative'\r
- db.add_column(u'repute', 'negative', self.gf('django.db.models.fields.SmallIntegerField')(default=0), keep_default=False)\r
-\r
- # Adding field 'Repute.positive'\r
- db.add_column(u'repute', 'positive', self.gf('django.db.models.fields.SmallIntegerField')(default=0), keep_default=False)\r
-\r
- # Adding field 'Repute.reputation'\r
- db.add_column(u'repute', 'reputation', self.gf('django.db.models.fields.IntegerField')(default=1), keep_default=False)\r
- \r
- \r
- models = {\r
- 'auth.group': {\r
- 'Meta': {'object_name': 'Group'},\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),\r
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'})\r
- },\r
- 'auth.permission': {\r
- 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},\r
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),\r
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})\r
- },\r
- 'auth.user': {\r
- 'Meta': {'object_name': 'User'},\r
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),\r
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),\r
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),\r
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),\r
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}),\r
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})\r
- },\r
- 'contenttypes.contenttype': {\r
- 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},\r
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),\r
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})\r
- },\r
- 'forum.activity': {\r
- 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"},\r
- 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}),\r
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})\r
- },\r
- 'forum.anonymousanswer': {\r
- 'Meta': {'object_name': 'AnonymousAnswer'},\r
- 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),\r
- 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'anonymous_answers'", 'to': "orm['forum.Question']"}),\r
- 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),\r
- 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}),\r
- 'text': ('django.db.models.fields.TextField', [], {}),\r
- 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'})\r
- },\r
- 'forum.anonymousquestion': {\r
- 'Meta': {'object_name': 'AnonymousQuestion'},\r
- 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),\r
- 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),\r
- 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}),\r
- 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),\r
- 'text': ('django.db.models.fields.TextField', [], {}),\r
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}),\r
- 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'})\r
- },\r
- 'forum.answer': {\r
- 'Meta': {'object_name': 'Answer', 'db_table': "u'answer'"},\r
- 'accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'accepted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'accepted_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),\r
- 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': "orm['forum.User']"}),\r
- 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),\r
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_answers'", 'null': 'True', 'to': "orm['forum.User']"}),\r
- 'html': ('django.db.models.fields.TextField', [], {}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_answers'", 'null': 'True', 'to': "orm['forum.User']"}),\r
- 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),\r
- 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': "orm['forum.Question']"}),\r
- 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})\r
- },\r
- 'forum.answerrevision': {\r
- 'Meta': {'object_name': 'AnswerRevision', 'db_table': "u'answer_revision'"},\r
- 'answer': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Answer']"}),\r
- 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answerrevisions'", 'to': "orm['forum.User']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'revised_at': ('django.db.models.fields.DateTimeField', [], {}),\r
- 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}),\r
- 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}),\r
- 'text': ('django.db.models.fields.TextField', [], {})\r
- },\r
- 'forum.authkeyuserassociation': {\r
- 'Meta': {'object_name': 'AuthKeyUserAssociation'},\r
- 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),\r
- 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"})\r
- },\r
- 'forum.award': {\r
- 'Meta': {'unique_together': "(('content_type', 'object_id', 'user', 'badge'),)", 'object_name': 'Award', 'db_table': "u'award'"},\r
- 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}),\r
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"})\r
- },\r
- 'forum.badge': {\r
- 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"},\r
- 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),\r
- 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}),\r
- 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),\r
- 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}),\r
- 'type': ('django.db.models.fields.SmallIntegerField', [], {})\r
- },\r
- 'forum.comment': {\r
- 'Meta': {'object_name': 'Comment', 'db_table': "u'comment'"},\r
- 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'comment': ('django.db.models.fields.CharField', [], {'max_length': '300'}),\r
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),\r
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_comments'", 'null': 'True', 'to': "orm['forum.User']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'liked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'comments_liked'", 'through': "'LikedComment'", 'to': "orm['forum.User']"}),\r
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),\r
- 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'to': "orm['forum.User']"})\r
- },\r
- 'forum.favoritequestion': {\r
- 'Meta': {'unique_together': "(('question', 'user'),)", 'object_name': 'FavoriteQuestion', 'db_table': "u'favorite_question'"},\r
- 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_favorite_questions'", 'to': "orm['forum.User']"})\r
- },\r
- 'forum.flaggeditem': {\r
- 'Meta': {'object_name': 'FlaggedItem', 'db_table': "u'flagged_item'"},\r
- 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),\r
- 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),\r
- 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300', 'null': 'True'}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'to': "orm['forum.User']"})\r
- },\r
- 'forum.keyvalue': {\r
- 'Meta': {'object_name': 'KeyValue'},\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),\r
- 'value': ('forum.models.utils.PickledObjectField', [], {})\r
- },\r
- 'forum.likedcomment': {\r
- 'Meta': {'object_name': 'LikedComment'},\r
- 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'comment': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Comment']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})\r
- },\r
- 'forum.markedtag': {\r
- 'Meta': {'object_name': 'MarkedTag'},\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}),\r
- 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"})\r
- },\r
- 'forum.question': {\r
- 'Meta': {'object_name': 'Question', 'db_table': "u'question'"},\r
- 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'answer_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'answer_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),\r
- 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questions'", 'to': "orm['forum.User']"}),\r
- 'close_reason': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),\r
- 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'closed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'closed_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'closed_questions'", 'null': 'True', 'to': "orm['forum.User']"}),\r
- 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),\r
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_questions'", 'null': 'True', 'to': "orm['forum.User']"}),\r
- 'favorited_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'favorite_questions'", 'through': "'FavoriteQuestion'", 'to': "orm['forum.User']"}),\r
- 'favourite_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'followed_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'followed_questions'", 'to': "orm['forum.User']"}),\r
- 'html': ('django.db.models.fields.TextField', [], {}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_active_in_questions'", 'to': "orm['forum.User']"}),\r
- 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_questions'", 'null': 'True', 'to': "orm['forum.User']"}),\r
- 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),\r
- 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'subscribers': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscriptions'", 'through': "'QuestionSubscription'", 'to': "orm['forum.User']"}),\r
- 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}),\r
- 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),\r
- 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'questions'", 'to': "orm['forum.Tag']"}),\r
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}),\r
- 'view_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})\r
- },\r
- 'forum.questionrevision': {\r
- 'Meta': {'object_name': 'QuestionRevision', 'db_table': "u'question_revision'"},\r
- 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questionrevisions'", 'to': "orm['forum.User']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Question']"}),\r
- 'revised_at': ('django.db.models.fields.DateTimeField', [], {}),\r
- 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}),\r
- 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}),\r
- 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),\r
- 'text': ('django.db.models.fields.TextField', [], {}),\r
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'})\r
- },\r
- 'forum.questionsubscription': {\r
- 'Meta': {'object_name': 'QuestionSubscription'},\r
- 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 6, 11, 40, 26, 816000)'}),\r
- 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})\r
- },\r
- 'forum.repute': {\r
- 'Meta': {'object_name': 'Repute', 'db_table': "u'repute'"},\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),\r
- 'reputation_type': ('django.db.models.fields.SmallIntegerField', [], {}),\r
- 'reputed_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}),\r
- 'user_previous_rep': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'value': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'})\r
- },\r
- 'forum.subscriptionsettings': {\r
- 'Meta': {'object_name': 'SubscriptionSettings'},\r
- 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}),\r
- 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}),\r
- 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),\r
- 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),\r
- 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"})\r
- },\r
- 'forum.tag': {\r
- 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"},\r
- 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}),\r
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}),\r
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),\r
- 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'})\r
- },\r
- 'forum.user': {\r
- 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']},\r
- 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}),\r
- 'bronze': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),\r
- 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),\r
- 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}),\r
- 'gold': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),\r
- 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),\r
- 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}),\r
- 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),\r
- 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}),\r
- 'silver': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),\r
- 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}),\r
- 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'})\r
- },\r
- 'forum.validationhash': {\r
- 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'},\r
- 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 7, 11, 40, 27, 72000)'}),\r
- 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}),\r
- 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})\r
- },\r
- 'forum.vote': {\r
- 'Meta': {'object_name': 'Vote', 'db_table': "u'vote'"},\r
- 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}),\r
- 'vote': ('django.db.models.fields.SmallIntegerField', [], {}),\r
- 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'})\r
- }\r
- }\r
- \r
- complete_apps = ['forum']\r
+++ /dev/null
-# encoding: utf-8\r
-import datetime\r
-from south.db import db\r
-from south.v2 import DataMigration\r
-from django.db import models\r
-\r
-class Migration(DataMigration):\r
- \r
- def forwards(self, orm):\r
- for a in orm.Answer.objects.filter(accepted=True):\r
- a.accepted_by = a.question.author\r
- a.save()\r
- \r
- def backwards(self, orm):\r
- "Write your backwards methods here."\r
- \r
- models = {\r
- 'auth.group': {\r
- 'Meta': {'object_name': 'Group'},\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),\r
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'})\r
- },\r
- 'auth.permission': {\r
- 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},\r
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),\r
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})\r
- },\r
- 'auth.user': {\r
- 'Meta': {'object_name': 'User'},\r
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),\r
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),\r
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),\r
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),\r
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}),\r
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})\r
- },\r
- 'contenttypes.contenttype': {\r
- 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},\r
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),\r
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})\r
- },\r
- 'forum.activity': {\r
- 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"},\r
- 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}),\r
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})\r
- },\r
- 'forum.anonymousanswer': {\r
- 'Meta': {'object_name': 'AnonymousAnswer'},\r
- 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),\r
- 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'anonymous_answers'", 'to': "orm['forum.Question']"}),\r
- 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),\r
- 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}),\r
- 'text': ('django.db.models.fields.TextField', [], {}),\r
- 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'})\r
- },\r
- 'forum.anonymousquestion': {\r
- 'Meta': {'object_name': 'AnonymousQuestion'},\r
- 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}),\r
- 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),\r
- 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}),\r
- 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),\r
- 'text': ('django.db.models.fields.TextField', [], {}),\r
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}),\r
- 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'})\r
- },\r
- 'forum.answer': {\r
- 'Meta': {'object_name': 'Answer', 'db_table': "u'answer'"},\r
- 'accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'accepted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'accepted_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),\r
- 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': "orm['forum.User']"}),\r
- 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),\r
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_answers'", 'null': 'True', 'to': "orm['forum.User']"}),\r
- 'html': ('django.db.models.fields.TextField', [], {}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_answers'", 'null': 'True', 'to': "orm['forum.User']"}),\r
- 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),\r
- 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': "orm['forum.Question']"}),\r
- 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})\r
- },\r
- 'forum.answerrevision': {\r
- 'Meta': {'object_name': 'AnswerRevision', 'db_table': "u'answer_revision'"},\r
- 'answer': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Answer']"}),\r
- 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answerrevisions'", 'to': "orm['forum.User']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'revised_at': ('django.db.models.fields.DateTimeField', [], {}),\r
- 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}),\r
- 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}),\r
- 'text': ('django.db.models.fields.TextField', [], {})\r
- },\r
- 'forum.authkeyuserassociation': {\r
- 'Meta': {'object_name': 'AuthKeyUserAssociation'},\r
- 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),\r
- 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"})\r
- },\r
- 'forum.award': {\r
- 'Meta': {'unique_together': "(('content_type', 'object_id', 'user', 'badge'),)", 'object_name': 'Award', 'db_table': "u'award'"},\r
- 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}),\r
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"})\r
- },\r
- 'forum.badge': {\r
- 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"},\r
- 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),\r
- 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}),\r
- 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),\r
- 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}),\r
- 'type': ('django.db.models.fields.SmallIntegerField', [], {})\r
- },\r
- 'forum.comment': {\r
- 'Meta': {'object_name': 'Comment', 'db_table': "u'comment'"},\r
- 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'comment': ('django.db.models.fields.CharField', [], {'max_length': '300'}),\r
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),\r
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_comments'", 'null': 'True', 'to': "orm['forum.User']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'liked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'comments_liked'", 'through': "'LikedComment'", 'to': "orm['forum.User']"}),\r
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),\r
- 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'to': "orm['forum.User']"})\r
- },\r
- 'forum.favoritequestion': {\r
- 'Meta': {'unique_together': "(('question', 'user'),)", 'object_name': 'FavoriteQuestion', 'db_table': "u'favorite_question'"},\r
- 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_favorite_questions'", 'to': "orm['forum.User']"})\r
- },\r
- 'forum.flaggeditem': {\r
- 'Meta': {'object_name': 'FlaggedItem', 'db_table': "u'flagged_item'"},\r
- 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),\r
- 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),\r
- 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300', 'null': 'True'}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'to': "orm['forum.User']"})\r
- },\r
- 'forum.keyvalue': {\r
- 'Meta': {'object_name': 'KeyValue'},\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),\r
- 'value': ('forum.models.utils.PickledObjectField', [], {})\r
- },\r
- 'forum.likedcomment': {\r
- 'Meta': {'object_name': 'LikedComment'},\r
- 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'comment': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Comment']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})\r
- },\r
- 'forum.markedtag': {\r
- 'Meta': {'object_name': 'MarkedTag'},\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}),\r
- 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"})\r
- },\r
- 'forum.question': {\r
- 'Meta': {'object_name': 'Question', 'db_table': "u'question'"},\r
- 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'answer_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'answer_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),\r
- 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questions'", 'to': "orm['forum.User']"}),\r
- 'close_reason': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),\r
- 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'closed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'closed_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'closed_questions'", 'null': 'True', 'to': "orm['forum.User']"}),\r
- 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),\r
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_questions'", 'null': 'True', 'to': "orm['forum.User']"}),\r
- 'favorited_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'favorite_questions'", 'through': "'FavoriteQuestion'", 'to': "orm['forum.User']"}),\r
- 'favourite_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'followed_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'followed_questions'", 'to': "orm['forum.User']"}),\r
- 'html': ('django.db.models.fields.TextField', [], {}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_active_in_questions'", 'to': "orm['forum.User']"}),\r
- 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_questions'", 'null': 'True', 'to': "orm['forum.User']"}),\r
- 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),\r
- 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'subscribers': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscriptions'", 'through': "'QuestionSubscription'", 'to': "orm['forum.User']"}),\r
- 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}),\r
- 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),\r
- 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'questions'", 'to': "orm['forum.Tag']"}),\r
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}),\r
- 'view_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})\r
- },\r
- 'forum.questionrevision': {\r
- 'Meta': {'object_name': 'QuestionRevision', 'db_table': "u'question_revision'"},\r
- 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questionrevisions'", 'to': "orm['forum.User']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Question']"}),\r
- 'revised_at': ('django.db.models.fields.DateTimeField', [], {}),\r
- 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}),\r
- 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}),\r
- 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),\r
- 'text': ('django.db.models.fields.TextField', [], {}),\r
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'})\r
- },\r
- 'forum.questionsubscription': {\r
- 'Meta': {'object_name': 'QuestionSubscription'},\r
- 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 6, 11, 46, 14, 452000)'}),\r
- 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})\r
- },\r
- 'forum.repute': {\r
- 'Meta': {'object_name': 'Repute', 'db_table': "u'repute'"},\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}),\r
- 'reputation_type': ('django.db.models.fields.SmallIntegerField', [], {}),\r
- 'reputed_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}),\r
- 'user_previous_rep': ('django.db.models.fields.IntegerField', [], {'default': '0'}),\r
- 'value': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'})\r
- },\r
- 'forum.subscriptionsettings': {\r
- 'Meta': {'object_name': 'SubscriptionSettings'},\r
- 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}),\r
- 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}),\r
- 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),\r
- 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),\r
- 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),\r
- 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"})\r
- },\r
- 'forum.tag': {\r
- 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"},\r
- 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}),\r
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),\r
- 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}),\r
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),\r
- 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'})\r
- },\r
- 'forum.user': {\r
- 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']},\r
- 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}),\r
- 'bronze': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),\r
- 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),\r
- 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}),\r
- 'gold': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),\r
- 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),\r
- 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),\r
- 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}),\r
- 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),\r
- 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}),\r
- 'silver': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),\r
- 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}),\r
- 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'})\r
- },\r
- 'forum.validationhash': {\r
- 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'},\r
- 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 7, 11, 46, 14, 538000)'}),\r
- 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}),\r
- 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})\r
- },\r
- 'forum.vote': {\r
- 'Meta': {'object_name': 'Vote', 'db_table': "u'vote'"},\r
- 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),\r
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),\r
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),\r
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),\r
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}),\r
- 'vote': ('django.db.models.fields.SmallIntegerField', [], {}),\r
- 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'})\r
- }\r
- }\r
- \r
- complete_apps = ['forum']\r
+++ /dev/null
-from question import Question ,QuestionRevision, AnonymousQuestion, FavoriteQuestion, QuestionSubscription\r
-from answer import Answer, AnonymousAnswer, AnswerRevision\r
-from tag import Tag, MarkedTag\r
-from meta import Vote, Comment, FlaggedItem, LikedComment\r
-from user import User, Activity, ValidationHash, AuthKeyUserAssociation, SubscriptionSettings\r
-from repute import Badge, Award, Repute\r
-from utils import KeyValue\r
-\r
-try:\r
- from south.modelsinspector import add_introspection_rules\r
- add_introspection_rules([], [r"^forum\.models\.utils\.\w+"])\r
-except:\r
- pass\r
-\r
-from base import *\r
-\r
-def is_new(sender, instance, **kwargs):\r
- try:\r
- instance._is_new = not bool(instance.id)\r
- except:\r
- pass\r
-\r
-pre_save.connect(is_new)\r
-\r
-__all__ = [\r
- 'Question', 'QuestionRevision', 'FavoriteQuestion', 'AnonymousQuestion', 'QuestionSubscription',\r
- 'Answer', 'AnswerRevision', 'AnonymousAnswer',\r
- 'Tag', 'Comment', 'Vote', 'FlaggedItem', 'MarkedTag', 'LikedComment', 'Badge', 'Award', 'Repute',\r
- 'Activity', 'ValidationHash', 'AuthKeyUserAssociation', 'SubscriptionSettings', 'KeyValue', 'User',\r
- ]\r
-\r
-\r
-from forum.modules import get_modules_script_classes\r
-\r
-for k, v in get_modules_script_classes('models', models.Model).items():\r
- if not k in __all__:\r
- __all__.append(k)\r
- exec "%s = v" % k\r
+++ /dev/null
-from base import *
-
-from question import Question
-
-class AnswerManager(CachedManager):
- def create_new(self, question=None, author=None, added_at=None, wiki=False, text='', email_notify=False):
- answer = Answer(
- question = question,
- author = author,
- added_at = added_at,
- wiki = wiki,
- html = text
- )
- if answer.wiki:
- answer.last_edited_by = answer.author
- answer.last_edited_at = added_at
- answer.wikified_at = added_at
-
- answer.save()
-
- #update question data
- question.last_activity_at = added_at
- question.last_activity_by = author
- question.save()
-
- AnswerRevision.objects.create(
- answer = answer,
- revision = 1,
- author = author,
- revised_at = added_at,
- summary = CONST['default_version'],
- text = text
- )
-
-
-class Answer(Content):
- question = models.ForeignKey('Question', related_name='answers')
- accepted = models.BooleanField(default=False)
- accepted_at = models.DateTimeField(null=True, blank=True)
- accepted_by = models.ForeignKey(User, null=True)
-
-
- objects = AnswerManager()
-
- class Meta(Content.Meta):
- db_table = u'answer'
-
- def mark_accepted(self, user):
- if not self.accepted and not self.question.answer_accepted:
- self.accepted = True
- self.accepted_at = datetime.datetime.now()
- self.accepted_by = user
- self.save()
- self.question.answer_accepted = True
- self.question.save()
- return True
-
- return False
-
- def unmark_accepted(self):
- if self.accepted:
- self.accepted = False
- self.save()
- self.question.answer_accepted = False
- self.question.save()
- return True
-
- return False
-
- def _update_question_answer_count(self, diff):
- self.question.answer_count = self.question.answer_count + diff
- self.question.save()
-
- def mark_deleted(self, user):
- if super(Answer, self).mark_deleted(user):
- self._update_question_answer_count(-1)
-
- def unmark_deleted(self):
- if super(Answer, self).unmark_deleted():
- self._update_question_answer_count(1)
-
- def get_latest_revision(self):
- return self.revisions.all()[0]
-
- def get_question_title(self):
- return self.question.title
-
- def get_absolute_url(self):
- return '%s#%s' % (self.question.get_absolute_url(), self.id)
-
- def save(self, *args, **kwargs):
- super(Answer, self).save(*args, **kwargs)
-
- if self._is_new:
- self._update_question_answer_count(1)
-
- def __unicode__(self):
- return self.html
-
-
-class AnswerRevision(ContentRevision):
- """A revision of an Answer."""
- answer = models.ForeignKey('Answer', related_name='revisions')
-
- def get_absolute_url(self):
- return reverse('answer_revisions', kwargs={'id':self.answer.id})
-
- def get_question_title(self):
- return self.answer.question.title
-
- class Meta(ContentRevision.Meta):
- db_table = u'answer_revision'
- ordering = ('-revision',)
-
- def save(self, *args, **kwargs):
- """Looks up the next available revision number if not set."""
- if not self.revision:
- self.revision = AnswerRevision.objects.filter(
- answer=self.answer).values_list('revision',
- flat=True)[0] + 1
- super(AnswerRevision, self).save(*args, **kwargs)
-
-class AnonymousAnswer(AnonymousContent):
- question = models.ForeignKey('Question', related_name='anonymous_answers')
-
- def publish(self,user):
- added_at = datetime.datetime.now()
- #print user.id
- Answer.objects.create_new(question=self.question,wiki=self.wiki,
- added_at=added_at,text=self.text,
- author=user)
- self.delete()
+++ /dev/null
-import datetime
-import hashlib
-from urllib import quote_plus, urlencode
-from django.db import models, IntegrityError, connection, transaction
-from django.utils.http import urlquote as django_urlquote
-from django.utils.html import strip_tags
-from django.core.urlresolvers import reverse
-from django.contrib.contenttypes import generic
-from django.contrib.contenttypes.models import ContentType
-from django.core.cache import cache
-from django.template.defaultfilters import slugify
-from django.db.models.signals import post_delete, post_save, pre_save, pre_delete
-from django.utils.translation import ugettext as _
-from django.utils.safestring import mark_safe
-from django.contrib.sitemaps import ping_google
-import django.dispatch
-from django.conf import settings
-from forum import const
-import logging
-
-from forum.const import *
-
-class CachedManager(models.Manager):
- use_for_related_fields = True
-
- def get(self, *args, **kwargs):
- try:
- pk = [v for (k,v) in kwargs.items() if k in ('pk', 'pk__exact', 'id', 'id__exact') or k.endswith('_ptr__pk')][0]
- except:
- pk = None
-
- if pk is not None:
- key = self.model.cache_key(pk)
- obj = cache.get(key)
-
- if obj is None:
- obj = super(CachedManager, self).get(*args, **kwargs)
- cache.set(key, obj, 60 * 60)
-
- return obj
-
- return super(CachedManager, self).get(*args, **kwargs)
-
- def get_or_create(self, *args, **kwargs):
- try:
- return self.get(*args, **kwargs)
- except:
- return super(CachedManager, self).get_or_create(*args, **kwargs)
-
-
-class BaseModel(models.Model):
- objects = CachedManager()
-
- class Meta:
- abstract = True
- app_label = 'forum'
-
- def __init__(self, *args, **kwargs):
- super(BaseModel, self).__init__(*args, **kwargs)
- self._original_state = dict([(k, v) for k,v in self.__dict__.items() if not k in kwargs])
-
- @classmethod
- def cache_key(cls, pk):
- return '%s.%s:%s' % (settings.APP_URL, cls.__name__, pk)
-
- def get_dirty_fields(self):
- missing = object()
- return dict([(k, self._original_state.get(k, None)) for k,v in self.__dict__.items()
- if self._original_state.get(k, missing) == missing or self._original_state[k] != v])
-
- def save(self, *args, **kwargs):
- super(BaseModel, self).save(*args, **kwargs)
- self._original_state = dict(self.__dict__)
- cache.set(self.cache_key(self.pk), self, 86400)
-
- def delete(self):
- cache.delete(self.cache_key(self.pk))
- super(BaseModel, self).delete()
-
-
-class ActiveObjectManager(models.Manager):
- def get_query_set(self):
- return super(ActiveObjectManager, self).get_query_set().filter(canceled=False)
-
-class UndeletedObjectManager(models.Manager):
- def get_query_set(self):
- return super(UndeletedObjectManager, self).get_query_set().filter(deleted=False)
-
-class MetaContent(BaseModel):
- """
- Base class for Vote, Comment and FlaggedItem
- """
- content_type = models.ForeignKey(ContentType)
- object_id = models.PositiveIntegerField()
- content_object = generic.GenericForeignKey('content_type', 'object_id')
-
- class Meta:
- abstract = True
- app_label = 'forum'
-
-from user import User
-
-class UserContent(models.Model):
- user = models.ForeignKey(User, related_name='%(class)ss')
-
- class Meta:
- abstract = True
- app_label = 'forum'
-
-
-marked_deleted = django.dispatch.Signal(providing_args=["instance", "deleted_by"])
-
-class DeletableContent(models.Model):
- deleted = models.BooleanField(default=False)
- deleted_at = models.DateTimeField(null=True, blank=True)
- deleted_by = models.ForeignKey(User, null=True, blank=True, related_name='deleted_%(class)ss')
-
- active = UndeletedObjectManager()
-
- class Meta:
- abstract = True
- app_label = 'forum'
-
- def mark_deleted(self, user):
- if not self.deleted:
- self.deleted = True
- self.deleted_at = datetime.datetime.now()
- self.deleted_by = user
- self.save()
- marked_deleted.send(sender=self.__class__, instance=self, deleted_by=user)
- return True
- else:
- return False
-
- def unmark_deleted(self):
- if self.deleted:
- self.deleted = False
- self.save()
- return True
- else:
- return False
-
-
-class ContentRevision(models.Model):
- """
- Base class for QuestionRevision and AnswerRevision
- """
- revision = models.PositiveIntegerField()
- author = models.ForeignKey(User, related_name='%(class)ss')
- revised_at = models.DateTimeField()
- summary = models.CharField(max_length=300, blank=True)
- text = models.TextField()
-
- class Meta:
- abstract = True
- app_label = 'forum'
-
-
-class AnonymousContent(models.Model):
- """
- Base class for AnonymousQuestion and AnonymousAnswer
- """
- session_key = models.CharField(max_length=40) #session id for anonymous questions
- wiki = models.BooleanField(default=False)
- added_at = models.DateTimeField(default=datetime.datetime.now)
- ip_addr = models.IPAddressField(max_length=21) #allow high port numbers
- author = models.ForeignKey(User,null=True)
- text = models.TextField()
- summary = models.CharField(max_length=180)
-
- class Meta:
- abstract = True
- app_label = 'forum'
-
-
-from meta import Comment, Vote, FlaggedItem
-from user import activity_record
-
-class Content(BaseModel, DeletableContent):
- """
- Base class for Question and Answer
- """
- author = models.ForeignKey(User, related_name='%(class)ss')
- added_at = models.DateTimeField(default=datetime.datetime.now)
-
- wiki = models.BooleanField(default=False)
- wikified_at = models.DateTimeField(null=True, blank=True)
-
- #locked = models.BooleanField(default=False)
- #locked_by = models.ForeignKey(User, null=True, blank=True, related_name='locked_%(class)ss')
- #locked_at = models.DateTimeField(null=True, blank=True)
-
- score = models.IntegerField(default=0)
- vote_up_count = models.IntegerField(default=0)
- vote_down_count = models.IntegerField(default=0)
-
- comment_count = models.PositiveIntegerField(default=0)
- offensive_flag_count = models.SmallIntegerField(default=0)
-
- last_edited_at = models.DateTimeField(null=True, blank=True)
- last_edited_by = models.ForeignKey(User, null=True, blank=True, related_name='last_edited_%(class)ss')
-
- html = models.TextField()
- comments = generic.GenericRelation(Comment)
- votes = generic.GenericRelation(Vote)
- flagged_items = generic.GenericRelation(FlaggedItem)
-
- class Meta:
- abstract = True
- app_label = 'forum'
-
- def save(self, *args, **kwargs):
- self.__dict__['score'] = self.__dict__['vote_up_count'] - self.__dict__['vote_down_count']
- super(Content,self).save(*args, **kwargs)
-
- try:
- ping_google()
- except Exception:
- logging.debug('problem pinging google did you register you sitemap with google?')
-
-
- def post_get_last_update_info(self):
- when = self.added_at
- who = self.author
- if self.last_edited_at and self.last_edited_at > when:
- when = self.last_edited_at
- who = self.last_edited_by
- comments = self.comments.all()
- if len(comments) > 0:
- for c in comments:
- if c.added_at > when:
- when = c.added_at
- who = c.user
- return when, who
\ No newline at end of file
+++ /dev/null
-from base import *
-import re
-
-class Vote(MetaContent, UserContent):
- VOTE_UP = +1
- VOTE_DOWN = -1
- VOTE_CHOICES = (
- (VOTE_UP, u'Up'),
- (VOTE_DOWN, u'Down'),
- )
-
- vote = models.SmallIntegerField(choices=VOTE_CHOICES)
- voted_at = models.DateTimeField(default=datetime.datetime.now)
- canceled = models.BooleanField(default=False)
-
- active = ActiveObjectManager()
-
- class Meta(MetaContent.Meta):
- db_table = u'vote'
-
- def __unicode__(self):
- return '[%s] voted at %s: %s' %(self.user, self.voted_at, self.vote)
-
- def _update_post_vote_count(self, diff):
- post = self.content_object
- field = self.vote == 1 and 'vote_up_count' or 'vote_down_count'
- post.__dict__[field] = post.__dict__[field] + diff
- post.save()
-
- def save(self, *args, **kwargs):
- super(Vote, self).save(*args, **kwargs)
- if self._is_new:
- self._update_post_vote_count(1)
-
- def cancel(self):
- if not self.canceled:
- self.canceled = True
- self.save()
- self._update_post_vote_count(-1)
- vote_canceled.send(sender=Vote, instance=self)
-
- def is_upvote(self):
- return self.vote == self.VOTE_UP
-
- def is_downvote(self):
- return self.vote == self.VOTE_DOWN
-
-vote_canceled = django.dispatch.Signal(providing_args=['instance'])
-
-class FlaggedItem(MetaContent, UserContent):
- """A flag on a Question or Answer indicating offensive content."""
- flagged_at = models.DateTimeField(default=datetime.datetime.now)
- reason = models.CharField(max_length=300, null=True)
- canceled = models.BooleanField(default=False)
-
- active = ActiveObjectManager()
-
- class Meta(MetaContent.Meta):
- db_table = u'flagged_item'
-
- def __unicode__(self):
- return '[%s] flagged at %s' %(self.user, self.flagged_at)
-
- def _update_post_flag_count(self, diff):
- post = self.content_object
- post.offensive_flag_count = post.offensive_flag_count + diff
- post.save()
-
- def save(self, *args, **kwargs):
- super(FlaggedItem, self).save(*args, **kwargs)
- if self._is_new:
- self._update_post_flag_count(1)
-
- def cancel(self):
- if not self.canceled:
- self.canceled = True
- self.save()
- self._update_post_flag_count(-1)
-
-
-class Comment(MetaContent, UserContent, DeletableContent):
- comment = models.CharField(max_length=300)
- added_at = models.DateTimeField(default=datetime.datetime.now)
- score = models.IntegerField(default=0)
- liked_by = models.ManyToManyField(User, through='LikedComment', related_name='comments_liked')
-
- class Meta(MetaContent.Meta):
- ordering = ('-added_at',)
- db_table = u'comment'
-
- def _update_post_comment_count(self, diff):
- post = self.content_object
- post.comment_count = post.comment_count + diff
- post.save()
-
- def save(self, *args, **kwargs):
- super(Comment,self).save(*args, **kwargs)
-
- if self._is_new:
- self._update_post_comment_count(1)
-
- try:
- ping_google()
- except Exception:
- logging.debug('problem pinging google did you register you sitemap with google?')
-
- def mark_deleted(self, user):
- if super(Comment, self).mark_deleted(user):
- self._update_post_comment_count(-1)
-
- def unmark_deleted(self):
- if super(Comment, self).unmark_deleted():
- self._update_post_comment_count(1)
-
- def is_reply_to(self, user):
- inreply = re.search('@\w+', self.comment)
- if inreply is not None:
- return user.username.startswith(inreply[1:])
-
- return False
-
- def __unicode__(self):
- return self.comment
-
-
-class LikedComment(models.Model):
- comment = models.ForeignKey(Comment)
- user = models.ForeignKey(User)
- added_at = models.DateTimeField(default=datetime.datetime.now)
- canceled = models.BooleanField(default=False)
-
- active = ActiveObjectManager()
-
- class Meta:
- app_label = 'forum'
-
- def _update_comment_score(self, diff):
- self.comment.score = self.comment.score + diff
- self.comment.save()
-
- def save(self, *args, **kwargs):
- super(LikedComment, self).save(*args, **kwargs)
- if self._is_new:
- self._update_comment_score(1)
-
- def cancel(self):
- if not self.canceled:
- self.canceled = True
- self.save()
- self._update_comment_score(-1)
-
-
+++ /dev/null
-from base import *
-from tag import Tag
-
-class QuestionManager(CachedManager):
- def create_new(self, title=None,author=None,added_at=None, wiki=False,tagnames=None,summary=None, text=None):
-
- question = Question(
- title = title,
- author = author,
- added_at = added_at,
- last_activity_at = added_at,
- last_activity_by = author,
- wiki = wiki,
- tagnames = tagnames,
- html = text,
- summary = summary
- )
- if question.wiki:
- question.last_edited_by = question.author
- question.last_edited_at = added_at
- question.wikified_at = added_at
-
- question.save()
-
- # create the first revision
- QuestionRevision.objects.create(
- question = question,
- revision = 1,
- title = question.title,
- author = author,
- revised_at = added_at,
- tagnames = question.tagnames,
- summary = CONST['default_version'],
- text = text
- )
- return question
-
-question_view = django.dispatch.Signal(providing_args=['instance', 'user'])
-
-class Question(Content):
- title = models.CharField(max_length=300)
- tags = models.ManyToManyField(Tag, related_name='questions')
- answer_accepted = models.BooleanField(default=False)
- closed = models.BooleanField(default=False)
- closed_by = models.ForeignKey(User, null=True, blank=True, related_name='closed_questions')
- closed_at = models.DateTimeField(null=True, blank=True)
- close_reason = models.SmallIntegerField(choices=CLOSE_REASONS, null=True, blank=True)
- followed_by = models.ManyToManyField(User, related_name='followed_questions')
- subscribers = models.ManyToManyField(User, related_name='subscriptions', through='QuestionSubscription')
-
- # Denormalised data
- answer_count = models.PositiveIntegerField(default=0)
- view_count = models.IntegerField(default=0)
- favourite_count = models.IntegerField(default=0)
- last_activity_at = models.DateTimeField(default=datetime.datetime.now)
- last_activity_by = models.ForeignKey(User, related_name='last_active_in_questions')
- tagnames = models.CharField(max_length=125)
- summary = models.CharField(max_length=180)
-
- favorited_by = models.ManyToManyField(User, through='FavoriteQuestion', related_name='favorite_questions')
-
- objects = QuestionManager()
-
- class Meta(Content.Meta):
- db_table = u'question'
-
- def delete(self):
- super(Question, self).delete()
- try:
- ping_google()
- except Exception:
- logging.debug('problem pinging google did you register you sitemap with google?')
-
- def get_tag_list_if_changed(self):
- dirty = self.get_dirty_fields()
-
- if 'tagnames' in dirty:
- new_tags = self.tagname_list()
-
- old_tags = dirty['tagnames']
- if old_tags is None:
- old_tags = []
- else:
- old_tags = [name for name in dirty['tagnames'].split(u' ')]
-
- tag_list = []
-
- for name in new_tags:
- try:
- tag = Tag.objects.get(name=name)
- except:
- tag = Tag.objects.create(name=name, created_by=self.last_edited_by or self.author)
-
- tag_list.append(tag)
-
- if not name in old_tags:
- tag.used_count = tag.used_count + 1
- if tag.deleted:
- tag.unmark_deleted()
- tag.save()
-
- for name in [n for n in old_tags if not n in new_tags]:
- tag = Tag.objects.get(name=name)
- tag.used_count = tag.used_count - 1
- if tag.used_count == 0:
- tag.mark_deleted(self.last_edited_by or self.author)
- tag.save()
-
- return tag_list
-
- return None
-
- def save(self, *args, **kwargs):
- tags = self.get_tag_list_if_changed()
- super(Question, self).save(*args, **kwargs)
- if not tags is None: self.tags = tags
-
- def tagname_list(self):
- """Creates a list of Tag names from the ``tagnames`` attribute."""
- return [name for name in self.tagnames.split(u' ')]
-
- def tagname_meta_generator(self):
- return u','.join([unicode(tag) for tag in self.tagname_list()])
-
- @models.permalink
- def get_absolute_url(self):
- return ('question', (), {'id': self.id, 'slug': django_urlquote(slugify(self.title))})
-
- def get_answer_count_by_user(self, user_id):
- from answer import Answer
- query_set = Answer.objects.filter(author__id=user_id)
- return query_set.filter(question=self).count()
-
- def get_question_title(self):
- if self.closed:
- attr = CONST['closed']
- elif self.deleted:
- attr = CONST['deleted']
- else:
- attr = None
- if attr is not None:
- return u'%s %s' % (self.title, attr)
- else:
- return self.title
-
- def get_revision_url(self):
- return reverse('question_revisions', args=[self.id])
-
- def get_latest_revision(self):
- return self.revisions.all()[0]
-
- def get_last_update_info(self):
- when, who = self.post_get_last_update_info()
-
- answers = self.answers.all()
- if len(answers) > 0:
- for a in answers:
- a_when, a_who = a.post_get_last_update_info()
- if a_when > when:
- when = a_when
- who = a_who
-
- return when, who
-
- def get_related_questions(self, count=10):
- cache_key = '%s.related_questions:%d:%d' % (settings.APP_URL, count, self.id)
- related_list = cache.get(cache_key)
-
- if related_list is None:
- related_list = Question.objects.values('id').filter(tags__id__in=[t.id for t in self.tags.all()]
- ).exclude(id=self.id).exclude(deleted=True).annotate(frequency=models.Count('id')).order_by('-frequency')[:count]
- cache.set(cache_key, related_list, 60 * 60)
-
- return [Question.objects.get(id=r['id']) for r in related_list]
-
- def __unicode__(self):
- return self.title
-
-def question_viewed(instance, **kwargs):
- instance.view_count += 1
- instance.save()
-
-question_view.connect(question_viewed)
-
-class FavoriteQuestion(models.Model):
- """A favorite Question of a User."""
- question = models.ForeignKey('Question')
- user = models.ForeignKey(User, related_name='user_favorite_questions')
- added_at = models.DateTimeField(default=datetime.datetime.now)
-
- class Meta:
- unique_together = ('question', 'user')
- app_label = 'forum'
- db_table = u'favorite_question'
-
- def __unicode__(self):
- return '[%s] favorited at %s' %(self.user, self.added_at)
-
- def _update_question_fav_count(self, diff):
- self.question.favourite_count = self.question.favourite_count + diff
- self.question.save()
-
- def save(self, *args, **kwargs):
- super(FavoriteQuestion, self).save(*args, **kwargs)
- if self._is_new:
- self._update_question_fav_count(1)
-
- def delete(self):
- self._update_question_fav_count(-1)
- super(FavoriteQuestion, self).delete()
-
-class QuestionSubscription(models.Model):
- user = models.ForeignKey(User)
- question = models.ForeignKey(Question)
- auto_subscription = models.BooleanField(default=True)
- last_view = models.DateTimeField(default=datetime.datetime.now())
-
- class Meta:
- app_label = 'forum'
-
-class QuestionRevision(ContentRevision):
- """A revision of a Question."""
- question = models.ForeignKey(Question, related_name='revisions')
- title = models.CharField(max_length=300)
- tagnames = models.CharField(max_length=125)
-
- class Meta(ContentRevision.Meta):
- db_table = u'question_revision'
- ordering = ('-revision',)
-
- def get_question_title(self):
- return self.question.title
-
- def get_absolute_url(self):
- #print 'in QuestionRevision.get_absolute_url()'
- return reverse('question_revisions', args=[self.question.id])
-
- def save(self, *args, **kwargs):
- """Looks up the next available revision number."""
- if not self.revision:
- self.revision = QuestionRevision.objects.filter(
- question=self.question).values_list('revision',
- flat=True)[0] + 1
- super(QuestionRevision, self).save(*args, **kwargs)
-
- def __unicode__(self):
- return u'revision %s of %s' % (self.revision, self.title)
-
-class AnonymousQuestion(AnonymousContent):
- title = models.CharField(max_length=300)
- tagnames = models.CharField(max_length=125)
-
- def publish(self,user):
- added_at = datetime.datetime.now()
- Question.objects.create_new(title=self.title, author=user, added_at=added_at,
- wiki=self.wiki, tagnames=self.tagnames,
- summary=self.summary, text=self.text)
- self.delete()
-
-from answer import Answer, AnswerManager
+++ /dev/null
-from base import *
-from django.contrib.contenttypes.models import ContentType
-from forum.models import User
-
-from django.utils.translation import ugettext as _
-
-class Badge(BaseModel):
- """Awarded for notable actions performed on the site by Users."""
- GOLD = 1
- SILVER = 2
- BRONZE = 3
- TYPE_CHOICES = (
- (GOLD, _('gold')),
- (SILVER, _('silver')),
- (BRONZE, _('bronze')),
- )
-
- name = models.CharField(max_length=50)
- type = models.SmallIntegerField(choices=TYPE_CHOICES)
- slug = models.SlugField(max_length=50, blank=True)
- description = models.CharField(max_length=300)
- multiple = models.BooleanField(default=False)
- # Denormalised data
- awarded_count = models.PositiveIntegerField(default=0)
- awarded_to = models.ManyToManyField(User, through='Award', related_name='badges')
-
- class Meta:
- app_label = 'forum'
- db_table = u'badge'
- ordering = ('name',)
- unique_together = ('name', 'type')
-
- def __unicode__(self):
- return u'%s: %s' % (self.get_type_display(), self.name)
-
- def save(self, *args, **kwargs):
- if not self.slug:
- self.slug = self.name#slugify(self.name)
- super(Badge, self).save(*args, **kwargs)
-
- def get_absolute_url(self):
- return '%s%s/' % (reverse('badge', args=[self.id]), self.slug)
-
-
-class AwardManager(models.Manager):
- def get_recent_awards(self):
- awards = super(AwardManager, self).extra(
- select={'badge_id': 'badge.id', 'badge_name':'badge.name',
- 'badge_description': 'badge.description', 'badge_type': 'badge.type',
- 'user_id': 'auth_user.id', 'user_name': 'auth_user.username'
- },
- tables=['award', 'badge', 'auth_user'],
- order_by=['-awarded_at'],
- where=['auth_user.id=award.user_id AND badge_id=badge.id'],
- ).values('badge_id', 'badge_name', 'badge_description', 'badge_type', 'user_id', 'user_name')
- return awards
-
-class Award(MetaContent, UserContent):
- """The awarding of a Badge to a User."""
- badge = models.ForeignKey('Badge', related_name='award_badge')
- awarded_at = models.DateTimeField(default=datetime.datetime.now)
- notified = models.BooleanField(default=False)
-
- objects = AwardManager()
-
- def __unicode__(self):
- return u'[%s] is awarded a badge [%s] at %s' % (self.user.username, self.badge.name, self.awarded_at)
-
- def save(self, *args, **kwargs):
- super(Award, self).save(*args, **kwargs)
-
- if self._is_new:
- self.badge.awarded_count += 1
- self.badge.save()
-
- if self.badge.type == Badge.GOLD:
- self.user.gold += 1
- if self.badge.type == Badge.SILVER:
- self.user.silver += 1
- if self.badge.type == Badge.BRONZE:
- self.user.bronze += 1
- self.user.save()
-
- class Meta:
- unique_together = ('content_type', 'object_id', 'user', 'badge')
- app_label = 'forum'
- db_table = u'award'
-
-
-class Repute(UserContent):
- """The reputation histories for user"""
- value = models.SmallIntegerField(default=0)
- question = models.ForeignKey('Question')
- reputed_at = models.DateTimeField(default=datetime.datetime.now)
- reputation_type = models.SmallIntegerField(choices=TYPE_REPUTATION)
- user_previous_rep = models.IntegerField(default=0)
-
- def __unicode__(self):
- return u'[%s]\' reputation changed at %s' % (self.user.username, self.reputed_at)
-
- @property
- def positive(self):
- if self.value > 0: return self.value
- return 0
-
- @property
- def negative(self):
- if self.value < 0: return self.value
- return 0
-
- @property
- def reputation(self):
- return self.user_previous_rep + self.value
-
- def save(self, *args, **kwargs):
- self.user_previous_rep = self.user.reputation
- self.user.reputation = self.user.reputation + self.value
- self.user.save()
- super(Repute, self).save(*args, **kwargs)
-
- class Meta:
- app_label = 'forum'
- db_table = u'repute'
+++ /dev/null
-from base import *
-
-from django.utils.translation import ugettext as _
-import django.dispatch
-
-class ActiveTagManager(UndeletedObjectManager):
- def get_query_set(self):
- return super(UndeletedObjectManager, self).get_query_set().exclude(used_count=0)
-
-
-class Tag(DeletableContent):
- name = models.CharField(max_length=255, unique=True)
- created_by = models.ForeignKey(User, related_name='created_tags')
- marked_by = models.ManyToManyField(User, related_name="marked_tags", through="MarkedTag")
- # Denormalised data
- used_count = models.PositiveIntegerField(default=0)
-
- objects = models.Manager()
- active = ActiveTagManager()
-
- class Meta(DeletableContent.Meta):
- db_table = u'tag'
- ordering = ('-used_count', 'name')
-
- def __unicode__(self):
- return self.name
-
-class MarkedTag(models.Model):
- TAG_MARK_REASONS = (('good',_('interesting')),('bad',_('ignored')))
- tag = models.ForeignKey(Tag, related_name='user_selections')
- user = models.ForeignKey(User, related_name='tag_selections')
- reason = models.CharField(max_length=16, choices=TAG_MARK_REASONS)
-
- class Meta:
- app_label = 'forum'
-
+++ /dev/null
-from base import *\r
-from forum import const\r
-from django.contrib.contenttypes.models import ContentType\r
-from django.contrib.auth.models import User as DjangoUser, AnonymousUser as DjangoAnonymousUser\r
-from django.db.models import Q\r
-from hashlib import md5\r
-import string\r
-from random import Random\r
-\r
-from django.utils.translation import ugettext as _\r
-import django.dispatch\r
-\r
-\r
-QUESTIONS_PER_PAGE_CHOICES = (\r
- (10, u'10'),\r
- (30, u'30'),\r
- (50, u'50'),\r
-)\r
-\r
-class UserManager(CachedManager):\r
- def get_site_owner(self):\r
- return self.all().order_by('date_joined')[0]\r
-\r
-class AnonymousUser(DjangoAnonymousUser):\r
- def get_visible_answers(self, question):\r
- return question.answers.filter(deleted=False)\r
-\r
- def can_view_deleted_post(self, post):\r
- return False\r
-\r
- def can_vote_up(self):\r
- return False\r
-\r
- def can_vote_down(self):\r
- return False\r
-\r
- def can_flag_offensive(self, post=None):\r
- return False\r
-\r
- def can_view_offensive_flags(self, post=None):\r
- return False\r
-\r
- def can_comment(self, post):\r
- return False\r
-\r
- def can_like_comment(self, comment):\r
- return False\r
-\r
- def can_edit_comment(self, comment):\r
- return False\r
-\r
- def can_delete_comment(self, comment):\r
- return False\r
-\r
- def can_accept_answer(self, answer):\r
- return False\r
-\r
- def can_edit_post(self, post):\r
- return False\r
-\r
- def can_retag_questions(self):\r
- return False\r
-\r
- def can_close_question(self, question):\r
- return False\r
-\r
- def can_reopen_question(self, question):\r
- return False\r
-\r
- def can_delete_post(self, post):\r
- return False\r
-\r
- def can_upload_files(self):\r
- return False\r
-\r
-class User(BaseModel, DjangoUser):\r
- is_approved = models.BooleanField(default=False)\r
- email_isvalid = models.BooleanField(default=False)\r
- email_key = models.CharField(max_length=32, null=True)\r
- reputation = models.PositiveIntegerField(default=1)\r
-\r
- gold = models.SmallIntegerField(default=0)\r
- silver = models.SmallIntegerField(default=0)\r
- bronze = models.SmallIntegerField(default=0)\r
-\r
- questions_per_page = models.SmallIntegerField(choices=QUESTIONS_PER_PAGE_CHOICES, default=10)\r
- hide_ignored_questions = models.BooleanField(default=False)\r
- \r
- last_seen = models.DateTimeField(default=datetime.datetime.now)\r
- real_name = models.CharField(max_length=100, blank=True)\r
- website = models.URLField(max_length=200, blank=True)\r
- location = models.CharField(max_length=100, blank=True)\r
- date_of_birth = models.DateField(null=True, blank=True)\r
- about = models.TextField(blank=True)\r
- \r
- objects = UserManager()\r
-\r
- @property\r
- def gravatar(self):\r
- return hashlib.md5(self.email).hexdigest()\r
-\r
- def save(self, *args, **kwargs):\r
- if self.reputation < 0:\r
- self.reputation = 1\r
-\r
- super(User, self).save(*args, **kwargs)\r
-\r
- def get_absolute_url(self):\r
- return self.get_profile_url()\r
-\r
- def get_messages(self):\r
- messages = []\r
- for m in self.message_set.all():\r
- messages.append(m.message)\r
- return messages\r
-\r
- def delete_messages(self):\r
- self.message_set.all().delete()\r
-\r
- def get_profile_url(self):\r
- """Returns the URL for this User's profile."""\r
- return "/%s%d/%s" % (_('users/'), self.id, slugify(self.username))\r
-\r
- def get_profile_link(self):\r
- profile_link = u'<a href="%s">%s</a>' % (self.get_profile_url(),self.username)\r
- logging.debug('in get profile link %s' % profile_link)\r
- return mark_safe(profile_link)\r
-\r
- def get_vote_count_today(self):\r
- today = datetime.date.today()\r
- return self.votes.filter(voted_at__range=(today - datetime.timedelta(days=1), today)).count()\r
-\r
- def get_up_vote_count(self):\r
- return self.votes.filter(vote=1).count()\r
-\r
- def get_down_vote_count(self):\r
- return self.votes.filter(vote=-1).count()\r
-\r
- def get_reputation_by_upvoted_today(self):\r
- today = datetime.datetime.now()\r
- sum = self.reputes.filter(\r
- models.Q(reputation_type=TYPE_REPUTATION_GAIN_BY_UPVOTED) |\r
- models.Q(reputation_type=TYPE_REPUTATION_LOST_BY_UPVOTE_CANCELED),\r
- reputed_at__range=(today - datetime.timedelta(days=1), today)).aggregate(models.Sum('value'))\r
-\r
- if sum.get('value__sum', None) is not None: return sum['value__sum']\r
- return 0\r
-\r
- def get_flagged_items_count_today(self):\r
- today = datetime.date.today()\r
- return self.flaggeditems.filter(flagged_at__range=(today - datetime.timedelta(days=1), today)).count()\r
-\r
- def get_visible_answers(self, question):\r
- if self.is_superuser:\r
- return question.answers\r
- else:\r
- return question.answers.filter(models.Q(deleted=False) | models.Q(deleted_by=self))\r
-\r
- def can_view_deleted_post(self, post):\r
- return self.is_superuser or post.author == self\r
-\r
- def can_vote_up(self):\r
- return self.reputation >= int(settings.REP_TO_VOTE_UP) or self.is_superuser\r
-\r
- def can_vote_down(self):\r
- return self.reputation >= int(settings.REP_TO_VOTE_DOWN) or self.is_superuser\r
-\r
- def can_flag_offensive(self, post=None):\r
- if post is not None and post.author == self:\r
- return False\r
- return self.is_superuser or self.reputation >= int(settings.REP_TO_FLAG)\r
-\r
- def can_view_offensive_flags(self, post=None):\r
- if post is not None and post.author == self:\r
- return True\r
- return self.is_superuser or self.reputation >= int(settings.REP_TO_VIEW_FLAGS)\r
-\r
- def can_comment(self, post):\r
- return self == post.author or self.reputation >= int(settings.REP_TO_COMMENT\r
- ) or self.is_superuser or (post.__class__.__name__ == "Answer" and self == post.question.author)\r
-\r
- def can_like_comment(self, comment):\r
- return self != comment.user and (self.reputation >= int(settings.REP_TO_LIKE_COMMENT) or self.is_superuser)\r
-\r
- def can_edit_comment(self, comment):\r
- return (comment.user == self and comment.added_at >= datetime.datetime.now() - datetime.timedelta(minutes=60)\r
- ) or self.is_superuser\r
-\r
- def can_delete_comment(self, comment):\r
- return self == comment.user or self.reputation >= int(settings.REP_TO_DELETE_COMMENTS) or self.is_superuser\r
-\r
- def can_accept_answer(self, answer):\r
- return self.is_superuser or self == answer.question.author\r
-\r
- def can_edit_post(self, post):\r
- return self.is_superuser or self == post.author or self.reputation >= int(settings.REP_TO_EDIT_OTHERS\r
- ) or (post.wiki and self.reputation >= int(settings.REP_TO_EDIT_WIKI))\r
-\r
- def can_retag_questions(self):\r
- return self.reputation >= int(settings.REP_TO_RETAG)\r
-\r
- def can_close_question(self, question):\r
- return self.is_superuser or (self == question.author and self.reputation >= int(settings.REP_TO_CLOSE_OWN)\r
- ) or self.reputation >= int(settings.REP_TO_CLOSE_OTHERS)\r
-\r
- def can_reopen_question(self, question):\r
- return self.is_superuser or (self == question.author and self.reputation >= settings.REP_TO_REOPEN_OWN)\r
-\r
- def can_delete_post(self, post):\r
- return self.is_superuser or (self == post.author and (post.__class__.__name__ == "Answer" or\r
- not post.answers.filter(~Q(author=self)).count()))\r
-\r
- def can_upload_files(self):\r
- return self.is_superuser or self.reputation >= int(settings.REP_TO_UPLOAD)\r
-\r
- class Meta:\r
- app_label = 'forum'\r
-\r
-class Activity(MetaContent):\r
- """\r
- We keep some history data for user activities\r
- """\r
- user = models.ForeignKey(User)\r
- activity_type = models.SmallIntegerField(choices=TYPE_ACTIVITY)\r
- active_at = models.DateTimeField(default=datetime.datetime.now)\r
- is_auditted = models.BooleanField(default=False)\r
-\r
- class Meta:\r
- app_label = 'forum'\r
- db_table = u'activity'\r
-\r
- def __unicode__(self):\r
- return u'[%s] was active at %s' % (self.user.username, self.active_at)\r
-\r
- def save(self, *args, **kwargs):\r
- super(Activity, self).save(*args, **kwargs)\r
- if self._is_new:\r
- activity_record.send(sender=self.activity_type, instance=self)\r
-\r
- @property\r
- def question(self):\r
- if self.activity_type == const.TYPE_ACTIVITY_ASK_QUESTION:\r
- return self.content_object\r
- elif self.activity_type in (const.TYPE_ACTIVITY_ANSWER,\r
- const.TYPE_ACTIVITY_MARK_ANSWER, const.TYPE_ACTIVITY_UPDATE_QUESTION):\r
- return self.content_object.question\r
- elif self.activity_type == const.TYPE_ACTIVITY_COMMENT_QUESTION:\r
- return self.content_object.content_object\r
- elif self.activity_type == const.TYPE_ACTIVITY_COMMENT_ANSWER:\r
- return self.content_object.content_object.question\r
- elif self.activity_type == const.TYPE_ACTIVITY_UPDATE_ANSWER:\r
- return self.content_object.content_object.answer.question\r
- else:\r
- raise NotImplementedError()\r
-\r
- @property\r
- def type_as_string(self):\r
- if self.activity_type == const.TYPE_ACTIVITY_ASK_QUESTION:\r
- return _("asked")\r
- elif self.activity_type == const.TYPE_ACTIVITY_ANSWER:\r
- return _("answered")\r
- elif self.activity_type == const.TYPE_ACTIVITY_MARK_ANSWER:\r
- return _("marked an answer")\r
- elif self.activity_type == const.TYPE_ACTIVITY_UPDATE_QUESTION:\r
- return _("edited")\r
- elif self.activity_type == const.TYPE_ACTIVITY_COMMENT_QUESTION:\r
- return _("commented")\r
- elif self.activity_type == const.TYPE_ACTIVITY_COMMENT_ANSWER:\r
- return _("commented an answer")\r
- elif self.activity_type == const.TYPE_ACTIVITY_UPDATE_ANSWER:\r
- return _("edited an answer")\r
- else:\r
- raise NotImplementedError()\r
-\r
-\r
-activity_record = django.dispatch.Signal(providing_args=['instance'])\r
-\r
-class SubscriptionSettings(models.Model):\r
- user = models.OneToOneField(User, related_name='subscription_settings')\r
-\r
- enable_notifications = models.BooleanField(default=True)\r
-\r
- #notify if\r
- member_joins = models.CharField(max_length=1, default='n', choices=const.NOTIFICATION_CHOICES)\r
- new_question = models.CharField(max_length=1, default='d', choices=const.NOTIFICATION_CHOICES)\r
- new_question_watched_tags = models.CharField(max_length=1, default='i', choices=const.NOTIFICATION_CHOICES)\r
- subscribed_questions = models.CharField(max_length=1, default='i', choices=const.NOTIFICATION_CHOICES)\r
- \r
- #auto_subscribe_to\r
- all_questions = models.BooleanField(default=False)\r
- all_questions_watched_tags = models.BooleanField(default=False)\r
- questions_asked = models.BooleanField(default=True)\r
- questions_answered = models.BooleanField(default=True)\r
- questions_commented = models.BooleanField(default=False)\r
- questions_viewed = models.BooleanField(default=False)\r
-\r
- #notify activity on subscribed\r
- notify_answers = models.BooleanField(default=True)\r
- notify_reply_to_comments = models.BooleanField(default=True)\r
- notify_comments_own_post = models.BooleanField(default=True)\r
- notify_comments = models.BooleanField(default=False)\r
- notify_accepted = models.BooleanField(default=False)\r
-\r
- class Meta:\r
- app_label = 'forum'\r
-\r
-from forum.utils.time import one_day_from_now\r
-\r
-class ValidationHashManager(models.Manager):\r
- def _generate_md5_hash(self, user, type, hash_data, seed):\r
- return md5("%s%s%s%s" % (seed, "".join(map(str, hash_data)), user.id, type)).hexdigest()\r
-\r
- def create_new(self, user, type, hash_data=[], expiration=None):\r
- seed = ''.join(Random().sample(string.letters+string.digits, 12))\r
- hash = self._generate_md5_hash(user, type, hash_data, seed)\r
-\r
- obj = ValidationHash(hash_code=hash, seed=seed, user=user, type=type)\r
-\r
- if expiration is not None:\r
- obj.expiration = expiration\r
-\r
- try:\r
- obj.save()\r
- except:\r
- return None\r
- \r
- return obj\r
-\r
- def validate(self, hash, user, type, hash_data=[]):\r
- try:\r
- obj = self.get(hash_code=hash)\r
- except:\r
- return False\r
-\r
- if obj.type != type:\r
- return False\r
-\r
- if obj.user != user:\r
- return False\r
-\r
- valid = (obj.hash_code == self._generate_md5_hash(obj.user, type, hash_data, obj.seed))\r
-\r
- if valid:\r
- if obj.expiration < datetime.datetime.now():\r
- obj.delete()\r
- return False\r
- else:\r
- obj.delete()\r
- return True\r
-\r
- return False\r
-\r
-class ValidationHash(models.Model):\r
- hash_code = models.CharField(max_length=255,unique=True)\r
- seed = models.CharField(max_length=12)\r
- expiration = models.DateTimeField(default=one_day_from_now)\r
- type = models.CharField(max_length=12)\r
- user = models.ForeignKey(User)\r
-\r
- objects = ValidationHashManager()\r
-\r
- class Meta:\r
- unique_together = ('user', 'type')\r
- app_label = 'forum'\r
-\r
- def __str__(self):\r
- return self.hash_code\r
-\r
-class AuthKeyUserAssociation(models.Model):\r
- key = models.CharField(max_length=255,null=False,unique=True)\r
- provider = models.CharField(max_length=64)\r
- user = models.ForeignKey(User, related_name="auth_keys")\r
- added_at = models.DateTimeField(default=datetime.datetime.now)\r
-\r
- class Meta:\r
- app_label = 'forum'\r
+++ /dev/null
-from django.db import models
-from django.core.cache import cache
-from django.conf import settings
-#try:
-# import cPickle as pickle
-#except ImportError:
-import pickle
-import django.dispatch
-
-class PickledObject(str):
- pass
-
-class PickledObjectField(models.Field):
- __metaclass__ = models.SubfieldBase
-
- def to_python(self, value):
- if isinstance (value, PickledObject):
- return value
-
- try:
- return pickle.loads(value.encode('utf-8'))
- except:
- return value
-
- def get_db_prep_save(self, value):
- if value is not None:
- if isinstance(value, PickledObject):
- return str(value)
- else:
- value = pickle.dumps(value)
-
- return value
-
- def get_internal_type(self):
- return 'TextField'
-
-
-class KeyValueManager(models.Manager):
-
- def create_cache_key(self, key):
- return "%s:key_value:%s" % (settings.APP_URL, key)
-
- def save_to_cache(self, instance):
- cache.set(self.create_cache_key(instance.key), instance, 2592000)
-
- def remove_from_cache(self, instance):
- cache.delete(self.create_cache_key(instance.key))
-
- def get(self, **kwargs):
- if 'key' in kwargs:
- instance = cache.get(self.create_cache_key(kwargs['key']))
-
- if instance is None:
- instance = super(KeyValueManager, self).get(**kwargs)
- self.save_to_cache(instance)
-
- return instance
-
- else:
- return super(KeyValueManager, self).get(**kwargs)
-
-class KeyValue(models.Model):
- key = models.CharField(max_length=255, unique=True)
- value = PickledObjectField()
-
- objects = KeyValueManager()
-
- class Meta:
- app_label = 'forum'
-
- def save(self, *args, **kwargs):
- super(KeyValue, self).save(*args, **kwargs)
- KeyValue.objects.save_to_cache(self)
-
- def delete(self):
- KeyValue.objects.remove_from_cache(self)
- super(KeyValue, self).delete()
+++ /dev/null
-import os
-import types
-import re
-
-from django.template import Template, TemplateDoesNotExist
-from django.conf import settings
-
-MODULES_PACKAGE = 'forum_modules'
-
-MODULES_FOLDER = os.path.join(os.path.dirname(__file__), '../' + MODULES_PACKAGE)
-
-DISABLED_MODULES = getattr(settings, 'DISABLED_MODULES', [])
-
-MODULE_LIST = filter(lambda m: getattr(m, 'CAN_USE', True), [
- __import__('forum_modules.%s' % f, globals(), locals(), ['forum_modules'])
- for f in os.listdir(MODULES_FOLDER)
- if os.path.isdir(os.path.join(MODULES_FOLDER, f)) and
- os.path.exists(os.path.join(MODULES_FOLDER, "%s/__init__.py" % f)) and
- not f in DISABLED_MODULES
-])
-
-def get_modules_script(script_name):
- all = []
-
- for m in MODULE_LIST:
- try:
- all.append(__import__('%s.%s' % (m.__name__, script_name), globals(), locals(), [m.__name__]))
- except Exception, e:
- #print m.__name__ + ":" + str(e)
- pass
-
- return all
-
-def get_modules_scipt_implementations(script_name, impl_class):
- scripts = get_modules_script(script_name)
- all_impls = {}
-
- for script in scripts:
- all_impls.update(dict([
- (n, i) for (n, i) in [(n, getattr(script, n)) for n in dir(script)]
- if isinstance(i, impl_class)
- ]))
-
- return all_impls
-
-def get_modules_script_classes(script_name, base_class):
- scripts = get_modules_script(script_name)
- all_classes = {}
-
- for script in scripts:
- all_classes.update(dict([
- (n, c) for (n, c) in [(n, getattr(script, n)) for n in dir(script)]
- if isinstance(c, (type, types.ClassType)) and issubclass(c, base_class)
- ]))
-
- return all_classes
-
-def get_all_handlers(name):
- handler_files = get_modules_script('handlers')
-
- return [
- h for h in [
- getattr(f, name) for f in handler_files
- if hasattr(f, name)
- ]
-
- if callable(h)
- ]
-
-def call_all_handlers(name, *args, **kwargs):
- all = get_all_handlers(name)
-
- ret = []
-
- for handler in all:
- ret.append(handler(*args, **kwargs))
-
- return ret
-
-def get_handler(name, default):
- all = get_all_handlers(name)
- return len(all) and all[0] or default
-
-module_template_re = re.compile('^modules\/(\w+)\/(.*)$')
-
-def module_templates_loader(name, dirs=None):
- result = module_template_re.search(name)
-
- if result is not None:
- file_name = os.path.join(MODULES_FOLDER, result.group(1), 'templates', result.group(2))
-
- if os.path.exists(file_name):
- try:
- f = open(file_name, 'r')
- source = f.read()
- f.close()
- return (source, file_name)
- except:
- pass
-
- raise TemplateDoesNotExist, name
-
-module_templates_loader.is_usable = True
+++ /dev/null
-from django.db.models.signals import post_save\r
-from forum.models.meta import vote_canceled\r
-\r
-from forum.models import *\r
-from forum.const import *\r
-import settings\r
-\r
-def on_flagged_item(instance, created, **kwargs):\r
- if not created:\r
- return\r
-\r
- post = instance.content_object\r
- question = (post.__class__ == Question) and post or post.question\r
-\r
- user.reputes.create(value=-int(settings.REP_LOST_BY_FLAGGED), question=question,\r
- reputation_type=TYPE_REPUTATION_LOST_BY_FLAGGED)\r
-\r
-\r
- if post.offensive_flag_count == settings.FLAG_COUNT_TO_HIDE_POST:\r
- post.author.reputes.create(value=-int(settings.REP_LOST_BY_FLAGGED_3_TIMES),\r
- question=question, reputation_type=TYPE_REPUTATION_LOST_BY_FLAGGED_3_TIMES)\r
-\r
- if post.offensive_flag_count == settings.FLAG_COUNT_TO_DELETE_POST:\r
- post.author.reputes.create(value=-int(settings.REP_LOST_BY_FLAGGED_5_TIMES),\r
- question=question, reputation_type=TYPE_REPUTATION_LOST_BY_FLAGGED_5_TIMES)\r
-\r
- post.mark_deleted(User.objects.get_site_owner())\r
-\r
-post_save.connect(on_flagged_item, sender=FlaggedItem)\r
-\r
-\r
-def on_answer_accepted_switch(instance, created, **kwargs):\r
- if not created and 'accepted' in instance.get_dirty_fields() and (\r
- not instance.accepted_by == instance.question.author):\r
- repute_type, repute_value = instance.accepted and (\r
- TYPE_REPUTATION_GAIN_BY_ANSWER_ACCEPTED, int(settings.REP_GAIN_BY_ACCEPTED)) or (\r
- TYPE_REPUTATION_LOST_BY_ACCEPTED_ANSWER_CANCELED, -int(settings.REP_LOST_BY_ACCEPTED_CANCELED))\r
-\r
- instance.author.reputes.create(value=repute_value, question=instance.question, reputation_type=repute_type)\r
- \r
- if instance.accepted_by == instance.question.author:\r
- repute_type, repute_value = instance.accepted and (\r
- TYPE_REPUTATION_GAIN_BY_ACCEPTING_ANSWER, int(settings.REP_GAIN_BY_ACCEPTING)) or (\r
- TYPE_REPUTATION_LOST_BY_CANCELLING_ACCEPTED_ANSWER, -int(settings.REP_LOST_BY_CANCELING_ACCEPTED))\r
-\r
- instance.question.author.reputes.create(value=repute_value, question=instance.question, reputation_type=repute_type)\r
-\r
-post_save.connect(on_answer_accepted_switch, sender=Answer)\r
-\r
-\r
-def on_vote(instance, created, **kwargs):\r
- if created and not instance.content_object.wiki:\r
- post = instance.content_object\r
- question = (post.__class__ == Question) and post or post.question\r
-\r
- if instance.vote == -1:\r
- instance.user.reputes.create(value=-int(settings.REP_LOST_BY_DOWNVOTING),\r
- question=question, reputation_type=TYPE_REPUTATION_LOST_BY_DOWNVOTING)\r
-\r
- if instance.vote == 1 and post.author.get_reputation_by_upvoted_today() >= int(settings.MAX_REP_BY_UPVOTE_DAY):\r
- return\r
-\r
- repute_type, repute_value = (instance.vote == 1) and (\r
- TYPE_REPUTATION_GAIN_BY_UPVOTED, int(settings.REP_GAIN_BY_UPVOTED)) or (\r
- TYPE_REPUTATION_LOST_BY_DOWNVOTED, -int(settings.REP_LOST_BY_DOWNVOTED))\r
-\r
- post.author.reputes.create(value=repute_value, question=question, reputation_type=repute_type)\r
-\r
-post_save.connect(on_vote, sender=Vote)\r
-\r
-\r
-def on_vote_canceled(instance, **kwargs):\r
- if not instance.content_object.wiki:\r
- post = instance.content_object\r
- question = (post.__class__ == Question) and post or post.question\r
-\r
- if instance.vote == -1:\r
- instance.user.reputes.create(value=int(settings.REP_GAIN_BY_CANCELING_DOWNVOTE),\r
- question=question, reputation_type=TYPE_REPUTATION_GAIN_BY_CANCELING_DOWNVOTE)\r
-\r
- repute_type, repute_value = (instance.vote == 1) and (\r
- TYPE_REPUTATION_LOST_BY_UPVOTE_CANCELED, -int(settings.REP_LOST_BY_UPVOTE_CANCELED)) or (\r
- TYPE_REPUTATION_GAIN_BY_DOWNVOTE_CANCELED, int(settings.REP_GAIN_BY_DOWNVOTE_CANCELED))\r
-\r
- post.author.reputes.create(value=repute_value, question=question, reputation_type=repute_type)\r
-\r
-vote_canceled.connect(on_vote_canceled)\r
-\r
-\r
- \r
-\r
-\r
+++ /dev/null
-import os.path
-from base import Setting, SettingSet
-from forms import ImageFormWidget
-
-from django.forms.widgets import Textarea
-from django.utils.translation import ugettext_lazy as _
-
-INTERNAL_VERSION = Setting('INTERNAL_VERSION', "201003270")
-SETTINGS_PACK = Setting('SETTINGS_PACK', "default")
-
-from basic import *
-from email import *
-from extkeys import *
-from minrep import *
-from repgain import *
-from voting import *
-from upload import *
-from pages import *
-
-BADGES_SET = SettingSet('badges', _('Badges config'), _("Configure badges on your OSQA site."), 500)
-
-#__all__ = locals().keys()
-
+++ /dev/null
-import django.dispatch
-from django.utils.encoding import force_unicode
-
-class SettingSet(list):
- def __init__(self, name, title, description, weight=1000):
- self.name = name
- self.title = title
- self.description = description
- self.weight = weight
-
-class BaseSetting(object):
- def __init__(self, name, default, field_context):
- self.name = name
- self.default = default
- self.field_context = field_context
-
- @property
- def value(self):
- from forum.models import KeyValue
-
- try:
- kv = KeyValue.objects.get(key=self.name)
- except:
- kv = KeyValue(key=self.name, value=self._parse(self.default))
- kv.save()
-
- return kv.value
-
- def set_value(self, new_value):
- new_value = self._parse(new_value)
- from forum.models import KeyValue
-
- try:
- kv = KeyValue.objects.get(key=self.name)
- old_value = kv.value
- except:
- kv = KeyValue(key=self.name)
- old_value = self.default
-
- kv.value = new_value
- kv.save()
-
- setting_update.send(sender=self, old_value=old_value, new_value=new_value)
-
- def to_default(self):
- self.set_value(self.default)
-
- def _parse(self, value):
- return value
-
- def __str__(self):
- return str(self.value)
-
- def __unicode__(self):
- return unicode(self.value)
-
- def __nonzero__(self):
- return bool(self.value)
-
-
-class StringSetting(BaseSetting):
- def _parse(self, value):
- if isinstance(value, unicode):
- return value.encode('utf8')
- else:
- return str(value)
-
- def __unicode__(self):
- return unicode(self.value.decode('utf8'))
-
- def __add__(self, other):
- return "%s%s" % (unicode(self), other)
-
- def __cmp__(self, other):
- return cmp(str(self), str(other))
-
-class IntegerSetting(BaseSetting):
- def _parse(self, value):
- return int(value)
-
- def __int__(self):
- return int(self.value)
-
- def __add__(self, other):
- return int(self) + int(other)
-
- def __sub__(self, other):
- return int(self) - int(other)
-
- def __cmp__(self, other):
- return int(self) - int(other)
-
-class FloatSetting(BaseSetting):
- def _parse(self, value):
- return float(value)
-
- def __int__(self):
- return int(self.value)
-
- def __float__(self):
- return float(self.value)
-
- def __add__(self, other):
- return float(self) + float(other)
-
- def __sub__(self, other):
- return float(self) - float(other)
-
- def __cmp__(self, other):
- return float(self) - float(other)
-
-class BoolSetting(BaseSetting):
- def _parse(self, value):
- return bool(value)
-
-class Setting(object):
- sets = {}
-
- def __new__(cls, name, default, set=None, field_context={}):
- if isinstance(default, bool):
- instance = BoolSetting(name, default, field_context)
- elif isinstance(default, str):
- instance = StringSetting(name, default, field_context)
- elif isinstance(default, float):
- instance = FloatSetting(name, default, field_context)
- elif isinstance(default, int):
- instance = IntegerSetting(name, default, field_context)
- else:
- instance = BaseSetting(name, default, field_context)
-
- if set is not None:
- if not set.name in cls.sets:
- cls.sets[set.name] = set
-
- cls.sets[set.name].append(instance)
-
- return instance
-
-setting_update = django.dispatch.Signal(providing_args=['old_value', 'new_value'])
+++ /dev/null
-import os.path\r
-\r
-from base import Setting, SettingSet\r
-from forms import ImageFormWidget\r
-\r
-from django.utils.translation import ugettext_lazy as _\r
-from django.forms.widgets import Textarea\r
-\r
-BASIC_SET = SettingSet('basic', _('Basic Settings'), _("The basic settings for your application"), 1)\r
-\r
-APP_LOGO = Setting('APP_LOGO', '/m/default/media/images/logo.png', BASIC_SET, dict(\r
-label = _("Application logo"),\r
-help_text = _("""\r
-Your site main logo.\r
-"""),\r
-widget=ImageFormWidget))\r
-\r
-APP_FAVICON = Setting('APP_FAVICON', '/m/default/media/images/favicon.ico', BASIC_SET, dict(\r
-label = _("Favicon"),\r
-help_text = _("""\r
-Your site favicon.\r
-"""),\r
-widget=ImageFormWidget))\r
-\r
-APP_TITLE = Setting('APP_TITLE', 'OSQA: Open Source Q&A Forum', BASIC_SET, dict(\r
-label = _("Application title"),\r
-help_text = _("""\r
-The title of your application that will show in the browsers title bar\r
-""")))\r
-\r
-APP_SHORT_NAME = Setting('APP_SHORT_NAME', 'OSQA', BASIC_SET, dict(\r
-label = _("Application short name"),\r
-help_text = """\r
-The short name for your application that will show up in many places.\r
-"""))\r
-\r
-APP_KEYWORDS = Setting('APP_KEYWORDS', 'OSQA,CNPROG,forum,community', BASIC_SET, dict(\r
-label = _("Application keywords"),\r
-help_text = _("""\r
-The meta keywords that will be available through the HTML meta tags.\r
-""")))\r
-\r
-APP_DESCRIPTION = Setting('APP_DESCRIPTION', 'Ask and answer questions.', BASIC_SET, dict(\r
-label = _("Application description"),\r
-help_text = _("""\r
-The description of your application\r
-"""),\r
-widget=Textarea))\r
-\r
-APP_INTRO = Setting('APP_INTRO', '<p>Ask and answer questions, make the world better!</p>', BASIC_SET, dict(\r
-label = _("Application intro"),\r
-help_text = _("""\r
-The introductory page that is visible in the sidebar for anonymous users.\r
-"""),\r
-widget=Textarea))\r
-\r
-APP_COPYRIGHT = Setting('APP_COPYRIGHT', 'Copyright OSQA, 2009. Some rights reserved under creative commons license.', BASIC_SET, dict(\r
-label = _("Copyright notice"),\r
-help_text = _("""\r
-The copyright notice visible at the footer of your page.\r
-""")))
\ No newline at end of file
+++ /dev/null
-from base import Setting, SettingSet\r
-from django.utils.translation import ugettext_lazy as _\r
-\r
-EMAIL_SET = SettingSet('email', _('Email Settings'), _("Email server and other email related settings."), 50)\r
-\r
-EMAIL_HOST = Setting('EMAIL_HOST', '', EMAIL_SET, dict(\r
-label = _("Email Server"),\r
-help_text = _("""\r
-The SMTP server through which your application will be sending emails.\r
-"""),\r
-required=False))\r
-\r
-EMAIL_PORT = Setting('EMAIL_PORT', 25, EMAIL_SET, dict(\r
-label = _("Email Port"),\r
-help_text = _("""\r
-The port on which your SMTP server is listening to. Usually this is 25, but can be something else.\r
-"""),\r
-required=False))\r
-\r
-EMAIL_HOST_USER = Setting('EMAIL_HOST_USER', '', EMAIL_SET, dict(\r
-label = _("Email User"),\r
-help_text = _("""\r
-The username for your SMTP connection.\r
-"""),\r
-required=False))\r
-\r
-EMAIL_HOST_PASSWORD = Setting('EMAIL_HOST_PASSWORD', '', EMAIL_SET, dict(\r
-label = _("Email Password"),\r
-help_text = _("""\r
-The password for your SMTP connection.\r
-"""),\r
-required=False))\r
-\r
-EMAIL_USE_TLS = Setting('EMAIL_USE_TLS', False, EMAIL_SET, dict(\r
-label = _("Use TLS"),\r
-help_text = _("""\r
-Does your SMTP server uses TLS for authentication.\r
-"""),\r
-required=False))\r
-\r
-DEFAULT_FROM_EMAIL = Setting('DEFAULT_FROM_EMAIL', '', EMAIL_SET, dict(\r
-label = _("Site email address"),\r
-help_text = _("""\r
-The address that will show up on the 'from' field on emails sent by your website.\r
-"""),\r
-required=False))\r
-\r
-EMAIL_SUBJECT_PREFIX = Setting('EMAIL_SUBJECT_PREFIX', '', EMAIL_SET, dict(\r
-label = _("Email subject prefix"),\r
-help_text = _("""\r
-Every email sent through your website will have the subject prefixed by this string. It's usually a good idea to have such a prefix so your users can easilly set up a filter on theyr email clients.\r
-"""),\r
-required=False))
\ No newline at end of file
+++ /dev/null
-from base import Setting, SettingSet\r
-from django.utils.translation import ugettext_lazy as _\r
-\r
-EXT_KEYS_SET = SettingSet('extkeys', _('External Keys'), _("Keys for various external providers that your application may optionally use."), 100)\r
-\r
-GOOGLE_SITEMAP_CODE = Setting('GOOGLE_SITEMAP_CODE', '', EXT_KEYS_SET, dict(\r
-label = _("Google sitemap code"),\r
-help_text = """\r
-This is the code you get when you register your site at <a href="https://www.google.com/webmasters/tools/">Google webmaster central</a>.\r
-""",\r
-required=False))\r
-\r
-GOOGLE_ANALYTICS_KEY = Setting('GOOGLE_ANALYTICS_KEY', '', EXT_KEYS_SET, dict(\r
-label = _("Google analytics key"),\r
-help_text = """\r
-Your Google analytics key. You can get one at the <a href="http://www.google.com/analytics/">Google analytics official website</a>\r
-""",\r
-required=False))
\ No newline at end of file
+++ /dev/null
-import os
-from django import forms
-from base import Setting, StringSetting, IntegerSetting, BoolSetting, FloatSetting
-from django.utils.translation import ugettext as _
-from django.core.files.storage import FileSystemStorage
-
-class SettingsSetForm(forms.Form):
- def __init__(self, set, data=None, *args, **kwargs):
- if data is None:
- data = dict([(setting.name, setting.value) for setting in set])
-
- super(SettingsSetForm, self).__init__(data, *args, **kwargs)
-
- for setting in set:
- if isinstance(setting, StringSetting):
- field = forms.CharField(**setting.field_context)
- elif isinstance(setting, FloatSetting):
- field = forms.FloatField(**setting.field_context)
- elif isinstance(setting, IntegerSetting):
- field = forms.IntegerField(**setting.field_context)
- elif isinstance(setting, BoolSetting):
- field = forms.BooleanField(**setting.field_context)
- else:
- field = forms.CharField(**setting.field_context)
-
- self.fields[setting.name] = field
-
- self.set = set
-
- def save(self):
- for setting in self.set:
- setting.set_value(self.cleaned_data[setting.name])
-
-class ImageFormWidget(forms.Widget):
- def render(self, name, value, attrs=None):
- return """
- <img src="%(value)s" /><br />
- %(change)s: <input type="file" name="%(name)s" />
- <input type="hidden" name="%(name)s_old" value="%(value)s" />
- """ % {'name': name, 'value': value, 'change': _('Change this:')}
-
- def value_from_datadict(self, data, files, name):
- if name in files:
- f = files[name]
-
- # check file type
- file_name_suffix = os.path.splitext(f.name)[1].lower()
-
- if not file_name_suffix in ('.jpg', '.jpeg', '.gif', '.png', '.bmp', '.tiff', '.ico'):
- raise Exception('File type not allowed')
-
- from forum.settings import UPFILES_FOLDER, UPFILES_ALIAS
-
- storage = FileSystemStorage(str(UPFILES_FOLDER), str(UPFILES_ALIAS))
- new_file_name = storage.save(f.name, f)
- return str(UPFILES_ALIAS) + new_file_name
- else:
- if "%s_old" % name in data:
- return data["%s_old" % name]
- elif name in data:
- return data[name]
-
-
+++ /dev/null
-from base import Setting, SettingSet\r
-from django.utils.translation import ugettext_lazy as _\r
-\r
-MIN_REP_SET = SettingSet('minrep', _('Minimum reputation config'), _("Configure the minimum reputation required to perform certain actions on your site."), 300)\r
-\r
-REP_TO_VOTE_UP = Setting('REP_TO_VOTE_UP', 15, MIN_REP_SET, dict(\r
-label = _("Minimum reputation to vote up"),\r
-help_text = _("""\r
-The minimum reputation an user must have to be allowed to vote up.\r
-""")))\r
-\r
-REP_TO_VOTE_DOWN = Setting('REP_TO_VOTE_DOWN', 100, MIN_REP_SET, dict(\r
-label = _("Minimum reputation to vote down"),\r
-help_text = _("""\r
-The minimum reputation an user must have to be allowed to vote down.\r
-""")))\r
-\r
-REP_TO_FLAG = Setting('REP_TO_FLAG', 15, MIN_REP_SET, dict(\r
-label = _("Minimum reputation to flag a post"),\r
-help_text = _("""\r
-The minimum reputation an user must have to be allowed to flag a post.\r
-""")))\r
-\r
-REP_TO_COMMENT = Setting('REP_TO_COMMENT', 50, MIN_REP_SET, dict(\r
-label = _("Minimum reputation to comment"),\r
-help_text = _("""\r
-The minimum reputation an user must have to be allowed to comment a post.\r
-""")))\r
-\r
-REP_TO_LIKE_COMMENT = Setting('REP_TO_LIKE_COMMENT', 15, MIN_REP_SET, dict(\r
-label = _("Minimum reputation to like a comment"),\r
-help_text = _("""\r
-The minimum reputation an user must have to be allowed to "like" a comment.\r
-""")))\r
-\r
-REP_TO_UPLOAD = Setting('REP_TO_UPLOAD', 60, MIN_REP_SET, dict(\r
-label = _("Minimum reputation to upload"),\r
-help_text = _("""\r
-The minimum reputation an user must have to be allowed to upload a file.\r
-""")))\r
-\r
-REP_TO_CLOSE_OWN = Setting('REP_TO_CLOSE_OWN', 250, MIN_REP_SET, dict(\r
-label = _("Minimum reputation to close own question"),\r
-help_text = _("""\r
-The minimum reputation an user must have to be allowed to close his own question.\r
-""")))\r
-\r
-REP_TO_REOPEN_OWN = Setting('REP_TO_REOPEN_OWN', 500, MIN_REP_SET, dict(\r
-label = _("Minimum reputation to reopen own question"),\r
-help_text = _("""\r
-The minimum reputation an user must have to be allowed to reopen his own question.\r
-""")))\r
-\r
-REP_TO_RETAG = Setting('REP_TO_RETAG', 500, MIN_REP_SET, dict(\r
-label = _("Minimum reputation to retag others questions"),\r
-help_text = _("""\r
-The minimum reputation an user must have to be allowed to retag others questions.\r
-""")))\r
-\r
-REP_TO_EDIT_WIKI = Setting('REP_TO_EDIT_WIKI', 750, MIN_REP_SET, dict(\r
-label = _("Minimum reputation to edit wiki posts"),\r
-help_text = _("""\r
-The minimum reputation an user must have to be allowed to edit community wiki posts.\r
-""")))\r
-\r
-REP_TO_EDIT_OTHERS = Setting('REP_TO_EDIT_OTHERS', 2000, MIN_REP_SET, dict(\r
-label = _("Minimum reputation to edit others posts"),\r
-help_text = _("""\r
-The minimum reputation an user must have to be allowed to edit others posts.\r
-""")))\r
-\r
-REP_TO_CLOSE_OTHERS = Setting('REP_TO_CLOSE_OTHERS', 3000, MIN_REP_SET, dict(\r
-label = _("Minimum reputation to close others posts"),\r
-help_text = _("""\r
-The minimum reputation an user must have to be allowed to close others posts.\r
-""")))\r
-\r
-REP_TO_DELETE_COMMENTS = Setting('REP_TO_DELETE_COMMENTS', 2000, MIN_REP_SET, dict(\r
-label = _("Minimum reputation to delete comments"),\r
-help_text = _("""\r
-The minimum reputation an user must have to be allowed to delete comments.\r
-""")))\r
-\r
-REP_TO_VIEW_FLAGS = Setting('REP_TO_VIEW_FLAGS', 2000, MIN_REP_SET, dict(\r
-label = _("Minimum reputation to view offensive flags"),\r
-help_text = _("""\r
-The minimum reputation an user must have to view offensive flags.\r
-""")))\r
-\r
-#REP_TO_DISABLE_NOFOLLOW = Setting('REP_TO_DISABLE_NOFOLLOW', 2000, MIN_REP_SET, dict(\r
-#label = _("Minimum reputation to disable nofollow"),\r
-#help_text = _("""\r
-#The minimum reputation an user must have to be allowed to disable the nofollow attribute of a post link.\r
-#""")))
\ No newline at end of file
+++ /dev/null
-from base import Setting, SettingSet
-from django.forms.widgets import Textarea
-
-PAGES_SET = SettingSet('pages', 'About page', "Define the text in the about page. You can use markdown and some basic html tags.", 2000)
-
-ABOUT_PAGE_TEXT = Setting('ABOUT_PAGE_TEXT',
-"""
-**Please customize this text in the administration area**
-
-Here you can **ask** and **answer** questions, **comment**
-and **vote<** for the questions of others and their answers. Both questions and answers
-**can be revised** and improved. Questions can be **tagged** with
-the relevant keywords to simplify future access and organize the accumulated material.
-
-This <span class="orange">Q&A</span> site is moderated by its members, hopefully - including yourself!
-Moderation rights are gradually assigned to the site users based on the accumulated **"reputation"**
-points. These points are added to the users account when others vote for his/her questions or answers.
-These points (very) roughly reflect the level of trust of the community.
-
-No points are necessary to ask or answer the questions - so please - join us!
-
-If you would like to find out more about this site - please see the **frequently asked questions** page.
-""", PAGES_SET, dict(
-label = "About page text",
-help_text = """
-The about page.
-""",
-widget=Textarea(attrs={'rows': '20'})))
\ No newline at end of file
+++ /dev/null
-from base import Setting, SettingSet\r
-from django.utils.translation import ugettext_lazy as _\r
-\r
-REP_GAIN_SET = SettingSet('repgain', _('Reputation gains and losses config'), _("Configure the reputation points a user may gain or lose upon certain actions."), 200)\r
-\r
-INITIAL_REP = Setting('INITIAL_REP', 1, REP_GAIN_SET, dict(\r
-label = _("Initial reputation"),\r
-help_text = _("""\r
-The initial reputation an user gets when he first signs in.\r
-""")))\r
-\r
-MAX_REP_BY_UPVOTE_DAY = Setting('MAX_REP_BY_UPVOTE_DAY', 200, REP_GAIN_SET, dict(\r
-label = "Max rep by up votes / day",\r
-help_text = _("""\r
-Maximum reputation a user can gain in one day for being upvoted.\r
-""")))\r
-\r
-REP_GAIN_BY_UPVOTED = Setting('REP_GAIN_BY_UPVOTED', 10, REP_GAIN_SET, dict(\r
-label = _("Rep gain by upvoted"),\r
-help_text = _("""\r
-Reputation a user gains for having one of his posts up voted.\r
-""")))\r
-\r
-REP_LOST_BY_UPVOTE_CANCELED = Setting('REP_LOST_BY_UPVOTE_CANCELED', 10, REP_GAIN_SET, dict(\r
-label = _("Rep lost bu upvote canceled"),\r
-help_text = _("""\r
-Reputation a user loses for having one of the upvotes on his posts canceled.\r
-""")))\r
-\r
-REP_LOST_BY_DOWNVOTED = Setting('REP_LOST_BY_DOWNVOTED', 2, REP_GAIN_SET, dict(\r
-label = _("Rep lost by downvoted"),\r
-help_text = _("""\r
-Reputation a user loses for having one of his posts down voted.\r
-""")))\r
-\r
-REP_LOST_BY_DOWNVOTING = Setting('REP_LOST_BY_DOWNVOTING', 1, REP_GAIN_SET, dict(\r
-label = _("Rep lost by downvoting"),\r
-help_text = _("""\r
-Reputation a user loses for down voting a post.\r
-""")))\r
-\r
-REP_GAIN_BY_DOWNVOTE_CANCELED = Setting('REP_GAIN_BY_DOWNVOTE_CANCELED', 2, REP_GAIN_SET, dict(\r
-label = _("Rep gain by downvote canceled"),\r
-help_text = _("""\r
-Reputation a user gains for having one of the downvotes on his posts canceled.\r
-""")))\r
-\r
-REP_GAIN_BY_CANCELING_DOWNVOTE = Setting('REP_GAIN_BY_CANCELING_DOWNVOTE', 1, REP_GAIN_SET, dict(\r
-label = _("Rep gain by canceling downvote"),\r
-help_text = _("""\r
-Reputation a user gains for canceling a downvote.\r
-""")))\r
-\r
-REP_GAIN_BY_ACCEPTED = Setting('REP_GAIN_BY_ACCEPTED', 15, REP_GAIN_SET, dict(\r
-label = _("Rep gain by accepted answer"),\r
-help_text = _("""\r
-Reputation a user gains for having one of his answers accepted.\r
-""")))\r
-\r
-REP_LOST_BY_ACCEPTED_CANCELED = Setting('REP_LOST_BY_ACCEPTED_CANCELED', 15, REP_GAIN_SET, dict(\r
-label = _("Rep lost by accepted canceled"),\r
-help_text = _("""\r
-Reputation a user loses for having one of his accepted answers canceled.\r
-""")))\r
-\r
-REP_GAIN_BY_ACCEPTING = Setting('REP_GAIN_BY_ACCEPTING', 2, REP_GAIN_SET, dict(\r
-label = _("Rep gain by accepting answer"),\r
-help_text = _("""\r
-Reputation a user gains for accepting an answer to one of his questions.\r
-""")))\r
-\r
-REP_LOST_BY_CANCELING_ACCEPTED = Setting('REP_LOST_BY_CANCELING_ACCEPTED', 2, REP_GAIN_SET, dict(\r
-label = _("Rep lost by canceling accepted"),\r
-help_text = _("""\r
-Reputation a user loses by canceling an accepted answer.\r
-""")))\r
-\r
-REP_LOST_BY_FLAGGED = Setting('REP_LOST_BY_FLAGGED', 2, REP_GAIN_SET, dict(\r
-label = _("Rep lost by post flagged"),\r
-help_text = _("""\r
-Reputation a user loses by having one of his posts flagged.\r
-""")))\r
-\r
-REP_LOST_BY_FLAGGED_3_TIMES = Setting('REP_LOST_BY_FLAGGED_3_TIMES', 30, REP_GAIN_SET, dict(\r
-label = _("Rep lost by post flagged and hidden"),\r
-help_text = _("""\r
-Reputation a user loses by having the last revision of one of his posts flagged the enough number of times to hide the post.\r
-""")))\r
-\r
-REP_LOST_BY_FLAGGED_5_TIMES = Setting('REP_LOST_BY_FLAGGED_5_TIMES', 100, REP_GAIN_SET, dict(\r
-label = _("Rep lost by post flagged and deleted"),\r
-help_text = _("""\r
-Reputation a user loses by having the last revision of one of his posts flagged the enough number of times to delete the post.\r
-""")))
\ No newline at end of file
+++ /dev/null
-import os.path\r
-from base import Setting, SettingSet\r
-from django.utils.translation import ugettext_lazy as _\r
-\r
-UPLOAD_SET = SettingSet('paths', _('File upload settings'), _("""\r
-File uploads related settings.\r
-"""), 600)\r
-\r
-UPFILES_FOLDER = Setting('UPFILES_FOLDER', os.path.join(os.path.dirname(os.path.dirname(__file__)),'upfiles'), UPLOAD_SET, dict(\r
-label = _("Uploaded files folder"),\r
-help_text = _("""\r
-The filesystem path where uploaded files will be stored. Please note that this folder must exist.\r
-""")))\r
-\r
-UPFILES_ALIAS = Setting('UPFILES_ALIAS', '/upfiles/', UPLOAD_SET, dict(\r
-label = _("Uploaded files alias"),\r
-help_text = _("""\r
-The url alias for uploaded files. Notice that if you change this setting, you'll need to restart your site.\r
-""")))\r
-\r
-ALLOW_MAX_FILE_SIZE = Setting('ALLOW_MAX_FILE_SIZE', 2.5, UPLOAD_SET, dict(\r
-label = _("Max file size"),\r
-help_text = _("""\r
-The maximum allowed file size for uploads in mb.\r
-""")))
\ No newline at end of file
+++ /dev/null
-from base import Setting, SettingSet\r
-from django.utils.translation import ugettext_lazy as _\r
-\r
-VOTE_RULES_SET = SettingSet('voting', _('Voting rules'), _("Configure the voting rules on your site."), 400)\r
-\r
-MAX_VOTES_PER_DAY = Setting('MAX_VOTES_PER_DAY', 30, VOTE_RULES_SET, dict(\r
-label = _("Maximum votes per day"),\r
-help_text = _("""\r
-The maximum number of votes an user can cast per day.\r
-""")))\r
-\r
-START_WARN_VOTES_LEFT = Setting('START_WARN_VOTES_LEFT', 10, VOTE_RULES_SET, dict(\r
-label = _("Start warning about votes left"),\r
-help_text = _("""\r
-From how many votes left should an user start to be warned about it.\r
-""")))\r
-\r
-MAX_FLAGS_PER_DAY = Setting('MAX_FLAGS_PER_DAY', 5, VOTE_RULES_SET, dict(\r
-label = _("Maximum flags per day"),\r
-help_text = _("""\r
-The maximum number of times an can flag a post per day.\r
-""")))\r
-\r
-FLAG_COUNT_TO_HIDE_POST = Setting('FLAG_COUNT_TO_HIDE_POST', 3, VOTE_RULES_SET, dict(\r
-label = _("Flag count to hide post"),\r
-help_text = _("""\r
-How many times a post needs to be flagged to be hidden from the main page.\r
-""")))\r
-\r
-FLAG_COUNT_TO_DELETE_POST = Setting('FLAG_COUNT_TO_DELETE_POST', 5, VOTE_RULES_SET, dict(\r
-label = _("Flag count to delete post"),\r
-help_text = _("""\r
-How many times a post needs to be flagged to be deleted.\r
-""")))\r
-\r
-DENY_UNVOTE_DAYS = Setting('DENY_UNVOTE_DAYS', 1, VOTE_RULES_SET, dict(\r
-label = _("Days to cancel a vote"),\r
-help_text = _("""\r
-How many days an user can cancel a vote after he originaly casted it.\r
-""")))
\ No newline at end of file
+++ /dev/null
-from django.contrib.sitemaps import Sitemap
-from forum.models import Question
-
-class QuestionsSitemap(Sitemap):
- changefreq = 'daily'
- priority = 0.5
- def items(self):
- return Question.objects.exclude(deleted=True)
-
- def lastmod(self, obj):
- return obj.last_activity_at
-
- def location(self, obj):
- return obj.get_absolute_url()
+++ /dev/null
-this directory contains available skins
-
-1) default - default skin with templates
-2) common - this directory is to media directory common to all or many templates
-
-to create a new skin just create another directory under skins/
-and start populating it with the directory structure as in
-default/templates - templates must be named the same way
-
-NO NEED TO CREATE ALL TEMPLATES/MEDIA FILES AT ONCE
-
-templates are resolved in the following way:
-* check in skin named as in settings.OSQA_DEFAULT_SKIN
-* then skin named 'default'
-
-media is resolved with one extra option
-* settings.OSQA_DEFAULT_SKIN
-* 'default'
-* 'common'
-
-media does not have to be composed of files named the same way as in default skin
-whatever media you link to from your templates - will be in operation
+++ /dev/null
-from django.conf import settings
-from django.template import loader
-from django.template.loaders import filesystem
-from django.http import HttpResponse
-import os.path
-import logging
-
-#module for skinning osqa
-#at this point skin can be changed only in settings file
-#via OSQA_DEFAULT_SKIN variable
-
-#note - Django template loaders use method django.utils._os.safe_join
-#to work on unicode file paths
-#here it is ignored because it is assumed that we won't use unicode paths
-
-def load_template_source(name, dirs=None):
- try:
- tname = os.path.join(settings.OSQA_DEFAULT_SKIN,'templates',name)
- return filesystem.load_template_source(tname,dirs)
- except:
- tname = os.path.join('default','templates',name)
- return filesystem.load_template_source(tname,dirs)
-load_template_source.is_usable = True
-
-def find_media_source(url):
- """returns url prefixed with the skin name
- of the first skin that contains the file
- directories are searched in this order:
- settings.OSQA_DEFAULT_SKIN, then 'default', then 'commmon'
- if file is not found - returns None
- and logs an error message
- """
- while url[0] == '/': url = url[1:]
- d = os.path.dirname
- n = os.path.normpath
- j = os.path.join
- f = os.path.isfile
- skins = n(j(d(d(__file__)),'skins'))
- try:
- media = os.path.join(skins, settings.OSQA_DEFAULT_SKIN, url)
- assert(f(media))
- use_skin = settings.OSQA_DEFAULT_SKIN
- except:
- try:
- media = j(skins, 'default', url)
- assert(f(media))
- use_skin = 'default'
- except:
- media = j(skins, 'common', url)
- try:
- assert(f(media))
- use_skin = 'common'
- except:
- logging.error('could not find media for %s' % url)
- use_skin = ''
- return None
- return use_skin + '/' + url
+++ /dev/null
-directory for media common to all or many templates
+++ /dev/null
-@import url(jquery.autocomplete.css);\r
-\r
-body {\r
- background: #EEE;\r
- font-size: 12px;\r
- line-height: 150%;\r
- margin: 0;\r
- padding: 0;\r
- color: #000;\r
- font-family: sans-serif;\r
-}\r
-\r
-div {\r
- margin: 0 auto;\r
- padding: 0;\r
-}\r
-\r
-h1, h2, h3, h4, h5, h6, ul, li, dl, dt, dd, form, img, p {\r
- margin: 0;\r
- padding: 0;\r
- border: none;\r
-}\r
-\r
-label {\r
- vertical-align: middle;\r
-}\r
-\r
-hr {\r
- border: none;\r
- border-top: 1px dashed #ccccce;\r
-}\r
-\r
-input, select {\r
- vertical-align: middle;\r
- font-family: Trebuchet MS, "segoe ui", Helvetica, "Microsoft YaHei", ? ?, Tahoma, Verdana, MingLiu, PMingLiu, Arial, sans-serif;\r
-}\r
-\r
-p {\r
- margin-bottom: 13px;\r
- font-size: 13px;\r
- line-height: 140%;\r
-}\r
-\r
-a {\r
- color: #333333;\r
- text-decoration: none;\r
-}\r
-\r
-.badges a {\r
- color: #763333;\r
- text-decoration: underline;\r
-}\r
-\r
-a:hover {\r
- text-decoration: underline;\r
-}\r
-\r
-.block {\r
- width: 960px;\r
- height: auto;\r
-}\r
-\r
-.fleft {\r
- float: left;\r
-}\r
-\r
-.fright {\r
- float: right;\r
-}\r
-\r
-.tleft {\r
- text-align: left;\r
-}\r
-\r
-.tcenter {\r
- text-align: center;\r
-}\r
-\r
-.tright {\r
- text-align: right;\r
-}\r
-\r
-.dis {\r
- display: block;\r
-}\r
-\r
-.inline {\r
- display: inline;\r
-}\r
-\r
-.none {\r
- display: none;\r
-}\r
-\r
-.red {\r
- color: #CC0000;\r
-}\r
-\r
-.b {\r
- font-weight: bold;\r
-}\r
-\r
-.f10 {\r
- font-size: 10px;\r
-}\r
-\r
-.f11 {\r
- font-size: 11px;\r
-}\r
-\r
-.f12 {\r
- font-size: 12px;\r
-}\r
-\r
-.f13 {\r
- font-size: 13px;\r
-}\r
-\r
-.f14 {\r
- font-size: 14px;\r
-}\r
-\r
-.white {\r
- color: #FFFFFF;\r
-}\r
-\r
-.u {\r
- text-decoration: underline;\r
-}\r
-\r
-.spacer1 {\r
- height: 6px;\r
- line-height: 6px;\r
- clear: both;\r
- visibility: hidden;\r
-}\r
-\r
-.spacer3 {\r
- height: 30px;\r
- line-height: 30px;\r
- clear: both;\r
- visibility: hidden;\r
-}\r
-\r
-h1 {\r
- font-size: 160%;\r
- padding: 5px 0 5px 0;\r
-}\r
-\r
-h2 {\r
- font-size: 140%;\r
- padding: 3px 0 3px 0;\r
-}\r
-\r
-h3 {\r
- font-size: 120%;\r
- padding: 3px 0 3px 0;\r
-}\r
-\r
-ul {\r
- list-style: disc;\r
- margin-left: 20px;\r
- padding-left: 0px;\r
- margin-bottom: 1em;\r
-}\r
-\r
-ol {\r
- list-style: decimal;\r
- margin-left: 30px;\r
- margin-bottom: 1em;\r
- padding-left: 0px;\r
-}\r
-\r
-td ul {\r
- vertical-align: middle;\r
-}\r
-\r
-li input {\r
- margin: 3px 3px 4px 3px;\r
-}\r
-\r
-pre {\r
- font-family: Consolas, Monaco, Liberation Mono, Lucida Console, Monospace;\r
- font-size: 100%;\r
- margin-bottom: 10px;\r
- overflow: auto;\r
- width: 580px;\r
- background-color: #F5F5F5;\r
- padding-left: 5px;\r
- padding-top: 5px;\r
- padding-bottom: 20px ! ie7;\r
-}\r
-\r
-code {\r
- font-family: Consolas, Monaco, Liberation Mono, Lucida Console, Monospace;\r
- font-size: 100%;\r
-\r
-}\r
-\r
-blockquote {\r
- margin-bottom: 10px;\r
- margin-right: 15px;\r
- padding: 10px 0px 1px 10px;\r
- background-color: #F5F5F5;\r
-}\r
-\r
-/*????*/\r
-#wrapper {\r
- width: 972px;\r
- background: #FFF;\r
- margin: auto;\r
- padding: 6px;\r
-}\r
-\r
-#roof {\r
- position: relative;\r
- margin-top: 0px;\r
- background: #3291C9;\r
-}\r
-\r
-#room {\r
- padding: 10px 0 10px 0;\r
- border-bottom: 1px solid #777;\r
-}\r
-\r
-#CALeft {\r
- width: 710px;\r
- float: left;\r
- position: relative;\r
-}\r
-\r
-#CARight {\r
- width: 240px;\r
- float: right;\r
-}\r
-\r
-#CAFull {\r
- float: left;\r
- padding: 0 5px 0 5px;\r
- width: 950px;\r
-}\r
-\r
-#ground {\r
- width: 100%;\r
- border-top: 1px solid #000;\r
- padding-top: 6px;\r
- padding-bottom: 0px;\r
- text-align: center;\r
- background: #777;\r
-}\r
-\r
-/*#licenseLogo {position:absolute;top:10px;right:10px;}*/\r
-\r
-/*??????*/\r
-#top {\r
- position: absolute;\r
- top: 0px;\r
- right: 0px;\r
- height: 20px;\r
- text-align: right;\r
- padding: 3px;\r
- width: 500px;\r
-}\r
-\r
-/*#header {width:960px;}*/\r
-#top a {\r
- height: 35px;\r
- text-align: right; /*letter-spacing:1px; */\r
- margin-left: 20px;\r
- text-decoration: underline;\r
- font-size: 12px;\r
- color: #333333;\r
-}\r
-\r
-#logo {\r
- padding: 5px 0px 0px 0px;\r
-}\r
-\r
-#navBar {\r
- float: clear;\r
- position: relative;\r
- display: block;\r
- width: 960px;\r
-}\r
-\r
-#navBar .nav {\r
- margin: 20px 0px 0px 16px; /*letter-spacing:1px; */\r
-}\r
-\r
-#navBar .nav a {\r
- color: #333333;\r
- background-color: #8BE334;\r
- -moz-border-radius-topleft: 6px;\r
- -webkit-border-top-left-radius: 6px;\r
- -moz-border-radius-topright: 6px;\r
- -webkit-border-top-right-radius: 6px;\r
- border: 1px solid #888888;\r
- border-bottom: none;\r
- padding: 0px 15px 3px 15px;\r
- height: 25px;\r
- line-height: 30px;\r
- margin-left: 3px;\r
- font-size: 14px;\r
- font-weight: 400;\r
- text-decoration: none;\r
- display: block;\r
- float: left;\r
-}\r
-\r
-#navBar .nav a:hover {\r
- text-decoration: underline\r
-}\r
-\r
-#navBar .nav a.on {\r
- height: 24px;\r
- line-height: 28px;\r
- border-bottom: 1px solid #a40000;\r
- border-right: 1px solid #820000;\r
- border-top: 1px solid #d40000;\r
- border-left: 1px solid #d40000; /*background:#A31E39; */\r
- background: #a40000;\r
- color: #FFF;\r
- font-weight: 600;\r
- text-decoration: none\r
-}\r
-\r
-#navBar .nav a.special {\r
- font-size: 14px;\r
- color: #B02B2C;\r
- font-weight: bold;\r
- text-decoration: none;\r
-}\r
-\r
-#navBar .nav a.special:hover {\r
- text-decoration: underline;\r
-}\r
-\r
-#navBar .nav div.focus {\r
- float: right;\r
- padding-right: 0px;\r
-}\r
-\r
-#searchBar {\r
- width: 958px;\r
- background-color: #264A5F; /*#e9b96e;*/\r
- border: 1px solid #aaaaaa;\r
- padding: 12px;\r
- -moz-border-radius-topleft: 6px;\r
- -webkit-border-top-left-radius: 6px;\r
- -moz-border-radius-topright: 6px;\r
- -webkit-border-top-right-radius: 6px;\r
-}\r
-\r
-#searchBar .searchInput {\r
- font-size: 25px;\r
- height: 30px;\r
- width: 600px;\r
- background: #EEEEEE;\r
-}\r
-\r
-#searchBar .searchBtn {\r
- font-size: 14px;\r
- height: 26px;\r
- width: 80px;\r
-}\r
-\r
-#searchBar .options {\r
- padding: 3px 0 3px 0;\r
- font-size: 100%;\r
- color: #EEE; /*letter-spacing:1px;*/\r
-}\r
-\r
-#searchBar .options INPUT {\r
- margin: 0 3px 0 15px;\r
-}\r
-\r
-#searchBar .options INPUT:hover {\r
- cursor: pointer\r
-}\r
-\r
-#ask_teaser {\r
- font-size: 35px;\r
- color: white;\r
- font-weight: bolder;\r
- display: inline;\r
- margin-right: 25px;\r
- text-shadow: 4px 4px 4px #000;\r
- vertical-align: middle;\r
-}\r
-\r
-#ask_input {\r
- display: inline;\r
-}\r
-\r
-#go_btn {\r
- width: 75px;\r
- height: 40px;\r
- font-weight: bolder;\r
- font-size: 30px;\r
- -moz-border-radius: 5px;\r
- -webkit-border-radius: 5px;\r
- border: 2px solid #35609A;\r
- background-color: #72A0D0;\r
- color: #555753;\r
-}\r
-\r
-/*????*/\r
-#listA {\r
- float: left;\r
- background-color: #FFF;\r
- padding: 0 0px 0 0px;\r
- width: 100%;\r
-}\r
-\r
-#listA .qstA {\r
- position: relative;\r
- padding: 3px 5px 5px 10px;\r
- border-top: 1px dashed #ccccce;\r
- /*border-left:1px solid #ebebbe;\r
- border-right:1px solid #b4b48e;\r
- border-bottom:1px solid #b4b48e;*/\r
- background: white; /* #f9f7ed;*/\r
-/*margin:10px 0 10px 0;*/\r
-/*background:url(../images/quest-bg.gif) repeat-x top;*/\r
-}\r
-\r
-#listA .qstA thumb {\r
- float: left;\r
-}\r
-\r
-#listA .qstA H2 {\r
- font-size: 14px;\r
- font-weight: 800;\r
- margin: 8px auto;\r
- padding: 0px;\r
-}\r
-\r
-#listA .qstA H2 a {\r
- color: 333333 /*#2e3436*/;\r
- font-size: 15px;\r
-}\r
-\r
-#listA .qstA .stat {\r
- position: absolute;\r
- right: 0px;\r
- bottom: 5px;\r
- font-size: 12px; /*letter-spacing:1px;*/\r
- float: right;\r
-}\r
-\r
-#listA .qstA .stat span {\r
- margin-right: 5px;\r
-}\r
-\r
-#listA .qstA .stat td {\r
- min-width: 40px;\r
- text-align: center;\r
-}\r
-\r
-#listA .qstA .stat .num {\r
- font-family: sans-serif;\r
- color: #a40000;\r
- /*background:#eeeeec;\r
- border: 1px solid #babdb6;*/\r
- margin: 0px;\r
- font-size: 17px;\r
- font-weight: 800;\r
-}\r
-\r
-#listA .qstA table {\r
- border-spacing: 0px;\r
-}\r
-\r
-#listA .qstA table td {\r
- padding: 0px;\r
- width: 60px;\r
- text-align: center;\r
-}\r
-\r
-#listA .qstA .stat .unit {\r
- color: #777777;\r
- margin: 0px\r
-}\r
-\r
-#listA .qstA .from {\r
- margin-top: 5px;\r
- font-size: 13px;\r
- color: #777777;\r
-}\r
-\r
-#listA .qstA .from .score {\r
- font-family: sans-serif;\r
- color: #555555;\r
-}\r
-\r
-#listA .qstA .date {\r
- margin-left: 10px;\r
- color: #777777;\r
-}\r
-\r
-#listA .qstA .wiki {\r
- color: #763333;\r
- font-size: 12px;\r
-}\r
-\r
-#listA .qstA .from a {\r
-}\r
-\r
-#listA .qstA .from IMG {\r
- vertical-align: middle;\r
-}\r
-\r
-#listA .qstA .author {\r
- font-weight: 400;\r
-}\r
-\r
-#listA .qstA .author a {\r
- color: #444444;\r
-}\r
-\r
-#listA .qstA .summary {\r
- margin-right: 5px;\r
-}\r
-\r
-.short-summary {\r
- position: relative;\r
- padding: 3px 5px 5px 10px;\r
- border-top: 1px dotted #ccccce;\r
- overflow: hidden;\r
- width: 700px;\r
- float: left;\r
-}\r
-\r
-.short-summary h2 {\r
- font-size: 16px;\r
- font-family: "Trebuchet MS", "segoe ui", arial, sans-serif;\r
-}\r
-\r
-.short-summary .userinfo {\r
- float: right;\r
- margin-top: 8px;\r
-}\r
-\r
-.short-summary .counts {\r
- float: right;\r
- margin-top: 4px;\r
-}\r
-\r
-.short-summary .counts .item-count {\r
- font-size: 17px;\r
- font-weight: 800;\r
-}\r
-\r
-.short-summary .votes,\r
-.short-summary .status,\r
-.short-summary .views {\r
- font-size: 12px;\r
- text-align: center;\r
- margin: 0 0 0 7px;\r
- padding: 4px 2px 0px 2px;\r
- width: 46px;\r
- height: 48px;\r
- float: left;\r
- -moz-border-radius: 3px;\r
- -khtml-border-radius: 3px;\r
- -webkit-border-radius: 3px;\r
- border-right: 1px solid #264A5F;\r
- border-bottom: 1px solid #264A5F;\r
-}\r
-\r
-#question-table {\r
- margin-bottom: 10px; /*border-bottom:1px solid #888a85;*/\r
-}\r
-\r
-.evenMore {\r
- font-size: 14px;\r
- font-weight: 800;\r
-}\r
-\r
-.questions-count {\r
- font-size: 32px;\r
- font-family: sans-serif;\r
- font-weight: 600;\r
- padding: 0 0 5px 0px;\r
- color: #a40000;\r
- margin-top: 3px;\r
-}\r
-\r
-/*???*/\r
-.boxA {\r
- background: #264A5F;\r
- padding: 6px;\r
- margin-bottom: 8px;\r
- border: 1px solid #babdb6;\r
- -moz-border-radius: 5px;\r
- -khtml-border-radius: 5px;\r
- -webkit-border-radius: 5px;\r
-}\r
-\r
-.boxA H3 {\r
- font-size: 13px;\r
- font-weight: 800;\r
- color: #FFF;\r
- margin: 0;\r
- padding: 0;\r
- margin-bottom: 4px;\r
-}\r
-\r
-.boxA .body {\r
- border: 1px solid #999;\r
- padding: 8px;\r
- background: #FFF;\r
- font-size: 13px;\r
-}\r
-\r
-.boxA .more {\r
- padding: 2px;\r
- text-align: right;\r
- font-weight: 800;\r
-}\r
-\r
-.boxB {\r
- background: #F9F7ED;\r
- padding: 6px;\r
- margin-bottom: 8px;\r
- border: solid 1px #aaaaaa;\r
-}\r
-\r
-.boxB H3 {\r
- font-size: 13px;\r
- font-weight: 800;\r
- color: #000;\r
- margin: 0;\r
- padding: 0 0 0 15px;\r
- margin-bottom: 4px;\r
- background: url(../images/dot-g.gif) no-repeat left center;\r
-}\r
-\r
-.boxB .body {\r
- border: 1px solid #aaaaaa;\r
- padding: 8px;\r
- background: #FFF;\r
- font-size: 13px;\r
- line-height: 160%;\r
-}\r
-\r
-.boxB .more {\r
- padding: 1px;\r
- text-align: right;\r
- font-weight: 800;\r
-}\r
-\r
-.boxC {\r
- background: #EEE; /*f9f7ed;*/\r
- padding: 10px;\r
- margin-bottom: 8px;\r
- border-top: 1px solid #eeeeec;\r
- border-left: 1px solid #eeeeec;\r
- border-right: 1px solid #a9aca5;\r
- border-bottom: 1px solid #babdb6;\r
-}\r
-\r
-.boxC p {\r
- margin-bottom: 8px;\r
-}\r
-\r
-.boxC p.nomargin {\r
- margin: 0px;\r
-}\r
-\r
-.boxC p.info-box-follow-up-links {\r
- text-align: right;\r
- margin: 0;\r
-}\r
-\r
-/*??*/\r
-.pager {\r
- margin-top: 10px;\r
- margin-bottom: 16px;\r
- float: left;\r
-}\r
-\r
-.pagesize {\r
- margin-top: 10px;\r
- margin-bottom: 16px;\r
- float: right;\r
-}\r
-\r
-/** PAGINATOR **/\r
-.paginator {\r
- padding: 5px 0 10px 0;\r
- font: normal 12px sans-serif;\r
-}\r
-\r
-.paginator .prev-na,\r
-.paginator .next-na {\r
- padding: .3em;\r
- font: bold .875em sans-serif;\r
-}\r
-\r
-.paginator .prev-na,\r
-.paginator .next-na {\r
- border: 1px solid #ccc;\r
- background-color: #f9f9f9;\r
- color: #aaa;\r
- font-weight: normal;\r
-}\r
-\r
-.paginator .prev a, .paginator .prev a:visited,\r
-.paginator .next a, .paginator .next a:visited {\r
- border: 1px solid #fff;\r
- background-color: #fff;\r
- color: #777;\r
- padding: 2px 4px 3px 4px;\r
- font: bold 100% sans-serif;\r
-}\r
-\r
-.paginator .prev, .paginator .prev-na {\r
- margin-right: .5em;\r
-}\r
-\r
-.paginator .next, .paginator .next-na {\r
- margin-left: .5em;\r
-}\r
-\r
-.paginator .page a, .paginator .page a:visited, .paginator .curr {\r
- padding: .25em;\r
- font: normal .875em verdana;\r
- border: 1px solid #ccc;\r
- background-color: #fff;\r
- margin: 0em .25em;\r
- color: #777;\r
-}\r
-\r
-.paginator .curr {\r
- background-color: #777;\r
- color: #fff;\r
- border: 1px solid #777;\r
- font-weight: bold;\r
-}\r
-\r
-.paginator .page a:hover,\r
-.paginator .curr a:hover,\r
-.paginator .prev a:hover,\r
-.paginator .next a:hover {\r
- color: #fff;\r
- background-color: #777;\r
- border: 1px solid #777;\r
- text-decoration: none;\r
-}\r
-\r
-.paginator .text {\r
- color: #777;\r
- padding: .3em;\r
- font: bold 100% sans-serif;\r
-}\r
-\r
-.paginator-container {\r
- float: right;\r
- padding: 10px 0 10px 0;\r
-}\r
-\r
-.paginator-container-left {\r
- padding: 5px 0 10px 0;\r
-}\r
-\r
-/*??*/\r
-.tag {\r
- font-size: 13px;\r
- font-weight: normal;\r
- color: #333;\r
- text-decoration: none;\r
- background-color: #EEE;\r
- border-left: 3px solid #777;\r
- border-top: 1px solid #EEE;\r
- border-bottom: 1px solid #CCC;\r
- border-right: 1px solid #CCC;\r
- padding: 1px 8px 1px 8px;\r
-}\r
-\r
-.tags {\r
- font-family: sans-serif;\r
- line-height: 200%;\r
- display: block;\r
- margin-top: 5px;\r
-}\r
-\r
-.tags a {\r
- background: url('/m/css3/media/images/tag.png') no-repeat center left;\r
- white-space: nowrap;\r
- font-size: 13px;\r
- font-weight: normal;\r
- color: #333;\r
- text-decoration: none;\r
- background-color: #EEE;\r
- margin-right: 3px;\r
- padding: 2px 10px 2px 16px;\r
- -moz-border-radius: 2px;\r
- -webkit-border-radius: 2px;\r
- border-right: 1px solid #264A5F;\r
- border-bottom: 1px solid #264A5F;\r
-}\r
-\r
-.tags a:hover {\r
- background-color: #fFF;\r
- color: #333;\r
-}\r
-\r
-.tagsbox {\r
- line-height: 200%;\r
-}\r
-\r
-.tagsbox a {\r
- font-size: 13px;\r
- font-weight: normal;\r
- color: #333;\r
- text-decoration: none;\r
- background-color: #EEE;\r
- border-left: 3px solid #777;\r
- border-top: 1px solid #EEE;\r
- border-bottom: 1px solid #CCC;\r
- border-right: 1px solid #CCC;\r
- padding: 1px 8px 1px 8px;\r
-}\r
-\r
-.tagsbox a:hover {\r
- background-color: #fFF;\r
- color: #333;\r
-}\r
-\r
-.tag-number {\r
- font-weight: 700;\r
- font-family: sans-serif;\r
-}\r
-\r
-.marked-tags {\r
- margin-top: 0px;\r
- margin-bottom: 5px;\r
-}\r
-\r
-.deletable-tag {\r
- margin-right: 3px;\r
- white-space: nowrap;\r
-}\r
-\r
-/*??*/\r
-a.medal {\r
- font-size: 14px;\r
- line-height: 250%;\r
- font-weight: 800;\r
- color: #333;\r
- text-decoration: none;\r
- background: url(/m/default/media/images/medala.gif) no-repeat;\r
- border-left: 1px solid #EEE;\r
- border-top: 1px solid #EEE;\r
- border-bottom: 1px solid #CCC;\r
- border-right: 1px solid #CCC;\r
- padding: 4px 12px 4px 6px;\r
-}\r
-\r
-a:hover.medal {\r
- color: #333;\r
- text-decoration: none;\r
- background: url(/m/default/mediaimages/medala_on.gif) no-repeat;\r
- border-left: 1px solid #E7E296;\r
- border-top: 1px solid #E7E296;\r
- border-bottom: 1px solid #D1CA3D;\r
- border-right: 1px solid #D1CA3D;\r
-}\r
-\r
-/*Tab?*/\r
-.tabBar {\r
- background-color: #FFF;\r
- border-bottom: 1px solid white;\r
- height: 30px;\r
- width: 100%;\r
- clear: both;\r
- margin-bottom: 3px;\r
- -moz-border-radius: 2px;\r
- -khtml-border-radius: 2px;\r
- -webkit-border-radius: 2px;\r
-}\r
-\r
-.tabsA {\r
- background-color: #FFF;\r
- float: right;\r
- position: relative;\r
- display: block;\r
- font-weight: bold;\r
- height: 20px;\r
-}\r
-\r
-.tabsB {\r
- background-color: #FFF;\r
- float: left;\r
- position: relative;\r
- display: block;\r
- font-weight: bold;\r
- height: 20px;\r
-}\r
-\r
-.tabsA a.on, .tabsA a:hover, .tabsB a.on, .tabsB a:hover {\r
- background: #fff;\r
- color: #a40000;\r
- border-top: 1px solid #babdb6;\r
- border-left: 1px solid #babdb6;\r
- border-right: 1px solid #888a85;\r
- border-bottom: 1px solid #888a85;\r
- height: 24px;\r
- line-height: 26px;\r
- margin-top: 3px;\r
- padding: 0px 11px 0px 11px;\r
-}\r
-\r
-.tabsA a {\r
- background: #f9f7eb;\r
- border-top: 1px solid #eeeeec;\r
- border-left: 1px solid #eeeeec;\r
- border-right: 1px solid #a9aca5;\r
- border-bottom: 1px solid #888a85;\r
- color: #888a85;\r
- display: block;\r
- float: left;\r
- height: 20px;\r
- line-height: 22px;\r
- margin: 5px 4px 0 0;\r
- padding: 0 11px 0 11px;\r
- text-decoration: none;\r
-}\r
-\r
-.tabsB a {\r
- background: #eee;\r
- border: 1px solid #eee;\r
- color: #777;\r
- display: block;\r
- float: left;\r
- height: 22px;\r
- line-height: 28px;\r
- margin: 5px 0px 0 4px;\r
- padding: 0 11px 0 11px;\r
- text-decoration: none;\r
-}\r
-\r
-/*.tabsA a:hover, .tabsB a:hover {background: #fff;border: 1px solid #777;border-bottom:3px solid #FFF;}*/\r
-.headlineA {\r
- font-size: 13px;\r
- border-bottom: 1px solid #777;\r
- padding-bottom: 2px;\r
- font-weight: 800;\r
- margin-bottom: 12px;\r
- text-align: right;\r
- height: 30px;\r
-}\r
-\r
-.headQuestions {\r
- float: left;\r
- height: 23px;\r
- line-height: 23px;\r
- margin: 5px 0 0 5px;\r
- padding: 0px 6px 0px 15px;\r
- font-size: 15px;\r
- font-weight: 700;\r
- border-bottom: 0px solid #777;\r
- border-left: 0px solid #darkred;\r
- background-color: #FFF;\r
- background: url(../images/dot-list.gif) no-repeat left center;\r
-}\r
-\r
-.headAnswers {\r
- float: left;\r
- padding: 3px;\r
- font-size: 18px;\r
- font-weight: 800;\r
- background: url(../images/ico_answers.gif) left 2px no-repeat;\r
- padding-left: 24px;\r
-}\r
-\r
-.headTags {\r
- float: left;\r
- padding: 3px;\r
- font-size: 18px;\r
- font-weight: 800;\r
- background: url(../images/ico_tags.gif) no-repeat;\r
- padding-left: 24px;\r
-}\r
-\r
-.headUsers {\r
- float: left;\r
- height: 23px;\r
- line-height: 23px;\r
- margin: 5px 0 0 5px;\r
- padding: 0px 6px 0px 15px;\r
- font-size: 15px;\r
- font-weight: 700;\r
- border-bottom: 0px solid #777;\r
- border-left: 0px solid #darkred;\r
- background-color: #FFF;\r
- background: url(../images/dot-list.gif) no-repeat left center;\r
-}\r
-\r
-.headMedals {\r
- float: left;\r
- height: 23px;\r
- line-height: 23px;\r
- margin: 5px 0 0 5px;\r
- padding: 0px 6px 0px 15px;\r
- font-size: 15px;\r
- font-weight: 700;\r
- border-bottom: 0px solid #777;\r
- border-left: 0px solid #darkred;\r
- background-color: #FFF;\r
- background: url(../images/dot-list.gif) no-repeat left center;\r
-}\r
-\r
-.headLogin {\r
- float: left;\r
- padding: 3px;\r
- font-size: 15px;\r
- font-weight: 800;\r
- background: url(../images/ico_login.gif) no-repeat;\r
- padding-left: 24px;\r
-}\r
-\r
-.headNormal {\r
- text-align: left;\r
- padding: 3px;\r
- font-size: 15px;\r
- margin-bottom: 12px;\r
- font-weight: bold;\r
- border-bottom: 1px solid #777;\r
-}\r
-\r
-.headUser {\r
- text-align: left;\r
- padding: 5px;\r
- font-size: 20px; /*letter-spacing:1px;*/\r
- margin-bottom: 12px;\r
- font-weight: 800;\r
- border-bottom: 1px solid #777;\r
-}\r
-\r
-/*RSS??*/\r
-#feeds {\r
- margin: 10px 0;\r
-}\r
-\r
-#feeds a {\r
- background: url(../images/feed-icon-small.png) no-repeat 0;\r
- padding-left: 18px;\r
- font-weight: 700;\r
- font-size: 13px;\r
-}\r
-\r
-/*??*/\r
-#question {\r
- margin-bottom: 30px;\r
-}\r
-\r
-#question h1 {\r
- font-size: 15px;\r
- background: #CCC;\r
- padding: 6px 8px;;\r
-}\r
-\r
-#question .body {\r
- background: #F7F7F7;\r
- padding: 20px 10px;\r
-}\r
-\r
-.starter {\r
- padding: 10px;\r
- background: #E0EAF1;\r
-}\r
-\r
-.vote {\r
- font-size: 20px;\r
- color: #666;\r
- font-weight: 800;\r
-}\r
-\r
-.questions-related {\r
- font-weight: 700;\r
- word-wrap: break-word;\r
-}\r
-\r
-.questions-related p {\r
- line-height: 20px;\r
- margin-bottom: 10px;\r
- font-size: 100%;\r
-}\r
-\r
-.question-status {\r
- margin-top: 10px;\r
- padding: 20px;\r
- background-color: #F5F5F5;\r
- text-align: center;\r
-}\r
-\r
-.question-status h3 {\r
- font-size: 125%;\r
-}\r
-\r
-.question-body {\r
- min-height: 100px;\r
- font-size: 13px;\r
- line-height: 20px;\r
-}\r
-\r
-.question-body IMG {\r
- max-width: 600px;\r
-}\r
-\r
-.question-mark {\r
- /*background-color:#fff5e0;\r
- border-top: 1px solid #eeeeec;\r
- border-right: 1px solid #babdb6;\r
- border-bottom: 1px solid #babdb6;\r
- border-left: 1px solid #eeeeec;*/\r
- text-align: left;\r
- padding: 5px;\r
- overflow: hidden;\r
-}\r
-\r
-.question-edit {\r
- text-align: left;\r
- overflow: hidden;\r
-}\r
-\r
-.vote-buttons {\r
- float: left;\r
- text-align: center;\r
-}\r
-\r
-.vote-buttons IMG {\r
- cursor: pointer;\r
-}\r
-\r
-.vote-number {\r
- font-family: Arial;\r
- padding: 0px 0 3px 0;\r
- font-size: 140%;\r
- font-weight: bold;\r
- color: #777;\r
-}\r
-\r
-.question-img-upvote:hover {\r
- background: url(../images/vote-arrow-up-on.png)\r
-}\r
-\r
-.question-img-downvote:hover {\r
- background: url(../images/vote-arrow-down-on.png)\r
-}\r
-\r
-.question-img-favorite:hover {\r
- background: url(../images/vote-favorite-on.png)\r
-}\r
-\r
-.favorite-number {\r
- padding: 0px;\r
- font-size: 100%;\r
- font-family: Arial;\r
- font-weight: bold;\r
- color: #777;\r
-}\r
-\r
-.vote-notification {\r
- z-index: 1;\r
- cursor: pointer;\r
- display: none;\r
- position: absolute;\r
- padding: 15px;\r
- color: White;\r
- background-color: darkred;\r
- text-align: center;\r
-}\r
-\r
-.vote-notification a {\r
- color: White;\r
- text-decoration: underline;\r
-}\r
-\r
-.offensive-flag a {\r
- color: #777;\r
- padding: 3px;\r
- cursor: pointer;\r
-}\r
-\r
-.offensive-flag a:hover {\r
- background-color: #777;\r
- text-decoration: none;\r
- color: #fff;\r
-}\r
-\r
-.linksopt a {\r
- color: #777;\r
- padding: 3px;\r
- cursor: pointer;\r
-}\r
-\r
-.linksopt a:hover {\r
- background-color: #777;\r
- text-decoration: none;\r
- color: #fff;\r
-}\r
-\r
-.action-link a {\r
- color: #777;\r
- padding: 3px;\r
- cursor: pointer;\r
-}\r
-\r
-.action-link: a hover {\r
- background-color: #777;\r
- text-decoration: none;\r
- color: #fff;\r
-}\r
-\r
-.action-link-separator {\r
- color: #ccc;\r
-}\r
-\r
-.wiki-category {\r
- margin-left: 5px;\r
- color: #999;\r
- font-size: 90%;\r
-}\r
-\r
-div.comments {\r
- line-height: 150%;\r
- padding: 10px 0;\r
-}\r
-\r
-div.post-comments {\r
- clear: both;\r
- background: url(../images/gray-up-arrow-h18px.png) no-repeat;\r
- width: 100%;\r
- padding-left: 12px;\r
- margin: 3px 0 10px 0;\r
-}\r
-\r
-form.post-comments textarea {\r
- height: 6em;\r
- margin-bottom: 4px;\r
-}\r
-\r
-form.post-comments input {\r
- margin-left: 10px;\r
- margin-top: 1px;\r
- vertical-align: top;\r
- width: 100px;\r
-}\r
-\r
-span.text-counter {\r
- margin-right: 20px;\r
- font-size: 11px;\r
-}\r
-\r
-span.form-error {\r
- color: #990000;\r
- font-weight: normal;\r
- margin-left: 5px;\r
-}\r
-\r
-p.form-item {\r
- margin: 0px;\r
-}\r
-\r
-div.comments-container, div.comments-container-accepted, div.comments-container-owner, div.comments-container-deleted {\r
- padding: 0;\r
-}\r
-\r
-.post-comments a {\r
- color: #888888;\r
- padding: 0 3px 2px;\r
-}\r
-\r
-a.comments-link, a.comments-link-accepted, a.comments-link-owner, a.comments-link-deleted {\r
- color: black;\r
- font-size: 11px;\r
- background: #eeeeee;\r
- padding: 3px;\r
- cursor: pointer;\r
-}\r
-\r
-.post-comments a:hover {\r
- background-color: #777777;\r
- color: white;\r
- text-decoration: none;\r
-}\r
-\r
-a.comment-user, a.comment-user:hover {\r
- background-color: inherit;\r
- color: blue;\r
- padding: 0;\r
-}\r
-\r
-a.comment-user:hover {\r
- text-decoration: underline;\r
-}\r
-\r
-/*??*/\r
-#answers {\r
-}\r
-\r
-.answer {\r
- padding-top: 10px;\r
- width: 100%;\r
- border-bottom: 1px solid #ccccce;\r
-}\r
-\r
-.answer-body {\r
- min-height: 80px;\r
- font-size: 13px;\r
- line-height: 20px;\r
-}\r
-\r
-.answer-body IMG {\r
- max-width: 600px;\r
-}\r
-\r
-.accepted-answer {\r
- background-color: #EBFFE6;\r
- border-bottom-color: #9BD59B;\r
-}\r
-\r
-.accepted-answer .comments-link {\r
- background-color: #CCFFBF;\r
-}\r
-\r
-.accepted-answer .comments-container {\r
- background-color: #CCFFBF;\r
-}\r
-\r
-.answered {\r
- background: #72A0D0;\r
- color: #000000;\r
-}\r
-\r
-.answered-accepted {\r
- background: #8BE334;\r
- color: #000000;\r
-}\r
-\r
-.unanswered {\r
- background: #A40000;\r
- color: white;\r
-}\r
-\r
-.answered-by-owner {\r
- background: #E9E9FF;\r
-}\r
-\r
-.answered-by-owner .comments-link {\r
- background-color: #E6ECFF;\r
-}\r
-\r
-.answered-by-owner .comments-container {\r
- background-color: #E6ECFF;\r
-}\r
-\r
-.answered-accepted strong {\r
- color: #E1E818;\r
-}\r
-\r
-.answer-img-accept:hover {\r
- background: url(../images/vote-accepted-on.png)\r
-}\r
-\r
-.deleted {\r
- background: #F4E7E7 none repeat scroll 0 0;\r
-}\r
-\r
-/*????*/\r
-/*\r
-.tagsbox {}\r
-.tagsbox a {color:#000;line-height:30px;margin-right:10px;font-size:100%;background-color:#F9F7ED;padding:3px;border:1px solid #aaaaaa;}\r
-.tagsbox a:hover {text-decoration:none;background-color:#F9F7ED;color:#B02B2C;} */\r
-.tagsList {\r
- margin: 0;\r
- list-style-type: none;\r
- padding: 0px;\r
- min-height: 360px;\r
-}\r
-\r
-.tagsList li {\r
- width: 235px;\r
- float: left;\r
-}\r
-\r
-.badge-list {\r
- margin: 0;\r
- list-style-type: none;\r
-}\r
-\r
-/*??*/\r
-.list-item {\r
- margin-left: 15px;\r
-}\r
-\r
-.list-item LI {\r
- list-style-type: disc;\r
- font-size: 13px;\r
- line-height: 20px;\r
- margin-bottom: 10px;\r
-}\r
-\r
-/* openid styles */\r
-.form-row {\r
- line-height: 25px;\r
-}\r
-\r
-table.form-as-table {\r
- margin-top: 5px;\r
-}\r
-\r
-table.form-as-table ul {\r
- list-style-type: none;\r
- display: inline;\r
-}\r
-\r
-table.form-as-table li {\r
- display: inline;\r
-}\r
-\r
-table.form-as-table th {\r
- text-align: left;\r
- font-weight: normal;\r
-}\r
-\r
-table.form-as-table pre {\r
- display: inline;\r
-}\r
-\r
-table.check-table td {\r
- padding-right: 50px;\r
-}\r
-\r
-/*.form-row li label {\r
- display: inline\r
-}*/\r
-.submit-row {\r
- line-height: 30px;\r
- padding-top: 10px;\r
- display: block;\r
- clear: both;\r
-}\r
-\r
-.errors {\r
- line-height: 20px;\r
- color: red;\r
-}\r
-\r
-.error {\r
- color: darkred;\r
- margin: 0;\r
- font-size: 10px;\r
-}\r
-\r
-.error-list li {\r
- padding: 5px;\r
-}\r
-\r
-.fieldset {\r
-/* border:solid 1px #777;*/\r
- border: none;\r
- margin-top: 10px;\r
- padding: 10px;\r
-}\r
-\r
-.openid-input {\r
- background: url(../images/openid.gif) no-repeat;\r
- padding-left: 15px;\r
- cursor: pointer;\r
-}\r
-\r
-.openid-login-input {\r
- background-position: center left;\r
- background: url(../images/openid.gif) no-repeat 0% 50%;\r
- padding: 5px 5px 5px 15px;\r
- cursor: pointer;\r
- font-family: Trebuchet MS;\r
- font-weight: 300;\r
- font-size: 150%;\r
- width: 500px;\r
-}\r
-\r
-.openid-login-submit {\r
- height: 40px;\r
- width: 80px;\r
- line-height: 40px;\r
- cursor: pointer;\r
- border: 1px solid #777;\r
- font-weight: bold;\r
- font-size: 120%;\r
-}\r
-\r
-.openid-samples {\r
-\r
-}\r
-\r
-.openid-samples .list, .list li {\r
- font-family: Trebuchet MS, "segoe ui", Helvetica, "Microsoft YaHei", ? ?, Tahoma, Verdana, MingLiu, PMingLiu, Arial, sans-serif;\r
- list-style: none !important;\r
- margin-left: -30px !important;\r
- line-height: 20px !important;\r
-}\r
-\r
-/*????*/\r
-span.form-error {\r
- color: #990000;\r
- font-size: 90%;\r
- font-weight: normal;\r
- margin-left: 5px;\r
-}\r
-\r
-.title-desc {\r
- color: #666666;\r
- font-size: 90%;\r
-}\r
-\r
-/*adjustment for editor preview*/\r
-#editor {\r
- font-size: 100%;\r
- min-height: 200px;\r
- line-height: 18px;\r
- width: 100%;\r
-}\r
-\r
-.wmd-preview {\r
- margin-top: 10px;\r
- padding: 6px;\r
- width: 100%;\r
- background-color: #F5F5F5;\r
- min-height: 20px;\r
-}\r
-\r
-.wmd-preview pre {\r
- background-color: #E7F1F8;\r
-\r
-}\r
-\r
-.wmd-preview blockquote {\r
- background-color: #eee;\r
-}\r
-\r
-.wmd-preview IMG {\r
- max-width: 600px;\r
-}\r
-\r
-.preview-toggle {\r
- font-weight: 600;\r
- width: 100%;\r
- color: #aaa; /*letter-spacing:1px;*/\r
- text-align: left;\r
-}\r
-\r
-.preview-toggle span:hover {\r
- cursor: pointer;\r
-}\r
-\r
-.edit-content-html {\r
- border-top: 1px dotted #D8D2A9;\r
- border-bottom: 1px dotted #D8D2A9;\r
- margin: 5px 0 5px 0;\r
-}\r
-\r
-/*????*/\r
-\r
-#revisions {\r
- width: 950px;\r
-}\r
-\r
-.revision {\r
- margin: 10px 0 10px 0;\r
- width: 100%;\r
- font-size: 13px;\r
-}\r
-\r
-.revision .header {\r
- background-color: #eee;\r
- padding: 5px;\r
- cursor: pointer;\r
-}\r
-\r
-.revision .author {\r
- background-color: #E9E9FF;\r
-}\r
-\r
-.revision .summary {\r
- padding: 5px 0 10px 0;\r
-}\r
-\r
-.revision .summary span {\r
- background-color: yellow;\r
- padding-left: 3px;\r
- padding-right: 3px;\r
- display: inline;\r
-}\r
-\r
-.revision h1 {\r
- font-size: 130%;\r
- font-weight: 600;\r
- padding: 15px 0 15px 0;\r
-}\r
-\r
-.revision-mark {\r
- width: 200px;\r
- text-align: left;\r
- display: inline-block;\r
- font-size: 90%;\r
- overflow: hidden;\r
-}\r
-\r
-.revision-number {\r
- font-size: 300%;\r
- font-weight: bold;\r
- font-family: sans-serif;\r
-}\r
-\r
-.revision .body {\r
- padding-left: 10px;\r
- margin-bottom: 50px;\r
-}\r
-\r
-.revision .answerbody {\r
- padding: 10px 0 5px 10px;\r
-}\r
-\r
-/* Revision pages */\r
-del {\r
- color: #FF5F5F;\r
-}\r
-\r
-del .post-tag {\r
- color: #FF5F5F;\r
-}\r
-\r
-ins {\r
- background-color: #97ff97;\r
-}\r
-\r
-ins .post-tag {\r
- background-color: #97ff97;\r
-}\r
-\r
-/*??????*/\r
-.count {\r
- font-family: Arial;\r
- font-size: 200%;\r
- font-weight: 700;\r
- color: #777\r
-}\r
-\r
-.scoreNumber {\r
- font-family: Arial;\r
- font-size: 35px;\r
- font-weight: 800;\r
- color: #777;\r
- line-height: 40px; /*letter-spacing:0px*/\r
-}\r
-\r
-.user-details {\r
- font-size: 13px;\r
-}\r
-\r
-.user-about {\r
- background-color: #EEEEEE;\r
- height: 200px;\r
- line-height: 20px;\r
- overflow: auto;\r
- padding: 10px;\r
- width: 90%;\r
-}\r
-\r
-.user-edit-link {\r
- background: url(../images/edit.png) no-repeat;\r
- padding-left: 20px;\r
-}\r
-\r
-.favorites-count-off {\r
- color: #919191;\r
- float: left;\r
- padding: 3px;\r
- margin: 10px 0 0 0;\r
- text-align: center;\r
-}\r
-\r
-.favorites-count {\r
- color: #D4A849;\r
- float: left;\r
- padding: 3px;\r
- margin: 10px 0 0 0;\r
- text-align: center;\r
-}\r
-\r
-.favorites-empty {\r
- width: 32px;\r
- height: 45px;\r
- float: left;\r
-}\r
-\r
-.question-summary {\r
- border-bottom: 1px dotted #999999;\r
- float: left;\r
- overflow: hidden;\r
- padding: 11px 0;\r
- width: 670px;\r
-}\r
-\r
-.user-info-table {\r
- width: 950;\r
- margin-bottom: 10px;\r
-}\r
-\r
-.user-stats-table .question-summary {\r
- width: 800px;\r
-}\r
-\r
-.narrow .stats {\r
- background: transparent none repeat scroll 0 0;\r
- float: left;\r
- height: 48px;\r
- margin: 0 0 0 7px;\r
- padding: 0;\r
- width: auto;\r
- font-family: Arial;\r
-}\r
-\r
-.stats div {\r
- font-size: 11px;\r
- text-align: center;\r
-}\r
-\r
-.narrow .votes {\r
- background: #EEEEEE none repeat scroll 0 0;\r
- float: left;\r
- height: 42px;\r
- margin: 0 3px 0 0;\r
- padding: 5px;\r
- width: 46px;\r
- text-align: center;\r
- -moz-border-radius: 5px;\r
- -khtml-border-radius: 5px;\r
- -webkit-border-radius: 5px;\r
-}\r
-\r
-.narrow .summary {\r
- width: 600px;\r
- display: inline-block;\r
-}\r
-\r
-.narrow .summary h3 {\r
- padding: 0px;\r
- margin: 0px;\r
-}\r
-\r
-.narrow .views {\r
- height: 42px;\r
- float: left;\r
- margin: 0 7px 0 0; /*padding:5px 0 5px 4px;*/\r
- padding: 5px;\r
- width: 46px;\r
- text-align: center;\r
- -moz-border-radius: 5px;\r
- -khtml-border-radius: 5px;\r
- -webkit-border-radius: 5px;\r
- color: #777;\r
-}\r
-\r
-.narrow .status {\r
- float: left;\r
- height: 42px;\r
- margin: 0 3px 0 0;\r
- padding: 5px;\r
- width: 46px;\r
- text-align: center;\r
- -moz-border-radius: 5px;\r
- -khtml-border-radius: 5px;\r
- -webkit-border-radius: 5px;\r
-}\r
-\r
-.narrow .vote-count-post {\r
- font-weight: 800;\r
- display: block;\r
- margin: 0;\r
- font-size: 190%;\r
- color: #555;\r
- line-height: 20px;\r
-}\r
-\r
-.narrow .answer-count-post {\r
- font-weight: 800;\r
- display: block;\r
- margin: 0;\r
- font-size: 190%;\r
-}\r
-\r
-.narrow .views-count-post {\r
- font-weight: 800;\r
- display: block;\r
- margin: 0;\r
- font-size: 190%;\r
-}\r
-\r
-div.started {\r
- color: #999999;\r
- float: right;\r
- line-height: 18px;\r
-\r
-}\r
-\r
-.narrow div.started {\r
- line-height: inherit;\r
- padding-top: 4px;\r
- white-space: nowrap;\r
- width: auto;\r
-}\r
-\r
-.relativetime {\r
- font-weight: bold;\r
- text-decoration: none;\r
-}\r
-\r
-div.started a {\r
- font-weight: bold;\r
-}\r
-\r
-div.started .reputation-score {\r
- margin-left: 1px;\r
-}\r
-\r
-.narrow .tags {\r
- float: left;\r
-}\r
-\r
-.answer-summary {\r
- display: block;\r
- clear: both;\r
- padding: 3px;\r
-}\r
-\r
-.answer-votes {\r
- background-color: #EEEEEE;\r
- color: #555555;\r
- float: left;\r
- font-family: Arial;\r
- font-size: 110%;\r
- font-weight: bold;\r
- height: 15px;\r
- padding: 4px 4px 5px;\r
- text-align: center;\r
- text-decoration: none;\r
- width: 20px;\r
- margin-right: 10px;\r
-}\r
-\r
-.vote-count {\r
- font-family: Arial;\r
- font-size: 160%;\r
- font-weight: 700;\r
- color: #777;\r
-}\r
-\r
-.user-action {\r
-\r
-}\r
-\r
-.user-action-1 {\r
- font-weight: bold;\r
- color: #333;\r
-}\r
-\r
-.user-action-2 {\r
- font-weight: bold;\r
- color: #CCC;\r
-}\r
-\r
-.user-action-3 {\r
- color: #333;\r
-}\r
-\r
-.user-action-4 {\r
- color: #333;\r
-}\r
-\r
-.user-action-5 {\r
- color: darkred;\r
-}\r
-\r
-.user-action-6 {\r
- color: darkred;\r
-}\r
-\r
-.user-action-7 {\r
- color: #333;\r
-}\r
-\r
-.user-action-8 {\r
- padding: 3px;\r
- font-weight: bold;\r
- background-color: #CCC;\r
- color: #763333;\r
-}\r
-\r
-.revision-summary {\r
- background-color: #FFFE9B;\r
- padding: 2px;\r
-}\r
-\r
-.question-title-link a {\r
- font-weight: bold;\r
- color: #0077CC;\r
-}\r
-\r
-.answer-title-link a {\r
- color: #333;\r
-}\r
-\r
-.post-type-1 a {\r
- font-weight: bold;\r
-\r
-}\r
-\r
-.post-type-3 a {\r
- font-weight: bold;\r
-\r
-}\r
-\r
-.post-type-5 a {\r
- font-weight: bold;\r
-}\r
-\r
-.post-type-2 a {\r
- color: #333;\r
-}\r
-\r
-.post-type-4 a {\r
- color: #333;\r
-}\r
-\r
-.post-type-6 a {\r
- color: #333;\r
-}\r
-\r
-.post-type-8 a {\r
- color: #333;\r
-}\r
-\r
-/*????*/\r
-.bookInfo {\r
- float: left;\r
- width: 940px;\r
- padding: 5px;\r
-}\r
-\r
-.bookCover {\r
- float: left;\r
- width: 200px;\r
-}\r
-\r
-.bookCover img {\r
- border: 1px solid #ccc;\r
- max-width: 200px;\r
-}\r
-\r
-.bookSummary {\r
- float: left;\r
- font-size: 13px;\r
-}\r
-\r
-.blogRss {\r
- float: right;\r
- margin: 0 10px 0 0;\r
- width: 460px;\r
- height: 240px;\r
- background-color: #EEE;\r
- padding: 5px;\r
-}\r
-\r
-.bookQuestions {\r
- margin-bottom: 10px;\r
-}\r
-\r
-.bookFeed {\r
- float: right;\r
-}\r
-\r
-.bookAsk {\r
-/*letter-spacing:1px; */\r
- float: right;\r
- margin: -30px 10px 0 0;\r
- padding: 3px 5px 3px 5px;\r
-}\r
-\r
-.bookAsk a {\r
- font-size: 15px;\r
- color: #FFF;\r
- font-weight: bold;\r
- text-decoration: none;\r
- background-color: #EC7000;\r
- padding: 3px 6px 3px 6px;\r
-}\r
-\r
-.bookAsk a:hover {\r
- text-decoration: underline;\r
-}\r
-\r
-/*??????*/\r
-.hilite {\r
- background-color: #ff0;\r
-}\r
-\r
-.hilite1 {\r
- background-color: #ff0;\r
-}\r
-\r
-.hilite2 {\r
- background-color: #f0f;\r
-}\r
-\r
-.hilite3 {\r
- background-color: #0ff;\r
-}\r
-\r
-.userStatus {\r
- margin-left: 12px;\r
- color: #FFF;\r
- float: right;\r
-}\r
-\r
-.userStatus a {\r
- color: #FFF;\r
-}\r
-\r
-.gold, .badge1 {\r
- color: #FFCC00;\r
-}\r
-\r
-.silver, .badge2 {\r
- color: #CCCCCC;\r
-}\r
-\r
-.bronze, .badge3 {\r
- color: #CC9933;\r
-}\r
-\r
-.score {\r
- font-weight: 800;\r
- color: #333;\r
-}\r
-\r
-.footerLinks {\r
- color: #EEE;\r
- font-size: 13px; /* letter-spacing:1px;*/\r
-}\r
-\r
-.footerLinks a {\r
- color: #FFF;\r
- font-size: 13px;\r
-}\r
-\r
-.subSearch {\r
- margin-bottom: 12px;\r
- padding: 4px;\r
-}\r
-\r
-a.comment {\r
- background: #EEE;\r
- color: #993300;\r
- padding: 4px;\r
-}\r
-\r
-a.permLink {\r
- padding: 2px;\r
-}\r
-\r
-a.offensive {\r
- color: #999;\r
-}\r
-\r
-ul.bulleta li {\r
- background: url(../images/bullet_green.gif) no-repeat 0px 2px;\r
- padding-left: 16px;\r
- margin-bottom: 4px;\r
-}\r
-\r
-.user {\r
- padding: 5px;\r
- line-height: 140%;\r
- width: 170px;\r
-}\r
-\r
-.user ul {\r
- margin: 0;\r
- list-style-type: none;\r
-}\r
-\r
-.user .thumb {\r
- clear: both;\r
- float: left;\r
- margin-right: 4px;\r
- display: inline;\r
-}\r
-\r
-.yellowbg {\r
- background: yellow;\r
-}\r
-\r
-.message {\r
- padding: 5px;\r
- margin: 10px 0 10px 0;\r
- background-color: #eee;\r
- border: 1px solid #aaaaaa;\r
-}\r
-\r
-.message h1 {\r
- padding-top: 0px;\r
- font-size: 15px;\r
-}\r
-\r
-.message p {\r
- margin-bottom: 0px;\r
-}\r
-\r
-p.space-above {\r
- margin-top: 10px;\r
-}\r
-\r
-.warning {\r
- color: red;\r
-}\r
-\r
-.darkred {\r
- color: darkred;\r
-}\r
-\r
-.submit {\r
- cursor: pointer; /*letter-spacing:1px;*/\r
- background-color: #D4D0C8;\r
- height: 40px;\r
- border: 1px solid #777777; /* width:100px; */\r
- font-weight: bold;\r
- padding-bottom: 4px;\r
- font-size: 120%;\r
-}\r
-\r
-.submit:hover {\r
- text-decoration: underline;\r
-}\r
-\r
-.ask-body {\r
- padding-right: 10px;\r
-}\r
-\r
-.thousand {\r
- color: orange;\r
-}\r
-\r
-.notify {\r
- position: fixed;\r
- top: 0px;\r
- left: 0px;\r
- width: 100%;\r
- z-index: 100;\r
- padding: 0;\r
- text-align: center;\r
- font-weight: Bold;\r
- color: #444;\r
- background-color: #F4A83D;\r
-}\r
-\r
-.notify p {\r
- margin-top: 5px;\r
- margin-bottom: 5px;\r
- font-size: 16px;\r
-}\r
-\r
-#close-notify {\r
- position: absolute;\r
- right: 5px;\r
- top: 5px;\r
- padding: 0 3px 0 3px;\r
- color: #735005;\r
- text-decoration: none;\r
- font-size: 14px;\r
- line-height: 18px;\r
- background-color: #FAD163;\r
- border: 2px #735005 solid;\r
- cursor: pointer;\r
-}\r
-\r
-#close-notify:hover {\r
- text-decoration: none;\r
-}\r
-\r
-.big {\r
- font-size: 15px;\r
-}\r
-\r
-.bigger {\r
- font-size: 14px;\r
-}\r
-\r
-.strong {\r
- font-weight: bold;\r
-}\r
-\r
-.orange {\r
- color: #d64000;\r
- font-weight: bold;\r
-}\r
-\r
-.grey {\r
- color: #808080;\r
-}\r
-\r
-.about div {\r
- padding: 10px 5px 10px 5px;\r
- border-top: 1px dashed #aaaaaa;\r
-}\r
-\r
-.about div.first {\r
- padding-top: 0;\r
- border-top: none;\r
-}\r
-\r
-.about p {\r
- margin-bottom: 10px;\r
-}\r
-\r
-.about a {\r
- color: #d64000;\r
- text-decoration: underline;\r
-}\r
-\r
-.about h3 {\r
- line-height: 30px;\r
- font-size: 15px;\r
- font-weight: 700;\r
- padding-top: 0px;\r
-}\r
-\r
-.highlight {\r
- background-color: #FFF8C6;\r
-}\r
-\r
-.nomargin {\r
- margin: 0;\r
-}\r
-\r
-.margin-bottom {\r
- margin-bottom: 10px;\r
-}\r
-\r
-.margin-top {\r
- margin-top: 10px;\r
-}\r
-\r
-.inline-block {\r
- display: inline-block;\r
-}\r
-\r
-.action-status {\r
- margin: 0;\r
- border: none;\r
- text-align: center;\r
- line-height: 10px;\r
- font-size: 12px;\r
- padding: 0;\r
-}\r
-\r
-.action-status span {\r
- padding: 3px 5px 3px 5px;\r
- background-color: #fff380; /* nice yellow */\r
- font-weight: normal;\r
- -moz-border-radius: 5px;\r
- -khtml-border-radius: 5px;\r
- -webkit-border-radius: 5px;\r
-}\r
-\r
-.tight {\r
- margin: 0;\r
- padding: 0;\r
-}\r
-\r
-.list-table td {\r
- vertical-align: top;\r
-}\r
-\r
-p.comment {\r
- border-top: 1px dotted #ccccce;\r
- margin: 0;\r
- font-size: 11px;\r
- color: #444444;\r
- padding: 5px 0 5px 0;\r
-}\r
-\r
-.delete-icon {\r
- vertical-align: middle;\r
- padding-left: 3px;\r
-}\r
-\r
-/* these need to go */\r
-table.form-as-table .errorlist {\r
- display: block;\r
- margin: 0;\r
- padding: 0 0 0 5px;\r
- text-align: left;\r
- font-size: 10px;\r
- color: darkred;\r
-}\r
-\r
-table.form-as-table input {\r
- display: inline;\r
- margin-left: 4px;\r
-}\r
-\r
-table.form-as-table th {\r
- vertical-align: bottom;\r
- padding-bottom: 4px;\r
-}\r
-\r
-.form-row-vertical {\r
- margin-top: 8px;\r
- display: block;\r
-}\r
-\r
-.form-row-vertical label {\r
- margin-bottom: 3px;\r
- display: block;\r
-}\r
-\r
-/* above stuff needs to go */\r
-.text-align-right {\r
- text-align: center;\r
-}\r
-\r
-ul.form-horizontal-rows {\r
- list-style: none;\r
- margin: 0;\r
-}\r
-\r
-ul.form-horizontal-rows li {\r
- position: relative;\r
- height: 40px;\r
-}\r
-\r
-ul.form-horizontal-rows label {\r
- display: inline-block;\r
-}\r
-\r
-ul.form-horizontal-rows ul.errorlist {\r
- list-style: none;\r
- color: darkred;\r
- font-size: 10px;\r
- line-height: 10px;\r
- position: absolute;\r
- top: 2px;\r
- left: 180px;\r
- text-align: left;\r
- margin: 0;\r
-}\r
-\r
-ul.form-horizontal-rows ul.errorlist li {\r
- height: 10px;\r
-}\r
-\r
-ul.form-horizontal-rows label {\r
- position: absolute;\r
- left: 0px;\r
- bottom: 6px;\r
- margin: 0px;\r
- line-height: 12px;\r
- font-size: 12px;\r
-}\r
-\r
-ul.form-horizontal-rows li input {\r
- position: absolute;\r
- bottom: 0px;\r
- left: 180px;\r
- margin: 0px;\r
-}\r
-\r
-#emailpw-form li input {\r
- left: 170px;\r
-}\r
-\r
-#emailpw-form ul.errorlist {\r
- left: 170px;\r
-}\r
-\r
-#changepw-form li input {\r
- left: 150px;\r
-}\r
-\r
-#changepw-form ul.errorlist {\r
- left: 150px;\r
-}\r
-\r
-.narrow .summary {\r
- float: left;\r
-}\r
-\r
-.narrow .summary .question-title {\r
- font-weight: bold;\r
- font-size: 120%;\r
-}\r
-\r
-.user-profile-tool-links {\r
- padding-bottom: 10px;\r
- font-weight: bold;\r
-}\r
-\r
-.post-controls {\r
- float: left;\r
- font-size: 11px;\r
- line-height: 12px;\r
- min-width: 200px;\r
- margin-bottom: 5px;\r
-}\r
-\r
-#question-controls .tags {\r
- margin: 0 0 3px 0;\r
-}\r
-\r
-.post-update-info-container {\r
- float: right;\r
- min-width: 190px;\r
-}\r
-\r
-.post-update-info {\r
- display: inline-block;\r
- float: right;\r
- width: 190px;\r
- margin-bottom: 5px;\r
-}\r
-\r
-.post-update-info p {\r
- font-size: 11px;\r
- line-height: 15px;\r
- margin: 0 0 4px 0;\r
- padding: 0;\r
-}\r
-\r
-.post-update-info img {\r
- float: left;\r
- width: 32px;\r
- margin: 4px 8px 0 0;\r
-}\r
-\r
-.comments-container {\r
- clear: both;\r
-}\r
-\r
-.admin {\r
- background-color: #fff380; /* nice yellow */\r
- border: 1px solid darkred;\r
- padding: 0 5px 0 5px;\r
-}\r
-\r
-.admin p {\r
- margin-bottom: 3px;\r
-}\r
-\r
-.admin #action_status {\r
- text-align: center;\r
- font-weight: bold;\r
-}\r
-\r
-#tagSelector {\r
- padding-bottom: 2px;\r
-}\r
-\r
-#hideIgnoredTagsControl {\r
- margin: 5px 0 0 0;\r
-}\r
-\r
-#hideIgnoredTagsCb {\r
- margin: 0 2px 0 1px;\r
-}\r
-\r
-#recaptcha_widget_div {\r
- width: 318px;\r
- float: left;\r
- clear: both;\r
-}\r
-\r
-p.signup_p {\r
- margin: 20px 0px 0px 0px;\r
-}\r
-\r
-.simple-subscribe-options ul {\r
- list-style: none;\r
- list-style-position: outside;\r
- margin: 0;\r
-}\r
-\r
-a.sidebar_button {\r
- color: black;\r
- font-size: 11px;\r
- background: #eeeeee;\r
- padding: 3px;\r
- cursor: pointer;\r
-}\r
-\r
-a.sidebar_button:hover {\r
- background-color: #777777;\r
- color: white;\r
- text-decoration: none;\r
-}
\ No newline at end of file
+++ /dev/null
-<!-- template header.html -->\r
-{% load extra_tags %}\r
-{% load i18n %}\r
-{% load user_tags %}\r
- <div id="roof">\r
- <div id="navBar">\r
- <div id="top">\r
- {% if request.user.is_authenticated %}\r
- {% if request.user.is_superuser %}\r
- <a href="{% url admin_index %}">{% trans "administration" %}</a>\r
- {% endif %}\r
- {% user_signature_small_full request.user %}\r
- <a href="{% url logout %}">{% trans "logout" %}</a>\r
- {% else %}\r
- <a href="{% url auth_signin %}">{% trans "login" %}</a>\r
- {% endif %}\r
- <a href="{% url about %}">{% trans "about" %}</a>\r
- <a href="{% url faq %}">{% trans "faq" %}</a>\r
- </div>\r
- <table width="100%" border="0" cellspacing="0" cellpadding="0">\r
- <tr>\r
- <td width="23%">\r
- <div id="logo">\r
- <a href="{% url index %}">\r
- <img src="{{ settings.APP_LOGO }}" title="{% trans "back to home page" %}" alt="{{settings.APP_TITLE}} logo"/>\r
- </a>\r
- </div>\r
- </td>\r
- <td width="77%" valign="bottom">\r
- <div class="nav">\r
- <a id="nav_questions" href="{% url questions %}" >{% trans "questions" %}</a>\r
- <a id="nav_tags" href="{% url tags %}">{% trans "tags" %}</a>\r
- <a id="nav_users" href="{% url users %}">{% trans "users" %}</a>\r
- {% if settings.BOOKS_ON %}\r
- <a id="nav_books" href="{% url books %}">{% trans "books" %}</a>\r
- {% endif %}\r
- <a id="nav_badges" href="{% url badges %}">{% trans "badges" %}</a>\r
- <a id="nav_unanswered" href="{% url unanswered %}">{% trans "unanswered questions" %}</a>\r
- <div class="focus">\r
- <a id="nav_ask" href="{% url search %}" class="special">{% trans "advanced search" %}</a>\r
- </div>\r
- </div>\r
-\r
- </td>\r
- </tr>\r
- </table>\r
- </div>\r
- <div id="searchBar">\r
- <form action="{% url ask %}" method="post">\r
- <div id="ask_teaser">Your question:</div>\r
- <div id="ask_input">\r
- <input type="text" class="searchInput" value="{{ keywords }}" name="q" id="keywords" />\r
- <input type="submit" value="{% trans "GO" %}" name="go" id="go_btn" />\r
- </div>\r
- </form>\r
- </div>\r
- </div>\r
-<!-- end template header.html -->\r
+++ /dev/null
-{% extends "base.html" %}\r
-\r
-{% load i18n %}\r
-\r
-{% block content %}\r
-<div id="main-bar" class="headNormal">\r
- {% blocktrans with settings.APP_SHORT_NAME as app_name %}\r
- Search in {{ app_name }}\r
- {% endblocktrans %}\r
-</div>\r
-<div id="main-body" style="text-align: center; height: 400px;">\r
-<form action="{% url search %}" method="get">\r
- <div>\r
- <input type="text" class="searchInput" value="{{ keywords }}" name="q" id="keywords" style="width: 600px" />\r
- <input type="submit" name="Submit" value="{% trans "search" %}" class="searchBtn" />\r
- </div>\r
- <div class="options">\r
- <input id="type-question" type="radio" value="question" name="t"\r
- checked="checked" /><label for="type-question">{% trans "questions" %}</label>\r
- <input id="type-tag" type="radio" value="tag" name="t" /><label for="type-tag">{% trans "tags" %}</label>\r
- <input id="type-user" type="radio" value="user" name="t" /><label for="type-user">{% trans "users" %}</label>\r
- </div>\r
-</form>\r
-</div>\r
-{% endblock %}
\ No newline at end of file
+++ /dev/null
-java -jar yuicompressor-2.4.2.jar --type js --charset utf-8 osqa.main.js -o osqa.main.min.js
+++ /dev/null
-if(!document.createElement("canvas").getContext){(function(){var z=Math;var K=z.round;var J=z.sin;var U=z.cos;var b=z.abs;var k=z.sqrt;var D=10;var F=D/2;function T(){return this.context_||(this.context_=new W(this))}var O=Array.prototype.slice;function G(i,j,m){var Z=O.call(arguments,2);return function(){return i.apply(j,Z.concat(O.call(arguments)))}}function AD(Z){return String(Z).replace(/&/g,"&").replace(/"/g,""")}function r(i){if(!i.namespaces.g_vml_){i.namespaces.add("g_vml_","urn:schemas-microsoft-com:vml","#default#VML")}if(!i.namespaces.g_o_){i.namespaces.add("g_o_","urn:schemas-microsoft-com:office:office","#default#VML")}if(!i.styleSheets.ex_canvas_){var Z=i.createStyleSheet();Z.owningElement.id="ex_canvas_";Z.cssText="canvas{display:inline-block;overflow:hidden;text-align:left;width:300px;height:150px}"}}r(document);var E={init:function(Z){if(/MSIE/.test(navigator.userAgent)&&!window.opera){var i=Z||document;i.createElement("canvas");i.attachEvent("onreadystatechange",G(this.init_,this,i))}},init_:function(m){var j=m.getElementsByTagName("canvas");for(var Z=0;Z<j.length;Z++){this.initElement(j[Z])}},initElement:function(i){if(!i.getContext){i.getContext=T;r(i.ownerDocument);i.innerHTML="";i.attachEvent("onpropertychange",S);i.attachEvent("onresize",w);var Z=i.attributes;if(Z.width&&Z.width.specified){i.style.width=Z.width.nodeValue+"px"}else{i.width=i.clientWidth}if(Z.height&&Z.height.specified){i.style.height=Z.height.nodeValue+"px"}else{i.height=i.clientHeight}}return i}};function S(i){var Z=i.srcElement;switch(i.propertyName){case"width":Z.getContext().clearRect();Z.style.width=Z.attributes.width.nodeValue+"px";Z.firstChild.style.width=Z.clientWidth+"px";break;case"height":Z.getContext().clearRect();Z.style.height=Z.attributes.height.nodeValue+"px";Z.firstChild.style.height=Z.clientHeight+"px";break}}function w(i){var Z=i.srcElement;if(Z.firstChild){Z.firstChild.style.width=Z.clientWidth+"px";Z.firstChild.style.height=Z.clientHeight+"px"}}E.init();var I=[];for(var AC=0;AC<16;AC++){for(var AB=0;AB<16;AB++){I[AC*16+AB]=AC.toString(16)+AB.toString(16)}}function V(){return[[1,0,0],[0,1,0],[0,0,1]]}function d(m,j){var i=V();for(var Z=0;Z<3;Z++){for(var AF=0;AF<3;AF++){var p=0;for(var AE=0;AE<3;AE++){p+=m[Z][AE]*j[AE][AF]}i[Z][AF]=p}}return i}function Q(i,Z){Z.fillStyle=i.fillStyle;Z.lineCap=i.lineCap;Z.lineJoin=i.lineJoin;Z.lineWidth=i.lineWidth;Z.miterLimit=i.miterLimit;Z.shadowBlur=i.shadowBlur;Z.shadowColor=i.shadowColor;Z.shadowOffsetX=i.shadowOffsetX;Z.shadowOffsetY=i.shadowOffsetY;Z.strokeStyle=i.strokeStyle;Z.globalAlpha=i.globalAlpha;Z.font=i.font;Z.textAlign=i.textAlign;Z.textBaseline=i.textBaseline;Z.arcScaleX_=i.arcScaleX_;Z.arcScaleY_=i.arcScaleY_;Z.lineScale_=i.lineScale_}var B={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",grey:"#808080",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",oldlace:"#FDF5E6",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",whitesmoke:"#F5F5F5",yellowgreen:"#9ACD32"};function g(i){var m=i.indexOf("(",3);var Z=i.indexOf(")",m+1);var j=i.substring(m+1,Z).split(",");if(j.length==4&&i.substr(3,1)=="a"){alpha=Number(j[3])}else{j[3]=1}return j}function C(Z){return parseFloat(Z)/100}function N(i,j,Z){return Math.min(Z,Math.max(j,i))}function c(AF){var j,i,Z;h=parseFloat(AF[0])/360%360;if(h<0){h++}s=N(C(AF[1]),0,1);l=N(C(AF[2]),0,1);if(s==0){j=i=Z=l}else{var m=l<0.5?l*(1+s):l+s-l*s;var AE=2*l-m;j=A(AE,m,h+1/3);i=A(AE,m,h);Z=A(AE,m,h-1/3)}return"#"+I[Math.floor(j*255)]+I[Math.floor(i*255)]+I[Math.floor(Z*255)]}function A(i,Z,j){if(j<0){j++}if(j>1){j--}if(6*j<1){return i+(Z-i)*6*j}else{if(2*j<1){return Z}else{if(3*j<2){return i+(Z-i)*(2/3-j)*6}else{return i}}}}function Y(Z){var AE,p=1;Z=String(Z);if(Z.charAt(0)=="#"){AE=Z}else{if(/^rgb/.test(Z)){var m=g(Z);var AE="#",AF;for(var j=0;j<3;j++){if(m[j].indexOf("%")!=-1){AF=Math.floor(C(m[j])*255)}else{AF=Number(m[j])}AE+=I[N(AF,0,255)]}p=m[3]}else{if(/^hsl/.test(Z)){var m=g(Z);AE=c(m);p=m[3]}else{AE=B[Z]||Z}}}return{color:AE,alpha:p}}var L={style:"normal",variant:"normal",weight:"normal",size:10,family:"sans-serif"};var f={};function X(Z){if(f[Z]){return f[Z]}var m=document.createElement("div");var j=m.style;try{j.font=Z}catch(i){}return f[Z]={style:j.fontStyle||L.style,variant:j.fontVariant||L.variant,weight:j.fontWeight||L.weight,size:j.fontSize||L.size,family:j.fontFamily||L.family}}function P(j,i){var Z={};for(var AF in j){Z[AF]=j[AF]}var AE=parseFloat(i.currentStyle.fontSize),m=parseFloat(j.size);if(typeof j.size=="number"){Z.size=j.size}else{if(j.size.indexOf("px")!=-1){Z.size=m}else{if(j.size.indexOf("em")!=-1){Z.size=AE*m}else{if(j.size.indexOf("%")!=-1){Z.size=(AE/100)*m}else{if(j.size.indexOf("pt")!=-1){Z.size=m/0.75}else{Z.size=AE}}}}}Z.size*=0.981;return Z}function AA(Z){return Z.style+" "+Z.variant+" "+Z.weight+" "+Z.size+"px "+Z.family}function t(Z){switch(Z){case"butt":return"flat";case"round":return"round";case"square":default:return"square"}}function W(i){this.m_=V();this.mStack_=[];this.aStack_=[];this.currentPath_=[];this.strokeStyle="#000";this.fillStyle="#000";this.lineWidth=1;this.lineJoin="miter";this.lineCap="butt";this.miterLimit=D*1;this.globalAlpha=1;this.font="10px sans-serif";this.textAlign="left";this.textBaseline="alphabetic";this.canvas=i;var Z=i.ownerDocument.createElement("div");Z.style.width=i.clientWidth+"px";Z.style.height=i.clientHeight+"px";Z.style.overflow="hidden";Z.style.position="absolute";i.appendChild(Z);this.element_=Z;this.arcScaleX_=1;this.arcScaleY_=1;this.lineScale_=1}var M=W.prototype;M.clearRect=function(){if(this.textMeasureEl_){this.textMeasureEl_.removeNode(true);this.textMeasureEl_=null}this.element_.innerHTML=""};M.beginPath=function(){this.currentPath_=[]};M.moveTo=function(i,Z){var j=this.getCoords_(i,Z);this.currentPath_.push({type:"moveTo",x:j.x,y:j.y});this.currentX_=j.x;this.currentY_=j.y};M.lineTo=function(i,Z){var j=this.getCoords_(i,Z);this.currentPath_.push({type:"lineTo",x:j.x,y:j.y});this.currentX_=j.x;this.currentY_=j.y};M.bezierCurveTo=function(j,i,AI,AH,AG,AE){var Z=this.getCoords_(AG,AE);var AF=this.getCoords_(j,i);var m=this.getCoords_(AI,AH);e(this,AF,m,Z)};function e(Z,m,j,i){Z.currentPath_.push({type:"bezierCurveTo",cp1x:m.x,cp1y:m.y,cp2x:j.x,cp2y:j.y,x:i.x,y:i.y});Z.currentX_=i.x;Z.currentY_=i.y}M.quadraticCurveTo=function(AG,j,i,Z){var AF=this.getCoords_(AG,j);var AE=this.getCoords_(i,Z);var AH={x:this.currentX_+2/3*(AF.x-this.currentX_),y:this.currentY_+2/3*(AF.y-this.currentY_)};var m={x:AH.x+(AE.x-this.currentX_)/3,y:AH.y+(AE.y-this.currentY_)/3};e(this,AH,m,AE)};M.arc=function(AJ,AH,AI,AE,i,j){AI*=D;var AN=j?"at":"wa";var AK=AJ+U(AE)*AI-F;var AM=AH+J(AE)*AI-F;var Z=AJ+U(i)*AI-F;var AL=AH+J(i)*AI-F;if(AK==Z&&!j){AK+=0.125}var m=this.getCoords_(AJ,AH);var AG=this.getCoords_(AK,AM);var AF=this.getCoords_(Z,AL);this.currentPath_.push({type:AN,x:m.x,y:m.y,radius:AI,xStart:AG.x,yStart:AG.y,xEnd:AF.x,yEnd:AF.y})};M.rect=function(j,i,Z,m){this.moveTo(j,i);this.lineTo(j+Z,i);this.lineTo(j+Z,i+m);this.lineTo(j,i+m);this.closePath()};M.strokeRect=function(j,i,Z,m){var p=this.currentPath_;this.beginPath();this.moveTo(j,i);this.lineTo(j+Z,i);this.lineTo(j+Z,i+m);this.lineTo(j,i+m);this.closePath();this.stroke();this.currentPath_=p};M.fillRect=function(j,i,Z,m){var p=this.currentPath_;this.beginPath();this.moveTo(j,i);this.lineTo(j+Z,i);this.lineTo(j+Z,i+m);this.lineTo(j,i+m);this.closePath();this.fill();this.currentPath_=p};M.createLinearGradient=function(i,m,Z,j){var p=new v("gradient");p.x0_=i;p.y0_=m;p.x1_=Z;p.y1_=j;return p};M.createRadialGradient=function(m,AE,j,i,p,Z){var AF=new v("gradientradial");AF.x0_=m;AF.y0_=AE;AF.r0_=j;AF.x1_=i;AF.y1_=p;AF.r1_=Z;return AF};M.drawImage=function(AO,j){var AH,AF,AJ,AV,AM,AK,AQ,AX;var AI=AO.runtimeStyle.width;var AN=AO.runtimeStyle.height;AO.runtimeStyle.width="auto";AO.runtimeStyle.height="auto";var AG=AO.width;var AT=AO.height;AO.runtimeStyle.width=AI;AO.runtimeStyle.height=AN;if(arguments.length==3){AH=arguments[1];AF=arguments[2];AM=AK=0;AQ=AJ=AG;AX=AV=AT}else{if(arguments.length==5){AH=arguments[1];AF=arguments[2];AJ=arguments[3];AV=arguments[4];AM=AK=0;AQ=AG;AX=AT}else{if(arguments.length==9){AM=arguments[1];AK=arguments[2];AQ=arguments[3];AX=arguments[4];AH=arguments[5];AF=arguments[6];AJ=arguments[7];AV=arguments[8]}else{throw Error("Invalid number of arguments")}}}var AW=this.getCoords_(AH,AF);var m=AQ/2;var i=AX/2;var AU=[];var Z=10;var AE=10;AU.push(" <g_vml_:group",' coordsize="',D*Z,",",D*AE,'"',' coordorigin="0,0"',' style="width:',Z,"px;height:",AE,"px;position:absolute;");if(this.m_[0][0]!=1||this.m_[0][1]||this.m_[1][1]!=1||this.m_[1][0]){var p=[];p.push("M11=",this.m_[0][0],",","M12=",this.m_[1][0],",","M21=",this.m_[0][1],",","M22=",this.m_[1][1],",","Dx=",K(AW.x/D),",","Dy=",K(AW.y/D),"");var AS=AW;var AR=this.getCoords_(AH+AJ,AF);var AP=this.getCoords_(AH,AF+AV);var AL=this.getCoords_(AH+AJ,AF+AV);AS.x=z.max(AS.x,AR.x,AP.x,AL.x);AS.y=z.max(AS.y,AR.y,AP.y,AL.y);AU.push("padding:0 ",K(AS.x/D),"px ",K(AS.y/D),"px 0;filter:progid:DXImageTransform.Microsoft.Matrix(",p.join(""),", sizingmethod='clip');")}else{AU.push("top:",K(AW.y/D),"px;left:",K(AW.x/D),"px;")}AU.push(' ">','<g_vml_:image src="',AO.src,'"',' style="width:',D*AJ,"px;"," height:",D*AV,'px"',' cropleft="',AM/AG,'"',' croptop="',AK/AT,'"',' cropright="',(AG-AM-AQ)/AG,'"',' cropbottom="',(AT-AK-AX)/AT,'"'," />","</g_vml_:group>");this.element_.insertAdjacentHTML("BeforeEnd",AU.join(""))};M.stroke=function(AM){var m=10;var AN=10;var AE=5000;var AG={x:null,y:null};var AL={x:null,y:null};for(var AH=0;AH<this.currentPath_.length;AH+=AE){var AK=[];var AF=false;AK.push("<g_vml_:shape",' filled="',!!AM,'"',' style="position:absolute;width:',m,"px;height:",AN,'px;"',' coordorigin="0,0"',' coordsize="',D*m,",",D*AN,'"',' stroked="',!AM,'"',' path="');var AO=false;for(var AI=AH;AI<Math.min(AH+AE,this.currentPath_.length);AI++){if(AI%AE==0&&AI>0){AK.push(" m ",K(this.currentPath_[AI-1].x),",",K(this.currentPath_[AI-1].y))}var Z=this.currentPath_[AI];var AJ;switch(Z.type){case"moveTo":AJ=Z;AK.push(" m ",K(Z.x),",",K(Z.y));break;case"lineTo":AK.push(" l ",K(Z.x),",",K(Z.y));break;case"close":AK.push(" x ");Z=null;break;case"bezierCurveTo":AK.push(" c ",K(Z.cp1x),",",K(Z.cp1y),",",K(Z.cp2x),",",K(Z.cp2y),",",K(Z.x),",",K(Z.y));break;case"at":case"wa":AK.push(" ",Z.type," ",K(Z.x-this.arcScaleX_*Z.radius),",",K(Z.y-this.arcScaleY_*Z.radius)," ",K(Z.x+this.arcScaleX_*Z.radius),",",K(Z.y+this.arcScaleY_*Z.radius)," ",K(Z.xStart),",",K(Z.yStart)," ",K(Z.xEnd),",",K(Z.yEnd));break}if(Z){if(AG.x==null||Z.x<AG.x){AG.x=Z.x}if(AL.x==null||Z.x>AL.x){AL.x=Z.x}if(AG.y==null||Z.y<AG.y){AG.y=Z.y}if(AL.y==null||Z.y>AL.y){AL.y=Z.y}}}AK.push(' ">');if(!AM){R(this,AK)}else{a(this,AK,AG,AL)}AK.push("</g_vml_:shape>");this.element_.insertAdjacentHTML("beforeEnd",AK.join(""))}};function R(j,AE){var i=Y(j.strokeStyle);var m=i.color;var p=i.alpha*j.globalAlpha;var Z=j.lineScale_*j.lineWidth;if(Z<1){p*=Z}AE.push("<g_vml_:stroke",' opacity="',p,'"',' joinstyle="',j.lineJoin,'"',' miterlimit="',j.miterLimit,'"',' endcap="',t(j.lineCap),'"',' weight="',Z,'px"',' color="',m,'" />')}function a(AO,AG,Ah,AP){var AH=AO.fillStyle;var AY=AO.arcScaleX_;var AX=AO.arcScaleY_;var Z=AP.x-Ah.x;var m=AP.y-Ah.y;if(AH instanceof v){var AL=0;var Ac={x:0,y:0};var AU=0;var AK=1;if(AH.type_=="gradient"){var AJ=AH.x0_/AY;var j=AH.y0_/AX;var AI=AH.x1_/AY;var Aj=AH.y1_/AX;var Ag=AO.getCoords_(AJ,j);var Af=AO.getCoords_(AI,Aj);var AE=Af.x-Ag.x;var p=Af.y-Ag.y;AL=Math.atan2(AE,p)*180/Math.PI;if(AL<0){AL+=360}if(AL<0.000001){AL=0}}else{var Ag=AO.getCoords_(AH.x0_,AH.y0_);Ac={x:(Ag.x-Ah.x)/Z,y:(Ag.y-Ah.y)/m};Z/=AY*D;m/=AX*D;var Aa=z.max(Z,m);AU=2*AH.r0_/Aa;AK=2*AH.r1_/Aa-AU}var AS=AH.colors_;AS.sort(function(Ak,i){return Ak.offset-i.offset});var AN=AS.length;var AR=AS[0].color;var AQ=AS[AN-1].color;var AW=AS[0].alpha*AO.globalAlpha;var AV=AS[AN-1].alpha*AO.globalAlpha;var Ab=[];for(var Ae=0;Ae<AN;Ae++){var AM=AS[Ae];Ab.push(AM.offset*AK+AU+" "+AM.color)}AG.push('<g_vml_:fill type="',AH.type_,'"',' method="none" focus="100%"',' color="',AR,'"',' color2="',AQ,'"',' colors="',Ab.join(","),'"',' opacity="',AV,'"',' g_o_:opacity2="',AW,'"',' angle="',AL,'"',' focusposition="',Ac.x,",",Ac.y,'" />')}else{if(AH instanceof u){if(Z&&m){var AF=-Ah.x;var AZ=-Ah.y;AG.push("<g_vml_:fill",' position="',AF/Z*AY*AY,",",AZ/m*AX*AX,'"',' type="tile"',' src="',AH.src_,'" />')}}else{var Ai=Y(AO.fillStyle);var AT=Ai.color;var Ad=Ai.alpha*AO.globalAlpha;AG.push('<g_vml_:fill color="',AT,'" opacity="',Ad,'" />')}}}M.fill=function(){this.stroke(true)};M.closePath=function(){this.currentPath_.push({type:"close"})};M.getCoords_=function(j,i){var Z=this.m_;return{x:D*(j*Z[0][0]+i*Z[1][0]+Z[2][0])-F,y:D*(j*Z[0][1]+i*Z[1][1]+Z[2][1])-F}};M.save=function(){var Z={};Q(this,Z);this.aStack_.push(Z);this.mStack_.push(this.m_);this.m_=d(V(),this.m_)};M.restore=function(){if(this.aStack_.length){Q(this.aStack_.pop(),this);this.m_=this.mStack_.pop()}};function H(Z){return isFinite(Z[0][0])&&isFinite(Z[0][1])&&isFinite(Z[1][0])&&isFinite(Z[1][1])&&isFinite(Z[2][0])&&isFinite(Z[2][1])}function y(i,Z,j){if(!H(Z)){return }i.m_=Z;if(j){var p=Z[0][0]*Z[1][1]-Z[0][1]*Z[1][0];i.lineScale_=k(b(p))}}M.translate=function(j,i){var Z=[[1,0,0],[0,1,0],[j,i,1]];y(this,d(Z,this.m_),false)};M.rotate=function(i){var m=U(i);var j=J(i);var Z=[[m,j,0],[-j,m,0],[0,0,1]];y(this,d(Z,this.m_),false)};M.scale=function(j,i){this.arcScaleX_*=j;this.arcScaleY_*=i;var Z=[[j,0,0],[0,i,0],[0,0,1]];y(this,d(Z,this.m_),true)};M.transform=function(p,m,AF,AE,i,Z){var j=[[p,m,0],[AF,AE,0],[i,Z,1]];y(this,d(j,this.m_),true)};M.setTransform=function(AE,p,AG,AF,j,i){var Z=[[AE,p,0],[AG,AF,0],[j,i,1]];y(this,Z,true)};M.drawText_=function(AK,AI,AH,AN,AG){var AM=this.m_,AQ=1000,i=0,AP=AQ,AF={x:0,y:0},AE=[];var Z=P(X(this.font),this.element_);var j=AA(Z);var AR=this.element_.currentStyle;var p=this.textAlign.toLowerCase();switch(p){case"left":case"center":case"right":break;case"end":p=AR.direction=="ltr"?"right":"left";break;case"start":p=AR.direction=="rtl"?"right":"left";break;default:p="left"}switch(this.textBaseline){case"hanging":case"top":AF.y=Z.size/1.75;break;case"middle":break;default:case null:case"alphabetic":case"ideographic":case"bottom":AF.y=-Z.size/2.25;break}switch(p){case"right":i=AQ;AP=0.05;break;case"center":i=AP=AQ/2;break}var AO=this.getCoords_(AI+AF.x,AH+AF.y);AE.push('<g_vml_:line from="',-i,' 0" to="',AP,' 0.05" ',' coordsize="100 100" coordorigin="0 0"',' filled="',!AG,'" stroked="',!!AG,'" style="position:absolute;width:1px;height:1px;">');if(AG){R(this,AE)}else{a(this,AE,{x:-i,y:0},{x:AP,y:Z.size})}var AL=AM[0][0].toFixed(3)+","+AM[1][0].toFixed(3)+","+AM[0][1].toFixed(3)+","+AM[1][1].toFixed(3)+",0,0";var AJ=K(AO.x/D)+","+K(AO.y/D);AE.push('<g_vml_:skew on="t" matrix="',AL,'" ',' offset="',AJ,'" origin="',i,' 0" />','<g_vml_:path textpathok="true" />','<g_vml_:textpath on="true" string="',AD(AK),'" style="v-text-align:',p,";font:",AD(j),'" /></g_vml_:line>');this.element_.insertAdjacentHTML("beforeEnd",AE.join(""))};M.fillText=function(j,Z,m,i){this.drawText_(j,Z,m,i,false)};M.strokeText=function(j,Z,m,i){this.drawText_(j,Z,m,i,true)};M.measureText=function(j){if(!this.textMeasureEl_){var Z='<span style="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;"></span>';this.element_.insertAdjacentHTML("beforeEnd",Z);this.textMeasureEl_=this.element_.lastChild}var i=this.element_.ownerDocument;this.textMeasureEl_.innerHTML="";this.textMeasureEl_.style.font=this.font;this.textMeasureEl_.appendChild(i.createTextNode(j));return{width:this.textMeasureEl_.offsetWidth}};M.clip=function(){};M.arcTo=function(){};M.createPattern=function(i,Z){return new u(i,Z)};function v(Z){this.type_=Z;this.x0_=0;this.y0_=0;this.r0_=0;this.x1_=0;this.y1_=0;this.r1_=0;this.colors_=[]}v.prototype.addColorStop=function(i,Z){Z=Y(Z);this.colors_.push({offset:i,color:Z.color,alpha:Z.alpha})};function u(i,Z){q(i);switch(Z){case"repeat":case null:case"":this.repetition_="repeat";break;case"repeat-x":case"repeat-y":case"no-repeat":this.repetition_=Z;break;default:n("SYNTAX_ERR")}this.src_=i.src;this.width_=i.width;this.height_=i.height}function n(Z){throw new o(Z)}function q(Z){if(!Z||Z.nodeType!=1||Z.tagName!="IMG"){n("TYPE_MISMATCH_ERR")}if(Z.readyState!="complete"){n("INVALID_STATE_ERR")}}function o(Z){this.code=this[Z];this.message=Z+": DOM Exception "+this.code}var x=o.prototype=new Error;x.INDEX_SIZE_ERR=1;x.DOMSTRING_SIZE_ERR=2;x.HIERARCHY_REQUEST_ERR=3;x.WRONG_DOCUMENT_ERR=4;x.INVALID_CHARACTER_ERR=5;x.NO_DATA_ALLOWED_ERR=6;x.NO_MODIFICATION_ALLOWED_ERR=7;x.NOT_FOUND_ERR=8;x.NOT_SUPPORTED_ERR=9;x.INUSE_ATTRIBUTE_ERR=10;x.INVALID_STATE_ERR=11;x.SYNTAX_ERR=12;x.INVALID_MODIFICATION_ERR=13;x.NAMESPACE_ERR=14;x.INVALID_ACCESS_ERR=15;x.VALIDATION_ERR=16;x.TYPE_MISMATCH_ERR=17;G_vmlCanvasManager=E;CanvasRenderingContext2D=W;CanvasGradient=v;CanvasPattern=u;DOMException=o})()};
\ No newline at end of file
+++ /dev/null
-java -jar yuicompressor-2.4.2.jar --type js --charset utf-8 jquery.flot.js -o jquery.flot.pack.js
-
-pause
+++ /dev/null
-(function(){
-/*
- * jQuery 1.2.6 - New Wave Javascript
- *
- * Copyright (c) 2008 John Resig (jquery.com)
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * and GPL (GPL-LICENSE.txt) licenses.
- *
- * $Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008) $
- * $Rev: 5685 $
- */
-
-// Map over jQuery in case of overwrite
-var _jQuery = window.jQuery,
-// Map over the $ in case of overwrite
- _$ = window.$;
-
-var jQuery = window.jQuery = window.$ = function( selector, context ) {
- // The jQuery object is actually just the init constructor 'enhanced'
- return new jQuery.fn.init( selector, context );
-};
-
-// A simple way to check for HTML strings or ID strings
-// (both of which we optimize for)
-var quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/,
-
-// Is it a simple selector
- isSimple = /^.[^:#\[\.]*$/,
-
-// Will speed up references to undefined, and allows munging its name.
- undefined;
-
-jQuery.fn = jQuery.prototype = {
- init: function( selector, context ) {
- // Make sure that a selection was provided
- selector = selector || document;
-
- // Handle $(DOMElement)
- if ( selector.nodeType ) {
- this[0] = selector;
- this.length = 1;
- return this;
- }
- // Handle HTML strings
- if ( typeof selector == "string" ) {
- // Are we dealing with HTML string or an ID?
- var match = quickExpr.exec( selector );
-
- // Verify a match, and that no context was specified for #id
- if ( match && (match[1] || !context) ) {
-
- // HANDLE: $(html) -> $(array)
- if ( match[1] )
- selector = jQuery.clean( [ match[1] ], context );
-
- // HANDLE: $("#id")
- else {
- var elem = document.getElementById( match[3] );
-
- // Make sure an element was located
- if ( elem ){
- // Handle the case where IE and Opera return items
- // by name instead of ID
- if ( elem.id != match[3] )
- return jQuery().find( selector );
-
- // Otherwise, we inject the element directly into the jQuery object
- return jQuery( elem );
- }
- selector = [];
- }
-
- // HANDLE: $(expr, [context])
- // (which is just equivalent to: $(content).find(expr)
- } else
- return jQuery( context ).find( selector );
-
- // HANDLE: $(function)
- // Shortcut for document ready
- } else if ( jQuery.isFunction( selector ) )
- return jQuery( document )[ jQuery.fn.ready ? "ready" : "load" ]( selector );
-
- return this.setArray(jQuery.makeArray(selector));
- },
-
- // The current version of jQuery being used
- jquery: "1.2.6",
-
- // The number of elements contained in the matched element set
- size: function() {
- return this.length;
- },
-
- // The number of elements contained in the matched element set
- length: 0,
-
- // Get the Nth element in the matched element set OR
- // Get the whole matched element set as a clean array
- get: function( num ) {
- return num == undefined ?
-
- // Return a 'clean' array
- jQuery.makeArray( this ) :
-
- // Return just the object
- this[ num ];
- },
-
- // Take an array of elements and push it onto the stack
- // (returning the new matched element set)
- pushStack: function( elems ) {
- // Build a new jQuery matched element set
- var ret = jQuery( elems );
-
- // Add the old object onto the stack (as a reference)
- ret.prevObject = this;
-
- // Return the newly-formed element set
- return ret;
- },
-
- // Force the current matched set of elements to become
- // the specified array of elements (destroying the stack in the process)
- // You should use pushStack() in order to do this, but maintain the stack
- setArray: function( elems ) {
- // Resetting the length to 0, then using the native Array push
- // is a super-fast way to populate an object with array-like properties
- this.length = 0;
- Array.prototype.push.apply( this, elems );
-
- return this;
- },
-
- // Execute a callback for every element in the matched set.
- // (You can seed the arguments with an array of args, but this is
- // only used internally.)
- each: function( callback, args ) {
- return jQuery.each( this, callback, args );
- },
-
- // Determine the position of an element within
- // the matched set of elements
- index: function( elem ) {
- var ret = -1;
-
- // Locate the position of the desired element
- return jQuery.inArray(
- // If it receives a jQuery object, the first element is used
- elem && elem.jquery ? elem[0] : elem
- , this );
- },
-
- attr: function( name, value, type ) {
- var options = name;
-
- // Look for the case where we're accessing a style value
- if ( name.constructor == String )
- if ( value === undefined )
- return this[0] && jQuery[ type || "attr" ]( this[0], name );
-
- else {
- options = {};
- options[ name ] = value;
- }
-
- // Check to see if we're setting style values
- return this.each(function(i){
- // Set all the styles
- for ( name in options )
- jQuery.attr(
- type ?
- this.style :
- this,
- name, jQuery.prop( this, options[ name ], type, i, name )
- );
- });
- },
-
- css: function( key, value ) {
- // ignore negative width and height values
- if ( (key == 'width' || key == 'height') && parseFloat(value) < 0 )
- value = undefined;
- return this.attr( key, value, "curCSS" );
- },
-
- text: function( text ) {
- if ( typeof text != "object" && text != null )
- return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) );
-
- var ret = "";
-
- jQuery.each( text || this, function(){
- jQuery.each( this.childNodes, function(){
- if ( this.nodeType != 8 )
- ret += this.nodeType != 1 ?
- this.nodeValue :
- jQuery.fn.text( [ this ] );
- });
- });
-
- return ret;
- },
-
- wrapAll: function( html ) {
- if ( this[0] )
- // The elements to wrap the target around
- jQuery( html, this[0].ownerDocument )
- .clone()
- .insertBefore( this[0] )
- .map(function(){
- var elem = this;
-
- while ( elem.firstChild )
- elem = elem.firstChild;
-
- return elem;
- })
- .append(this);
-
- return this;
- },
-
- wrapInner: function( html ) {
- return this.each(function(){
- jQuery( this ).contents().wrapAll( html );
- });
- },
-
- wrap: function( html ) {
- return this.each(function(){
- jQuery( this ).wrapAll( html );
- });
- },
-
- append: function() {
- return this.domManip(arguments, true, false, function(elem){
- if (this.nodeType == 1)
- this.appendChild( elem );
- });
- },
-
- prepend: function() {
- return this.domManip(arguments, true, true, function(elem){
- if (this.nodeType == 1)
- this.insertBefore( elem, this.firstChild );
- });
- },
-
- before: function() {
- return this.domManip(arguments, false, false, function(elem){
- this.parentNode.insertBefore( elem, this );
- });
- },
-
- after: function() {
- return this.domManip(arguments, false, true, function(elem){
- this.parentNode.insertBefore( elem, this.nextSibling );
- });
- },
-
- end: function() {
- return this.prevObject || jQuery( [] );
- },
-
- find: function( selector ) {
- var elems = jQuery.map(this, function(elem){
- return jQuery.find( selector, elem );
- });
-
- return this.pushStack( /[^+>] [^+>]/.test( selector ) || selector.indexOf("..") > -1 ?
- jQuery.unique( elems ) :
- elems );
- },
-
- clone: function( events ) {
- // Do the clone
- var ret = this.map(function(){
- if ( jQuery.browser.msie && !jQuery.isXMLDoc(this) ) {
- // IE copies events bound via attachEvent when
- // using cloneNode. Calling detachEvent on the
- // clone will also remove the events from the orignal
- // In order to get around this, we use innerHTML.
- // Unfortunately, this means some modifications to
- // attributes in IE that are actually only stored
- // as properties will not be copied (such as the
- // the name attribute on an input).
- var clone = this.cloneNode(true),
- container = document.createElement("div");
- container.appendChild(clone);
- return jQuery.clean([container.innerHTML])[0];
- } else
- return this.cloneNode(true);
- });
-
- // Need to set the expando to null on the cloned set if it exists
- // removeData doesn't work here, IE removes it from the original as well
- // this is primarily for IE but the data expando shouldn't be copied over in any browser
- var clone = ret.find("*").andSelf().each(function(){
- if ( this[ expando ] != undefined )
- this[ expando ] = null;
- });
-
- // Copy the events from the original to the clone
- if ( events === true )
- this.find("*").andSelf().each(function(i){
- if (this.nodeType == 3)
- return;
- var events = jQuery.data( this, "events" );
-
- for ( var type in events )
- for ( var handler in events[ type ] )
- jQuery.event.add( clone[ i ], type, events[ type ][ handler ], events[ type ][ handler ].data );
- });
-
- // Return the cloned set
- return ret;
- },
-
- filter: function( selector ) {
- return this.pushStack(
- jQuery.isFunction( selector ) &&
- jQuery.grep(this, function(elem, i){
- return selector.call( elem, i );
- }) ||
-
- jQuery.multiFilter( selector, this ) );
- },
-
- not: function( selector ) {
- if ( selector.constructor == String )
- // test special case where just one selector is passed in
- if ( isSimple.test( selector ) )
- return this.pushStack( jQuery.multiFilter( selector, this, true ) );
- else
- selector = jQuery.multiFilter( selector, this );
-
- var isArrayLike = selector.length && selector[selector.length - 1] !== undefined && !selector.nodeType;
- return this.filter(function() {
- return isArrayLike ? jQuery.inArray( this, selector ) < 0 : this != selector;
- });
- },
-
- add: function( selector ) {
- return this.pushStack( jQuery.unique( jQuery.merge(
- this.get(),
- typeof selector == 'string' ?
- jQuery( selector ) :
- jQuery.makeArray( selector )
- )));
- },
-
- is: function( selector ) {
- return !!selector && jQuery.multiFilter( selector, this ).length > 0;
- },
-
- hasClass: function( selector ) {
- return this.is( "." + selector );
- },
-
- val: function( value ) {
- if ( value == undefined ) {
-
- if ( this.length ) {
- var elem = this[0];
-
- // We need to handle select boxes special
- if ( jQuery.nodeName( elem, "select" ) ) {
- var index = elem.selectedIndex,
- values = [],
- options = elem.options,
- one = elem.type == "select-one";
-
- // Nothing was selected
- if ( index < 0 )
- return null;
-
- // Loop through all the selected options
- for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) {
- var option = options[ i ];
-
- if ( option.selected ) {
- // Get the specifc value for the option
- value = jQuery.browser.msie && !option.attributes.value.specified ? option.text : option.value;
-
- // We don't need an array for one selects
- if ( one )
- return value;
-
- // Multi-Selects return an array
- values.push( value );
- }
- }
-
- return values;
-
- // Everything else, we just grab the value
- } else
- return (this[0].value || "").replace(/\r/g, "");
-
- }
-
- return undefined;
- }
-
- if( value.constructor == Number )
- value += '';
-
- return this.each(function(){
- if ( this.nodeType != 1 )
- return;
-
- if ( value.constructor == Array && /radio|checkbox/.test( this.type ) )
- this.checked = (jQuery.inArray(this.value, value) >= 0 ||
- jQuery.inArray(this.name, value) >= 0);
-
- else if ( jQuery.nodeName( this, "select" ) ) {
- var values = jQuery.makeArray(value);
-
- jQuery( "option", this ).each(function(){
- this.selected = (jQuery.inArray( this.value, values ) >= 0 ||
- jQuery.inArray( this.text, values ) >= 0);
- });
-
- if ( !values.length )
- this.selectedIndex = -1;
-
- } else
- this.value = value;
- });
- },
-
- html: function( value ) {
- return value == undefined ?
- (this[0] ?
- this[0].innerHTML :
- null) :
- this.empty().append( value );
- },
-
- replaceWith: function( value ) {
- return this.after( value ).remove();
- },
-
- eq: function( i ) {
- return this.slice( i, i + 1 );
- },
-
- slice: function() {
- return this.pushStack( Array.prototype.slice.apply( this, arguments ) );
- },
-
- map: function( callback ) {
- return this.pushStack( jQuery.map(this, function(elem, i){
- return callback.call( elem, i, elem );
- }));
- },
-
- andSelf: function() {
- return this.add( this.prevObject );
- },
-
- data: function( key, value ){
- var parts = key.split(".");
- parts[1] = parts[1] ? "." + parts[1] : "";
-
- if ( value === undefined ) {
- var data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]);
-
- if ( data === undefined && this.length )
- data = jQuery.data( this[0], key );
-
- return data === undefined && parts[1] ?
- this.data( parts[0] ) :
- data;
- } else
- return this.trigger("setData" + parts[1] + "!", [parts[0], value]).each(function(){
- jQuery.data( this, key, value );
- });
- },
-
- removeData: function( key ){
- return this.each(function(){
- jQuery.removeData( this, key );
- });
- },
-
- domManip: function( args, table, reverse, callback ) {
- var clone = this.length > 1, elems;
-
- return this.each(function(){
- if ( !elems ) {
- elems = jQuery.clean( args, this.ownerDocument );
-
- if ( reverse )
- elems.reverse();
- }
-
- var obj = this;
-
- if ( table && jQuery.nodeName( this, "table" ) && jQuery.nodeName( elems[0], "tr" ) )
- obj = this.getElementsByTagName("tbody")[0] || this.appendChild( this.ownerDocument.createElement("tbody") );
-
- var scripts = jQuery( [] );
-
- jQuery.each(elems, function(){
- var elem = clone ?
- jQuery( this ).clone( true )[0] :
- this;
-
- // execute all scripts after the elements have been injected
- if ( jQuery.nodeName( elem, "script" ) )
- scripts = scripts.add( elem );
- else {
- // Remove any inner scripts for later evaluation
- if ( elem.nodeType == 1 )
- scripts = scripts.add( jQuery( "script", elem ).remove() );
-
- // Inject the elements into the document
- callback.call( obj, elem );
- }
- });
-
- scripts.each( evalScript );
- });
- }
-};
-
-// Give the init function the jQuery prototype for later instantiation
-jQuery.fn.init.prototype = jQuery.fn;
-
-function evalScript( i, elem ) {
- if ( elem.src )
- jQuery.ajax({
- url: elem.src,
- async: false,
- dataType: "script"
- });
-
- else
- jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || "" );
-
- if ( elem.parentNode )
- elem.parentNode.removeChild( elem );
-}
-
-function now(){
- return +new Date;
-}
-
-jQuery.extend = jQuery.fn.extend = function() {
- // copy reference to target object
- var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options;
-
- // Handle a deep copy situation
- if ( target.constructor == Boolean ) {
- deep = target;
- target = arguments[1] || {};
- // skip the boolean and the target
- i = 2;
- }
-
- // Handle case when target is a string or something (possible in deep copy)
- if ( typeof target != "object" && typeof target != "function" )
- target = {};
-
- // extend jQuery itself if only one argument is passed
- if ( length == i ) {
- target = this;
- --i;
- }
-
- for ( ; i < length; i++ )
- // Only deal with non-null/undefined values
- if ( (options = arguments[ i ]) != null )
- // Extend the base object
- for ( var name in options ) {
- var src = target[ name ], copy = options[ name ];
-
- // Prevent never-ending loop
- if ( target === copy )
- continue;
-
- // Recurse if we're merging object values
- if ( deep && copy && typeof copy == "object" && !copy.nodeType )
- target[ name ] = jQuery.extend( deep,
- // Never move original objects, clone them
- src || ( copy.length != null ? [ ] : { } )
- , copy );
-
- // Don't bring in undefined values
- else if ( copy !== undefined )
- target[ name ] = copy;
-
- }
-
- // Return the modified object
- return target;
-};
-
-var expando = "jQuery" + now(), uuid = 0, windowData = {},
- // exclude the following css properties to add px
- exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i,
- // cache defaultView
- defaultView = document.defaultView || {};
-
-jQuery.extend({
- noConflict: function( deep ) {
- window.$ = _$;
-
- if ( deep )
- window.jQuery = _jQuery;
-
- return jQuery;
- },
-
- // See test/unit/core.js for details concerning this function.
- isFunction: function( fn ) {
- return !!fn && typeof fn != "string" && !fn.nodeName &&
- fn.constructor != Array && /^[\s[]?function/.test( fn + "" );
- },
-
- // check if an element is in a (or is an) XML document
- isXMLDoc: function( elem ) {
- return elem.documentElement && !elem.body ||
- elem.tagName && elem.ownerDocument && !elem.ownerDocument.body;
- },
-
- // Evalulates a script in a global context
- globalEval: function( data ) {
- data = jQuery.trim( data );
-
- if ( data ) {
- // Inspired by code by Andrea Giammarchi
- // http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html
- var head = document.getElementsByTagName("head")[0] || document.documentElement,
- script = document.createElement("script");
-
- script.type = "text/javascript";
- if ( jQuery.browser.msie )
- script.text = data;
- else
- script.appendChild( document.createTextNode( data ) );
-
- // Use insertBefore instead of appendChild to circumvent an IE6 bug.
- // This arises when a base node is used (#2709).
- head.insertBefore( script, head.firstChild );
- head.removeChild( script );
- }
- },
-
- nodeName: function( elem, name ) {
- return elem.nodeName && elem.nodeName.toUpperCase() == name.toUpperCase();
- },
-
- cache: {},
-
- data: function( elem, name, data ) {
- elem = elem == window ?
- windowData :
- elem;
-
- var id = elem[ expando ];
-
- // Compute a unique ID for the element
- if ( !id )
- id = elem[ expando ] = ++uuid;
-
- // Only generate the data cache if we're
- // trying to access or manipulate it
- if ( name && !jQuery.cache[ id ] )
- jQuery.cache[ id ] = {};
-
- // Prevent overriding the named cache with undefined values
- if ( data !== undefined )
- jQuery.cache[ id ][ name ] = data;
-
- // Return the named cache data, or the ID for the element
- return name ?
- jQuery.cache[ id ][ name ] :
- id;
- },
-
- removeData: function( elem, name ) {
- elem = elem == window ?
- windowData :
- elem;
-
- var id = elem[ expando ];
-
- // If we want to remove a specific section of the element's data
- if ( name ) {
- if ( jQuery.cache[ id ] ) {
- // Remove the section of cache data
- delete jQuery.cache[ id ][ name ];
-
- // If we've removed all the data, remove the element's cache
- name = "";
-
- for ( name in jQuery.cache[ id ] )
- break;
-
- if ( !name )
- jQuery.removeData( elem );
- }
-
- // Otherwise, we want to remove all of the element's data
- } else {
- // Clean up the element expando
- try {
- delete elem[ expando ];
- } catch(e){
- // IE has trouble directly removing the expando
- // but it's ok with using removeAttribute
- if ( elem.removeAttribute )
- elem.removeAttribute( expando );
- }
-
- // Completely remove the data cache
- delete jQuery.cache[ id ];
- }
- },
-
- // args is for internal usage only
- each: function( object, callback, args ) {
- var name, i = 0, length = object.length;
-
- if ( args ) {
- if ( length == undefined ) {
- for ( name in object )
- if ( callback.apply( object[ name ], args ) === false )
- break;
- } else
- for ( ; i < length; )
- if ( callback.apply( object[ i++ ], args ) === false )
- break;
-
- // A special, fast, case for the most common use of each
- } else {
- if ( length == undefined ) {
- for ( name in object )
- if ( callback.call( object[ name ], name, object[ name ] ) === false )
- break;
- } else
- for ( var value = object[0];
- i < length && callback.call( value, i, value ) !== false; value = object[++i] ){}
- }
-
- return object;
- },
-
- prop: function( elem, value, type, i, name ) {
- // Handle executable functions
- if ( jQuery.isFunction( value ) )
- value = value.call( elem, i );
-
- // Handle passing in a number to a CSS property
- return value && value.constructor == Number && type == "curCSS" && !exclude.test( name ) ?
- value + "px" :
- value;
- },
-
- className: {
- // internal only, use addClass("class")
- add: function( elem, classNames ) {
- jQuery.each((classNames || "").split(/\s+/), function(i, className){
- if ( elem.nodeType == 1 && !jQuery.className.has( elem.className, className ) )
- elem.className += (elem.className ? " " : "") + className;
- });
- },
-
- // internal only, use removeClass("class")
- remove: function( elem, classNames ) {
- if (elem.nodeType == 1)
- elem.className = classNames != undefined ?
- jQuery.grep(elem.className.split(/\s+/), function(className){
- return !jQuery.className.has( classNames, className );
- }).join(" ") :
- "";
- },
-
- // internal only, use hasClass("class")
- has: function( elem, className ) {
- return jQuery.inArray( className, (elem.className || elem).toString().split(/\s+/) ) > -1;
- }
- },
-
- // A method for quickly swapping in/out CSS properties to get correct calculations
- swap: function( elem, options, callback ) {
- var old = {};
- // Remember the old values, and insert the new ones
- for ( var name in options ) {
- old[ name ] = elem.style[ name ];
- elem.style[ name ] = options[ name ];
- }
-
- callback.call( elem );
-
- // Revert the old values
- for ( var name in options )
- elem.style[ name ] = old[ name ];
- },
-
- css: function( elem, name, force ) {
- if ( name == "width" || name == "height" ) {
- var val, props = { position: "absolute", visibility: "hidden", display:"block" }, which = name == "width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ];
-
- function getWH() {
- val = name == "width" ? elem.offsetWidth : elem.offsetHeight;
- var padding = 0, border = 0;
- jQuery.each( which, function() {
- padding += parseFloat(jQuery.curCSS( elem, "padding" + this, true)) || 0;
- border += parseFloat(jQuery.curCSS( elem, "border" + this + "Width", true)) || 0;
- });
- val -= Math.round(padding + border);
- }
-
- if ( jQuery(elem).is(":visible") )
- getWH();
- else
- jQuery.swap( elem, props, getWH );
-
- return Math.max(0, val);
- }
-
- return jQuery.curCSS( elem, name, force );
- },
-
- curCSS: function( elem, name, force ) {
- var ret, style = elem.style;
-
- // A helper method for determining if an element's values are broken
- function color( elem ) {
- if ( !jQuery.browser.safari )
- return false;
-
- // defaultView is cached
- var ret = defaultView.getComputedStyle( elem, null );
- return !ret || ret.getPropertyValue("color") == "";
- }
-
- // We need to handle opacity special in IE
- if ( name == "opacity" && jQuery.browser.msie ) {
- ret = jQuery.attr( style, "opacity" );
-
- return ret == "" ?
- "1" :
- ret;
- }
- // Opera sometimes will give the wrong display answer, this fixes it, see #2037
- if ( jQuery.browser.opera && name == "display" ) {
- var save = style.outline;
- style.outline = "0 solid black";
- style.outline = save;
- }
-
- // Make sure we're using the right name for getting the float value
- if ( name.match( /float/i ) )
- name = styleFloat;
-
- if ( !force && style && style[ name ] )
- ret = style[ name ];
-
- else if ( defaultView.getComputedStyle ) {
-
- // Only "float" is needed here
- if ( name.match( /float/i ) )
- name = "float";
-
- name = name.replace( /([A-Z])/g, "-$1" ).toLowerCase();
-
- var computedStyle = defaultView.getComputedStyle( elem, null );
-
- if ( computedStyle && !color( elem ) )
- ret = computedStyle.getPropertyValue( name );
-
- // If the element isn't reporting its values properly in Safari
- // then some display: none elements are involved
- else {
- var swap = [], stack = [], a = elem, i = 0;
-
- // Locate all of the parent display: none elements
- for ( ; a && color(a); a = a.parentNode )
- stack.unshift(a);
-
- // Go through and make them visible, but in reverse
- // (It would be better if we knew the exact display type that they had)
- for ( ; i < stack.length; i++ )
- if ( color( stack[ i ] ) ) {
- swap[ i ] = stack[ i ].style.display;
- stack[ i ].style.display = "block";
- }
-
- // Since we flip the display style, we have to handle that
- // one special, otherwise get the value
- ret = name == "display" && swap[ stack.length - 1 ] != null ?
- "none" :
- ( computedStyle && computedStyle.getPropertyValue( name ) ) || "";
-
- // Finally, revert the display styles back
- for ( i = 0; i < swap.length; i++ )
- if ( swap[ i ] != null )
- stack[ i ].style.display = swap[ i ];
- }
-
- // We should always get a number back from opacity
- if ( name == "opacity" && ret == "" )
- ret = "1";
-
- } else if ( elem.currentStyle ) {
- var camelCase = name.replace(/\-(\w)/g, function(all, letter){
- return letter.toUpperCase();
- });
-
- ret = elem.currentStyle[ name ] || elem.currentStyle[ camelCase ];
-
- // From the awesome hack by Dean Edwards
- // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
-
- // If we're not dealing with a regular pixel number
- // but a number that has a weird ending, we need to convert it to pixels
- if ( !/^\d+(px)?$/i.test( ret ) && /^\d/.test( ret ) ) {
- // Remember the original values
- var left = style.left, rsLeft = elem.runtimeStyle.left;
-
- // Put in the new values to get a computed value out
- elem.runtimeStyle.left = elem.currentStyle.left;
- style.left = ret || 0;
- ret = style.pixelLeft + "px";
-
- // Revert the changed values
- style.left = left;
- elem.runtimeStyle.left = rsLeft;
- }
- }
-
- return ret;
- },
-
- clean: function( elems, context ) {
- var ret = [];
- context = context || document;
- // !context.createElement fails in IE with an error but returns typeof 'object'
- if (typeof context.createElement == 'undefined')
- context = context.ownerDocument || context[0] && context[0].ownerDocument || document;
-
- jQuery.each(elems, function(i, elem){
- if ( !elem )
- return;
-
- if ( elem.constructor == Number )
- elem += '';
-
- // Convert html string into DOM nodes
- if ( typeof elem == "string" ) {
- // Fix "XHTML"-style tags in all browsers
- elem = elem.replace(/(<(\w+)[^>]*?)\/>/g, function(all, front, tag){
- return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ?
- all :
- front + "></" + tag + ">";
- });
-
- // Trim whitespace, otherwise indexOf won't work as expected
- var tags = jQuery.trim( elem ).toLowerCase(), div = context.createElement("div");
-
- var wrap =
- // option or optgroup
- !tags.indexOf("<opt") &&
- [ 1, "<select multiple='multiple'>", "</select>" ] ||
-
- !tags.indexOf("<leg") &&
- [ 1, "<fieldset>", "</fieldset>" ] ||
-
- tags.match(/^<(thead|tbody|tfoot|colg|cap)/) &&
- [ 1, "<table>", "</table>" ] ||
-
- !tags.indexOf("<tr") &&
- [ 2, "<table><tbody>", "</tbody></table>" ] ||
-
- // <thead> matched above
- (!tags.indexOf("<td") || !tags.indexOf("<th")) &&
- [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ] ||
-
- !tags.indexOf("<col") &&
- [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ] ||
-
- // IE can't serialize <link> and <script> tags normally
- jQuery.browser.msie &&
- [ 1, "div<div>", "</div>" ] ||
-
- [ 0, "", "" ];
-
- // Go to html and back, then peel off extra wrappers
- div.innerHTML = wrap[1] + elem + wrap[2];
-
- // Move to the right depth
- while ( wrap[0]-- )
- div = div.lastChild;
-
- // Remove IE's autoinserted <tbody> from table fragments
- if ( jQuery.browser.msie ) {
-
- // String was a <table>, *may* have spurious <tbody>
- var tbody = !tags.indexOf("<table") && tags.indexOf("<tbody") < 0 ?
- div.firstChild && div.firstChild.childNodes :
-
- // String was a bare <thead> or <tfoot>
- wrap[1] == "<table>" && tags.indexOf("<tbody") < 0 ?
- div.childNodes :
- [];
-
- for ( var j = tbody.length - 1; j >= 0 ; --j )
- if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length )
- tbody[ j ].parentNode.removeChild( tbody[ j ] );
-
- // IE completely kills leading whitespace when innerHTML is used
- if ( /^\s/.test( elem ) )
- div.insertBefore( context.createTextNode( elem.match(/^\s*/)[0] ), div.firstChild );
-
- }
-
- elem = jQuery.makeArray( div.childNodes );
- }
-
- if ( elem.length === 0 && (!jQuery.nodeName( elem, "form" ) && !jQuery.nodeName( elem, "select" )) )
- return;
-
- if ( elem[0] == undefined || jQuery.nodeName( elem, "form" ) || elem.options )
- ret.push( elem );
-
- else
- ret = jQuery.merge( ret, elem );
-
- });
-
- return ret;
- },
-
- attr: function( elem, name, value ) {
- // don't set attributes on text and comment nodes
- if (!elem || elem.nodeType == 3 || elem.nodeType == 8)
- return undefined;
-
- var notxml = !jQuery.isXMLDoc( elem ),
- // Whether we are setting (or getting)
- set = value !== undefined,
- msie = jQuery.browser.msie;
-
- // Try to normalize/fix the name
- name = notxml && jQuery.props[ name ] || name;
-
- // Only do all the following if this is a node (faster for style)
- // IE elem.getAttribute passes even for style
- if ( elem.tagName ) {
-
- // These attributes require special treatment
- var special = /href|src|style/.test( name );
-
- // Safari mis-reports the default selected property of a hidden option
- // Accessing the parent's selectedIndex property fixes it
- if ( name == "selected" && jQuery.browser.safari )
- elem.parentNode.selectedIndex;
-
- // If applicable, access the attribute via the DOM 0 way
- if ( name in elem && notxml && !special ) {
- if ( set ){
- // We can't allow the type property to be changed (since it causes problems in IE)
- if ( name == "type" && jQuery.nodeName( elem, "input" ) && elem.parentNode )
- throw "type property can't be changed";
-
- elem[ name ] = value;
- }
-
- // browsers index elements by id/name on forms, give priority to attributes.
- if( jQuery.nodeName( elem, "form" ) && elem.getAttributeNode(name) )
- return elem.getAttributeNode( name ).nodeValue;
-
- return elem[ name ];
- }
-
- if ( msie && notxml && name == "style" )
- return jQuery.attr( elem.style, "cssText", value );
-
- if ( set )
- // convert the value to a string (all browsers do this but IE) see #1070
- elem.setAttribute( name, "" + value );
-
- var attr = msie && notxml && special
- // Some attributes require a special call on IE
- ? elem.getAttribute( name, 2 )
- : elem.getAttribute( name );
-
- // Non-existent attributes return null, we normalize to undefined
- return attr === null ? undefined : attr;
- }
-
- // elem is actually elem.style ... set the style
-
- // IE uses filters for opacity
- if ( msie && name == "opacity" ) {
- if ( set ) {
- // IE has trouble with opacity if it does not have layout
- // Force it by setting the zoom level
- elem.zoom = 1;
-
- // Set the alpha filter to set the opacity
- elem.filter = (elem.filter || "").replace( /alpha\([^)]*\)/, "" ) +
- (parseInt( value ) + '' == "NaN" ? "" : "alpha(opacity=" + value * 100 + ")");
- }
-
- return elem.filter && elem.filter.indexOf("opacity=") >= 0 ?
- (parseFloat( elem.filter.match(/opacity=([^)]*)/)[1] ) / 100) + '':
- "";
- }
-
- name = name.replace(/-([a-z])/ig, function(all, letter){
- return letter.toUpperCase();
- });
-
- if ( set )
- elem[ name ] = value;
-
- return elem[ name ];
- },
-
- trim: function( text ) {
- return (text || "").replace( /^\s+|\s+$/g, "" );
- },
-
- makeArray: function( array ) {
- var ret = [];
-
- if( array != null ){
- var i = array.length;
- //the window, strings and functions also have 'length'
- if( i == null || array.split || array.setInterval || array.call )
- ret[0] = array;
- else
- while( i )
- ret[--i] = array[i];
- }
-
- return ret;
- },
-
- inArray: function( elem, array ) {
- for ( var i = 0, length = array.length; i < length; i++ )
- // Use === because on IE, window == document
- if ( array[ i ] === elem )
- return i;
-
- return -1;
- },
-
- merge: function( first, second ) {
- // We have to loop this way because IE & Opera overwrite the length
- // expando of getElementsByTagName
- var i = 0, elem, pos = first.length;
- // Also, we need to make sure that the correct elements are being returned
- // (IE returns comment nodes in a '*' query)
- if ( jQuery.browser.msie ) {
- while ( elem = second[ i++ ] )
- if ( elem.nodeType != 8 )
- first[ pos++ ] = elem;
-
- } else
- while ( elem = second[ i++ ] )
- first[ pos++ ] = elem;
-
- return first;
- },
-
- unique: function( array ) {
- var ret = [], done = {};
-
- try {
-
- for ( var i = 0, length = array.length; i < length; i++ ) {
- var id = jQuery.data( array[ i ] );
-
- if ( !done[ id ] ) {
- done[ id ] = true;
- ret.push( array[ i ] );
- }
- }
-
- } catch( e ) {
- ret = array;
- }
-
- return ret;
- },
-
- grep: function( elems, callback, inv ) {
- var ret = [];
-
- // Go through the array, only saving the items
- // that pass the validator function
- for ( var i = 0, length = elems.length; i < length; i++ )
- if ( !inv != !callback( elems[ i ], i ) )
- ret.push( elems[ i ] );
-
- return ret;
- },
-
- map: function( elems, callback ) {
- var ret = [];
-
- // Go through the array, translating each of the items to their
- // new value (or values).
- for ( var i = 0, length = elems.length; i < length; i++ ) {
- var value = callback( elems[ i ], i );
-
- if ( value != null )
- ret[ ret.length ] = value;
- }
-
- return ret.concat.apply( [], ret );
- }
-});
-
-var userAgent = navigator.userAgent.toLowerCase();
-
-// Figure out what browser is being used
-jQuery.browser = {
- version: (userAgent.match( /.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [])[1],
- safari: /webkit/.test( userAgent ),
- opera: /opera/.test( userAgent ),
- msie: /msie/.test( userAgent ) && !/opera/.test( userAgent ),
- mozilla: /mozilla/.test( userAgent ) && !/(compatible|webkit)/.test( userAgent )
-};
-
-var styleFloat = jQuery.browser.msie ?
- "styleFloat" :
- "cssFloat";
-
-jQuery.extend({
- // Check to see if the W3C box model is being used
- boxModel: !jQuery.browser.msie || document.compatMode == "CSS1Compat",
-
- props: {
- "for": "htmlFor",
- "class": "className",
- "float": styleFloat,
- cssFloat: styleFloat,
- styleFloat: styleFloat,
- readonly: "readOnly",
- maxlength: "maxLength",
- cellspacing: "cellSpacing"
- }
-});
-
-jQuery.each({
- parent: function(elem){return elem.parentNode;},
- parents: function(elem){return jQuery.dir(elem,"parentNode");},
- next: function(elem){return jQuery.nth(elem,2,"nextSibling");},
- prev: function(elem){return jQuery.nth(elem,2,"previousSibling");},
- nextAll: function(elem){return jQuery.dir(elem,"nextSibling");},
- prevAll: function(elem){return jQuery.dir(elem,"previousSibling");},
- siblings: function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem);},
- children: function(elem){return jQuery.sibling(elem.firstChild);},
- contents: function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes);}
-}, function(name, fn){
- jQuery.fn[ name ] = function( selector ) {
- var ret = jQuery.map( this, fn );
-
- if ( selector && typeof selector == "string" )
- ret = jQuery.multiFilter( selector, ret );
-
- return this.pushStack( jQuery.unique( ret ) );
- };
-});
-
-jQuery.each({
- appendTo: "append",
- prependTo: "prepend",
- insertBefore: "before",
- insertAfter: "after",
- replaceAll: "replaceWith"
-}, function(name, original){
- jQuery.fn[ name ] = function() {
- var args = arguments;
-
- return this.each(function(){
- for ( var i = 0, length = args.length; i < length; i++ )
- jQuery( args[ i ] )[ original ]( this );
- });
- };
-});
-
-jQuery.each({
- removeAttr: function( name ) {
- jQuery.attr( this, name, "" );
- if (this.nodeType == 1)
- this.removeAttribute( name );
- },
-
- addClass: function( classNames ) {
- jQuery.className.add( this, classNames );
- },
-
- removeClass: function( classNames ) {
- jQuery.className.remove( this, classNames );
- },
-
- toggleClass: function( classNames ) {
- jQuery.className[ jQuery.className.has( this, classNames ) ? "remove" : "add" ]( this, classNames );
- },
-
- remove: function( selector ) {
- if ( !selector || jQuery.filter( selector, [ this ] ).r.length ) {
- // Prevent memory leaks
- jQuery( "*", this ).add(this).each(function(){
- jQuery.event.remove(this);
- jQuery.removeData(this);
- });
- if (this.parentNode)
- this.parentNode.removeChild( this );
- }
- },
-
- empty: function() {
- // Remove element nodes and prevent memory leaks
- jQuery( ">*", this ).remove();
-
- // Remove any remaining nodes
- while ( this.firstChild )
- this.removeChild( this.firstChild );
- }
-}, function(name, fn){
- jQuery.fn[ name ] = function(){
- return this.each( fn, arguments );
- };
-});
-
-jQuery.each([ "Height", "Width" ], function(i, name){
- var type = name.toLowerCase();
-
- jQuery.fn[ type ] = function( size ) {
- // Get window width or height
- return this[0] == window ?
- // Opera reports document.body.client[Width/Height] properly in both quirks and standards
- jQuery.browser.opera && document.body[ "client" + name ] ||
-
- // Safari reports inner[Width/Height] just fine (Mozilla and Opera include scroll bar widths)
- jQuery.browser.safari && window[ "inner" + name ] ||
-
- // Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode
- document.compatMode == "CSS1Compat" && document.documentElement[ "client" + name ] || document.body[ "client" + name ] :
-
- // Get document width or height
- this[0] == document ?
- // Either scroll[Width/Height] or offset[Width/Height], whichever is greater
- Math.max(
- Math.max(document.body["scroll" + name], document.documentElement["scroll" + name]),
- Math.max(document.body["offset" + name], document.documentElement["offset" + name])
- ) :
-
- // Get or set width or height on the element
- size == undefined ?
- // Get width or height on the element
- (this.length ? jQuery.css( this[0], type ) : null) :
-
- // Set the width or height on the element (default to pixels if value is unitless)
- this.css( type, size.constructor == String ? size : size + "px" );
- };
-});
-
-// Helper function used by the dimensions and offset modules
-function num(elem, prop) {
- return elem[0] && parseInt( jQuery.curCSS(elem[0], prop, true), 10 ) || 0;
-}var chars = jQuery.browser.safari && parseInt(jQuery.browser.version) < 417 ?
- "(?:[\\w*_-]|\\\\.)" :
- "(?:[\\w\u0128-\uFFFF*_-]|\\\\.)",
- quickChild = new RegExp("^>\\s*(" + chars + "+)"),
- quickID = new RegExp("^(" + chars + "+)(#)(" + chars + "+)"),
- quickClass = new RegExp("^([#.]?)(" + chars + "*)");
-
-jQuery.extend({
- expr: {
- "": function(a,i,m){return m[2]=="*"||jQuery.nodeName(a,m[2]);},
- "#": function(a,i,m){return a.getAttribute("id")==m[2];},
- ":": {
- // Position Checks
- lt: function(a,i,m){return i<m[3]-0;},
- gt: function(a,i,m){return i>m[3]-0;},
- nth: function(a,i,m){return m[3]-0==i;},
- eq: function(a,i,m){return m[3]-0==i;},
- first: function(a,i){return i==0;},
- last: function(a,i,m,r){return i==r.length-1;},
- even: function(a,i){return i%2==0;},
- odd: function(a,i){return i%2;},
-
- // Child Checks
- "first-child": function(a){return a.parentNode.getElementsByTagName("*")[0]==a;},
- "last-child": function(a){return jQuery.nth(a.parentNode.lastChild,1,"previousSibling")==a;},
- "only-child": function(a){return !jQuery.nth(a.parentNode.lastChild,2,"previousSibling");},
-
- // Parent Checks
- parent: function(a){return a.firstChild;},
- empty: function(a){return !a.firstChild;},
-
- // Text Check
- contains: function(a,i,m){return (a.textContent||a.innerText||jQuery(a).text()||"").indexOf(m[3])>=0;},
-
- // Visibility
- visible: function(a){return "hidden"!=a.type&&jQuery.css(a,"display")!="none"&&jQuery.css(a,"visibility")!="hidden";},
- hidden: function(a){return "hidden"==a.type||jQuery.css(a,"display")=="none"||jQuery.css(a,"visibility")=="hidden";},
-
- // Form attributes
- enabled: function(a){return !a.disabled;},
- disabled: function(a){return a.disabled;},
- checked: function(a){return a.checked;},
- selected: function(a){return a.selected||jQuery.attr(a,"selected");},
-
- // Form elements
- text: function(a){return "text"==a.type;},
- radio: function(a){return "radio"==a.type;},
- checkbox: function(a){return "checkbox"==a.type;},
- file: function(a){return "file"==a.type;},
- password: function(a){return "password"==a.type;},
- submit: function(a){return "submit"==a.type;},
- image: function(a){return "image"==a.type;},
- reset: function(a){return "reset"==a.type;},
- button: function(a){return "button"==a.type||jQuery.nodeName(a,"button");},
- input: function(a){return /input|select|textarea|button/i.test(a.nodeName);},
-
- // :has()
- has: function(a,i,m){return jQuery.find(m[3],a).length;},
-
- // :header
- header: function(a){return /h\d/i.test(a.nodeName);},
-
- // :animated
- animated: function(a){return jQuery.grep(jQuery.timers,function(fn){return a==fn.elem;}).length;}
- }
- },
-
- // The regular expressions that power the parsing engine
- parse: [
- // Match: [@value='test'], [@foo]
- /^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,
-
- // Match: :contains('foo')
- /^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,
-
- // Match: :even, :last-child, #id, .class
- new RegExp("^([:.#]*)(" + chars + "+)")
- ],
-
- multiFilter: function( expr, elems, not ) {
- var old, cur = [];
-
- while ( expr && expr != old ) {
- old = expr;
- var f = jQuery.filter( expr, elems, not );
- expr = f.t.replace(/^\s*,\s*/, "" );
- cur = not ? elems = f.r : jQuery.merge( cur, f.r );
- }
-
- return cur;
- },
-
- find: function( t, context ) {
- // Quickly handle non-string expressions
- if ( typeof t != "string" )
- return [ t ];
-
- // check to make sure context is a DOM element or a document
- if ( context && context.nodeType != 1 && context.nodeType != 9)
- return [ ];
-
- // Set the correct context (if none is provided)
- context = context || document;
-
- // Initialize the search
- var ret = [context], done = [], last, nodeName;
-
- // Continue while a selector expression exists, and while
- // we're no longer looping upon ourselves
- while ( t && last != t ) {
- var r = [];
- last = t;
-
- t = jQuery.trim(t);
-
- var foundToken = false,
-
- // An attempt at speeding up child selectors that
- // point to a specific element tag
- re = quickChild,
-
- m = re.exec(t);
-
- if ( m ) {
- nodeName = m[1].toUpperCase();
-
- // Perform our own iteration and filter
- for ( var i = 0; ret[i]; i++ )
- for ( var c = ret[i].firstChild; c; c = c.nextSibling )
- if ( c.nodeType == 1 && (nodeName == "*" || c.nodeName.toUpperCase() == nodeName) )
- r.push( c );
-
- ret = r;
- t = t.replace( re, "" );
- if ( t.indexOf(" ") == 0 ) continue;
- foundToken = true;
- } else {
- re = /^([>+~])\s*(\w*)/i;
-
- if ( (m = re.exec(t)) != null ) {
- r = [];
-
- var merge = {};
- nodeName = m[2].toUpperCase();
- m = m[1];
-
- for ( var j = 0, rl = ret.length; j < rl; j++ ) {
- var n = m == "~" || m == "+" ? ret[j].nextSibling : ret[j].firstChild;
- for ( ; n; n = n.nextSibling )
- if ( n.nodeType == 1 ) {
- var id = jQuery.data(n);
-
- if ( m == "~" && merge[id] ) break;
-
- if (!nodeName || n.nodeName.toUpperCase() == nodeName ) {
- if ( m == "~" ) merge[id] = true;
- r.push( n );
- }
-
- if ( m == "+" ) break;
- }
- }
-
- ret = r;
-
- // And remove the token
- t = jQuery.trim( t.replace( re, "" ) );
- foundToken = true;
- }
- }
-
- // See if there's still an expression, and that we haven't already
- // matched a token
- if ( t && !foundToken ) {
- // Handle multiple expressions
- if ( !t.indexOf(",") ) {
- // Clean the result set
- if ( context == ret[0] ) ret.shift();
-
- // Merge the result sets
- done = jQuery.merge( done, ret );
-
- // Reset the context
- r = ret = [context];
-
- // Touch up the selector string
- t = " " + t.substr(1,t.length);
-
- } else {
- // Optimize for the case nodeName#idName
- var re2 = quickID;
- var m = re2.exec(t);
-
- // Re-organize the results, so that they're consistent
- if ( m ) {
- m = [ 0, m[2], m[3], m[1] ];
-
- } else {
- // Otherwise, do a traditional filter check for
- // ID, class, and element selectors
- re2 = quickClass;
- m = re2.exec(t);
- }
-
- m[2] = m[2].replace(/\\/g, "");
-
- var elem = ret[ret.length-1];
-
- // Try to do a global search by ID, where we can
- if ( m[1] == "#" && elem && elem.getElementById && !jQuery.isXMLDoc(elem) ) {
- // Optimization for HTML document case
- var oid = elem.getElementById(m[2]);
-
- // Do a quick check for the existence of the actual ID attribute
- // to avoid selecting by the name attribute in IE
- // also check to insure id is a string to avoid selecting an element with the name of 'id' inside a form
- if ( (jQuery.browser.msie||jQuery.browser.opera) && oid && typeof oid.id == "string" && oid.id != m[2] )
- oid = jQuery('[@id="'+m[2]+'"]', elem)[0];
-
- // Do a quick check for node name (where applicable) so
- // that div#foo searches will be really fast
- ret = r = oid && (!m[3] || jQuery.nodeName(oid, m[3])) ? [oid] : [];
- } else {
- // We need to find all descendant elements
- for ( var i = 0; ret[i]; i++ ) {
- // Grab the tag name being searched for
- var tag = m[1] == "#" && m[3] ? m[3] : m[1] != "" || m[0] == "" ? "*" : m[2];
-
- // Handle IE7 being really dumb about <object>s
- if ( tag == "*" && ret[i].nodeName.toLowerCase() == "object" )
- tag = "param";
-
- r = jQuery.merge( r, ret[i].getElementsByTagName( tag ));
- }
-
- // It's faster to filter by class and be done with it
- if ( m[1] == "." )
- r = jQuery.classFilter( r, m[2] );
-
- // Same with ID filtering
- if ( m[1] == "#" ) {
- var tmp = [];
-
- // Try to find the element with the ID
- for ( var i = 0; r[i]; i++ )
- if ( r[i].getAttribute("id") == m[2] ) {
- tmp = [ r[i] ];
- break;
- }
-
- r = tmp;
- }
-
- ret = r;
- }
-
- t = t.replace( re2, "" );
- }
-
- }
-
- // If a selector string still exists
- if ( t ) {
- // Attempt to filter it
- var val = jQuery.filter(t,r);
- ret = r = val.r;
- t = jQuery.trim(val.t);
- }
- }
-
- // An error occurred with the selector;
- // just return an empty set instead
- if ( t )
- ret = [];
-
- // Remove the root context
- if ( ret && context == ret[0] )
- ret.shift();
-
- // And combine the results
- done = jQuery.merge( done, ret );
-
- return done;
- },
-
- classFilter: function(r,m,not){
- m = " " + m + " ";
- var tmp = [];
- for ( var i = 0; r[i]; i++ ) {
- var pass = (" " + r[i].className + " ").indexOf( m ) >= 0;
- if ( !not && pass || not && !pass )
- tmp.push( r[i] );
- }
- return tmp;
- },
-
- filter: function(t,r,not) {
- var last;
-
- // Look for common filter expressions
- while ( t && t != last ) {
- last = t;
-
- var p = jQuery.parse, m;
-
- for ( var i = 0; p[i]; i++ ) {
- m = p[i].exec( t );
-
- if ( m ) {
- // Remove what we just matched
- t = t.substring( m[0].length );
-
- m[2] = m[2].replace(/\\/g, "");
- break;
- }
- }
-
- if ( !m )
- break;
-
- // :not() is a special case that can be optimized by
- // keeping it out of the expression list
- if ( m[1] == ":" && m[2] == "not" )
- // optimize if only one selector found (most common case)
- r = isSimple.test( m[3] ) ?
- jQuery.filter(m[3], r, true).r :
- jQuery( r ).not( m[3] );
-
- // We can get a big speed boost by filtering by class here
- else if ( m[1] == "." )
- r = jQuery.classFilter(r, m[2], not);
-
- else if ( m[1] == "[" ) {
- var tmp = [], type = m[3];
-
- for ( var i = 0, rl = r.length; i < rl; i++ ) {
- var a = r[i], z = a[ jQuery.props[m[2]] || m[2] ];
-
- if ( z == null || /href|src|selected/.test(m[2]) )
- z = jQuery.attr(a,m[2]) || '';
-
- if ( (type == "" && !!z ||
- type == "=" && z == m[5] ||
- type == "!=" && z != m[5] ||
- type == "^=" && z && !z.indexOf(m[5]) ||
- type == "$=" && z.substr(z.length - m[5].length) == m[5] ||
- (type == "*=" || type == "~=") && z.indexOf(m[5]) >= 0) ^ not )
- tmp.push( a );
- }
-
- r = tmp;
-
- // We can get a speed boost by handling nth-child here
- } else if ( m[1] == ":" && m[2] == "nth-child" ) {
- var merge = {}, tmp = [],
- // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'
- test = /(-?)(\d*)n((?:\+|-)?\d*)/.exec(
- m[3] == "even" && "2n" || m[3] == "odd" && "2n+1" ||
- !/\D/.test(m[3]) && "0n+" + m[3] || m[3]),
- // calculate the numbers (first)n+(last) including if they are negative
- first = (test[1] + (test[2] || 1)) - 0, last = test[3] - 0;
-
- // loop through all the elements left in the jQuery object
- for ( var i = 0, rl = r.length; i < rl; i++ ) {
- var node = r[i], parentNode = node.parentNode, id = jQuery.data(parentNode);
-
- if ( !merge[id] ) {
- var c = 1;
-
- for ( var n = parentNode.firstChild; n; n = n.nextSibling )
- if ( n.nodeType == 1 )
- n.nodeIndex = c++;
-
- merge[id] = true;
- }
-
- var add = false;
-
- if ( first == 0 ) {
- if ( node.nodeIndex == last )
- add = true;
- } else if ( (node.nodeIndex - last) % first == 0 && (node.nodeIndex - last) / first >= 0 )
- add = true;
-
- if ( add ^ not )
- tmp.push( node );
- }
-
- r = tmp;
-
- // Otherwise, find the expression to execute
- } else {
- var fn = jQuery.expr[ m[1] ];
- if ( typeof fn == "object" )
- fn = fn[ m[2] ];
-
- if ( typeof fn == "string" )
- fn = eval("false||function(a,i){return " + fn + ";}");
-
- // Execute it against the current filter
- r = jQuery.grep( r, function(elem, i){
- return fn(elem, i, m, r);
- }, not );
- }
- }
-
- // Return an array of filtered elements (r)
- // and the modified expression string (t)
- return { r: r, t: t };
- },
-
- dir: function( elem, dir ){
- var matched = [],
- cur = elem[dir];
- while ( cur && cur != document ) {
- if ( cur.nodeType == 1 )
- matched.push( cur );
- cur = cur[dir];
- }
- return matched;
- },
-
- nth: function(cur,result,dir,elem){
- result = result || 1;
- var num = 0;
-
- for ( ; cur; cur = cur[dir] )
- if ( cur.nodeType == 1 && ++num == result )
- break;
-
- return cur;
- },
-
- sibling: function( n, elem ) {
- var r = [];
-
- for ( ; n; n = n.nextSibling ) {
- if ( n.nodeType == 1 && n != elem )
- r.push( n );
- }
-
- return r;
- }
-});
-/*
- * A number of helper functions used for managing events.
- * Many of the ideas behind this code orignated from
- * Dean Edwards' addEvent library.
- */
-jQuery.event = {
-
- // Bind an event to an element
- // Original by Dean Edwards
- add: function(elem, types, handler, data) {
- if ( elem.nodeType == 3 || elem.nodeType == 8 )
- return;
-
- // For whatever reason, IE has trouble passing the window object
- // around, causing it to be cloned in the process
- if ( jQuery.browser.msie && elem.setInterval )
- elem = window;
-
- // Make sure that the function being executed has a unique ID
- if ( !handler.guid )
- handler.guid = this.guid++;
-
- // if data is passed, bind to handler
- if( data != undefined ) {
- // Create temporary function pointer to original handler
- var fn = handler;
-
- // Create unique handler function, wrapped around original handler
- handler = this.proxy( fn, function() {
- // Pass arguments and context to original handler
- return fn.apply(this, arguments);
- });
-
- // Store data in unique handler
- handler.data = data;
- }
-
- // Init the element's event structure
- var events = jQuery.data(elem, "events") || jQuery.data(elem, "events", {}),
- handle = jQuery.data(elem, "handle") || jQuery.data(elem, "handle", function(){
- // Handle the second event of a trigger and when
- // an event is called after a page has unloaded
- if ( typeof jQuery != "undefined" && !jQuery.event.triggered )
- return jQuery.event.handle.apply(arguments.callee.elem, arguments);
- });
- // Add elem as a property of the handle function
- // This is to prevent a memory leak with non-native
- // event in IE.
- handle.elem = elem;
-
- // Handle multiple events separated by a space
- // jQuery(...).bind("mouseover mouseout", fn);
- jQuery.each(types.split(/\s+/), function(index, type) {
- // Namespaced event handlers
- var parts = type.split(".");
- type = parts[0];
- handler.type = parts[1];
-
- // Get the current list of functions bound to this event
- var handlers = events[type];
-
- // Init the event handler queue
- if (!handlers) {
- handlers = events[type] = {};
-
- // Check for a special event handler
- // Only use addEventListener/attachEvent if the special
- // events handler returns false
- if ( !jQuery.event.special[type] || jQuery.event.special[type].setup.call(elem) === false ) {
- // Bind the global event handler to the element
- if (elem.addEventListener)
- elem.addEventListener(type, handle, false);
- else if (elem.attachEvent)
- elem.attachEvent("on" + type, handle);
- }
- }
-
- // Add the function to the element's handler list
- handlers[handler.guid] = handler;
-
- // Keep track of which events have been used, for global triggering
- jQuery.event.global[type] = true;
- });
-
- // Nullify elem to prevent memory leaks in IE
- elem = null;
- },
-
- guid: 1,
- global: {},
-
- // Detach an event or set of events from an element
- remove: function(elem, types, handler) {
- // don't do events on text and comment nodes
- if ( elem.nodeType == 3 || elem.nodeType == 8 )
- return;
-
- var events = jQuery.data(elem, "events"), ret, index;
-
- if ( events ) {
- // Unbind all events for the element
- if ( types == undefined || (typeof types == "string" && types.charAt(0) == ".") )
- for ( var type in events )
- this.remove( elem, type + (types || "") );
- else {
- // types is actually an event object here
- if ( types.type ) {
- handler = types.handler;
- types = types.type;
- }
-
- // Handle multiple events seperated by a space
- // jQuery(...).unbind("mouseover mouseout", fn);
- jQuery.each(types.split(/\s+/), function(index, type){
- // Namespaced event handlers
- var parts = type.split(".");
- type = parts[0];
-
- if ( events[type] ) {
- // remove the given handler for the given type
- if ( handler )
- delete events[type][handler.guid];
-
- // remove all handlers for the given type
- else
- for ( handler in events[type] )
- // Handle the removal of namespaced events
- if ( !parts[1] || events[type][handler].type == parts[1] )
- delete events[type][handler];
-
- // remove generic event handler if no more handlers exist
- for ( ret in events[type] ) break;
- if ( !ret ) {
- if ( !jQuery.event.special[type] || jQuery.event.special[type].teardown.call(elem) === false ) {
- if (elem.removeEventListener)
- elem.removeEventListener(type, jQuery.data(elem, "handle"), false);
- else if (elem.detachEvent)
- elem.detachEvent("on" + type, jQuery.data(elem, "handle"));
- }
- ret = null;
- delete events[type];
- }
- }
- });
- }
-
- // Remove the expando if it's no longer used
- for ( ret in events ) break;
- if ( !ret ) {
- var handle = jQuery.data( elem, "handle" );
- if ( handle ) handle.elem = null;
- jQuery.removeData( elem, "events" );
- jQuery.removeData( elem, "handle" );
- }
- }
- },
-
- trigger: function(type, data, elem, donative, extra) {
- // Clone the incoming data, if any
- data = jQuery.makeArray(data);
-
- if ( type.indexOf("!") >= 0 ) {
- type = type.slice(0, -1);
- var exclusive = true;
- }
-
- // Handle a global trigger
- if ( !elem ) {
- // Only trigger if we've ever bound an event for it
- if ( this.global[type] )
- jQuery("*").add([window, document]).trigger(type, data);
-
- // Handle triggering a single element
- } else {
- // don't do events on text and comment nodes
- if ( elem.nodeType == 3 || elem.nodeType == 8 )
- return undefined;
-
- var val, ret, fn = jQuery.isFunction( elem[ type ] || null ),
- // Check to see if we need to provide a fake event, or not
- event = !data[0] || !data[0].preventDefault;
-
- // Pass along a fake event
- if ( event ) {
- data.unshift({
- type: type,
- target: elem,
- preventDefault: function(){},
- stopPropagation: function(){},
- timeStamp: now()
- });
- data[0][expando] = true; // no need to fix fake event
- }
-
- // Enforce the right trigger type
- data[0].type = type;
- if ( exclusive )
- data[0].exclusive = true;
-
- // Trigger the event, it is assumed that "handle" is a function
- var handle = jQuery.data(elem, "handle");
- if ( handle )
- val = handle.apply( elem, data );
-
- // Handle triggering native .onfoo handlers (and on links since we don't call .click() for links)
- if ( (!fn || (jQuery.nodeName(elem, 'a') && type == "click")) && elem["on"+type] && elem["on"+type].apply( elem, data ) === false )
- val = false;
-
- // Extra functions don't get the custom event object
- if ( event )
- data.shift();
-
- // Handle triggering of extra function
- if ( extra && jQuery.isFunction( extra ) ) {
- // call the extra function and tack the current return value on the end for possible inspection
- ret = extra.apply( elem, val == null ? data : data.concat( val ) );
- // if anything is returned, give it precedence and have it overwrite the previous value
- if (ret !== undefined)
- val = ret;
- }
-
- // Trigger the native events (except for clicks on links)
- if ( fn && donative !== false && val !== false && !(jQuery.nodeName(elem, 'a') && type == "click") ) {
- this.triggered = true;
- try {
- elem[ type ]();
- // prevent IE from throwing an error for some hidden elements
- } catch (e) {}
- }
-
- this.triggered = false;
- }
-
- return val;
- },
-
- handle: function(event) {
- // returned undefined or false
- var val, ret, namespace, all, handlers;
-
- event = arguments[0] = jQuery.event.fix( event || window.event );
-
- // Namespaced event handlers
- namespace = event.type.split(".");
- event.type = namespace[0];
- namespace = namespace[1];
- // Cache this now, all = true means, any handler
- all = !namespace && !event.exclusive;
-
- handlers = ( jQuery.data(this, "events") || {} )[event.type];
-
- for ( var j in handlers ) {
- var handler = handlers[j];
-
- // Filter the functions by class
- if ( all || handler.type == namespace ) {
- // Pass in a reference to the handler function itself
- // So that we can later remove it
- event.handler = handler;
- event.data = handler.data;
-
- ret = handler.apply( this, arguments );
-
- if ( val !== false )
- val = ret;
-
- if ( ret === false ) {
- event.preventDefault();
- event.stopPropagation();
- }
- }
- }
-
- return val;
- },
-
- fix: function(event) {
- if ( event[expando] == true )
- return event;
-
- // store a copy of the original event object
- // and "clone" to set read-only properties
- var originalEvent = event;
- event = { originalEvent: originalEvent };
- var props = "altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target timeStamp toElement type view wheelDelta which".split(" ");
- for ( var i=props.length; i; i-- )
- event[ props[i] ] = originalEvent[ props[i] ];
-
- // Mark it as fixed
- event[expando] = true;
-
- // add preventDefault and stopPropagation since
- // they will not work on the clone
- event.preventDefault = function() {
- // if preventDefault exists run it on the original event
- if (originalEvent.preventDefault)
- originalEvent.preventDefault();
- // otherwise set the returnValue property of the original event to false (IE)
- originalEvent.returnValue = false;
- };
- event.stopPropagation = function() {
- // if stopPropagation exists run it on the original event
- if (originalEvent.stopPropagation)
- originalEvent.stopPropagation();
- // otherwise set the cancelBubble property of the original event to true (IE)
- originalEvent.cancelBubble = true;
- };
-
- // Fix timeStamp
- event.timeStamp = event.timeStamp || now();
-
- // Fix target property, if necessary
- if ( !event.target )
- event.target = event.srcElement || document; // Fixes #1925 where srcElement might not be defined either
-
- // check if target is a textnode (safari)
- if ( event.target.nodeType == 3 )
- event.target = event.target.parentNode;
-
- // Add relatedTarget, if necessary
- if ( !event.relatedTarget && event.fromElement )
- event.relatedTarget = event.fromElement == event.target ? event.toElement : event.fromElement;
-
- // Calculate pageX/Y if missing and clientX/Y available
- if ( event.pageX == null && event.clientX != null ) {
- var doc = document.documentElement, body = document.body;
- event.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc.clientLeft || 0);
- event.pageY = event.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc.clientTop || 0);
- }
-
- // Add which for key events
- if ( !event.which && ((event.charCode || event.charCode === 0) ? event.charCode : event.keyCode) )
- event.which = event.charCode || event.keyCode;
-
- // Add metaKey to non-Mac browsers (use ctrl for PC's and Meta for Macs)
- if ( !event.metaKey && event.ctrlKey )
- event.metaKey = event.ctrlKey;
-
- // Add which for click: 1 == left; 2 == middle; 3 == right
- // Note: button is not normalized, so don't use it
- if ( !event.which && event.button )
- event.which = (event.button & 1 ? 1 : ( event.button & 2 ? 3 : ( event.button & 4 ? 2 : 0 ) ));
-
- return event;
- },
-
- proxy: function( fn, proxy ){
- // Set the guid of unique handler to the same of original handler, so it can be removed
- proxy.guid = fn.guid = fn.guid || proxy.guid || this.guid++;
- // So proxy can be declared as an argument
- return proxy;
- },
-
- special: {
- ready: {
- setup: function() {
- // Make sure the ready event is setup
- bindReady();
- return;
- },
-
- teardown: function() { return; }
- },
-
- mouseenter: {
- setup: function() {
- if ( jQuery.browser.msie ) return false;
- jQuery(this).bind("mouseover", jQuery.event.special.mouseenter.handler);
- return true;
- },
-
- teardown: function() {
- if ( jQuery.browser.msie ) return false;
- jQuery(this).unbind("mouseover", jQuery.event.special.mouseenter.handler);
- return true;
- },
-
- handler: function(event) {
- // If we actually just moused on to a sub-element, ignore it
- if ( withinElement(event, this) ) return true;
- // Execute the right handlers by setting the event type to mouseenter
- event.type = "mouseenter";
- return jQuery.event.handle.apply(this, arguments);
- }
- },
-
- mouseleave: {
- setup: function() {
- if ( jQuery.browser.msie ) return false;
- jQuery(this).bind("mouseout", jQuery.event.special.mouseleave.handler);
- return true;
- },
-
- teardown: function() {
- if ( jQuery.browser.msie ) return false;
- jQuery(this).unbind("mouseout", jQuery.event.special.mouseleave.handler);
- return true;
- },
-
- handler: function(event) {
- // If we actually just moused on to a sub-element, ignore it
- if ( withinElement(event, this) ) return true;
- // Execute the right handlers by setting the event type to mouseleave
- event.type = "mouseleave";
- return jQuery.event.handle.apply(this, arguments);
- }
- }
- }
-};
-
-jQuery.fn.extend({
- bind: function( type, data, fn ) {
- return type == "unload" ? this.one(type, data, fn) : this.each(function(){
- jQuery.event.add( this, type, fn || data, fn && data );
- });
- },
-
- one: function( type, data, fn ) {
- var one = jQuery.event.proxy( fn || data, function(event) {
- jQuery(this).unbind(event, one);
- return (fn || data).apply( this, arguments );
- });
- return this.each(function(){
- jQuery.event.add( this, type, one, fn && data);
- });
- },
-
- unbind: function( type, fn ) {
- return this.each(function(){
- jQuery.event.remove( this, type, fn );
- });
- },
-
- trigger: function( type, data, fn ) {
- return this.each(function(){
- jQuery.event.trigger( type, data, this, true, fn );
- });
- },
-
- triggerHandler: function( type, data, fn ) {
- return this[0] && jQuery.event.trigger( type, data, this[0], false, fn );
- },
-
- toggle: function( fn ) {
- // Save reference to arguments for access in closure
- var args = arguments, i = 1;
-
- // link all the functions, so any of them can unbind this click handler
- while( i < args.length )
- jQuery.event.proxy( fn, args[i++] );
-
- return this.click( jQuery.event.proxy( fn, function(event) {
- // Figure out which function to execute
- this.lastToggle = ( this.lastToggle || 0 ) % i;
-
- // Make sure that clicks stop
- event.preventDefault();
-
- // and execute the function
- return args[ this.lastToggle++ ].apply( this, arguments ) || false;
- }));
- },
-
- hover: function(fnOver, fnOut) {
- return this.bind('mouseenter', fnOver).bind('mouseleave', fnOut);
- },
-
- ready: function(fn) {
- // Attach the listeners
- bindReady();
-
- // If the DOM is already ready
- if ( jQuery.isReady )
- // Execute the function immediately
- fn.call( document, jQuery );
-
- // Otherwise, remember the function for later
- else
- // Add the function to the wait list
- jQuery.readyList.push( function() { return fn.call(this, jQuery); } );
-
- return this;
- }
-});
-
-jQuery.extend({
- isReady: false,
- readyList: [],
- // Handle when the DOM is ready
- ready: function() {
- // Make sure that the DOM is not already loaded
- if ( !jQuery.isReady ) {
- // Remember that the DOM is ready
- jQuery.isReady = true;
-
- // If there are functions bound, to execute
- if ( jQuery.readyList ) {
- // Execute all of them
- jQuery.each( jQuery.readyList, function(){
- this.call( document );
- });
-
- // Reset the list of functions
- jQuery.readyList = null;
- }
-
- // Trigger any bound ready events
- jQuery(document).triggerHandler("ready");
- }
- }
-});
-
-var readyBound = false;
-
-function bindReady(){
- if ( readyBound ) return;
- readyBound = true;
-
- // Mozilla, Opera (see further below for it) and webkit nightlies currently support this event
- if ( document.addEventListener && !jQuery.browser.opera)
- // Use the handy event callback
- document.addEventListener( "DOMContentLoaded", jQuery.ready, false );
-
- // If IE is used and is not in a frame
- // Continually check to see if the document is ready
- if ( jQuery.browser.msie && window == top ) (function(){
- if (jQuery.isReady) return;
- try {
- // If IE is used, use the trick by Diego Perini
- // http://javascript.nwbox.com/IEContentLoaded/
- document.documentElement.doScroll("left");
- } catch( error ) {
- setTimeout( arguments.callee, 0 );
- return;
- }
- // and execute any waiting functions
- jQuery.ready();
- })();
-
- if ( jQuery.browser.opera )
- document.addEventListener( "DOMContentLoaded", function () {
- if (jQuery.isReady) return;
- for (var i = 0; i < document.styleSheets.length; i++)
- if (document.styleSheets[i].disabled) {
- setTimeout( arguments.callee, 0 );
- return;
- }
- // and execute any waiting functions
- jQuery.ready();
- }, false);
-
- if ( jQuery.browser.safari ) {
- var numStyles;
- (function(){
- if (jQuery.isReady) return;
- if ( document.readyState != "loaded" && document.readyState != "complete" ) {
- setTimeout( arguments.callee, 0 );
- return;
- }
- if ( numStyles === undefined )
- numStyles = jQuery("style, link[rel=stylesheet]").length;
- if ( document.styleSheets.length != numStyles ) {
- setTimeout( arguments.callee, 0 );
- return;
- }
- // and execute any waiting functions
- jQuery.ready();
- })();
- }
-
- // A fallback to window.onload, that will always work
- jQuery.event.add( window, "load", jQuery.ready );
-}
-
-jQuery.each( ("blur,focus,load,resize,scroll,unload,click,dblclick," +
- "mousedown,mouseup,mousemove,mouseover,mouseout,change,select," +
- "submit,keydown,keypress,keyup,error").split(","), function(i, name){
-
- // Handle event binding
- jQuery.fn[name] = function(fn){
- return fn ? this.bind(name, fn) : this.trigger(name);
- };
-});
-
-// Checks if an event happened on an element within another element
-// Used in jQuery.event.special.mouseenter and mouseleave handlers
-var withinElement = function(event, elem) {
- // Check if mouse(over|out) are still within the same parent element
- var parent = event.relatedTarget;
- // Traverse up the tree
- while ( parent && parent != elem ) try { parent = parent.parentNode; } catch(error) { parent = elem; }
- // Return true if we actually just moused on to a sub-element
- return parent == elem;
-};
-
-// Prevent memory leaks in IE
-// And prevent errors on refresh with events like mouseover in other browsers
-// Window isn't included so as not to unbind existing unload events
-jQuery(window).bind("unload", function() {
- jQuery("*").add(document).unbind();
-});
-jQuery.fn.extend({
- // Keep a copy of the old load
- _load: jQuery.fn.load,
-
- load: function( url, params, callback ) {
- if ( typeof url != 'string' )
- return this._load( url );
-
- var off = url.indexOf(" ");
- if ( off >= 0 ) {
- var selector = url.slice(off, url.length);
- url = url.slice(0, off);
- }
-
- callback = callback || function(){};
-
- // Default to a GET request
- var type = "GET";
-
- // If the second parameter was provided
- if ( params )
- // If it's a function
- if ( jQuery.isFunction( params ) ) {
- // We assume that it's the callback
- callback = params;
- params = null;
-
- // Otherwise, build a param string
- } else {
- params = jQuery.param( params );
- type = "POST";
- }
-
- var self = this;
-
- // Request the remote document
- jQuery.ajax({
- url: url,
- type: type,
- dataType: "html",
- data: params,
- complete: function(res, status){
- // If successful, inject the HTML into all the matched elements
- if ( status == "success" || status == "notmodified" )
- // See if a selector was specified
- self.html( selector ?
- // Create a dummy div to hold the results
- jQuery("<div/>")
- // inject the contents of the document in, removing the scripts
- // to avoid any 'Permission Denied' errors in IE
- .append(res.responseText.replace(/<script(.|\s)*?\/script>/g, ""))
-
- // Locate the specified elements
- .find(selector) :
-
- // If not, just inject the full result
- res.responseText );
-
- self.each( callback, [res.responseText, status, res] );
- }
- });
- return this;
- },
-
- serialize: function() {
- return jQuery.param(this.serializeArray());
- },
- serializeArray: function() {
- return this.map(function(){
- return jQuery.nodeName(this, "form") ?
- jQuery.makeArray(this.elements) : this;
- })
- .filter(function(){
- return this.name && !this.disabled &&
- (this.checked || /select|textarea/i.test(this.nodeName) ||
- /text|hidden|password/i.test(this.type));
- })
- .map(function(i, elem){
- var val = jQuery(this).val();
- return val == null ? null :
- val.constructor == Array ?
- jQuery.map( val, function(val, i){
- return {name: elem.name, value: val};
- }) :
- {name: elem.name, value: val};
- }).get();
- }
-});
-
-// Attach a bunch of functions for handling common AJAX events
-jQuery.each( "ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","), function(i,o){
- jQuery.fn[o] = function(f){
- return this.bind(o, f);
- };
-});
-
-var jsc = now();
-
-jQuery.extend({
- get: function( url, data, callback, type ) {
- // shift arguments if data argument was ommited
- if ( jQuery.isFunction( data ) ) {
- callback = data;
- data = null;
- }
-
- return jQuery.ajax({
- type: "GET",
- url: url,
- data: data,
- success: callback,
- dataType: type
- });
- },
-
- getScript: function( url, callback ) {
- return jQuery.get(url, null, callback, "script");
- },
-
- getJSON: function( url, data, callback ) {
- return jQuery.get(url, data, callback, "json");
- },
-
- post: function( url, data, callback, type ) {
- if ( jQuery.isFunction( data ) ) {
- callback = data;
- data = {};
- }
-
- return jQuery.ajax({
- type: "POST",
- url: url,
- data: data,
- success: callback,
- dataType: type
- });
- },
-
- ajaxSetup: function( settings ) {
- jQuery.extend( jQuery.ajaxSettings, settings );
- },
-
- ajaxSettings: {
- url: location.href,
- global: true,
- type: "GET",
- timeout: 0,
- contentType: "application/x-www-form-urlencoded",
- processData: true,
- async: true,
- data: null,
- username: null,
- password: null,
- accepts: {
- xml: "application/xml, text/xml",
- html: "text/html",
- script: "text/javascript, application/javascript",
- json: "application/json, text/javascript",
- text: "text/plain",
- _default: "*/*"
- }
- },
-
- // Last-Modified header cache for next request
- lastModified: {},
-
- ajax: function( s ) {
- // Extend the settings, but re-extend 's' so that it can be
- // checked again later (in the test suite, specifically)
- s = jQuery.extend(true, s, jQuery.extend(true, {}, jQuery.ajaxSettings, s));
-
- var jsonp, jsre = /=\?(&|$)/g, status, data,
- type = s.type.toUpperCase();
-
- // convert data if not already a string
- if ( s.data && s.processData && typeof s.data != "string" )
- s.data = jQuery.param(s.data);
-
- // Handle JSONP Parameter Callbacks
- if ( s.dataType == "jsonp" ) {
- if ( type == "GET" ) {
- if ( !s.url.match(jsre) )
- s.url += (s.url.match(/\?/) ? "&" : "?") + (s.jsonp || "callback") + "=?";
- } else if ( !s.data || !s.data.match(jsre) )
- s.data = (s.data ? s.data + "&" : "") + (s.jsonp || "callback") + "=?";
- s.dataType = "json";
- }
-
- // Build temporary JSONP function
- if ( s.dataType == "json" && (s.data && s.data.match(jsre) || s.url.match(jsre)) ) {
- jsonp = "jsonp" + jsc++;
-
- // Replace the =? sequence both in the query string and the data
- if ( s.data )
- s.data = (s.data + "").replace(jsre, "=" + jsonp + "$1");
- s.url = s.url.replace(jsre, "=" + jsonp + "$1");
-
- // We need to make sure
- // that a JSONP style response is executed properly
- s.dataType = "script";
-
- // Handle JSONP-style loading
- window[ jsonp ] = function(tmp){
- data = tmp;
- success();
- complete();
- // Garbage collect
- window[ jsonp ] = undefined;
- try{ delete window[ jsonp ]; } catch(e){}
- if ( head )
- head.removeChild( script );
- };
- }
-
- if ( s.dataType == "script" && s.cache == null )
- s.cache = false;
-
- if ( s.cache === false && type == "GET" ) {
- var ts = now();
- // try replacing _= if it is there
- var ret = s.url.replace(/(\?|&)_=.*?(&|$)/, "$1_=" + ts + "$2");
- // if nothing was replaced, add timestamp to the end
- s.url = ret + ((ret == s.url) ? (s.url.match(/\?/) ? "&" : "?") + "_=" + ts : "");
- }
-
- // If data is available, append data to url for get requests
- if ( s.data && type == "GET" ) {
- s.url += (s.url.match(/\?/) ? "&" : "?") + s.data;
-
- // IE likes to send both get and post data, prevent this
- s.data = null;
- }
-
- // Watch for a new set of requests
- if ( s.global && ! jQuery.active++ )
- jQuery.event.trigger( "ajaxStart" );
-
- // Matches an absolute URL, and saves the domain
- var remote = /^(?:\w+:)?\/\/([^\/?#]+)/;
-
- // If we're requesting a remote document
- // and trying to load JSON or Script with a GET
- if ( s.dataType == "script" && type == "GET"
- && remote.test(s.url) && remote.exec(s.url)[1] != location.host ){
- var head = document.getElementsByTagName("head")[0];
- var script = document.createElement("script");
- script.src = s.url;
- if (s.scriptCharset)
- script.charset = s.scriptCharset;
-
- // Handle Script loading
- if ( !jsonp ) {
- var done = false;
-
- // Attach handlers for all browsers
- script.onload = script.onreadystatechange = function(){
- if ( !done && (!this.readyState ||
- this.readyState == "loaded" || this.readyState == "complete") ) {
- done = true;
- success();
- complete();
- head.removeChild( script );
- }
- };
- }
-
- head.appendChild(script);
-
- // We handle everything using the script element injection
- return undefined;
- }
-
- var requestDone = false;
-
- // Create the request object; Microsoft failed to properly
- // implement the XMLHttpRequest in IE7, so we use the ActiveXObject when it is available
- var xhr = window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
-
- // Open the socket
- // Passing null username, generates a login popup on Opera (#2865)
- if( s.username )
- xhr.open(type, s.url, s.async, s.username, s.password);
- else
- xhr.open(type, s.url, s.async);
-
- // Need an extra try/catch for cross domain requests in Firefox 3
- try {
- // Set the correct header, if data is being sent
- if ( s.data )
- xhr.setRequestHeader("Content-Type", s.contentType);
-
- // Set the If-Modified-Since header, if ifModified mode.
- if ( s.ifModified )
- xhr.setRequestHeader("If-Modified-Since",
- jQuery.lastModified[s.url] || "Thu, 01 Jan 1970 00:00:00 GMT" );
-
- // Set header so the called script knows that it's an XMLHttpRequest
- xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest");
-
- // Set the Accepts header for the server, depending on the dataType
- xhr.setRequestHeader("Accept", s.dataType && s.accepts[ s.dataType ] ?
- s.accepts[ s.dataType ] + ", */*" :
- s.accepts._default );
- } catch(e){}
-
- // Allow custom headers/mimetypes
- if ( s.beforeSend && s.beforeSend(xhr, s) === false ) {
- // cleanup active request counter
- s.global && jQuery.active--;
- // close opended socket
- xhr.abort();
- return false;
- }
-
- if ( s.global )
- jQuery.event.trigger("ajaxSend", [xhr, s]);
-
- // Wait for a response to come back
- var onreadystatechange = function(isTimeout){
- // The transfer is complete and the data is available, or the request timed out
- if ( !requestDone && xhr && (xhr.readyState == 4 || isTimeout == "timeout") ) {
- requestDone = true;
-
- // clear poll interval
- if (ival) {
- clearInterval(ival);
- ival = null;
- }
-
- status = isTimeout == "timeout" && "timeout" ||
- !jQuery.httpSuccess( xhr ) && "error" ||
- s.ifModified && jQuery.httpNotModified( xhr, s.url ) && "notmodified" ||
- "success";
-
- if ( status == "success" ) {
- // Watch for, and catch, XML document parse errors
- try {
- // process the data (runs the xml through httpData regardless of callback)
- data = jQuery.httpData( xhr, s.dataType, s.dataFilter );
- } catch(e) {
- status = "parsererror";
- }
- }
-
- // Make sure that the request was successful or notmodified
- if ( status == "success" ) {
- // Cache Last-Modified header, if ifModified mode.
- var modRes;
- try {
- modRes = xhr.getResponseHeader("Last-Modified");
- } catch(e) {} // swallow exception thrown by FF if header is not available
-
- if ( s.ifModified && modRes )
- jQuery.lastModified[s.url] = modRes;
-
- // JSONP handles its own success callback
- if ( !jsonp )
- success();
- } else
- jQuery.handleError(s, xhr, status);
-
- // Fire the complete handlers
- complete();
-
- // Stop memory leaks
- if ( s.async )
- xhr = null;
- }
- };
-
- if ( s.async ) {
- // don't attach the handler to the request, just poll it instead
- var ival = setInterval(onreadystatechange, 13);
-
- // Timeout checker
- if ( s.timeout > 0 )
- setTimeout(function(){
- // Check to see if the request is still happening
- if ( xhr ) {
- // Cancel the request
- xhr.abort();
-
- if( !requestDone )
- onreadystatechange( "timeout" );
- }
- }, s.timeout);
- }
-
- // Send the data
- try {
- xhr.send(s.data);
- } catch(e) {
- jQuery.handleError(s, xhr, null, e);
- }
-
- // firefox 1.5 doesn't fire statechange for sync requests
- if ( !s.async )
- onreadystatechange();
-
- function success(){
- // If a local callback was specified, fire it and pass it the data
- if ( s.success )
- s.success( data, status );
-
- // Fire the global callback
- if ( s.global )
- jQuery.event.trigger( "ajaxSuccess", [xhr, s] );
- }
-
- function complete(){
- // Process result
- if ( s.complete )
- s.complete(xhr, status);
-
- // The request was completed
- if ( s.global )
- jQuery.event.trigger( "ajaxComplete", [xhr, s] );
-
- // Handle the global AJAX counter
- if ( s.global && ! --jQuery.active )
- jQuery.event.trigger( "ajaxStop" );
- }
-
- // return XMLHttpRequest to allow aborting the request etc.
- return xhr;
- },
-
- handleError: function( s, xhr, status, e ) {
- // If a local callback was specified, fire it
- if ( s.error ) s.error( xhr, status, e );
-
- // Fire the global callback
- if ( s.global )
- jQuery.event.trigger( "ajaxError", [xhr, s, e] );
- },
-
- // Counter for holding the number of active queries
- active: 0,
-
- // Determines if an XMLHttpRequest was successful or not
- httpSuccess: function( xhr ) {
- try {
- // IE error sometimes returns 1223 when it should be 204 so treat it as success, see #1450
- return !xhr.status && location.protocol == "file:" ||
- ( xhr.status >= 200 && xhr.status < 300 ) || xhr.status == 304 || xhr.status == 1223 ||
- jQuery.browser.safari && xhr.status == undefined;
- } catch(e){}
- return false;
- },
-
- // Determines if an XMLHttpRequest returns NotModified
- httpNotModified: function( xhr, url ) {
- try {
- var xhrRes = xhr.getResponseHeader("Last-Modified");
-
- // Firefox always returns 200. check Last-Modified date
- return xhr.status == 304 || xhrRes == jQuery.lastModified[url] ||
- jQuery.browser.safari && xhr.status == undefined;
- } catch(e){}
- return false;
- },
-
- httpData: function( xhr, type, filter ) {
- var ct = xhr.getResponseHeader("content-type"),
- xml = type == "xml" || !type && ct && ct.indexOf("xml") >= 0,
- data = xml ? xhr.responseXML : xhr.responseText;
-
- if ( xml && data.documentElement.tagName == "parsererror" )
- throw "parsererror";
-
- // Allow a pre-filtering function to sanitize the response
- if( filter )
- data = filter( data, type );
-
- // If the type is "script", eval it in global context
- if ( type == "script" )
- jQuery.globalEval( data );
-
- // Get the JavaScript object, if JSON is used.
- if ( type == "json" )
- data = eval("(" + data + ")");
-
- return data;
- },
-
- // Serialize an array of form elements or a set of
- // key/values into a query string
- param: function( a ) {
- var s = [];
-
- // If an array was passed in, assume that it is an array
- // of form elements
- if ( a.constructor == Array || a.jquery )
- // Serialize the form elements
- jQuery.each( a, function(){
- s.push( encodeURIComponent(this.name) + "=" + encodeURIComponent( this.value ) );
- });
-
- // Otherwise, assume that it's an object of key/value pairs
- else
- // Serialize the key/values
- for ( var j in a )
- // If the value is an array then the key names need to be repeated
- if ( a[j] && a[j].constructor == Array )
- jQuery.each( a[j], function(){
- s.push( encodeURIComponent(j) + "=" + encodeURIComponent( this ) );
- });
- else
- s.push( encodeURIComponent(j) + "=" + encodeURIComponent( jQuery.isFunction(a[j]) ? a[j]() : a[j] ) );
-
- // Return the resulting serialization
- return s.join("&").replace(/%20/g, "+");
- }
-
-});
-jQuery.fn.extend({
- show: function(speed,callback){
- return speed ?
- this.animate({
- height: "show", width: "show", opacity: "show"
- }, speed, callback) :
-
- this.filter(":hidden").each(function(){
- this.style.display = this.oldblock || "";
- if ( jQuery.css(this,"display") == "none" ) {
- var elem = jQuery("<" + this.tagName + " />").appendTo("body");
- this.style.display = elem.css("display");
- // handle an edge condition where css is - div { display:none; } or similar
- if (this.style.display == "none")
- this.style.display = "block";
- elem.remove();
- }
- }).end();
- },
-
- hide: function(speed,callback){
- return speed ?
- this.animate({
- height: "hide", width: "hide", opacity: "hide"
- }, speed, callback) :
-
- this.filter(":visible").each(function(){
- this.oldblock = this.oldblock || jQuery.css(this,"display");
- this.style.display = "none";
- }).end();
- },
-
- // Save the old toggle function
- _toggle: jQuery.fn.toggle,
-
- toggle: function( fn, fn2 ){
- return jQuery.isFunction(fn) && jQuery.isFunction(fn2) ?
- this._toggle.apply( this, arguments ) :
- fn ?
- this.animate({
- height: "toggle", width: "toggle", opacity: "toggle"
- }, fn, fn2) :
- this.each(function(){
- jQuery(this)[ jQuery(this).is(":hidden") ? "show" : "hide" ]();
- });
- },
-
- slideDown: function(speed,callback){
- return this.animate({height: "show"}, speed, callback);
- },
-
- slideUp: function(speed,callback){
- return this.animate({height: "hide"}, speed, callback);
- },
-
- slideToggle: function(speed, callback){
- return this.animate({height: "toggle"}, speed, callback);
- },
-
- fadeIn: function(speed, callback){
- return this.animate({opacity: "show"}, speed, callback);
- },
-
- fadeOut: function(speed, callback){
- return this.animate({opacity: "hide"}, speed, callback);
- },
-
- fadeTo: function(speed,to,callback){
- return this.animate({opacity: to}, speed, callback);
- },
-
- animate: function( prop, speed, easing, callback ) {
- var optall = jQuery.speed(speed, easing, callback);
-
- return this[ optall.queue === false ? "each" : "queue" ](function(){
- if ( this.nodeType != 1)
- return false;
-
- var opt = jQuery.extend({}, optall), p,
- hidden = jQuery(this).is(":hidden"), self = this;
-
- for ( p in prop ) {
- if ( prop[p] == "hide" && hidden || prop[p] == "show" && !hidden )
- return opt.complete.call(this);
-
- if ( p == "height" || p == "width" ) {
- // Store display property
- opt.display = jQuery.css(this, "display");
-
- // Make sure that nothing sneaks out
- opt.overflow = this.style.overflow;
- }
- }
-
- if ( opt.overflow != null )
- this.style.overflow = "hidden";
-
- opt.curAnim = jQuery.extend({}, prop);
-
- jQuery.each( prop, function(name, val){
- var e = new jQuery.fx( self, opt, name );
-
- if ( /toggle|show|hide/.test(val) )
- e[ val == "toggle" ? hidden ? "show" : "hide" : val ]( prop );
- else {
- var parts = val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),
- start = e.cur(true) || 0;
-
- if ( parts ) {
- var end = parseFloat(parts[2]),
- unit = parts[3] || "px";
-
- // We need to compute starting value
- if ( unit != "px" ) {
- self.style[ name ] = (end || 1) + unit;
- start = ((end || 1) / e.cur(true)) * start;
- self.style[ name ] = start + unit;
- }
-
- // If a +=/-= token was provided, we're doing a relative animation
- if ( parts[1] )
- end = ((parts[1] == "-=" ? -1 : 1) * end) + start;
-
- e.custom( start, end, unit );
- } else
- e.custom( start, val, "" );
- }
- });
-
- // For JS strict compliance
- return true;
- });
- },
-
- queue: function(type, fn){
- if ( jQuery.isFunction(type) || ( type && type.constructor == Array )) {
- fn = type;
- type = "fx";
- }
-
- if ( !type || (typeof type == "string" && !fn) )
- return queue( this[0], type );
-
- return this.each(function(){
- if ( fn.constructor == Array )
- queue(this, type, fn);
- else {
- queue(this, type).push( fn );
-
- if ( queue(this, type).length == 1 )
- fn.call(this);
- }
- });
- },
-
- stop: function(clearQueue, gotoEnd){
- var timers = jQuery.timers;
-
- if (clearQueue)
- this.queue([]);
-
- this.each(function(){
- // go in reverse order so anything added to the queue during the loop is ignored
- for ( var i = timers.length - 1; i >= 0; i-- )
- if ( timers[i].elem == this ) {
- if (gotoEnd)
- // force the next step to be the last
- timers[i](true);
- timers.splice(i, 1);
- }
- });
-
- // start the next in the queue if the last step wasn't forced
- if (!gotoEnd)
- this.dequeue();
-
- return this;
- }
-
-});
-
-var queue = function( elem, type, array ) {
- if ( elem ){
-
- type = type || "fx";
-
- var q = jQuery.data( elem, type + "queue" );
-
- if ( !q || array )
- q = jQuery.data( elem, type + "queue", jQuery.makeArray(array) );
-
- }
- return q;
-};
-
-jQuery.fn.dequeue = function(type){
- type = type || "fx";
-
- return this.each(function(){
- var q = queue(this, type);
-
- q.shift();
-
- if ( q.length )
- q[0].call( this );
- });
-};
-
-jQuery.extend({
-
- speed: function(speed, easing, fn) {
- var opt = speed && speed.constructor == Object ? speed : {
- complete: fn || !fn && easing ||
- jQuery.isFunction( speed ) && speed,
- duration: speed,
- easing: fn && easing || easing && easing.constructor != Function && easing
- };
-
- opt.duration = (opt.duration && opt.duration.constructor == Number ?
- opt.duration :
- jQuery.fx.speeds[opt.duration]) || jQuery.fx.speeds.def;
-
- // Queueing
- opt.old = opt.complete;
- opt.complete = function(){
- if ( opt.queue !== false )
- jQuery(this).dequeue();
- if ( jQuery.isFunction( opt.old ) )
- opt.old.call( this );
- };
-
- return opt;
- },
-
- easing: {
- linear: function( p, n, firstNum, diff ) {
- return firstNum + diff * p;
- },
- swing: function( p, n, firstNum, diff ) {
- return ((-Math.cos(p*Math.PI)/2) + 0.5) * diff + firstNum;
- }
- },
-
- timers: [],
- timerId: null,
-
- fx: function( elem, options, prop ){
- this.options = options;
- this.elem = elem;
- this.prop = prop;
-
- if ( !options.orig )
- options.orig = {};
- }
-
-});
-
-jQuery.fx.prototype = {
-
- // Simple function for setting a style value
- update: function(){
- if ( this.options.step )
- this.options.step.call( this.elem, this.now, this );
-
- (jQuery.fx.step[this.prop] || jQuery.fx.step._default)( this );
-
- // Set display property to block for height/width animations
- if ( this.prop == "height" || this.prop == "width" )
- this.elem.style.display = "block";
- },
-
- // Get the current size
- cur: function(force){
- if ( this.elem[this.prop] != null && this.elem.style[this.prop] == null )
- return this.elem[ this.prop ];
-
- var r = parseFloat(jQuery.css(this.elem, this.prop, force));
- return r && r > -10000 ? r : parseFloat(jQuery.curCSS(this.elem, this.prop)) || 0;
- },
-
- // Start an animation from one number to another
- custom: function(from, to, unit){
- this.startTime = now();
- this.start = from;
- this.end = to;
- this.unit = unit || this.unit || "px";
- this.now = this.start;
- this.pos = this.state = 0;
- this.update();
-
- var self = this;
- function t(gotoEnd){
- return self.step(gotoEnd);
- }
-
- t.elem = this.elem;
-
- jQuery.timers.push(t);
-
- if ( jQuery.timerId == null ) {
- jQuery.timerId = setInterval(function(){
- var timers = jQuery.timers;
-
- for ( var i = 0; i < timers.length; i++ )
- if ( !timers[i]() )
- timers.splice(i--, 1);
-
- if ( !timers.length ) {
- clearInterval( jQuery.timerId );
- jQuery.timerId = null;
- }
- }, 13);
- }
- },
-
- // Simple 'show' function
- show: function(){
- // Remember where we started, so that we can go back to it later
- this.options.orig[this.prop] = jQuery.attr( this.elem.style, this.prop );
- this.options.show = true;
-
- // Begin the animation
- this.custom(0, this.cur());
-
- // Make sure that we start at a small width/height to avoid any
- // flash of content
- if ( this.prop == "width" || this.prop == "height" )
- this.elem.style[this.prop] = "1px";
-
- // Start by showing the element
- jQuery(this.elem).show();
- },
-
- // Simple 'hide' function
- hide: function(){
- // Remember where we started, so that we can go back to it later
- this.options.orig[this.prop] = jQuery.attr( this.elem.style, this.prop );
- this.options.hide = true;
-
- // Begin the animation
- this.custom(this.cur(), 0);
- },
-
- // Each step of an animation
- step: function(gotoEnd){
- var t = now();
-
- if ( gotoEnd || t > this.options.duration + this.startTime ) {
- this.now = this.end;
- this.pos = this.state = 1;
- this.update();
-
- this.options.curAnim[ this.prop ] = true;
-
- var done = true;
- for ( var i in this.options.curAnim )
- if ( this.options.curAnim[i] !== true )
- done = false;
-
- if ( done ) {
- if ( this.options.display != null ) {
- // Reset the overflow
- this.elem.style.overflow = this.options.overflow;
-
- // Reset the display
- this.elem.style.display = this.options.display;
- if ( jQuery.css(this.elem, "display") == "none" )
- this.elem.style.display = "block";
- }
-
- // Hide the element if the "hide" operation was done
- if ( this.options.hide )
- this.elem.style.display = "none";
-
- // Reset the properties, if the item has been hidden or shown
- if ( this.options.hide || this.options.show )
- for ( var p in this.options.curAnim )
- jQuery.attr(this.elem.style, p, this.options.orig[p]);
- }
-
- if ( done )
- // Execute the complete function
- this.options.complete.call( this.elem );
-
- return false;
- } else {
- var n = t - this.startTime;
- this.state = n / this.options.duration;
-
- // Perform the easing function, defaults to swing
- this.pos = jQuery.easing[this.options.easing || (jQuery.easing.swing ? "swing" : "linear")](this.state, n, 0, 1, this.options.duration);
- this.now = this.start + ((this.end - this.start) * this.pos);
-
- // Perform the next step of the animation
- this.update();
- }
-
- return true;
- }
-
-};
-
-jQuery.extend( jQuery.fx, {
- speeds:{
- slow: 600,
- fast: 200,
- // Default speed
- def: 400
- },
- step: {
- scrollLeft: function(fx){
- fx.elem.scrollLeft = fx.now;
- },
-
- scrollTop: function(fx){
- fx.elem.scrollTop = fx.now;
- },
-
- opacity: function(fx){
- jQuery.attr(fx.elem.style, "opacity", fx.now);
- },
-
- _default: function(fx){
- fx.elem.style[ fx.prop ] = fx.now + fx.unit;
- }
- }
-});
-// The Offset Method
-// Originally By Brandon Aaron, part of the Dimension Plugin
-// http://jquery.com/plugins/project/dimensions
-jQuery.fn.offset = function() {
- var left = 0, top = 0, elem = this[0], results;
-
- if ( elem ) with ( jQuery.browser ) {
- var parent = elem.parentNode,
- offsetChild = elem,
- offsetParent = elem.offsetParent,
- doc = elem.ownerDocument,
- safari2 = safari && parseInt(version) < 522 && !/adobeair/i.test(userAgent),
- css = jQuery.curCSS,
- fixed = css(elem, "position") == "fixed";
-
- // Use getBoundingClientRect if available
- if ( elem.getBoundingClientRect ) {
- var box = elem.getBoundingClientRect();
-
- // Add the document scroll offsets
- add(box.left + Math.max(doc.documentElement.scrollLeft, doc.body.scrollLeft),
- box.top + Math.max(doc.documentElement.scrollTop, doc.body.scrollTop));
-
- // IE adds the HTML element's border, by default it is medium which is 2px
- // IE 6 and 7 quirks mode the border width is overwritable by the following css html { border: 0; }
- // IE 7 standards mode, the border is always 2px
- // This border/offset is typically represented by the clientLeft and clientTop properties
- // However, in IE6 and 7 quirks mode the clientLeft and clientTop properties are not updated when overwriting it via CSS
- // Therefore this method will be off by 2px in IE while in quirksmode
- add( -doc.documentElement.clientLeft, -doc.documentElement.clientTop );
-
- // Otherwise loop through the offsetParents and parentNodes
- } else {
-
- // Initial element offsets
- add( elem.offsetLeft, elem.offsetTop );
-
- // Get parent offsets
- while ( offsetParent ) {
- // Add offsetParent offsets
- add( offsetParent.offsetLeft, offsetParent.offsetTop );
-
- // Mozilla and Safari > 2 does not include the border on offset parents
- // However Mozilla adds the border for table or table cells
- if ( mozilla && !/^t(able|d|h)$/i.test(offsetParent.tagName) || safari && !safari2 )
- border( offsetParent );
-
- // Add the document scroll offsets if position is fixed on any offsetParent
- if ( !fixed && css(offsetParent, "position") == "fixed" )
- fixed = true;
-
- // Set offsetChild to previous offsetParent unless it is the body element
- offsetChild = /^body$/i.test(offsetParent.tagName) ? offsetChild : offsetParent;
- // Get next offsetParent
- offsetParent = offsetParent.offsetParent;
- }
-
- // Get parent scroll offsets
- while ( parent && parent.tagName && !/^body|html$/i.test(parent.tagName) ) {
- // Remove parent scroll UNLESS that parent is inline or a table to work around Opera inline/table scrollLeft/Top bug
- if ( !/^inline|table.*$/i.test(css(parent, "display")) )
- // Subtract parent scroll offsets
- add( -parent.scrollLeft, -parent.scrollTop );
-
- // Mozilla does not add the border for a parent that has overflow != visible
- if ( mozilla && css(parent, "overflow") != "visible" )
- border( parent );
-
- // Get next parent
- parent = parent.parentNode;
- }
-
- // Safari <= 2 doubles body offsets with a fixed position element/offsetParent or absolutely positioned offsetChild
- // Mozilla doubles body offsets with a non-absolutely positioned offsetChild
- if ( (safari2 && (fixed || css(offsetChild, "position") == "absolute")) ||
- (mozilla && css(offsetChild, "position") != "absolute") )
- add( -doc.body.offsetLeft, -doc.body.offsetTop );
-
- // Add the document scroll offsets if position is fixed
- if ( fixed )
- add(Math.max(doc.documentElement.scrollLeft, doc.body.scrollLeft),
- Math.max(doc.documentElement.scrollTop, doc.body.scrollTop));
- }
-
- // Return an object with top and left properties
- results = { top: top, left: left };
- }
-
- function border(elem) {
- add( jQuery.curCSS(elem, "borderLeftWidth", true), jQuery.curCSS(elem, "borderTopWidth", true) );
- }
-
- function add(l, t) {
- left += parseInt(l, 10) || 0;
- top += parseInt(t, 10) || 0;
- }
-
- return results;
-};
-
-
-jQuery.fn.extend({
- position: function() {
- var left = 0, top = 0, results;
-
- if ( this[0] ) {
- // Get *real* offsetParent
- var offsetParent = this.offsetParent(),
-
- // Get correct offsets
- offset = this.offset(),
- parentOffset = /^body|html$/i.test(offsetParent[0].tagName) ? { top: 0, left: 0 } : offsetParent.offset();
-
- // Subtract element margins
- // note: when an element has margin: auto the offsetLeft and marginLeft
- // are the same in Safari causing offset.left to incorrectly be 0
- offset.top -= num( this, 'marginTop' );
- offset.left -= num( this, 'marginLeft' );
-
- // Add offsetParent borders
- parentOffset.top += num( offsetParent, 'borderTopWidth' );
- parentOffset.left += num( offsetParent, 'borderLeftWidth' );
-
- // Subtract the two offsets
- results = {
- top: offset.top - parentOffset.top,
- left: offset.left - parentOffset.left
- };
- }
-
- return results;
- },
-
- offsetParent: function() {
- var offsetParent = this[0].offsetParent;
- while ( offsetParent && (!/^body|html$/i.test(offsetParent.tagName) && jQuery.css(offsetParent, 'position') == 'static') )
- offsetParent = offsetParent.offsetParent;
- return jQuery(offsetParent);
- }
-});
-
-
-// Create scrollLeft and scrollTop methods
-jQuery.each( ['Left', 'Top'], function(i, name) {
- var method = 'scroll' + name;
-
- jQuery.fn[ method ] = function(val) {
- if (!this[0]) return;
-
- return val != undefined ?
-
- // Set the scroll offset
- this.each(function() {
- this == window || this == document ?
- window.scrollTo(
- !i ? val : jQuery(window).scrollLeft(),
- i ? val : jQuery(window).scrollTop()
- ) :
- this[ method ] = val;
- }) :
-
- // Return the scroll offset
- this[0] == window || this[0] == document ?
- self[ i ? 'pageYOffset' : 'pageXOffset' ] ||
- jQuery.boxModel && document.documentElement[ method ] ||
- document.body[ method ] :
- this[0][ method ];
- };
-});
-// Create innerHeight, innerWidth, outerHeight and outerWidth methods
-jQuery.each([ "Height", "Width" ], function(i, name){
-
- var tl = i ? "Left" : "Top", // top or left
- br = i ? "Right" : "Bottom"; // bottom or right
-
- // innerHeight and innerWidth
- jQuery.fn["inner" + name] = function(){
- return this[ name.toLowerCase() ]() +
- num(this, "padding" + tl) +
- num(this, "padding" + br);
- };
-
- // outerHeight and outerWidth
- jQuery.fn["outer" + name] = function(margin) {
- return this["inner" + name]() +
- num(this, "border" + tl + "Width") +
- num(this, "border" + br + "Width") +
- (margin ?
- num(this, "margin" + tl) + num(this, "margin" + br) : 0);
- };
-
-});})();
+++ /dev/null
-/*
- * jQuery 1.2.6 - New Wave Javascript
- *
- * Copyright (c) 2008 John Resig (jquery.com)
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * and GPL (GPL-LICENSE.txt) licenses.
- *
- * $Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008) $
- * $Rev: 5685 $
- */
-(function(){var _jQuery=window.jQuery,_$=window.$;var jQuery=window.jQuery=window.$=function(selector,context){return new jQuery.fn.init(selector,context);};var quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/,isSimple=/^.[^:#\[\.]*$/,undefined;jQuery.fn=jQuery.prototype={init:function(selector,context){selector=selector||document;if(selector.nodeType){this[0]=selector;this.length=1;return this;}if(typeof selector=="string"){var match=quickExpr.exec(selector);if(match&&(match[1]||!context)){if(match[1])selector=jQuery.clean([match[1]],context);else{var elem=document.getElementById(match[3]);if(elem){if(elem.id!=match[3])return jQuery().find(selector);return jQuery(elem);}selector=[];}}else
-return jQuery(context).find(selector);}else if(jQuery.isFunction(selector))return jQuery(document)[jQuery.fn.ready?"ready":"load"](selector);return this.setArray(jQuery.makeArray(selector));},jquery:"1.2.6",size:function(){return this.length;},length:0,get:function(num){return num==undefined?jQuery.makeArray(this):this[num];},pushStack:function(elems){var ret=jQuery(elems);ret.prevObject=this;return ret;},setArray:function(elems){this.length=0;Array.prototype.push.apply(this,elems);return this;},each:function(callback,args){return jQuery.each(this,callback,args);},index:function(elem){var ret=-1;return jQuery.inArray(elem&&elem.jquery?elem[0]:elem,this);},attr:function(name,value,type){var options=name;if(name.constructor==String)if(value===undefined)return this[0]&&jQuery[type||"attr"](this[0],name);else{options={};options[name]=value;}return this.each(function(i){for(name in options)jQuery.attr(type?this.style:this,name,jQuery.prop(this,options[name],type,i,name));});},css:function(key,value){if((key=='width'||key=='height')&&parseFloat(value)<0)value=undefined;return this.attr(key,value,"curCSS");},text:function(text){if(typeof text!="object"&&text!=null)return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(text));var ret="";jQuery.each(text||this,function(){jQuery.each(this.childNodes,function(){if(this.nodeType!=8)ret+=this.nodeType!=1?this.nodeValue:jQuery.fn.text([this]);});});return ret;},wrapAll:function(html){if(this[0])jQuery(html,this[0].ownerDocument).clone().insertBefore(this[0]).map(function(){var elem=this;while(elem.firstChild)elem=elem.firstChild;return elem;}).append(this);return this;},wrapInner:function(html){return this.each(function(){jQuery(this).contents().wrapAll(html);});},wrap:function(html){return this.each(function(){jQuery(this).wrapAll(html);});},append:function(){return this.domManip(arguments,true,false,function(elem){if(this.nodeType==1)this.appendChild(elem);});},prepend:function(){return this.domManip(arguments,true,true,function(elem){if(this.nodeType==1)this.insertBefore(elem,this.firstChild);});},before:function(){return this.domManip(arguments,false,false,function(elem){this.parentNode.insertBefore(elem,this);});},after:function(){return this.domManip(arguments,false,true,function(elem){this.parentNode.insertBefore(elem,this.nextSibling);});},end:function(){return this.prevObject||jQuery([]);},find:function(selector){var elems=jQuery.map(this,function(elem){return jQuery.find(selector,elem);});return this.pushStack(/[^+>] [^+>]/.test(selector)||selector.indexOf("..")>-1?jQuery.unique(elems):elems);},clone:function(events){var ret=this.map(function(){if(jQuery.browser.msie&&!jQuery.isXMLDoc(this)){var clone=this.cloneNode(true),container=document.createElement("div");container.appendChild(clone);return jQuery.clean([container.innerHTML])[0];}else
-return this.cloneNode(true);});var clone=ret.find("*").andSelf().each(function(){if(this[expando]!=undefined)this[expando]=null;});if(events===true)this.find("*").andSelf().each(function(i){if(this.nodeType==3)return;var events=jQuery.data(this,"events");for(var type in events)for(var handler in events[type])jQuery.event.add(clone[i],type,events[type][handler],events[type][handler].data);});return ret;},filter:function(selector){return this.pushStack(jQuery.isFunction(selector)&&jQuery.grep(this,function(elem,i){return selector.call(elem,i);})||jQuery.multiFilter(selector,this));},not:function(selector){if(selector.constructor==String)if(isSimple.test(selector))return this.pushStack(jQuery.multiFilter(selector,this,true));else
-selector=jQuery.multiFilter(selector,this);var isArrayLike=selector.length&&selector[selector.length-1]!==undefined&&!selector.nodeType;return this.filter(function(){return isArrayLike?jQuery.inArray(this,selector)<0:this!=selector;});},add:function(selector){return this.pushStack(jQuery.unique(jQuery.merge(this.get(),typeof selector=='string'?jQuery(selector):jQuery.makeArray(selector))));},is:function(selector){return!!selector&&jQuery.multiFilter(selector,this).length>0;},hasClass:function(selector){return this.is("."+selector);},val:function(value){if(value==undefined){if(this.length){var elem=this[0];if(jQuery.nodeName(elem,"select")){var index=elem.selectedIndex,values=[],options=elem.options,one=elem.type=="select-one";if(index<0)return null;for(var i=one?index:0,max=one?index+1:options.length;i<max;i++){var option=options[i];if(option.selected){value=jQuery.browser.msie&&!option.attributes.value.specified?option.text:option.value;if(one)return value;values.push(value);}}return values;}else
-return(this[0].value||"").replace(/\r/g,"");}return undefined;}if(value.constructor==Number)value+='';return this.each(function(){if(this.nodeType!=1)return;if(value.constructor==Array&&/radio|checkbox/.test(this.type))this.checked=(jQuery.inArray(this.value,value)>=0||jQuery.inArray(this.name,value)>=0);else if(jQuery.nodeName(this,"select")){var values=jQuery.makeArray(value);jQuery("option",this).each(function(){this.selected=(jQuery.inArray(this.value,values)>=0||jQuery.inArray(this.text,values)>=0);});if(!values.length)this.selectedIndex=-1;}else
-this.value=value;});},html:function(value){return value==undefined?(this[0]?this[0].innerHTML:null):this.empty().append(value);},replaceWith:function(value){return this.after(value).remove();},eq:function(i){return this.slice(i,i+1);},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments));},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem);}));},andSelf:function(){return this.add(this.prevObject);},data:function(key,value){var parts=key.split(".");parts[1]=parts[1]?"."+parts[1]:"";if(value===undefined){var data=this.triggerHandler("getData"+parts[1]+"!",[parts[0]]);if(data===undefined&&this.length)data=jQuery.data(this[0],key);return data===undefined&&parts[1]?this.data(parts[0]):data;}else
-return this.trigger("setData"+parts[1]+"!",[parts[0],value]).each(function(){jQuery.data(this,key,value);});},removeData:function(key){return this.each(function(){jQuery.removeData(this,key);});},domManip:function(args,table,reverse,callback){var clone=this.length>1,elems;return this.each(function(){if(!elems){elems=jQuery.clean(args,this.ownerDocument);if(reverse)elems.reverse();}var obj=this;if(table&&jQuery.nodeName(this,"table")&&jQuery.nodeName(elems[0],"tr"))obj=this.getElementsByTagName("tbody")[0]||this.appendChild(this.ownerDocument.createElement("tbody"));var scripts=jQuery([]);jQuery.each(elems,function(){var elem=clone?jQuery(this).clone(true)[0]:this;if(jQuery.nodeName(elem,"script"))scripts=scripts.add(elem);else{if(elem.nodeType==1)scripts=scripts.add(jQuery("script",elem).remove());callback.call(obj,elem);}});scripts.each(evalScript);});}};jQuery.fn.init.prototype=jQuery.fn;function evalScript(i,elem){if(elem.src)jQuery.ajax({url:elem.src,async:false,dataType:"script"});else
-jQuery.globalEval(elem.text||elem.textContent||elem.innerHTML||"");if(elem.parentNode)elem.parentNode.removeChild(elem);}function now(){return+new Date;}jQuery.extend=jQuery.fn.extend=function(){var target=arguments[0]||{},i=1,length=arguments.length,deep=false,options;if(target.constructor==Boolean){deep=target;target=arguments[1]||{};i=2;}if(typeof target!="object"&&typeof target!="function")target={};if(length==i){target=this;--i;}for(;i<length;i++)if((options=arguments[i])!=null)for(var name in options){var src=target[name],copy=options[name];if(target===copy)continue;if(deep&©&&typeof copy=="object"&&!copy.nodeType)target[name]=jQuery.extend(deep,src||(copy.length!=null?[]:{}),copy);else if(copy!==undefined)target[name]=copy;}return target;};var expando="jQuery"+now(),uuid=0,windowData={},exclude=/z-?index|font-?weight|opacity|zoom|line-?height/i,defaultView=document.defaultView||{};jQuery.extend({noConflict:function(deep){window.$=_$;if(deep)window.jQuery=_jQuery;return jQuery;},isFunction:function(fn){return!!fn&&typeof fn!="string"&&!fn.nodeName&&fn.constructor!=Array&&/^[\s[]?function/.test(fn+"");},isXMLDoc:function(elem){return elem.documentElement&&!elem.body||elem.tagName&&elem.ownerDocument&&!elem.ownerDocument.body;},globalEval:function(data){data=jQuery.trim(data);if(data){var head=document.getElementsByTagName("head")[0]||document.documentElement,script=document.createElement("script");script.type="text/javascript";if(jQuery.browser.msie)script.text=data;else
-script.appendChild(document.createTextNode(data));head.insertBefore(script,head.firstChild);head.removeChild(script);}},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toUpperCase()==name.toUpperCase();},cache:{},data:function(elem,name,data){elem=elem==window?windowData:elem;var id=elem[expando];if(!id)id=elem[expando]=++uuid;if(name&&!jQuery.cache[id])jQuery.cache[id]={};if(data!==undefined)jQuery.cache[id][name]=data;return name?jQuery.cache[id][name]:id;},removeData:function(elem,name){elem=elem==window?windowData:elem;var id=elem[expando];if(name){if(jQuery.cache[id]){delete jQuery.cache[id][name];name="";for(name in jQuery.cache[id])break;if(!name)jQuery.removeData(elem);}}else{try{delete elem[expando];}catch(e){if(elem.removeAttribute)elem.removeAttribute(expando);}delete jQuery.cache[id];}},each:function(object,callback,args){var name,i=0,length=object.length;if(args){if(length==undefined){for(name in object)if(callback.apply(object[name],args)===false)break;}else
-for(;i<length;)if(callback.apply(object[i++],args)===false)break;}else{if(length==undefined){for(name in object)if(callback.call(object[name],name,object[name])===false)break;}else
-for(var value=object[0];i<length&&callback.call(value,i,value)!==false;value=object[++i]){}}return object;},prop:function(elem,value,type,i,name){if(jQuery.isFunction(value))value=value.call(elem,i);return value&&value.constructor==Number&&type=="curCSS"&&!exclude.test(name)?value+"px":value;},className:{add:function(elem,classNames){jQuery.each((classNames||"").split(/\s+/),function(i,className){if(elem.nodeType==1&&!jQuery.className.has(elem.className,className))elem.className+=(elem.className?" ":"")+className;});},remove:function(elem,classNames){if(elem.nodeType==1)elem.className=classNames!=undefined?jQuery.grep(elem.className.split(/\s+/),function(className){return!jQuery.className.has(classNames,className);}).join(" "):"";},has:function(elem,className){return jQuery.inArray(className,(elem.className||elem).toString().split(/\s+/))>-1;}},swap:function(elem,options,callback){var old={};for(var name in options){old[name]=elem.style[name];elem.style[name]=options[name];}callback.call(elem);for(var name in options)elem.style[name]=old[name];},css:function(elem,name,force){if(name=="width"||name=="height"){var val,props={position:"absolute",visibility:"hidden",display:"block"},which=name=="width"?["Left","Right"]:["Top","Bottom"];function getWH(){val=name=="width"?elem.offsetWidth:elem.offsetHeight;var padding=0,border=0;jQuery.each(which,function(){padding+=parseFloat(jQuery.curCSS(elem,"padding"+this,true))||0;border+=parseFloat(jQuery.curCSS(elem,"border"+this+"Width",true))||0;});val-=Math.round(padding+border);}if(jQuery(elem).is(":visible"))getWH();else
-jQuery.swap(elem,props,getWH);return Math.max(0,val);}return jQuery.curCSS(elem,name,force);},curCSS:function(elem,name,force){var ret,style=elem.style;function color(elem){if(!jQuery.browser.safari)return false;var ret=defaultView.getComputedStyle(elem,null);return!ret||ret.getPropertyValue("color")=="";}if(name=="opacity"&&jQuery.browser.msie){ret=jQuery.attr(style,"opacity");return ret==""?"1":ret;}if(jQuery.browser.opera&&name=="display"){var save=style.outline;style.outline="0 solid black";style.outline=save;}if(name.match(/float/i))name=styleFloat;if(!force&&style&&style[name])ret=style[name];else if(defaultView.getComputedStyle){if(name.match(/float/i))name="float";name=name.replace(/([A-Z])/g,"-$1").toLowerCase();var computedStyle=defaultView.getComputedStyle(elem,null);if(computedStyle&&!color(elem))ret=computedStyle.getPropertyValue(name);else{var swap=[],stack=[],a=elem,i=0;for(;a&&color(a);a=a.parentNode)stack.unshift(a);for(;i<stack.length;i++)if(color(stack[i])){swap[i]=stack[i].style.display;stack[i].style.display="block";}ret=name=="display"&&swap[stack.length-1]!=null?"none":(computedStyle&&computedStyle.getPropertyValue(name))||"";for(i=0;i<swap.length;i++)if(swap[i]!=null)stack[i].style.display=swap[i];}if(name=="opacity"&&ret=="")ret="1";}else if(elem.currentStyle){var camelCase=name.replace(/\-(\w)/g,function(all,letter){return letter.toUpperCase();});ret=elem.currentStyle[name]||elem.currentStyle[camelCase];if(!/^\d+(px)?$/i.test(ret)&&/^\d/.test(ret)){var left=style.left,rsLeft=elem.runtimeStyle.left;elem.runtimeStyle.left=elem.currentStyle.left;style.left=ret||0;ret=style.pixelLeft+"px";style.left=left;elem.runtimeStyle.left=rsLeft;}}return ret;},clean:function(elems,context){var ret=[];context=context||document;if(typeof context.createElement=='undefined')context=context.ownerDocument||context[0]&&context[0].ownerDocument||document;jQuery.each(elems,function(i,elem){if(!elem)return;if(elem.constructor==Number)elem+='';if(typeof elem=="string"){elem=elem.replace(/(<(\w+)[^>]*?)\/>/g,function(all,front,tag){return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?all:front+"></"+tag+">";});var tags=jQuery.trim(elem).toLowerCase(),div=context.createElement("div");var wrap=!tags.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!tags.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||tags.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!tags.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!tags.indexOf("<td")||!tags.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!tags.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||jQuery.browser.msie&&[1,"div<div>","</div>"]||[0,"",""];div.innerHTML=wrap[1]+elem+wrap[2];while(wrap[0]--)div=div.lastChild;if(jQuery.browser.msie){var tbody=!tags.indexOf("<table")&&tags.indexOf("<tbody")<0?div.firstChild&&div.firstChild.childNodes:wrap[1]=="<table>"&&tags.indexOf("<tbody")<0?div.childNodes:[];for(var j=tbody.length-1;j>=0;--j)if(jQuery.nodeName(tbody[j],"tbody")&&!tbody[j].childNodes.length)tbody[j].parentNode.removeChild(tbody[j]);if(/^\s/.test(elem))div.insertBefore(context.createTextNode(elem.match(/^\s*/)[0]),div.firstChild);}elem=jQuery.makeArray(div.childNodes);}if(elem.length===0&&(!jQuery.nodeName(elem,"form")&&!jQuery.nodeName(elem,"select")))return;if(elem[0]==undefined||jQuery.nodeName(elem,"form")||elem.options)ret.push(elem);else
-ret=jQuery.merge(ret,elem);});return ret;},attr:function(elem,name,value){if(!elem||elem.nodeType==3||elem.nodeType==8)return undefined;var notxml=!jQuery.isXMLDoc(elem),set=value!==undefined,msie=jQuery.browser.msie;name=notxml&&jQuery.props[name]||name;if(elem.tagName){var special=/href|src|style/.test(name);if(name=="selected"&&jQuery.browser.safari)elem.parentNode.selectedIndex;if(name in elem&¬xml&&!special){if(set){if(name=="type"&&jQuery.nodeName(elem,"input")&&elem.parentNode)throw"type property can't be changed";elem[name]=value;}if(jQuery.nodeName(elem,"form")&&elem.getAttributeNode(name))return elem.getAttributeNode(name).nodeValue;return elem[name];}if(msie&¬xml&&name=="style")return jQuery.attr(elem.style,"cssText",value);if(set)elem.setAttribute(name,""+value);var attr=msie&¬xml&&special?elem.getAttribute(name,2):elem.getAttribute(name);return attr===null?undefined:attr;}if(msie&&name=="opacity"){if(set){elem.zoom=1;elem.filter=(elem.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(value)+''=="NaN"?"":"alpha(opacity="+value*100+")");}return elem.filter&&elem.filter.indexOf("opacity=")>=0?(parseFloat(elem.filter.match(/opacity=([^)]*)/)[1])/100)+'':"";}name=name.replace(/-([a-z])/ig,function(all,letter){return letter.toUpperCase();});if(set)elem[name]=value;return elem[name];},trim:function(text){return(text||"").replace(/^\s+|\s+$/g,"");},makeArray:function(array){var ret=[];if(array!=null){var i=array.length;if(i==null||array.split||array.setInterval||array.call)ret[0]=array;else
-while(i)ret[--i]=array[i];}return ret;},inArray:function(elem,array){for(var i=0,length=array.length;i<length;i++)if(array[i]===elem)return i;return-1;},merge:function(first,second){var i=0,elem,pos=first.length;if(jQuery.browser.msie){while(elem=second[i++])if(elem.nodeType!=8)first[pos++]=elem;}else
-while(elem=second[i++])first[pos++]=elem;return first;},unique:function(array){var ret=[],done={};try{for(var i=0,length=array.length;i<length;i++){var id=jQuery.data(array[i]);if(!done[id]){done[id]=true;ret.push(array[i]);}}}catch(e){ret=array;}return ret;},grep:function(elems,callback,inv){var ret=[];for(var i=0,length=elems.length;i<length;i++)if(!inv!=!callback(elems[i],i))ret.push(elems[i]);return ret;},map:function(elems,callback){var ret=[];for(var i=0,length=elems.length;i<length;i++){var value=callback(elems[i],i);if(value!=null)ret[ret.length]=value;}return ret.concat.apply([],ret);}});var userAgent=navigator.userAgent.toLowerCase();jQuery.browser={version:(userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(userAgent),opera:/opera/.test(userAgent),msie:/msie/.test(userAgent)&&!/opera/.test(userAgent),mozilla:/mozilla/.test(userAgent)&&!/(compatible|webkit)/.test(userAgent)};var styleFloat=jQuery.browser.msie?"styleFloat":"cssFloat";jQuery.extend({boxModel:!jQuery.browser.msie||document.compatMode=="CSS1Compat",props:{"for":"htmlFor","class":"className","float":styleFloat,cssFloat:styleFloat,styleFloat:styleFloat,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing"}});jQuery.each({parent:function(elem){return elem.parentNode;},parents:function(elem){return jQuery.dir(elem,"parentNode");},next:function(elem){return jQuery.nth(elem,2,"nextSibling");},prev:function(elem){return jQuery.nth(elem,2,"previousSibling");},nextAll:function(elem){return jQuery.dir(elem,"nextSibling");},prevAll:function(elem){return jQuery.dir(elem,"previousSibling");},siblings:function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem);},children:function(elem){return jQuery.sibling(elem.firstChild);},contents:function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes);}},function(name,fn){jQuery.fn[name]=function(selector){var ret=jQuery.map(this,fn);if(selector&&typeof selector=="string")ret=jQuery.multiFilter(selector,ret);return this.pushStack(jQuery.unique(ret));};});jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){jQuery.fn[name]=function(){var args=arguments;return this.each(function(){for(var i=0,length=args.length;i<length;i++)jQuery(args[i])[original](this);});};});jQuery.each({removeAttr:function(name){jQuery.attr(this,name,"");if(this.nodeType==1)this.removeAttribute(name);},addClass:function(classNames){jQuery.className.add(this,classNames);},removeClass:function(classNames){jQuery.className.remove(this,classNames);},toggleClass:function(classNames){jQuery.className[jQuery.className.has(this,classNames)?"remove":"add"](this,classNames);},remove:function(selector){if(!selector||jQuery.filter(selector,[this]).r.length){jQuery("*",this).add(this).each(function(){jQuery.event.remove(this);jQuery.removeData(this);});if(this.parentNode)this.parentNode.removeChild(this);}},empty:function(){jQuery(">*",this).remove();while(this.firstChild)this.removeChild(this.firstChild);}},function(name,fn){jQuery.fn[name]=function(){return this.each(fn,arguments);};});jQuery.each(["Height","Width"],function(i,name){var type=name.toLowerCase();jQuery.fn[type]=function(size){return this[0]==window?jQuery.browser.opera&&document.body["client"+name]||jQuery.browser.safari&&window["inner"+name]||document.compatMode=="CSS1Compat"&&document.documentElement["client"+name]||document.body["client"+name]:this[0]==document?Math.max(Math.max(document.body["scroll"+name],document.documentElement["scroll"+name]),Math.max(document.body["offset"+name],document.documentElement["offset"+name])):size==undefined?(this.length?jQuery.css(this[0],type):null):this.css(type,size.constructor==String?size:size+"px");};});function num(elem,prop){return elem[0]&&parseInt(jQuery.curCSS(elem[0],prop,true),10)||0;}var chars=jQuery.browser.safari&&parseInt(jQuery.browser.version)<417?"(?:[\\w*_-]|\\\\.)":"(?:[\\w\u0128-\uFFFF*_-]|\\\\.)",quickChild=new RegExp("^>\\s*("+chars+"+)"),quickID=new RegExp("^("+chars+"+)(#)("+chars+"+)"),quickClass=new RegExp("^([#.]?)("+chars+"*)");jQuery.extend({expr:{"":function(a,i,m){return m[2]=="*"||jQuery.nodeName(a,m[2]);},"#":function(a,i,m){return a.getAttribute("id")==m[2];},":":{lt:function(a,i,m){return i<m[3]-0;},gt:function(a,i,m){return i>m[3]-0;},nth:function(a,i,m){return m[3]-0==i;},eq:function(a,i,m){return m[3]-0==i;},first:function(a,i){return i==0;},last:function(a,i,m,r){return i==r.length-1;},even:function(a,i){return i%2==0;},odd:function(a,i){return i%2;},"first-child":function(a){return a.parentNode.getElementsByTagName("*")[0]==a;},"last-child":function(a){return jQuery.nth(a.parentNode.lastChild,1,"previousSibling")==a;},"only-child":function(a){return!jQuery.nth(a.parentNode.lastChild,2,"previousSibling");},parent:function(a){return a.firstChild;},empty:function(a){return!a.firstChild;},contains:function(a,i,m){return(a.textContent||a.innerText||jQuery(a).text()||"").indexOf(m[3])>=0;},visible:function(a){return"hidden"!=a.type&&jQuery.css(a,"display")!="none"&&jQuery.css(a,"visibility")!="hidden";},hidden:function(a){return"hidden"==a.type||jQuery.css(a,"display")=="none"||jQuery.css(a,"visibility")=="hidden";},enabled:function(a){return!a.disabled;},disabled:function(a){return a.disabled;},checked:function(a){return a.checked;},selected:function(a){return a.selected||jQuery.attr(a,"selected");},text:function(a){return"text"==a.type;},radio:function(a){return"radio"==a.type;},checkbox:function(a){return"checkbox"==a.type;},file:function(a){return"file"==a.type;},password:function(a){return"password"==a.type;},submit:function(a){return"submit"==a.type;},image:function(a){return"image"==a.type;},reset:function(a){return"reset"==a.type;},button:function(a){return"button"==a.type||jQuery.nodeName(a,"button");},input:function(a){return/input|select|textarea|button/i.test(a.nodeName);},has:function(a,i,m){return jQuery.find(m[3],a).length;},header:function(a){return/h\d/i.test(a.nodeName);},animated:function(a){return jQuery.grep(jQuery.timers,function(fn){return a==fn.elem;}).length;}}},parse:[/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,new RegExp("^([:.#]*)("+chars+"+)")],multiFilter:function(expr,elems,not){var old,cur=[];while(expr&&expr!=old){old=expr;var f=jQuery.filter(expr,elems,not);expr=f.t.replace(/^\s*,\s*/,"");cur=not?elems=f.r:jQuery.merge(cur,f.r);}return cur;},find:function(t,context){if(typeof t!="string")return[t];if(context&&context.nodeType!=1&&context.nodeType!=9)return[];context=context||document;var ret=[context],done=[],last,nodeName;while(t&&last!=t){var r=[];last=t;t=jQuery.trim(t);var foundToken=false,re=quickChild,m=re.exec(t);if(m){nodeName=m[1].toUpperCase();for(var i=0;ret[i];i++)for(var c=ret[i].firstChild;c;c=c.nextSibling)if(c.nodeType==1&&(nodeName=="*"||c.nodeName.toUpperCase()==nodeName))r.push(c);ret=r;t=t.replace(re,"");if(t.indexOf(" ")==0)continue;foundToken=true;}else{re=/^([>+~])\s*(\w*)/i;if((m=re.exec(t))!=null){r=[];var merge={};nodeName=m[2].toUpperCase();m=m[1];for(var j=0,rl=ret.length;j<rl;j++){var n=m=="~"||m=="+"?ret[j].nextSibling:ret[j].firstChild;for(;n;n=n.nextSibling)if(n.nodeType==1){var id=jQuery.data(n);if(m=="~"&&merge[id])break;if(!nodeName||n.nodeName.toUpperCase()==nodeName){if(m=="~")merge[id]=true;r.push(n);}if(m=="+")break;}}ret=r;t=jQuery.trim(t.replace(re,""));foundToken=true;}}if(t&&!foundToken){if(!t.indexOf(",")){if(context==ret[0])ret.shift();done=jQuery.merge(done,ret);r=ret=[context];t=" "+t.substr(1,t.length);}else{var re2=quickID;var m=re2.exec(t);if(m){m=[0,m[2],m[3],m[1]];}else{re2=quickClass;m=re2.exec(t);}m[2]=m[2].replace(/\\/g,"");var elem=ret[ret.length-1];if(m[1]=="#"&&elem&&elem.getElementById&&!jQuery.isXMLDoc(elem)){var oid=elem.getElementById(m[2]);if((jQuery.browser.msie||jQuery.browser.opera)&&oid&&typeof oid.id=="string"&&oid.id!=m[2])oid=jQuery('[@id="'+m[2]+'"]',elem)[0];ret=r=oid&&(!m[3]||jQuery.nodeName(oid,m[3]))?[oid]:[];}else{for(var i=0;ret[i];i++){var tag=m[1]=="#"&&m[3]?m[3]:m[1]!=""||m[0]==""?"*":m[2];if(tag=="*"&&ret[i].nodeName.toLowerCase()=="object")tag="param";r=jQuery.merge(r,ret[i].getElementsByTagName(tag));}if(m[1]==".")r=jQuery.classFilter(r,m[2]);if(m[1]=="#"){var tmp=[];for(var i=0;r[i];i++)if(r[i].getAttribute("id")==m[2]){tmp=[r[i]];break;}r=tmp;}ret=r;}t=t.replace(re2,"");}}if(t){var val=jQuery.filter(t,r);ret=r=val.r;t=jQuery.trim(val.t);}}if(t)ret=[];if(ret&&context==ret[0])ret.shift();done=jQuery.merge(done,ret);return done;},classFilter:function(r,m,not){m=" "+m+" ";var tmp=[];for(var i=0;r[i];i++){var pass=(" "+r[i].className+" ").indexOf(m)>=0;if(!not&&pass||not&&!pass)tmp.push(r[i]);}return tmp;},filter:function(t,r,not){var last;while(t&&t!=last){last=t;var p=jQuery.parse,m;for(var i=0;p[i];i++){m=p[i].exec(t);if(m){t=t.substring(m[0].length);m[2]=m[2].replace(/\\/g,"");break;}}if(!m)break;if(m[1]==":"&&m[2]=="not")r=isSimple.test(m[3])?jQuery.filter(m[3],r,true).r:jQuery(r).not(m[3]);else if(m[1]==".")r=jQuery.classFilter(r,m[2],not);else if(m[1]=="["){var tmp=[],type=m[3];for(var i=0,rl=r.length;i<rl;i++){var a=r[i],z=a[jQuery.props[m[2]]||m[2]];if(z==null||/href|src|selected/.test(m[2]))z=jQuery.attr(a,m[2])||'';if((type==""&&!!z||type=="="&&z==m[5]||type=="!="&&z!=m[5]||type=="^="&&z&&!z.indexOf(m[5])||type=="$="&&z.substr(z.length-m[5].length)==m[5]||(type=="*="||type=="~=")&&z.indexOf(m[5])>=0)^not)tmp.push(a);}r=tmp;}else if(m[1]==":"&&m[2]=="nth-child"){var merge={},tmp=[],test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(m[3]=="even"&&"2n"||m[3]=="odd"&&"2n+1"||!/\D/.test(m[3])&&"0n+"+m[3]||m[3]),first=(test[1]+(test[2]||1))-0,last=test[3]-0;for(var i=0,rl=r.length;i<rl;i++){var node=r[i],parentNode=node.parentNode,id=jQuery.data(parentNode);if(!merge[id]){var c=1;for(var n=parentNode.firstChild;n;n=n.nextSibling)if(n.nodeType==1)n.nodeIndex=c++;merge[id]=true;}var add=false;if(first==0){if(node.nodeIndex==last)add=true;}else if((node.nodeIndex-last)%first==0&&(node.nodeIndex-last)/first>=0)add=true;if(add^not)tmp.push(node);}r=tmp;}else{var fn=jQuery.expr[m[1]];if(typeof fn=="object")fn=fn[m[2]];if(typeof fn=="string")fn=eval("false||function(a,i){return "+fn+";}");r=jQuery.grep(r,function(elem,i){return fn(elem,i,m,r);},not);}}return{r:r,t:t};},dir:function(elem,dir){var matched=[],cur=elem[dir];while(cur&&cur!=document){if(cur.nodeType==1)matched.push(cur);cur=cur[dir];}return matched;},nth:function(cur,result,dir,elem){result=result||1;var num=0;for(;cur;cur=cur[dir])if(cur.nodeType==1&&++num==result)break;return cur;},sibling:function(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.nodeType==1&&n!=elem)r.push(n);}return r;}});jQuery.event={add:function(elem,types,handler,data){if(elem.nodeType==3||elem.nodeType==8)return;if(jQuery.browser.msie&&elem.setInterval)elem=window;if(!handler.guid)handler.guid=this.guid++;if(data!=undefined){var fn=handler;handler=this.proxy(fn,function(){return fn.apply(this,arguments);});handler.data=data;}var events=jQuery.data(elem,"events")||jQuery.data(elem,"events",{}),handle=jQuery.data(elem,"handle")||jQuery.data(elem,"handle",function(){if(typeof jQuery!="undefined"&&!jQuery.event.triggered)return jQuery.event.handle.apply(arguments.callee.elem,arguments);});handle.elem=elem;jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];handler.type=parts[1];var handlers=events[type];if(!handlers){handlers=events[type]={};if(!jQuery.event.special[type]||jQuery.event.special[type].setup.call(elem)===false){if(elem.addEventListener)elem.addEventListener(type,handle,false);else if(elem.attachEvent)elem.attachEvent("on"+type,handle);}}handlers[handler.guid]=handler;jQuery.event.global[type]=true;});elem=null;},guid:1,global:{},remove:function(elem,types,handler){if(elem.nodeType==3||elem.nodeType==8)return;var events=jQuery.data(elem,"events"),ret,index;if(events){if(types==undefined||(typeof types=="string"&&types.charAt(0)=="."))for(var type in events)this.remove(elem,type+(types||""));else{if(types.type){handler=types.handler;types=types.type;}jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];if(events[type]){if(handler)delete events[type][handler.guid];else
-for(handler in events[type])if(!parts[1]||events[type][handler].type==parts[1])delete events[type][handler];for(ret in events[type])break;if(!ret){if(!jQuery.event.special[type]||jQuery.event.special[type].teardown.call(elem)===false){if(elem.removeEventListener)elem.removeEventListener(type,jQuery.data(elem,"handle"),false);else if(elem.detachEvent)elem.detachEvent("on"+type,jQuery.data(elem,"handle"));}ret=null;delete events[type];}}});}for(ret in events)break;if(!ret){var handle=jQuery.data(elem,"handle");if(handle)handle.elem=null;jQuery.removeData(elem,"events");jQuery.removeData(elem,"handle");}}},trigger:function(type,data,elem,donative,extra){data=jQuery.makeArray(data);if(type.indexOf("!")>=0){type=type.slice(0,-1);var exclusive=true;}if(!elem){if(this.global[type])jQuery("*").add([window,document]).trigger(type,data);}else{if(elem.nodeType==3||elem.nodeType==8)return undefined;var val,ret,fn=jQuery.isFunction(elem[type]||null),event=!data[0]||!data[0].preventDefault;if(event){data.unshift({type:type,target:elem,preventDefault:function(){},stopPropagation:function(){},timeStamp:now()});data[0][expando]=true;}data[0].type=type;if(exclusive)data[0].exclusive=true;var handle=jQuery.data(elem,"handle");if(handle)val=handle.apply(elem,data);if((!fn||(jQuery.nodeName(elem,'a')&&type=="click"))&&elem["on"+type]&&elem["on"+type].apply(elem,data)===false)val=false;if(event)data.shift();if(extra&&jQuery.isFunction(extra)){ret=extra.apply(elem,val==null?data:data.concat(val));if(ret!==undefined)val=ret;}if(fn&&donative!==false&&val!==false&&!(jQuery.nodeName(elem,'a')&&type=="click")){this.triggered=true;try{elem[type]();}catch(e){}}this.triggered=false;}return val;},handle:function(event){var val,ret,namespace,all,handlers;event=arguments[0]=jQuery.event.fix(event||window.event);namespace=event.type.split(".");event.type=namespace[0];namespace=namespace[1];all=!namespace&&!event.exclusive;handlers=(jQuery.data(this,"events")||{})[event.type];for(var j in handlers){var handler=handlers[j];if(all||handler.type==namespace){event.handler=handler;event.data=handler.data;ret=handler.apply(this,arguments);if(val!==false)val=ret;if(ret===false){event.preventDefault();event.stopPropagation();}}}return val;},fix:function(event){if(event[expando]==true)return event;var originalEvent=event;event={originalEvent:originalEvent};var props="altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target timeStamp toElement type view wheelDelta which".split(" ");for(var i=props.length;i;i--)event[props[i]]=originalEvent[props[i]];event[expando]=true;event.preventDefault=function(){if(originalEvent.preventDefault)originalEvent.preventDefault();originalEvent.returnValue=false;};event.stopPropagation=function(){if(originalEvent.stopPropagation)originalEvent.stopPropagation();originalEvent.cancelBubble=true;};event.timeStamp=event.timeStamp||now();if(!event.target)event.target=event.srcElement||document;if(event.target.nodeType==3)event.target=event.target.parentNode;if(!event.relatedTarget&&event.fromElement)event.relatedTarget=event.fromElement==event.target?event.toElement:event.fromElement;if(event.pageX==null&&event.clientX!=null){var doc=document.documentElement,body=document.body;event.pageX=event.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc.clientLeft||0);event.pageY=event.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc.clientTop||0);}if(!event.which&&((event.charCode||event.charCode===0)?event.charCode:event.keyCode))event.which=event.charCode||event.keyCode;if(!event.metaKey&&event.ctrlKey)event.metaKey=event.ctrlKey;if(!event.which&&event.button)event.which=(event.button&1?1:(event.button&2?3:(event.button&4?2:0)));return event;},proxy:function(fn,proxy){proxy.guid=fn.guid=fn.guid||proxy.guid||this.guid++;return proxy;},special:{ready:{setup:function(){bindReady();return;},teardown:function(){return;}},mouseenter:{setup:function(){if(jQuery.browser.msie)return false;jQuery(this).bind("mouseover",jQuery.event.special.mouseenter.handler);return true;},teardown:function(){if(jQuery.browser.msie)return false;jQuery(this).unbind("mouseover",jQuery.event.special.mouseenter.handler);return true;},handler:function(event){if(withinElement(event,this))return true;event.type="mouseenter";return jQuery.event.handle.apply(this,arguments);}},mouseleave:{setup:function(){if(jQuery.browser.msie)return false;jQuery(this).bind("mouseout",jQuery.event.special.mouseleave.handler);return true;},teardown:function(){if(jQuery.browser.msie)return false;jQuery(this).unbind("mouseout",jQuery.event.special.mouseleave.handler);return true;},handler:function(event){if(withinElement(event,this))return true;event.type="mouseleave";return jQuery.event.handle.apply(this,arguments);}}}};jQuery.fn.extend({bind:function(type,data,fn){return type=="unload"?this.one(type,data,fn):this.each(function(){jQuery.event.add(this,type,fn||data,fn&&data);});},one:function(type,data,fn){var one=jQuery.event.proxy(fn||data,function(event){jQuery(this).unbind(event,one);return(fn||data).apply(this,arguments);});return this.each(function(){jQuery.event.add(this,type,one,fn&&data);});},unbind:function(type,fn){return this.each(function(){jQuery.event.remove(this,type,fn);});},trigger:function(type,data,fn){return this.each(function(){jQuery.event.trigger(type,data,this,true,fn);});},triggerHandler:function(type,data,fn){return this[0]&&jQuery.event.trigger(type,data,this[0],false,fn);},toggle:function(fn){var args=arguments,i=1;while(i<args.length)jQuery.event.proxy(fn,args[i++]);return this.click(jQuery.event.proxy(fn,function(event){this.lastToggle=(this.lastToggle||0)%i;event.preventDefault();return args[this.lastToggle++].apply(this,arguments)||false;}));},hover:function(fnOver,fnOut){return this.bind('mouseenter',fnOver).bind('mouseleave',fnOut);},ready:function(fn){bindReady();if(jQuery.isReady)fn.call(document,jQuery);else
-jQuery.readyList.push(function(){return fn.call(this,jQuery);});return this;}});jQuery.extend({isReady:false,readyList:[],ready:function(){if(!jQuery.isReady){jQuery.isReady=true;if(jQuery.readyList){jQuery.each(jQuery.readyList,function(){this.call(document);});jQuery.readyList=null;}jQuery(document).triggerHandler("ready");}}});var readyBound=false;function bindReady(){if(readyBound)return;readyBound=true;if(document.addEventListener&&!jQuery.browser.opera)document.addEventListener("DOMContentLoaded",jQuery.ready,false);if(jQuery.browser.msie&&window==top)(function(){if(jQuery.isReady)return;try{document.documentElement.doScroll("left");}catch(error){setTimeout(arguments.callee,0);return;}jQuery.ready();})();if(jQuery.browser.opera)document.addEventListener("DOMContentLoaded",function(){if(jQuery.isReady)return;for(var i=0;i<document.styleSheets.length;i++)if(document.styleSheets[i].disabled){setTimeout(arguments.callee,0);return;}jQuery.ready();},false);if(jQuery.browser.safari){var numStyles;(function(){if(jQuery.isReady)return;if(document.readyState!="loaded"&&document.readyState!="complete"){setTimeout(arguments.callee,0);return;}if(numStyles===undefined)numStyles=jQuery("style, link[rel=stylesheet]").length;if(document.styleSheets.length!=numStyles){setTimeout(arguments.callee,0);return;}jQuery.ready();})();}jQuery.event.add(window,"load",jQuery.ready);}jQuery.each(("blur,focus,load,resize,scroll,unload,click,dblclick,"+"mousedown,mouseup,mousemove,mouseover,mouseout,change,select,"+"submit,keydown,keypress,keyup,error").split(","),function(i,name){jQuery.fn[name]=function(fn){return fn?this.bind(name,fn):this.trigger(name);};});var withinElement=function(event,elem){var parent=event.relatedTarget;while(parent&&parent!=elem)try{parent=parent.parentNode;}catch(error){parent=elem;}return parent==elem;};jQuery(window).bind("unload",function(){jQuery("*").add(document).unbind();});jQuery.fn.extend({_load:jQuery.fn.load,load:function(url,params,callback){if(typeof url!='string')return this._load(url);var off=url.indexOf(" ");if(off>=0){var selector=url.slice(off,url.length);url=url.slice(0,off);}callback=callback||function(){};var type="GET";if(params)if(jQuery.isFunction(params)){callback=params;params=null;}else{params=jQuery.param(params);type="POST";}var self=this;jQuery.ajax({url:url,type:type,dataType:"html",data:params,complete:function(res,status){if(status=="success"||status=="notmodified")self.html(selector?jQuery("<div/>").append(res.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(selector):res.responseText);self.each(callback,[res.responseText,status,res]);}});return this;},serialize:function(){return jQuery.param(this.serializeArray());},serializeArray:function(){return this.map(function(){return jQuery.nodeName(this,"form")?jQuery.makeArray(this.elements):this;}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password/i.test(this.type));}).map(function(i,elem){var val=jQuery(this).val();return val==null?null:val.constructor==Array?jQuery.map(val,function(val,i){return{name:elem.name,value:val};}):{name:elem.name,value:val};}).get();}});jQuery.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(i,o){jQuery.fn[o]=function(f){return this.bind(o,f);};});var jsc=now();jQuery.extend({get:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data=null;}return jQuery.ajax({type:"GET",url:url,data:data,success:callback,dataType:type});},getScript:function(url,callback){return jQuery.get(url,null,callback,"script");},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json");},post:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data={};}return jQuery.ajax({type:"POST",url:url,data:data,success:callback,dataType:type});},ajaxSetup:function(settings){jQuery.extend(jQuery.ajaxSettings,settings);},ajaxSettings:{url:location.href,global:true,type:"GET",timeout:0,contentType:"application/x-www-form-urlencoded",processData:true,async:true,data:null,username:null,password:null,accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(s){s=jQuery.extend(true,s,jQuery.extend(true,{},jQuery.ajaxSettings,s));var jsonp,jsre=/=\?(&|$)/g,status,data,type=s.type.toUpperCase();if(s.data&&s.processData&&typeof s.data!="string")s.data=jQuery.param(s.data);if(s.dataType=="jsonp"){if(type=="GET"){if(!s.url.match(jsre))s.url+=(s.url.match(/\?/)?"&":"?")+(s.jsonp||"callback")+"=?";}else if(!s.data||!s.data.match(jsre))s.data=(s.data?s.data+"&":"")+(s.jsonp||"callback")+"=?";s.dataType="json";}if(s.dataType=="json"&&(s.data&&s.data.match(jsre)||s.url.match(jsre))){jsonp="jsonp"+jsc++;if(s.data)s.data=(s.data+"").replace(jsre,"="+jsonp+"$1");s.url=s.url.replace(jsre,"="+jsonp+"$1");s.dataType="script";window[jsonp]=function(tmp){data=tmp;success();complete();window[jsonp]=undefined;try{delete window[jsonp];}catch(e){}if(head)head.removeChild(script);};}if(s.dataType=="script"&&s.cache==null)s.cache=false;if(s.cache===false&&type=="GET"){var ts=now();var ret=s.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+ts+"$2");s.url=ret+((ret==s.url)?(s.url.match(/\?/)?"&":"?")+"_="+ts:"");}if(s.data&&type=="GET"){s.url+=(s.url.match(/\?/)?"&":"?")+s.data;s.data=null;}if(s.global&&!jQuery.active++)jQuery.event.trigger("ajaxStart");var remote=/^(?:\w+:)?\/\/([^\/?#]+)/;if(s.dataType=="script"&&type=="GET"&&remote.test(s.url)&&remote.exec(s.url)[1]!=location.host){var head=document.getElementsByTagName("head")[0];var script=document.createElement("script");script.src=s.url;if(s.scriptCharset)script.charset=s.scriptCharset;if(!jsonp){var done=false;script.onload=script.onreadystatechange=function(){if(!done&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){done=true;success();complete();head.removeChild(script);}};}head.appendChild(script);return undefined;}var requestDone=false;var xhr=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();if(s.username)xhr.open(type,s.url,s.async,s.username,s.password);else
-xhr.open(type,s.url,s.async);try{if(s.data)xhr.setRequestHeader("Content-Type",s.contentType);if(s.ifModified)xhr.setRequestHeader("If-Modified-Since",jQuery.lastModified[s.url]||"Thu, 01 Jan 1970 00:00:00 GMT");xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");xhr.setRequestHeader("Accept",s.dataType&&s.accepts[s.dataType]?s.accepts[s.dataType]+", */*":s.accepts._default);}catch(e){}if(s.beforeSend&&s.beforeSend(xhr,s)===false){s.global&&jQuery.active--;xhr.abort();return false;}if(s.global)jQuery.event.trigger("ajaxSend",[xhr,s]);var onreadystatechange=function(isTimeout){if(!requestDone&&xhr&&(xhr.readyState==4||isTimeout=="timeout")){requestDone=true;if(ival){clearInterval(ival);ival=null;}status=isTimeout=="timeout"&&"timeout"||!jQuery.httpSuccess(xhr)&&"error"||s.ifModified&&jQuery.httpNotModified(xhr,s.url)&&"notmodified"||"success";if(status=="success"){try{data=jQuery.httpData(xhr,s.dataType,s.dataFilter);}catch(e){status="parsererror";}}if(status=="success"){var modRes;try{modRes=xhr.getResponseHeader("Last-Modified");}catch(e){}if(s.ifModified&&modRes)jQuery.lastModified[s.url]=modRes;if(!jsonp)success();}else
-jQuery.handleError(s,xhr,status);complete();if(s.async)xhr=null;}};if(s.async){var ival=setInterval(onreadystatechange,13);if(s.timeout>0)setTimeout(function(){if(xhr){xhr.abort();if(!requestDone)onreadystatechange("timeout");}},s.timeout);}try{xhr.send(s.data);}catch(e){jQuery.handleError(s,xhr,null,e);}if(!s.async)onreadystatechange();function success(){if(s.success)s.success(data,status);if(s.global)jQuery.event.trigger("ajaxSuccess",[xhr,s]);}function complete(){if(s.complete)s.complete(xhr,status);if(s.global)jQuery.event.trigger("ajaxComplete",[xhr,s]);if(s.global&&!--jQuery.active)jQuery.event.trigger("ajaxStop");}return xhr;},handleError:function(s,xhr,status,e){if(s.error)s.error(xhr,status,e);if(s.global)jQuery.event.trigger("ajaxError",[xhr,s,e]);},active:0,httpSuccess:function(xhr){try{return!xhr.status&&location.protocol=="file:"||(xhr.status>=200&&xhr.status<300)||xhr.status==304||xhr.status==1223||jQuery.browser.safari&&xhr.status==undefined;}catch(e){}return false;},httpNotModified:function(xhr,url){try{var xhrRes=xhr.getResponseHeader("Last-Modified");return xhr.status==304||xhrRes==jQuery.lastModified[url]||jQuery.browser.safari&&xhr.status==undefined;}catch(e){}return false;},httpData:function(xhr,type,filter){var ct=xhr.getResponseHeader("content-type"),xml=type=="xml"||!type&&ct&&ct.indexOf("xml")>=0,data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.tagName=="parsererror")throw"parsererror";if(filter)data=filter(data,type);if(type=="script")jQuery.globalEval(data);if(type=="json")data=eval("("+data+")");return data;},param:function(a){var s=[];if(a.constructor==Array||a.jquery)jQuery.each(a,function(){s.push(encodeURIComponent(this.name)+"="+encodeURIComponent(this.value));});else
-for(var j in a)if(a[j]&&a[j].constructor==Array)jQuery.each(a[j],function(){s.push(encodeURIComponent(j)+"="+encodeURIComponent(this));});else
-s.push(encodeURIComponent(j)+"="+encodeURIComponent(jQuery.isFunction(a[j])?a[j]():a[j]));return s.join("&").replace(/%20/g,"+");}});jQuery.fn.extend({show:function(speed,callback){return speed?this.animate({height:"show",width:"show",opacity:"show"},speed,callback):this.filter(":hidden").each(function(){this.style.display=this.oldblock||"";if(jQuery.css(this,"display")=="none"){var elem=jQuery("<"+this.tagName+" />").appendTo("body");this.style.display=elem.css("display");if(this.style.display=="none")this.style.display="block";elem.remove();}}).end();},hide:function(speed,callback){return speed?this.animate({height:"hide",width:"hide",opacity:"hide"},speed,callback):this.filter(":visible").each(function(){this.oldblock=this.oldblock||jQuery.css(this,"display");this.style.display="none";}).end();},_toggle:jQuery.fn.toggle,toggle:function(fn,fn2){return jQuery.isFunction(fn)&&jQuery.isFunction(fn2)?this._toggle.apply(this,arguments):fn?this.animate({height:"toggle",width:"toggle",opacity:"toggle"},fn,fn2):this.each(function(){jQuery(this)[jQuery(this).is(":hidden")?"show":"hide"]();});},slideDown:function(speed,callback){return this.animate({height:"show"},speed,callback);},slideUp:function(speed,callback){return this.animate({height:"hide"},speed,callback);},slideToggle:function(speed,callback){return this.animate({height:"toggle"},speed,callback);},fadeIn:function(speed,callback){return this.animate({opacity:"show"},speed,callback);},fadeOut:function(speed,callback){return this.animate({opacity:"hide"},speed,callback);},fadeTo:function(speed,to,callback){return this.animate({opacity:to},speed,callback);},animate:function(prop,speed,easing,callback){var optall=jQuery.speed(speed,easing,callback);return this[optall.queue===false?"each":"queue"](function(){if(this.nodeType!=1)return false;var opt=jQuery.extend({},optall),p,hidden=jQuery(this).is(":hidden"),self=this;for(p in prop){if(prop[p]=="hide"&&hidden||prop[p]=="show"&&!hidden)return opt.complete.call(this);if(p=="height"||p=="width"){opt.display=jQuery.css(this,"display");opt.overflow=this.style.overflow;}}if(opt.overflow!=null)this.style.overflow="hidden";opt.curAnim=jQuery.extend({},prop);jQuery.each(prop,function(name,val){var e=new jQuery.fx(self,opt,name);if(/toggle|show|hide/.test(val))e[val=="toggle"?hidden?"show":"hide":val](prop);else{var parts=val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),start=e.cur(true)||0;if(parts){var end=parseFloat(parts[2]),unit=parts[3]||"px";if(unit!="px"){self.style[name]=(end||1)+unit;start=((end||1)/e.cur(true))*start;self.style[name]=start+unit;}if(parts[1])end=((parts[1]=="-="?-1:1)*end)+start;e.custom(start,end,unit);}else
-e.custom(start,val,"");}});return true;});},queue:function(type,fn){if(jQuery.isFunction(type)||(type&&type.constructor==Array)){fn=type;type="fx";}if(!type||(typeof type=="string"&&!fn))return queue(this[0],type);return this.each(function(){if(fn.constructor==Array)queue(this,type,fn);else{queue(this,type).push(fn);if(queue(this,type).length==1)fn.call(this);}});},stop:function(clearQueue,gotoEnd){var timers=jQuery.timers;if(clearQueue)this.queue([]);this.each(function(){for(var i=timers.length-1;i>=0;i--)if(timers[i].elem==this){if(gotoEnd)timers[i](true);timers.splice(i,1);}});if(!gotoEnd)this.dequeue();return this;}});var queue=function(elem,type,array){if(elem){type=type||"fx";var q=jQuery.data(elem,type+"queue");if(!q||array)q=jQuery.data(elem,type+"queue",jQuery.makeArray(array));}return q;};jQuery.fn.dequeue=function(type){type=type||"fx";return this.each(function(){var q=queue(this,type);q.shift();if(q.length)q[0].call(this);});};jQuery.extend({speed:function(speed,easing,fn){var opt=speed&&speed.constructor==Object?speed:{complete:fn||!fn&&easing||jQuery.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&easing.constructor!=Function&&easing};opt.duration=(opt.duration&&opt.duration.constructor==Number?opt.duration:jQuery.fx.speeds[opt.duration])||jQuery.fx.speeds.def;opt.old=opt.complete;opt.complete=function(){if(opt.queue!==false)jQuery(this).dequeue();if(jQuery.isFunction(opt.old))opt.old.call(this);};return opt;},easing:{linear:function(p,n,firstNum,diff){return firstNum+diff*p;},swing:function(p,n,firstNum,diff){return((-Math.cos(p*Math.PI)/2)+0.5)*diff+firstNum;}},timers:[],timerId:null,fx:function(elem,options,prop){this.options=options;this.elem=elem;this.prop=prop;if(!options.orig)options.orig={};}});jQuery.fx.prototype={update:function(){if(this.options.step)this.options.step.call(this.elem,this.now,this);(jQuery.fx.step[this.prop]||jQuery.fx.step._default)(this);if(this.prop=="height"||this.prop=="width")this.elem.style.display="block";},cur:function(force){if(this.elem[this.prop]!=null&&this.elem.style[this.prop]==null)return this.elem[this.prop];var r=parseFloat(jQuery.css(this.elem,this.prop,force));return r&&r>-10000?r:parseFloat(jQuery.curCSS(this.elem,this.prop))||0;},custom:function(from,to,unit){this.startTime=now();this.start=from;this.end=to;this.unit=unit||this.unit||"px";this.now=this.start;this.pos=this.state=0;this.update();var self=this;function t(gotoEnd){return self.step(gotoEnd);}t.elem=this.elem;jQuery.timers.push(t);if(jQuery.timerId==null){jQuery.timerId=setInterval(function(){var timers=jQuery.timers;for(var i=0;i<timers.length;i++)if(!timers[i]())timers.splice(i--,1);if(!timers.length){clearInterval(jQuery.timerId);jQuery.timerId=null;}},13);}},show:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.show=true;this.custom(0,this.cur());if(this.prop=="width"||this.prop=="height")this.elem.style[this.prop]="1px";jQuery(this.elem).show();},hide:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0);},step:function(gotoEnd){var t=now();if(gotoEnd||t>this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var done=true;for(var i in this.options.curAnim)if(this.options.curAnim[i]!==true)done=false;if(done){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(jQuery.css(this.elem,"display")=="none")this.elem.style.display="block";}if(this.options.hide)this.elem.style.display="none";if(this.options.hide||this.options.show)for(var p in this.options.curAnim)jQuery.attr(this.elem.style,p,this.options.orig[p]);}if(done)this.options.complete.call(this.elem);return false;}else{var n=t-this.startTime;this.state=n/this.options.duration;this.pos=jQuery.easing[this.options.easing||(jQuery.easing.swing?"swing":"linear")](this.state,n,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update();}return true;}};jQuery.extend(jQuery.fx,{speeds:{slow:600,fast:200,def:400},step:{scrollLeft:function(fx){fx.elem.scrollLeft=fx.now;},scrollTop:function(fx){fx.elem.scrollTop=fx.now;},opacity:function(fx){jQuery.attr(fx.elem.style,"opacity",fx.now);},_default:function(fx){fx.elem.style[fx.prop]=fx.now+fx.unit;}}});jQuery.fn.offset=function(){var left=0,top=0,elem=this[0],results;if(elem)with(jQuery.browser){var parent=elem.parentNode,offsetChild=elem,offsetParent=elem.offsetParent,doc=elem.ownerDocument,safari2=safari&&parseInt(version)<522&&!/adobeair/i.test(userAgent),css=jQuery.curCSS,fixed=css(elem,"position")=="fixed";if(elem.getBoundingClientRect){var box=elem.getBoundingClientRect();add(box.left+Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),box.top+Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));add(-doc.documentElement.clientLeft,-doc.documentElement.clientTop);}else{add(elem.offsetLeft,elem.offsetTop);while(offsetParent){add(offsetParent.offsetLeft,offsetParent.offsetTop);if(mozilla&&!/^t(able|d|h)$/i.test(offsetParent.tagName)||safari&&!safari2)border(offsetParent);if(!fixed&&css(offsetParent,"position")=="fixed")fixed=true;offsetChild=/^body$/i.test(offsetParent.tagName)?offsetChild:offsetParent;offsetParent=offsetParent.offsetParent;}while(parent&&parent.tagName&&!/^body|html$/i.test(parent.tagName)){if(!/^inline|table.*$/i.test(css(parent,"display")))add(-parent.scrollLeft,-parent.scrollTop);if(mozilla&&css(parent,"overflow")!="visible")border(parent);parent=parent.parentNode;}if((safari2&&(fixed||css(offsetChild,"position")=="absolute"))||(mozilla&&css(offsetChild,"position")!="absolute"))add(-doc.body.offsetLeft,-doc.body.offsetTop);if(fixed)add(Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));}results={top:top,left:left};}function border(elem){add(jQuery.curCSS(elem,"borderLeftWidth",true),jQuery.curCSS(elem,"borderTopWidth",true));}function add(l,t){left+=parseInt(l,10)||0;top+=parseInt(t,10)||0;}return results;};jQuery.fn.extend({position:function(){var left=0,top=0,results;if(this[0]){var offsetParent=this.offsetParent(),offset=this.offset(),parentOffset=/^body|html$/i.test(offsetParent[0].tagName)?{top:0,left:0}:offsetParent.offset();offset.top-=num(this,'marginTop');offset.left-=num(this,'marginLeft');parentOffset.top+=num(offsetParent,'borderTopWidth');parentOffset.left+=num(offsetParent,'borderLeftWidth');results={top:offset.top-parentOffset.top,left:offset.left-parentOffset.left};}return results;},offsetParent:function(){var offsetParent=this[0].offsetParent;while(offsetParent&&(!/^body|html$/i.test(offsetParent.tagName)&&jQuery.css(offsetParent,'position')=='static'))offsetParent=offsetParent.offsetParent;return jQuery(offsetParent);}});jQuery.each(['Left','Top'],function(i,name){var method='scroll'+name;jQuery.fn[method]=function(val){if(!this[0])return;return val!=undefined?this.each(function(){this==window||this==document?window.scrollTo(!i?val:jQuery(window).scrollLeft(),i?val:jQuery(window).scrollTop()):this[method]=val;}):this[0]==window||this[0]==document?self[i?'pageYOffset':'pageXOffset']||jQuery.boxModel&&document.documentElement[method]||document.body[method]:this[0][method];};});jQuery.each(["Height","Width"],function(i,name){var tl=i?"Left":"Top",br=i?"Right":"Bottom";jQuery.fn["inner"+name]=function(){return this[name.toLowerCase()]()+num(this,"padding"+tl)+num(this,"padding"+br);};jQuery.fn["outer"+name]=function(margin){return this["inner"+name]()+num(this,"border"+tl+"Width")+num(this,"border"+br+"Width")+(margin?num(this,"margin"+tl)+num(this,"margin"+br):0);};});})();
\ No newline at end of file
+++ /dev/null
-jQuery.extend({
- createUploadIframe: function(id, uri){
- //create frame
- var frameId = 'jUploadFrame' + id;
- if(window.ActiveXObject) {
- var io = document.createElement('<iframe id="' + frameId + '" name="' + frameId + '" />');
- if(typeof uri== 'boolean'){
- io.src = 'javascript:false';
- }
- else if(typeof uri== 'string'){
- io.src = uri;
- }
- }
- else {
- var io = document.createElement('iframe');
- io.id = frameId;
- io.name = frameId;
- }
- io.style.position = 'absolute';
- io.style.top = '-1000px';
- io.style.left = '-1000px';
-
- document.body.appendChild(io);
- return io;
- },
- createUploadForm: function(id, fileElementId)
- {
- //create form
- var formId = 'jUploadForm' + id;
- var fileId = 'jUploadFile' + id;
- var form = $('<form action="" method="POST" name="' + formId + '" id="' + formId
- + '" enctype="multipart/form-data"></form>');
- var oldElement = $('#' + fileElementId);
- var newElement = $(oldElement).clone();
- $(oldElement).attr('id', fileId);
- $(oldElement).before(newElement);
- $(oldElement).appendTo(form);
- //set attributes
- $(form).css('position', 'absolute');
- $(form).css('top', '-1200px');
- $(form).css('left', '-1200px');
- $(form).appendTo('body');
- return form;
- },
-
- ajaxFileUpload: function(s) {
- // TODO introduce global settings, allowing the client to modify them for all requests, not only timeout
- s = jQuery.extend({}, jQuery.ajaxSettings, s);
- var id = new Date().getTime()
- var form = jQuery.createUploadForm(id, s.fileElementId);
- var io = jQuery.createUploadIframe(id, s.secureuri);
- var frameId = 'jUploadFrame' + id;
- var formId = 'jUploadForm' + id;
- // Watch for a new set of requests
- if ( s.global && ! jQuery.active++ )
- {
- jQuery.event.trigger( "ajaxStart" );
- }
- var requestDone = false;
- // Create the request object
- var xml = {}
- if ( s.global )
- jQuery.event.trigger("ajaxSend", [xml, s]);
- // Wait for a response to come back
- var uploadCallback = function(isTimeout)
- {
- var io = document.getElementById(frameId);
- try {
- if(io.contentWindow){
- xml.responseText = io.contentWindow.document.body ?
- io.contentWindow.document.body.innerText : null;
- xml.responseXML = io.contentWindow.document.XMLDocument ?
- io.contentWindow.document.XMLDocument : io.contentWindow.document;
-
- }
- else if(io.contentDocument)
- {
- xml.responseText = io.contentDocument.document.body ?
- io.contentDocument.document.body.textContent || document.body.innerText : null;
- xml.responseXML = io.contentDocument.document.XMLDocument ?
- io.contentDocument.document.XMLDocument : io.contentDocument.document;
- }
- }
- catch(e)
- {
- jQuery.handleError(s, xml, null, e);
- }
- if ( xml || isTimeout == "timeout")
- {
- requestDone = true;
- var status;
- try {
- status = isTimeout != "timeout" ? "success" : "error";
- // Make sure that the request was successful or notmodified
- if ( status != "error" )
- {
- // process the data (runs the xml through httpData regardless of callback)
- var data = jQuery.uploadHttpData( xml, s.dataType );
- // If a local callback was specified, fire it and pass it the data
- if ( s.success )
- s.success( data, status );
-
- // Fire the global callback
- if( s.global )
- jQuery.event.trigger( "ajaxSuccess", [xml, s] );
- } else
- jQuery.handleError(s, xml, status);
- } catch(e)
- {
- status = "error";
- jQuery.handleError(s, xml, status, e);
- }
-
- // The request was completed
- if( s.global )
- jQuery.event.trigger( "ajaxComplete", [xml, s] );
-
- // Handle the global AJAX counter
- if ( s.global && ! --jQuery.active )
- jQuery.event.trigger( "ajaxStop" );
-
- // Process result
- if ( s.complete )
- s.complete(xml, status);
-
- jQuery(io).unbind();
-
- setTimeout(function()
- { try
- {
- $(io).remove();
- $(form).remove();
-
- } catch(e) {
- jQuery.handleError(s, xml, null, e);
- }
- }, 100)
- xml = null;
- }
- }
- // Timeout checker
- if ( s.timeout > 0 ) {
- setTimeout(function(){
- // Check to see if the request is still happening
- if( !requestDone ) uploadCallback( "timeout" );
- }, s.timeout);
- }
- try
- {
- // var io = $('#' + frameId);
- var form = $('#' + formId);
- $(form).attr('action', s.url);
- $(form).attr('method', 'POST');
- $(form).attr('target', frameId);
- if(form.encoding)
- {
- form.encoding = 'multipart/form-data';
- }
- else
- {
- form.enctype = 'multipart/form-data';
- }
- $(form).submit();
-
- } catch(e)
- {
- jQuery.handleError(s, xml, null, e);
- }
- if(window.attachEvent){
- document.getElementById(frameId).attachEvent('onload', uploadCallback);
- }
- else{
- document.getElementById(frameId).addEventListener('load', uploadCallback, false);
- }
- return {abort: function () {}};
-
- },
-
- uploadHttpData: function( r, type ) {
- var data = !type;
- data = type == "xml" || data ? r.responseXML : r.responseText;
- // If the type is "script", eval it in global context
- if ( type == "script" )
- jQuery.globalEval( data );
- // Get the JavaScript object, if JSON is used.
- if ( type == "json" )
- eval( "data = " + data );
- // evaluate scripts within html
- if ( type == "html" )
- jQuery("<div>").html(data).evalScripts();
- //alert($('param', data).each(function(){alert($(this).attr('value'));}));
- return data;
- }
-})
-
+++ /dev/null
-/* Javascript plotting library for jQuery, v. 0.5.
- *
- * Released under the MIT license by IOLA, December 2007.
- *
- */
-
-(function($) {
- function Plot(target_, data_, options_) {
- // data is on the form:
- // [ series1, series2 ... ]
- // where series is either just the data as [ [x1, y1], [x2, y2], ... ]
- // or { data: [ [x1, y1], [x2, y2], ... ], label: "some label" }
-
- var series = [],
- options = {
- // the color theme used for graphs
- colors: ["#edc240", "#afd8f8", "#cb4b4b", "#4da74d", "#9440ed"],
- legend: {
- show: true,
- noColumns: 1, // number of colums in legend table
- labelFormatter: null, // fn: string -> string
- labelBoxBorderColor: "#ccc", // border color for the little label boxes
- container: null, // container (as jQuery object) to put legend in, null means default on top of graph
- position: "ne", // position of default legend container within plot
- margin: 5, // distance from grid edge to default legend container within plot
- backgroundColor: null, // null means auto-detect
- backgroundOpacity: 0.85 // set to 0 to avoid background
- },
- xaxis: {
- mode: null, // null or "time"
- min: null, // min. value to show, null means set automatically
- max: null, // max. value to show, null means set automatically
- autoscaleMargin: null, // margin in % to add if auto-setting min/max
- ticks: null, // either [1, 3] or [[1, "a"], 3] or (fn: axis info -> ticks) or app. number of ticks for auto-ticks
- tickFormatter: null, // fn: number -> string
- labelWidth: null, // size of tick labels in pixels
- labelHeight: null,
-
- // mode specific options
- tickDecimals: null, // no. of decimals, null means auto
- tickSize: null, // number or [number, "unit"]
- minTickSize: null, // number or [number, "unit"]
- monthNames: null, // list of names of months
- timeformat: null // format string to use
- },
- yaxis: {
- autoscaleMargin: 0.02
- },
- x2axis: {
- autoscaleMargin: null
- },
- y2axis: {
- autoscaleMargin: 0.02
- },
- points: {
- show: false,
- radius: 3,
- lineWidth: 2, // in pixels
- fill: true,
- fillColor: "#ffffff"
- },
- lines: {
- // we don't put in show: false so we can see
- // whether lines were actively disabled
- lineWidth: 2, // in pixels
- fill: false,
- fillColor: null,
- steps: false
- },
- bars: {
- show: false,
- lineWidth: 2, // in pixels
- barWidth: 1, // in units of the x axis
- fill: true,
- fillColor: null,
- align: "left", // or "center"
- horizontal: false // when horizontal, left is now top
- },
- threshold: null, // or { below: number, color: color spec}
- grid: {
- color: "#545454", // primary color used for outline and labels
- backgroundColor: null, // null for transparent, else color
- tickColor: "#dddddd", // color used for the ticks
- labelMargin: 5, // in pixels
- borderWidth: 2, // in pixels
- borderColor: null, // set if different from the grid color
- markings: null, // array of ranges or fn: axes -> array of ranges
- markingsColor: "#f4f4f4",
- markingsLineWidth: 2,
- // interactive stuff
- clickable: false,
- hoverable: false,
- autoHighlight: true, // highlight in case mouse is near
- mouseActiveRadius: 10 // how far the mouse can be away to activate an item
- },
- selection: {
- mode: null, // one of null, "x", "y" or "xy"
- color: "#e8cfac"
- },
- crosshair: {
- mode: null, // one of null, "x", "y" or "xy",
- color: "#aa0000"
- },
- shadowSize: 3
- },
- canvas = null, // the canvas for the plot itself
- overlay = null, // canvas for interactive stuff on top of plot
- eventHolder = null, // jQuery object that events should be bound to
- ctx = null, octx = null,
- target = $(target_),
- axes = { xaxis: {}, yaxis: {}, x2axis: {}, y2axis: {} },
- plotOffset = { left: 0, right: 0, top: 0, bottom: 0},
- canvasWidth = 0, canvasHeight = 0,
- plotWidth = 0, plotHeight = 0,
- // dedicated to storing data for buggy standard compliance cases
- workarounds = {};
-
- this.setData = setData;
- this.setupGrid = setupGrid;
- this.draw = draw;
- this.clearSelection = clearSelection;
- this.setSelection = setSelection;
- this.getCanvas = function() { return canvas; };
- this.getPlotOffset = function() { return plotOffset; };
- this.getData = function() { return series; };
- this.getAxes = function() { return axes; };
- this.setCrosshair = setCrosshair;
- this.clearCrosshair = function () { setCrosshair(null); };
- this.highlight = highlight;
- this.unhighlight = unhighlight;
-
- // initialize
- parseOptions(options_);
- setData(data_);
- constructCanvas();
- setupGrid();
- draw();
-
-
- function setData(d) {
- series = parseData(d);
-
- fillInSeriesOptions();
- processData();
- }
-
- function parseData(d) {
- var res = [];
- for (var i = 0; i < d.length; ++i) {
- var s;
- if (d[i].data) {
- s = {};
- for (var v in d[i])
- s[v] = d[i][v];
- }
- else {
- s = { data: d[i] };
- }
- res.push(s);
- }
-
- return res;
- }
-
- function parseOptions(o) {
- $.extend(true, options, o);
- if (options.grid.borderColor == null)
- options.grid.borderColor = options.grid.color
- // backwards compatibility, to be removed in future
- if (options.xaxis.noTicks && options.xaxis.ticks == null)
- options.xaxis.ticks = options.xaxis.noTicks;
- if (options.yaxis.noTicks && options.yaxis.ticks == null)
- options.yaxis.ticks = options.yaxis.noTicks;
- if (options.grid.coloredAreas)
- options.grid.markings = options.grid.coloredAreas;
- if (options.grid.coloredAreasColor)
- options.grid.markingsColor = options.grid.coloredAreasColor;
- }
-
- function fillInSeriesOptions() {
- var i;
-
- // collect what we already got of colors
- var neededColors = series.length,
- usedColors = [],
- assignedColors = [];
- for (i = 0; i < series.length; ++i) {
- var sc = series[i].color;
- if (sc != null) {
- --neededColors;
- if (typeof sc == "number")
- assignedColors.push(sc);
- else
- usedColors.push(parseColor(series[i].color));
- }
- }
-
- // we might need to generate more colors if higher indices
- // are assigned
- for (i = 0; i < assignedColors.length; ++i) {
- neededColors = Math.max(neededColors, assignedColors[i] + 1);
- }
-
- // produce colors as needed
- var colors = [], variation = 0;
- i = 0;
- while (colors.length < neededColors) {
- var c;
- if (options.colors.length == i) // check degenerate case
- c = new Color(100, 100, 100);
- else
- c = parseColor(options.colors[i]);
-
- // vary color if needed
- var sign = variation % 2 == 1 ? -1 : 1;
- var factor = 1 + sign * Math.ceil(variation / 2) * 0.2;
- c.scale(factor, factor, factor);
-
- // FIXME: if we're getting to close to something else,
- // we should probably skip this one
- colors.push(c);
-
- ++i;
- if (i >= options.colors.length) {
- i = 0;
- ++variation;
- }
- }
-
- // fill in the options
- var colori = 0, s;
- for (i = 0; i < series.length; ++i) {
- s = series[i];
-
- // assign colors
- if (s.color == null) {
- s.color = colors[colori].toString();
- ++colori;
- }
- else if (typeof s.color == "number")
- s.color = colors[s.color].toString();
-
- // copy the rest
- s.lines = $.extend(true, {}, options.lines, s.lines);
- s.points = $.extend(true, {}, options.points, s.points);
- s.bars = $.extend(true, {}, options.bars, s.bars);
-
- // turn on lines automatically in case nothing is set
- if (s.lines.show == null && !s.bars.show && !s.points.show)
- s.lines.show = true;
- if (s.shadowSize == null)
- s.shadowSize = options.shadowSize;
-
- if (!s.xaxis)
- s.xaxis = axes.xaxis;
-
- if (s.xaxis == 1)
- s.xaxis = axes.xaxis;
- else if (s.xaxis == 2)
- s.xaxis = axes.x2axis;
-
- if (!s.yaxis)
- s.yaxis = axes.yaxis;
-
- if (s.yaxis == 1)
- s.yaxis = axes.yaxis;
- else if (s.yaxis == 2)
- s.yaxis = axes.y2axis;
-
- if (!s.threshold)
- s.threshold = options.threshold;
- s.subseries = null;
- }
- }
-
- function processData() {
- var topSentry = Number.POSITIVE_INFINITY,
- bottomSentry = Number.NEGATIVE_INFINITY,
- axis, i, j, k, m, s;
-
- for (axis in axes) {
- axes[axis].datamin = topSentry;
- axes[axis].datamax = bottomSentry;
- axes[axis].min = options[axis].min;
- axes[axis].max = options[axis].max;
- axes[axis].used = false;
- }
-
- for (i = 0; i < series.length; ++i) {
- s = series[i];
- s.datapoints = { points: [], incr: 2 };
-
- var data = s.data,
- points = s.datapoints.points,
- axisx = s.xaxis, axisy = s.yaxis,
- xmin = topSentry, xmax = bottomSentry,
- ymin = topSentry, ymax = bottomSentry,
- x, y, p, incr, format = [];
-
- // determine the increment
- if (s.bars.show) {
- s.datapoints.incr = 3;
- format.push({ d: 0 });
- }
-
- /*
- // examine data to find out how to copy
- for (j = 0; j < data.length; ++j) {
- }*/
-
-
- axisx.used = axisy.used = true;
- incr = s.datapoints.incr;
-
- for (j = k = 0; j < data.length; ++j, k += incr) {
- p = data[j];
- x = null;
- y = null;
-
- if (data[j] != null) {
- x = p[0];
- y = p[1];
- }
-
- // convert to number
- if (x != null && !isNaN(x = +x)) {
- if (x < xmin)
- xmin = x;
- if (x > xmax)
- xmax = x
- }
- else
- x = null;
-
- if (y != null && !isNaN(y = +y)) {
- if (y < ymin)
- ymin = y;
- if (y > ymax)
- ymax = y;
- }
- else
- y = null;
-
- if (x == null || y == null)
- x = y = null; // make sure everything is cleared
-
- for (m = 2; m < incr; ++m)
- points[k + m] = p[m] == null ? format[m-2].d : p[m];
-
- points[k + 1] = y;
- points[k] = x;
- }
-
- if (s.bars.show) {
- // make sure we got room for the bar on the dancing floor
- var delta = s.bars.align == "left" ? 0 : -s.bars.barWidth/2;
- if(s.bars.horizontal) {
- ymin += delta;
- ymax += delta + s.bars.barWidth;
- }
- else {
- xmin += delta;
- xmax += delta + s.bars.barWidth;
- }
- }
-
- axisx.datamin = Math.min(axisx.datamin, xmin);
- axisx.datamax = Math.max(axisx.datamax, xmax);
- axisy.datamin = Math.min(axisy.datamin, ymin);
- axisy.datamax = Math.max(axisy.datamax, ymax);
-
-
- // step charts
- if (s.lines.show && s.lines.steps) {
- p = [];
- // copy, inserting extra points to make steps
- for (j = k = 0; j < points.length; j += incr, k += incr) {
- x = points[j];
- y = points[j + 1];
- if (j > 0
- && points[j - incr] != null
- && x != null
- && points[j - incr + 1] != y) {
- p[k] = x;
- p[k + 1] = points[j - incr + 1];
- k += incr;
- }
-
- p[k] = x;
- p[k + 1] = y;
- }
- s.datapoints.linespoints = p;
- }
-
- // possibly split data points because of threshold
- if (s.threshold) {
- var orig = $.extend({}, s), thresholded = $.extend({}, s);
- orig.datapoints = { points: [], incr: incr };
- thresholded.datapoints = { points: [], incr: incr };
-
- thresholded.color = s.threshold.color;
-
- var below = s.threshold.below,
- origpoints = orig.datapoints.points,
- threspoints = thresholded.datapoints.points;
-
- // ordinary points
- for (j = 0; j < points.length; j += incr) {
- x = points[j];
- y = points[j + 1];
-
- if (y < below)
- p = threspoints;
- else
- p = origpoints;
-
- p.push(x);
- p.push(y);
- }
-
- // possibly split lines
- if (s.lines.show) {
- var lp = s.datapoints.linespoints || points;
-
- origpoints = [];
- threspoints = [];
- p = origpoints;
-
- for (j = 0; j < lp.length; j += incr) {
- x = lp[j];
- y = lp[j + 1];
-
- var prevp = p;
- if (y != null) {
- if (y < below)
- p = threspoints;
- else
- p = origpoints;
- }
-
- if (p != prevp && x != null && j > 0 && lp[j - incr] != null) {
- // find intersection and add it to both
- k = (x - lp[j - incr]) / (y - lp[j - incr + 1]) * (below - y) + x;
- prevp.push(k);
- prevp.push(below);
- p.push(null); // start new segment
- p.push(null);
- p.push(k);
- p.push(below);
- }
-
- p.push(x);
- p.push(y);
- }
-
- orig.datapoints.linespoints = origpoints
- thresholded.datapoints.linespoints = threspoints;
- }
-
- s.subseries = [orig, thresholded];
- }
- }
- }
-
- function constructCanvas() {
- function makeCanvas(width, height) {
- var c = document.createElement('canvas');
- c.width = width;
- c.height = height;
- if ($.browser.msie) // excanvas hack
- c = window.G_vmlCanvasManager.initElement(c);
- return c;
- }
-
- canvasWidth = target.width();
- canvasHeight = target.height();
- target.html(""); // clear target
- if (target.css("position") == 'static')
- target.css("position", "relative"); // for positioning labels and overlay
-
- if (canvasWidth <= 0 || canvasHeight <= 0)
- throw "Invalid dimensions for plot, width = " + canvasWidth + ", height = " + canvasHeight;
-
- // the canvas
- canvas = $(makeCanvas(canvasWidth, canvasHeight)).appendTo(target).get(0);
- ctx = canvas.getContext("2d");
-
- // overlay canvas for interactive features
- overlay = $(makeCanvas(canvasWidth, canvasHeight)).css({ position: 'absolute', left: 0, top: 0 }).appendTo(target).get(0);
- octx = overlay.getContext("2d");
-
- // we include the canvas in the event holder too, because IE 7
- // sometimes has trouble with the stacking order
- eventHolder = $([overlay, canvas]);
-
- // bind events
- if (options.selection.mode != null || options.crosshair.mode != null
- || options.grid.hoverable) {
- // FIXME: temp. work-around until jQuery bug 4398 is fixed
- eventHolder.each(function () {
- this.onmousemove = onMouseMove;
- });
-
- if (options.selection.mode != null)
- eventHolder.mousedown(onMouseDown);
- }
-
- if (options.crosshair.mode != null)
- eventHolder.mouseout(onMouseOut);
-
- if (options.grid.clickable)
- eventHolder.click(onClick);
- }
-
- function setupGrid() {
- function setupAxis(axis, options) {
- setRange(axis, options);
- prepareTickGeneration(axis, options);
- setTicks(axis, options);
- // add transformation helpers
- if (axis == axes.xaxis || axis == axes.x2axis) {
- // data point to canvas coordinate
- axis.p2c = function (p) { return (p - axis.min) * axis.scale; };
- // canvas coordinate to data point
- axis.c2p = function (c) { return axis.min + c / axis.scale; };
- }
- else {
- axis.p2c = function (p) { return (axis.max - p) * axis.scale; };
- axis.c2p = function (p) { return axis.max - p / axis.scale; };
- }
- }
-
- for (var axis in axes)
- setupAxis(axes[axis], options[axis]);
-
- setSpacing();
- insertLabels();
- insertLegend();
- }
-
- function setRange(axis, axisOptions) {
- var min = axisOptions.min != null ? +axisOptions.min : axis.datamin,
- max = axisOptions.max != null ? +axisOptions.max : axis.datamax;
-
- // degenerate case
- if (min == Number.POSITIVE_INFINITY)
- min = 0;
- if (max == Number.NEGATIVE_INFINITY)
- max = 1;
-
- if (max - min == 0.0) {
- // degenerate case
- var widen = max == 0 ? 1 : 0.01;
-
- if (axisOptions.min == null)
- min -= widen;
- // alway widen max if we couldn't widen min to ensure we
- // don't fall into min == max which doesn't work
- if (axisOptions.max == null || axisOptions.min != null)
- max += widen;
- }
- else {
- // consider autoscaling
- var margin = axisOptions.autoscaleMargin;
- if (margin != null) {
- if (axisOptions.min == null) {
- min -= (max - min) * margin;
- // make sure we don't go below zero if all values
- // are positive
- if (min < 0 && axis.datamin >= 0)
- min = 0;
- }
- if (axisOptions.max == null) {
- max += (max - min) * margin;
- if (max > 0 && axis.datamax <= 0)
- max = 0;
- }
- }
- }
- axis.min = min;
- axis.max = max;
- }
-
- function prepareTickGeneration(axis, axisOptions) {
- // estimate number of ticks
- var noTicks;
- if (typeof axisOptions.ticks == "number" && axisOptions.ticks > 0)
- noTicks = axisOptions.ticks;
- else if (axis == axes.xaxis || axis == axes.x2axis)
- noTicks = canvasWidth / 100;
- else
- noTicks = canvasHeight / 60;
-
- var delta = (axis.max - axis.min) / noTicks;
- var size, generator, unit, formatter, i, magn, norm;
-
- if (axisOptions.mode == "time") {
- // pretty handling of time
-
- // map of app. size of time units in milliseconds
- var timeUnitSize = {
- "second": 1000,
- "minute": 60 * 1000,
- "hour": 60 * 60 * 1000,
- "day": 24 * 60 * 60 * 1000,
- "month": 30 * 24 * 60 * 60 * 1000,
- "year": 365.2425 * 24 * 60 * 60 * 1000
- };
-
-
- // the allowed tick sizes, after 1 year we use
- // an integer algorithm
- var spec = [
- [1, "second"], [2, "second"], [5, "second"], [10, "second"],
- [30, "second"],
- [1, "minute"], [2, "minute"], [5, "minute"], [10, "minute"],
- [30, "minute"],
- [1, "hour"], [2, "hour"], [4, "hour"],
- [8, "hour"], [12, "hour"],
- [1, "day"], [2, "day"], [3, "day"],
- [0.25, "month"], [0.5, "month"], [1, "month"],
- [2, "month"], [3, "month"], [6, "month"],
- [1, "year"]
- ];
-
- var minSize = 0;
- if (axisOptions.minTickSize != null) {
- if (typeof axisOptions.tickSize == "number")
- minSize = axisOptions.tickSize;
- else
- minSize = axisOptions.minTickSize[0] * timeUnitSize[axisOptions.minTickSize[1]];
- }
-
- for (i = 0; i < spec.length - 1; ++i)
- if (delta < (spec[i][0] * timeUnitSize[spec[i][1]]
- + spec[i + 1][0] * timeUnitSize[spec[i + 1][1]]) / 2
- && spec[i][0] * timeUnitSize[spec[i][1]] >= minSize)
- break;
- size = spec[i][0];
- unit = spec[i][1];
-
- // special-case the possibility of several years
- if (unit == "year") {
- magn = Math.pow(10, Math.floor(Math.log(delta / timeUnitSize.year) / Math.LN10));
- norm = (delta / timeUnitSize.year) / magn;
- if (norm < 1.5)
- size = 1;
- else if (norm < 3)
- size = 2;
- else if (norm < 7.5)
- size = 5;
- else
- size = 10;
-
- size *= magn;
- }
-
- if (axisOptions.tickSize) {
- size = axisOptions.tickSize[0];
- unit = axisOptions.tickSize[1];
- }
-
- generator = function(axis) {
- var ticks = [],
- tickSize = axis.tickSize[0], unit = axis.tickSize[1],
- d = new Date(axis.min);
-
- var step = tickSize * timeUnitSize[unit];
-
- if (unit == "second")
- d.setUTCSeconds(floorInBase(d.getUTCSeconds(), tickSize));
- if (unit == "minute")
- d.setUTCMinutes(floorInBase(d.getUTCMinutes(), tickSize));
- if (unit == "hour")
- d.setUTCHours(floorInBase(d.getUTCHours(), tickSize));
- if (unit == "month")
- d.setUTCMonth(floorInBase(d.getUTCMonth(), tickSize));
- if (unit == "year")
- d.setUTCFullYear(floorInBase(d.getUTCFullYear(), tickSize));
-
- // reset smaller components
- d.setUTCMilliseconds(0);
- if (step >= timeUnitSize.minute)
- d.setUTCSeconds(0);
- if (step >= timeUnitSize.hour)
- d.setUTCMinutes(0);
- if (step >= timeUnitSize.day)
- d.setUTCHours(0);
- if (step >= timeUnitSize.day * 4)
- d.setUTCDate(1);
- if (step >= timeUnitSize.year)
- d.setUTCMonth(0);
-
-
- var carry = 0, v = Number.NaN, prev;
- do {
- prev = v;
- v = d.getTime();
- ticks.push({ v: v, label: axis.tickFormatter(v, axis) });
- if (unit == "month") {
- if (tickSize < 1) {
- // a bit complicated - we'll divide the month
- // up but we need to take care of fractions
- // so we don't end up in the middle of a day
- d.setUTCDate(1);
- var start = d.getTime();
- d.setUTCMonth(d.getUTCMonth() + 1);
- var end = d.getTime();
- d.setTime(v + carry * timeUnitSize.hour + (end - start) * tickSize);
- carry = d.getUTCHours();
- d.setUTCHours(0);
- }
- else
- d.setUTCMonth(d.getUTCMonth() + tickSize);
- }
- else if (unit == "year") {
- d.setUTCFullYear(d.getUTCFullYear() + tickSize);
- }
- else
- d.setTime(v + step);
- } while (v < axis.max && v != prev);
-
- return ticks;
- };
-
- formatter = function (v, axis) {
- var d = new Date(v);
-
- // first check global format
- if (axisOptions.timeformat != null)
- return $.plot.formatDate(d, axisOptions.timeformat, axisOptions.monthNames);
-
- var t = axis.tickSize[0] * timeUnitSize[axis.tickSize[1]];
- var span = axis.max - axis.min;
-
- if (t < timeUnitSize.minute)
- fmt = "%h:%M:%S";
- else if (t < timeUnitSize.day) {
- if (span < 2 * timeUnitSize.day)
- fmt = "%h:%M";
- else
- fmt = "%b %d %h:%M";
- }
- else if (t < timeUnitSize.month)
- fmt = "%b %d";
- else if (t < timeUnitSize.year) {
- if (span < timeUnitSize.year)
- fmt = "%b";
- else
- fmt = "%b %y";
- }
- else
- fmt = "%y";
-
- return $.plot.formatDate(d, fmt, axisOptions.monthNames);
- };
- }
- else {
- // pretty rounding of base-10 numbers
- var maxDec = axisOptions.tickDecimals;
- var dec = -Math.floor(Math.log(delta) / Math.LN10);
- if (maxDec != null && dec > maxDec)
- dec = maxDec;
-
- magn = Math.pow(10, -dec);
- norm = delta / magn; // norm is between 1.0 and 10.0
-
- if (norm < 1.5)
- size = 1;
- else if (norm < 3) {
- size = 2;
- // special case for 2.5, requires an extra decimal
- if (norm > 2.25 && (maxDec == null || dec + 1 <= maxDec)) {
- size = 2.5;
- ++dec;
- }
- }
- else if (norm < 7.5)
- size = 5;
- else
- size = 10;
-
- size *= magn;
-
- if (axisOptions.minTickSize != null && size < axisOptions.minTickSize)
- size = axisOptions.minTickSize;
-
- if (axisOptions.tickSize != null)
- size = axisOptions.tickSize;
-
- axis.tickDecimals = Math.max(0, (maxDec != null) ? maxDec : dec);
-
- generator = function (axis) {
- var ticks = [];
-
- // spew out all possible ticks
- var start = floorInBase(axis.min, axis.tickSize),
- i = 0, v = Number.NaN, prev;
- do {
- prev = v;
- v = start + i * axis.tickSize;
- ticks.push({ v: v, label: axis.tickFormatter(v, axis) });
- ++i;
- } while (v < axis.max && v != prev);
- return ticks;
- };
-
- formatter = function (v, axis) {
- return v.toFixed(axis.tickDecimals);
- };
- }
-
- axis.tickSize = unit ? [size, unit] : size;
- axis.tickGenerator = generator;
- if ($.isFunction(axisOptions.tickFormatter))
- axis.tickFormatter = function (v, axis) { return "" + axisOptions.tickFormatter(v, axis); };
- else
- axis.tickFormatter = formatter;
- if (axisOptions.labelWidth != null)
- axis.labelWidth = axisOptions.labelWidth;
- if (axisOptions.labelHeight != null)
- axis.labelHeight = axisOptions.labelHeight;
- }
-
- function setTicks(axis, axisOptions) {
- axis.ticks = [];
-
- if (!axis.used)
- return;
-
- if (axisOptions.ticks == null)
- axis.ticks = axis.tickGenerator(axis);
- else if (typeof axisOptions.ticks == "number") {
- if (axisOptions.ticks > 0)
- axis.ticks = axis.tickGenerator(axis);
- }
- else if (axisOptions.ticks) {
- var ticks = axisOptions.ticks;
-
- if ($.isFunction(ticks))
- // generate the ticks
- ticks = ticks({ min: axis.min, max: axis.max });
-
- // clean up the user-supplied ticks, copy them over
- var i, v;
- for (i = 0; i < ticks.length; ++i) {
- var label = null;
- var t = ticks[i];
- if (typeof t == "object") {
- v = t[0];
- if (t.length > 1)
- label = t[1];
- }
- else
- v = t;
- if (label == null)
- label = axis.tickFormatter(v, axis);
- axis.ticks[i] = { v: v, label: label };
- }
- }
-
- if (axisOptions.autoscaleMargin != null && axis.ticks.length > 0) {
- // snap to ticks
- if (axisOptions.min == null)
- axis.min = Math.min(axis.min, axis.ticks[0].v);
- if (axisOptions.max == null && axis.ticks.length > 1)
- axis.max = Math.min(axis.max, axis.ticks[axis.ticks.length - 1].v);
- }
- }
-
- function setSpacing() {
- function measureXLabels(axis) {
- // to avoid measuring the widths of the labels, we
- // construct fixed-size boxes and put the labels inside
- // them, we don't need the exact figures and the
- // fixed-size box content is easy to center
- if (axis.labelWidth == null)
- axis.labelWidth = canvasWidth / 6;
-
- // measure x label heights
- if (axis.labelHeight == null) {
- labels = [];
- for (i = 0; i < axis.ticks.length; ++i) {
- l = axis.ticks[i].label;
- if (l)
- labels.push('<div class="tickLabel" style="float:left;width:' + axis.labelWidth + 'px">' + l + '</div>');
- }
-
- axis.labelHeight = 0;
- if (labels.length > 0) {
- var dummyDiv = $('<div style="position:absolute;top:-10000px;width:10000px;font-size:smaller">'
- + labels.join("") + '<div style="clear:left"></div></div>').appendTo(target);
- axis.labelHeight = dummyDiv.height();
- dummyDiv.remove();
- }
- }
- }
-
- function measureYLabels(axis) {
- if (axis.labelWidth == null || axis.labelHeight == null) {
- var i, labels = [], l;
- // calculate y label dimensions
- for (i = 0; i < axis.ticks.length; ++i) {
- l = axis.ticks[i].label;
- if (l)
- labels.push('<div class="tickLabel">' + l + '</div>');
- }
-
- if (labels.length > 0) {
- var dummyDiv = $('<div style="position:absolute;top:-10000px;font-size:smaller">'
- + labels.join("") + '</div>').appendTo(target);
- if (axis.labelWidth == null)
- axis.labelWidth = dummyDiv.width();
- if (axis.labelHeight == null)
- axis.labelHeight = dummyDiv.find("div").height();
- dummyDiv.remove();
- }
-
- if (axis.labelWidth == null)
- axis.labelWidth = 0;
- if (axis.labelHeight == null)
- axis.labelHeight = 0;
- }
- }
-
- measureXLabels(axes.xaxis);
- measureYLabels(axes.yaxis);
- measureXLabels(axes.x2axis);
- measureYLabels(axes.y2axis);
-
- // get the most space needed around the grid for things
- // that may stick out
- var maxOutset = options.grid.borderWidth;
- for (i = 0; i < series.length; ++i)
- maxOutset = Math.max(maxOutset, 2 * (series[i].points.radius + series[i].points.lineWidth/2));
-
- plotOffset.left = plotOffset.right = plotOffset.top = plotOffset.bottom = maxOutset;
-
- var margin = options.grid.labelMargin + options.grid.borderWidth;
-
- if (axes.xaxis.labelHeight > 0)
- plotOffset.bottom = Math.max(maxOutset, axes.xaxis.labelHeight + margin);
- if (axes.yaxis.labelWidth > 0)
- plotOffset.left = Math.max(maxOutset, axes.yaxis.labelWidth + margin);
-
- if (axes.x2axis.labelHeight > 0)
- plotOffset.top = Math.max(maxOutset, axes.x2axis.labelHeight + margin);
-
- if (axes.y2axis.labelWidth > 0)
- plotOffset.right = Math.max(maxOutset, axes.y2axis.labelWidth + margin);
-
- plotWidth = canvasWidth - plotOffset.left - plotOffset.right;
- plotHeight = canvasHeight - plotOffset.bottom - plotOffset.top;
-
- // precompute how much the axis is scaling a point in canvas space
- axes.xaxis.scale = plotWidth / (axes.xaxis.max - axes.xaxis.min);
- axes.yaxis.scale = plotHeight / (axes.yaxis.max - axes.yaxis.min);
- axes.x2axis.scale = plotWidth / (axes.x2axis.max - axes.x2axis.min);
- axes.y2axis.scale = plotHeight / (axes.y2axis.max - axes.y2axis.min);
- }
-
- function draw() {
- drawGrid();
- for (var i = 0; i < series.length; ++i) {
- var s = series[i];
- if (s.subseries)
- for (var j = 0; j < s.subseries.length; ++j)
- drawSeries(s.subseries[j]);
- else
- drawSeries(s);
- }
- }
-
- function extractRange(ranges, coord) {
- var firstAxis = coord + "axis",
- secondaryAxis = coord + "2axis",
- axis, from, to, reverse;
-
- if (ranges[firstAxis]) {
- axis = axes[firstAxis];
- from = ranges[firstAxis].from;
- to = ranges[firstAxis].to;
- }
- else if (ranges[secondaryAxis]) {
- axis = axes[secondaryAxis];
- from = ranges[secondaryAxis].from;
- to = ranges[secondaryAxis].to;
- }
- else {
- // backwards-compat stuff - to be removed in future
- axis = axes[firstAxis];
- from = ranges[coord + "1"];
- to = ranges[coord + "2"];
- }
-
- // auto-reverse as an added bonus
- if (from != null && to != null && from > to)
- return { from: to, to: from, axis: axis };
-
- return { from: from, to: to, axis: axis };
- }
-
- function drawGrid() {
- var i;
-
- ctx.save();
- ctx.clearRect(0, 0, canvasWidth, canvasHeight);
- ctx.translate(plotOffset.left, plotOffset.top);
-
- // draw background, if any
- if (options.grid.backgroundColor) {
- ctx.fillStyle = getColorOrGradient(options.grid.backgroundColor, plotHeight, 0, "rgba(255, 255, 255, 0)");
- ctx.fillRect(0, 0, plotWidth, plotHeight);
- }
-
- // draw markings
- var markings = options.grid.markings;
- if (markings) {
- if ($.isFunction(markings))
- // xmin etc. are backwards-compatible, to be removed in future
- markings = markings({ xmin: axes.xaxis.min, xmax: axes.xaxis.max, ymin: axes.yaxis.min, ymax: axes.yaxis.max, xaxis: axes.xaxis, yaxis: axes.yaxis, x2axis: axes.x2axis, y2axis: axes.y2axis });
-
- for (i = 0; i < markings.length; ++i) {
- var m = markings[i],
- xrange = extractRange(m, "x"),
- yrange = extractRange(m, "y");
-
- // fill in missing
- if (xrange.from == null)
- xrange.from = xrange.axis.min;
- if (xrange.to == null)
- xrange.to = xrange.axis.max;
- if (yrange.from == null)
- yrange.from = yrange.axis.min;
- if (yrange.to == null)
- yrange.to = yrange.axis.max;
-
- // clip
- if (xrange.to < xrange.axis.min || xrange.from > xrange.axis.max ||
- yrange.to < yrange.axis.min || yrange.from > yrange.axis.max)
- continue;
-
- xrange.from = Math.max(xrange.from, xrange.axis.min);
- xrange.to = Math.min(xrange.to, xrange.axis.max);
- yrange.from = Math.max(yrange.from, yrange.axis.min);
- yrange.to = Math.min(yrange.to, yrange.axis.max);
-
- if (xrange.from == xrange.to && yrange.from == yrange.to)
- continue;
-
- // then draw
- xrange.from = xrange.axis.p2c(xrange.from);
- xrange.to = xrange.axis.p2c(xrange.to);
- yrange.from = yrange.axis.p2c(yrange.from);
- yrange.to = yrange.axis.p2c(yrange.to);
-
- if (xrange.from == xrange.to || yrange.from == yrange.to) {
- // draw line
- ctx.strokeStyle = m.color || options.grid.markingsColor;
- ctx.beginPath();
- ctx.lineWidth = m.lineWidth || options.grid.markingsLineWidth;
- //ctx.moveTo(Math.floor(xrange.from), yrange.from);
- //ctx.lineTo(Math.floor(xrange.to), yrange.to);
- ctx.moveTo(xrange.from, yrange.from);
- ctx.lineTo(xrange.to, yrange.to);
- ctx.stroke();
- }
- else {
- // fill area
- ctx.fillStyle = m.color || options.grid.markingsColor;
- ctx.fillRect(xrange.from, yrange.to,
- xrange.to - xrange.from,
- yrange.from - yrange.to);
- }
- }
- }
-
- // draw the inner grid
- ctx.lineWidth = 1;
- ctx.strokeStyle = options.grid.tickColor;
- ctx.beginPath();
- var v, axis = axes.xaxis;
- for (i = 0; i < axis.ticks.length; ++i) {
- v = axis.ticks[i].v;
- if (v <= axis.min || v >= axes.xaxis.max)
- continue; // skip those lying on the axes
-
- ctx.moveTo(Math.floor(axis.p2c(v)) + ctx.lineWidth/2, 0);
- ctx.lineTo(Math.floor(axis.p2c(v)) + ctx.lineWidth/2, plotHeight);
- }
-
- axis = axes.yaxis;
- for (i = 0; i < axis.ticks.length; ++i) {
- v = axis.ticks[i].v;
- if (v <= axis.min || v >= axis.max)
- continue;
-
- ctx.moveTo(0, Math.floor(axis.p2c(v)) + ctx.lineWidth/2);
- ctx.lineTo(plotWidth, Math.floor(axis.p2c(v)) + ctx.lineWidth/2);
- }
-
- axis = axes.x2axis;
- for (i = 0; i < axis.ticks.length; ++i) {
- v = axis.ticks[i].v;
- if (v <= axis.min || v >= axis.max)
- continue;
-
- ctx.moveTo(Math.floor(axis.p2c(v)) + ctx.lineWidth/2, -5);
- ctx.lineTo(Math.floor(axis.p2c(v)) + ctx.lineWidth/2, 5);
- }
-
- axis = axes.y2axis;
- for (i = 0; i < axis.ticks.length; ++i) {
- v = axis.ticks[i].v;
- if (v <= axis.min || v >= axis.max)
- continue;
-
- ctx.moveTo(plotWidth-5, Math.floor(axis.p2c(v)) + ctx.lineWidth/2);
- ctx.lineTo(plotWidth+5, Math.floor(axis.p2c(v)) + ctx.lineWidth/2);
- }
-
- ctx.stroke();
-
- if (options.grid.borderWidth) {
- // draw border
- var bw = options.grid.borderWidth;
- ctx.lineWidth = bw;
- ctx.strokeStyle = options.grid.borderColor;
- ctx.strokeRect(-bw/2, -bw/2, plotWidth + bw, plotHeight + bw);
- }
-
- ctx.restore();
- }
-
- function insertLabels() {
- target.find(".tickLabels").remove();
-
- var html = ['<div class="tickLabels" style="font-size:smaller;color:' + options.grid.color + '">'];
-
- function addLabels(axis, labelGenerator) {
- for (var i = 0; i < axis.ticks.length; ++i) {
- var tick = axis.ticks[i];
- if (!tick.label || tick.v < axis.min || tick.v > axis.max)
- continue;
- html.push(labelGenerator(tick, axis));
- }
- }
-
- var margin = options.grid.labelMargin + options.grid.borderWidth;
-
- addLabels(axes.xaxis, function (tick, axis) {
- return '<div style="position:absolute;top:' + (plotOffset.top + plotHeight + margin) + 'px;left:' + Math.round(plotOffset.left + axis.p2c(tick.v) - axis.labelWidth/2) + 'px;width:' + axis.labelWidth + 'px;text-align:center" class="tickLabel">' + tick.label + "</div>";
- });
-
-
- addLabels(axes.yaxis, function (tick, axis) {
- return '<div style="position:absolute;top:' + Math.round(plotOffset.top + axis.p2c(tick.v) - axis.labelHeight/2) + 'px;right:' + (plotOffset.right + plotWidth + margin) + 'px;width:' + axis.labelWidth + 'px;text-align:right" class="tickLabel">' + tick.label + "</div>";
- });
-
- addLabels(axes.x2axis, function (tick, axis) {
- return '<div style="position:absolute;bottom:' + (plotOffset.bottom + plotHeight + margin) + 'px;left:' + Math.round(plotOffset.left + axis.p2c(tick.v) - axis.labelWidth/2) + 'px;width:' + axis.labelWidth + 'px;text-align:center" class="tickLabel">' + tick.label + "</div>";
- });
-
- addLabels(axes.y2axis, function (tick, axis) {
- return '<div style="position:absolute;top:' + Math.round(plotOffset.top + axis.p2c(tick.v) - axis.labelHeight/2) + 'px;left:' + (plotOffset.left + plotWidth + margin) +'px;width:' + axis.labelWidth + 'px;text-align:left" class="tickLabel">' + tick.label + "</div>";
- });
-
- html.push('</div>');
-
- target.append(html.join(""));
- }
-
- function drawSeries(series) {
- if (series.lines.show)
- drawSeriesLines(series);
- if (series.bars.show)
- drawSeriesBars(series);
- if (series.points.show)
- drawSeriesPoints(series);
- }
-
- function drawSeriesLines(series) {
- function plotLine(datapoints, xoffset, yoffset, axisx, axisy) {
- var points = datapoints.linespoints || datapoints.points,
- incr = datapoints.incr,
- prevx = null, prevy = null;
-
- ctx.beginPath();
- for (var i = incr; i < points.length; i += incr) {
- var x1 = points[i - incr], y1 = points[i - incr + 1],
- x2 = points[i], y2 = points[i + 1];
-
- if (x1 == null || x2 == null)
- continue;
-
- // clip with ymin
- if (y1 <= y2 && y1 < axisy.min) {
- if (y2 < axisy.min)
- continue; // line segment is outside
- // compute new intersection point
- x1 = (axisy.min - y1) / (y2 - y1) * (x2 - x1) + x1;
- y1 = axisy.min;
- }
- else if (y2 <= y1 && y2 < axisy.min) {
- if (y1 < axisy.min)
- continue;
- x2 = (axisy.min - y1) / (y2 - y1) * (x2 - x1) + x1;
- y2 = axisy.min;
- }
-
- // clip with ymax
- if (y1 >= y2 && y1 > axisy.max) {
- if (y2 > axisy.max)
- continue;
- x1 = (axisy.max - y1) / (y2 - y1) * (x2 - x1) + x1;
- y1 = axisy.max;
- }
- else if (y2 >= y1 && y2 > axisy.max) {
- if (y1 > axisy.max)
- continue;
- x2 = (axisy.max - y1) / (y2 - y1) * (x2 - x1) + x1;
- y2 = axisy.max;
- }
-
- // clip with xmin
- if (x1 <= x2 && x1 < axisx.min) {
- if (x2 < axisx.min)
- continue;
- y1 = (axisx.min - x1) / (x2 - x1) * (y2 - y1) + y1;
- x1 = axisx.min;
- }
- else if (x2 <= x1 && x2 < axisx.min) {
- if (x1 < axisx.min)
- continue;
- y2 = (axisx.min - x1) / (x2 - x1) * (y2 - y1) + y1;
- x2 = axisx.min;
- }
-
- // clip with xmax
- if (x1 >= x2 && x1 > axisx.max) {
- if (x2 > axisx.max)
- continue;
- y1 = (axisx.max - x1) / (x2 - x1) * (y2 - y1) + y1;
- x1 = axisx.max;
- }
- else if (x2 >= x1 && x2 > axisx.max) {
- if (x1 > axisx.max)
- continue;
- y2 = (axisx.max - x1) / (x2 - x1) * (y2 - y1) + y1;
- x2 = axisx.max;
- }
-
- if (x1 != prevx || y1 != prevy)
- ctx.moveTo(axisx.p2c(x1) + xoffset, axisy.p2c(y1) + yoffset);
-
- prevx = x2;
- prevy = y2;
- ctx.lineTo(axisx.p2c(x2) + xoffset, axisy.p2c(y2) + yoffset);
- }
- ctx.stroke();
- }
-
- function plotLineArea(datapoints, axisx, axisy) {
- var points = datapoints.linespoints || datapoints.points,
- incr = datapoints.incr,
- bottom = Math.min(Math.max(0, axisy.min), axisy.max),
- top, lastX = 0, areaOpen = false;
-
- for (var i = incr; i < points.length; i += incr) {
- var x1 = points[i - incr], y1 = points[i - incr + 1],
- x2 = points[i], y2 = points[i + 1];
-
- if (areaOpen && x1 != null && x2 == null) {
- // close area
- ctx.lineTo(axisx.p2c(lastX), axisy.p2c(bottom));
- ctx.fill();
- areaOpen = false;
- continue;
- }
-
- if (x1 == null || x2 == null)
- continue;
-
- // clip x values
-
- // clip with xmin
- if (x1 <= x2 && x1 < axisx.min) {
- if (x2 < axisx.min)
- continue;
- y1 = (axisx.min - x1) / (x2 - x1) * (y2 - y1) + y1;
- x1 = axisx.min;
- }
- else if (x2 <= x1 && x2 < axisx.min) {
- if (x1 < axisx.min)
- continue;
- y2 = (axisx.min - x1) / (x2 - x1) * (y2 - y1) + y1;
- x2 = axisx.min;
- }
-
- // clip with xmax
- if (x1 >= x2 && x1 > axisx.max) {
- if (x2 > axisx.max)
- continue;
- y1 = (axisx.max - x1) / (x2 - x1) * (y2 - y1) + y1;
- x1 = axisx.max;
- }
- else if (x2 >= x1 && x2 > axisx.max) {
- if (x1 > axisx.max)
- continue;
- y2 = (axisx.max - x1) / (x2 - x1) * (y2 - y1) + y1;
- x2 = axisx.max;
- }
-
- if (!areaOpen) {
- // open area
- ctx.beginPath();
- ctx.moveTo(axisx.p2c(x1), axisy.p2c(bottom));
- areaOpen = true;
- }
-
- // now first check the case where both is outside
- if (y1 >= axisy.max && y2 >= axisy.max) {
- ctx.lineTo(axisx.p2c(x1), axisy.p2c(axisy.max));
- ctx.lineTo(axisx.p2c(x2), axisy.p2c(axisy.max));
- lastX = x2;
- continue;
- }
- else if (y1 <= axisy.min && y2 <= axisy.min) {
- ctx.lineTo(axisx.p2c(x1), axisy.p2c(axisy.min));
- ctx.lineTo(axisx.p2c(x2), axisy.p2c(axisy.min));
- lastX = x2;
- continue;
- }
-
- // else it's a bit more complicated, there might
- // be two rectangles and two triangles we need to fill
- // in; to find these keep track of the current x values
- var x1old = x1, x2old = x2;
-
- // and clip the y values, without shortcutting
-
- // clip with ymin
- if (y1 <= y2 && y1 < axisy.min && y2 >= axisy.min) {
- x1 = (axisy.min - y1) / (y2 - y1) * (x2 - x1) + x1;
- y1 = axisy.min;
- }
- else if (y2 <= y1 && y2 < axisy.min && y1 >= axisy.min) {
- x2 = (axisy.min - y1) / (y2 - y1) * (x2 - x1) + x1;
- y2 = axisy.min;
- }
-
- // clip with ymax
- if (y1 >= y2 && y1 > axisy.max && y2 <= axisy.max) {
- x1 = (axisy.max - y1) / (y2 - y1) * (x2 - x1) + x1;
- y1 = axisy.max;
- }
- else if (y2 >= y1 && y2 > axisy.max && y1 <= axisy.max) {
- x2 = (axisy.max - y1) / (y2 - y1) * (x2 - x1) + x1;
- y2 = axisy.max;
- }
-
-
- // if the x value was changed we got a rectangle
- // to fill
- if (x1 != x1old) {
- if (y1 <= axisy.min)
- top = axisy.min;
- else
- top = axisy.max;
-
- ctx.lineTo(axisx.p2c(x1old), axisy.p2c(top));
- ctx.lineTo(axisx.p2c(x1), axisy.p2c(top));
- }
-
- // fill the triangles
- ctx.lineTo(axisx.p2c(x1), axisy.p2c(y1));
- ctx.lineTo(axisx.p2c(x2), axisy.p2c(y2));
-
- // fill the other rectangle if it's there
- if (x2 != x2old) {
- if (y2 <= axisy.min)
- top = axisy.min;
- else
- top = axisy.max;
-
- ctx.lineTo(axisx.p2c(x2), axisy.p2c(top));
- ctx.lineTo(axisx.p2c(x2old), axisy.p2c(top));
- }
-
- lastX = Math.max(x2, x2old);
- }
-
- if (areaOpen) {
- ctx.lineTo(axisx.p2c(lastX), axisy.p2c(bottom));
- ctx.fill();
- }
- }
-
- ctx.save();
- ctx.translate(plotOffset.left, plotOffset.top);
- ctx.lineJoin = "round";
-
- var lw = series.lines.lineWidth,
- sw = series.shadowSize;
- // FIXME: consider another form of shadow when filling is turned on
- if (lw > 0 && sw > 0) {
- // draw shadow as a thick and thin line with transparency
- ctx.lineWidth = sw;
- ctx.strokeStyle = "rgba(0,0,0,0.1)";
- var xoffset = 1;
- plotLine(series.datapoints, xoffset, Math.sqrt((lw/2 + sw/2)*(lw/2 + sw/2) - xoffset*xoffset), series.xaxis, series.yaxis);
- ctx.lineWidth = sw/2;
- plotLine(series.datapoints, xoffset, Math.sqrt((lw/2 + sw/4)*(lw/2 + sw/4) - xoffset*xoffset), series.xaxis, series.yaxis);
- }
-
- ctx.lineWidth = lw;
- ctx.strokeStyle = series.color;
- var fillStyle = getFillStyle(series.lines, series.color, 0, plotHeight);
- if (fillStyle) {
- ctx.fillStyle = fillStyle;
- plotLineArea(series.datapoints, series.xaxis, series.yaxis);
- }
-
- if (lw > 0)
- plotLine(series.datapoints, 0, 0, series.xaxis, series.yaxis);
- ctx.restore();
- }
-
- function drawSeriesPoints(series) {
- function plotPoints(datapoints, radius, fillStyle, offset, circumference, axisx, axisy) {
- var points = datapoints.points, incr = datapoints.incr;
-
- for (var i = 0; i < points.length; i += incr) {
- var x = points[i], y = points[i + 1];
- if (x == null || x < axisx.min || x > axisx.max || y < axisy.min || y > axisy.max)
- continue;
-
- ctx.beginPath();
- ctx.arc(axisx.p2c(x), axisy.p2c(y) + offset, radius, 0, circumference, true);
- if (fillStyle) {
- ctx.fillStyle = fillStyle;
- ctx.fill();
- }
- ctx.stroke();
- }
- }
-
- ctx.save();
- ctx.translate(plotOffset.left, plotOffset.top);
-
- var lw = series.lines.lineWidth,
- sw = series.shadowSize,
- radius = series.points.radius;
- if (lw > 0 && sw > 0) {
- // draw shadow in two steps
- var w = sw / 2;
- ctx.lineWidth = w;
- ctx.strokeStyle = "rgba(0,0,0,0.1)";
- plotPoints(series.datapoints, radius, null, w + w/2, 2 * Math.PI,
- series.xaxis, series.yaxis);
-
- ctx.strokeStyle = "rgba(0,0,0,0.2)";
- plotPoints(series.datapoints, radius, null, w/2, 2 * Math.PI,
- series.xaxis, series.yaxis);
- }
-
- ctx.lineWidth = lw;
- ctx.strokeStyle = series.color;
- plotPoints(series.datapoints, radius,
- getFillStyle(series.points, series.color), 0, 2 * Math.PI,
- series.xaxis, series.yaxis);
- ctx.restore();
- }
-
- function drawBar(x, y, b, barLeft, barRight, offset, fillStyleCallback, axisx, axisy, c, horizontal) {
- var left, right, bottom, top,
- drawLeft, drawRight, drawTop, drawBottom,
- tmp;
-
- if (horizontal) {
- drawBottom = drawRight = drawTop = true;
- drawLeft = false;
- left = b;
- right = x;
- top = y + barLeft;
- bottom = y + barRight;
-
- // account for negative bars
- if (right < left) {
- tmp = right;
- right = left;
- left = tmp;
- drawLeft = true;
- drawRight = false;
- }
- }
- else {
- drawLeft = drawRight = drawTop = true;
- drawBottom = false;
- left = x + barLeft;
- right = x + barRight;
- bottom = b;
- top = y;
-
- // account for negative bars
- if (top < bottom) {
- tmp = top;
- top = bottom;
- bottom = tmp;
- drawBottom = true;
- drawTop = false;
- }
- }
-
- // clip
- if (right < axisx.min || left > axisx.max ||
- top < axisy.min || bottom > axisy.max)
- return;
-
- if (left < axisx.min) {
- left = axisx.min;
- drawLeft = false;
- }
-
- if (right > axisx.max) {
- right = axisx.max;
- drawRight = false;
- }
-
- if (bottom < axisy.min) {
- bottom = axisy.min;
- drawBottom = false;
- }
-
- if (top > axisy.max) {
- top = axisy.max;
- drawTop = false;
- }
-
- left = axisx.p2c(left);
- bottom = axisy.p2c(bottom);
- right = axisx.p2c(right);
- top = axisy.p2c(top);
-
- // fill the bar
- if (fillStyleCallback) {
- c.beginPath();
- c.moveTo(left, bottom);
- c.lineTo(left, top);
- c.lineTo(right, top);
- c.lineTo(right, bottom);
- c.fillStyle = fillStyleCallback(bottom, top);
- c.fill();
- }
-
- // draw outline
- if (drawLeft || drawRight || drawTop || drawBottom) {
- c.beginPath();
-
- // FIXME: inline moveTo is buggy with excanvas
- c.moveTo(left, bottom + offset);
- if (drawLeft)
- c.lineTo(left, top + offset);
- else
- c.moveTo(left, top + offset);
- if (drawTop)
- c.lineTo(right, top + offset);
- else
- c.moveTo(right, top + offset);
- if (drawRight)
- c.lineTo(right, bottom + offset);
- else
- c.moveTo(right, bottom + offset);
- if (drawBottom)
- c.lineTo(left, bottom + offset);
- else
- c.moveTo(left, bottom + offset);
- c.stroke();
- }
- }
-
- function drawSeriesBars(series) {
- function plotBars(datapoints, barLeft, barRight, offset, fillStyleCallback, axisx, axisy) {
- var points = datapoints.points, incr = datapoints.incr;
-
- for (var i = 0; i < points.length; i += incr) {
- if (points[i] == null)
- continue;
- drawBar(points[i], points[i + 1], points[i + 2], barLeft, barRight, offset, fillStyleCallback, axisx, axisy, ctx, series.bars.horizontal);
- }
- }
-
- ctx.save();
- ctx.translate(plotOffset.left, plotOffset.top);
-
- // FIXME: figure out a way to add shadows (for instance along the right edge)
- ctx.lineWidth = series.bars.lineWidth;
- ctx.strokeStyle = series.color;
- var barLeft = series.bars.align == "left" ? 0 : -series.bars.barWidth/2;
- var fillStyleCallback = series.bars.fill ? function (bottom, top) { return getFillStyle(series.bars, series.color, bottom, top); } : null;
- plotBars(series.datapoints, barLeft, barLeft + series.bars.barWidth, 0, fillStyleCallback, series.xaxis, series.yaxis);
- ctx.restore();
- }
-
- function getFillStyle(filloptions, seriesColor, bottom, top) {
- var fill = filloptions.fill;
- if (!fill)
- return null;
-
- if (filloptions.fillColor)
- return getColorOrGradient(filloptions.fillColor, bottom, top, seriesColor);
-
- var c = parseColor(seriesColor);
- c.a = typeof fill == "number" ? fill : 0.4;
- c.normalize();
- return c.toString();
- }
-
- function insertLegend() {
- target.find(".legend").remove();
-
- if (!options.legend.show)
- return;
-
- var fragments = [], rowStarted = false,
- lf = options.legend.labelFormatter, s, label;
- for (i = 0; i < series.length; ++i) {
- s = series[i];
- label = s.label;
- if (!label)
- continue;
-
- if (i % options.legend.noColumns == 0) {
- if (rowStarted)
- fragments.push('</tr>');
- fragments.push('<tr>');
- rowStarted = true;
- }
-
- if (lf)
- label = lf(label, s);
-
- fragments.push(
- '<td class="legendColorBox"><div style="border:1px solid ' + options.legend.labelBoxBorderColor + ';padding:1px"><div style="width:4px;height:0;border:5px solid ' + s.color + ';overflow:hidden"></div></div></td>' +
- '<td class="legendLabel">' + label + '</td>');
- }
- if (rowStarted)
- fragments.push('</tr>');
-
- if (fragments.length == 0)
- return;
-
- var table = '<table style="font-size:smaller;color:' + options.grid.color + '">' + fragments.join("") + '</table>';
- if (options.legend.container != null)
- $(options.legend.container).html(table);
- else {
- var pos = "",
- p = options.legend.position,
- m = options.legend.margin;
- if (m[0] == null)
- m = [m, m];
- if (p.charAt(0) == "n")
- pos += 'top:' + (m[1] + plotOffset.top) + 'px;';
- else if (p.charAt(0) == "s")
- pos += 'bottom:' + (m[1] + plotOffset.bottom) + 'px;';
- if (p.charAt(1) == "e")
- pos += 'right:' + (m[0] + plotOffset.right) + 'px;';
- else if (p.charAt(1) == "w")
- pos += 'left:' + (m[0] + plotOffset.left) + 'px;';
- var legend = $('<div class="legend">' + table.replace('style="', 'style="position:absolute;' + pos +';') + '</div>').appendTo(target);
- if (options.legend.backgroundOpacity != 0.0) {
- // put in the transparent background
- // separately to avoid blended labels and
- // label boxes
- var c = options.legend.backgroundColor;
- if (c == null) {
- var tmp;
- if (options.grid.backgroundColor && typeof options.grid.backgroundColor == "string")
- tmp = options.grid.backgroundColor;
- else
- tmp = extractColor(legend);
- c = parseColor(tmp).adjust(null, null, null, 1).toString();
- }
- var div = legend.children();
- $('<div style="position:absolute;width:' + div.width() + 'px;height:' + div.height() + 'px;' + pos +'background-color:' + c + ';"> </div>').prependTo(legend).css('opacity', options.legend.backgroundOpacity);
- }
- }
- }
-
-
- // interactive features
-
- var lastMousePos = { pageX: null, pageY: null },
- selection = {
- first: { x: -1, y: -1}, second: { x: -1, y: -1},
- show: false, active: false },
- crosshair = { pos: { x: -1, y: -1 } },
- highlights = [],
- clickIsMouseUp = false,
- redrawTimeout = null,
- hoverTimeout = null;
-
- // Returns the data item the mouse is over, or null if none is found
- function findNearbyItem(mouseX, mouseY, seriesFilter) {
- var maxDistance = options.grid.mouseActiveRadius,
- lowestDistance = maxDistance * maxDistance + 1,
- item = null, foundPoint = false, i, j;
-
- for (var i = 0; i < series.length; ++i) {
- if (!seriesFilter(series[i]))
- continue;
-
- var s = series[i],
- axisx = s.xaxis,
- axisy = s.yaxis,
- points = s.datapoints.points,
- incr = s.datapoints.incr,
- mx = axisx.c2p(mouseX), // precompute some stuff to make the loop faster
- my = axisy.c2p(mouseY),
- maxx = maxDistance / axisx.scale,
- maxy = maxDistance / axisy.scale;
-
- if (s.lines.show || s.points.show) {
- for (j = 0; j < points.length; j += incr) {
- var x = points[j], y = points[j + 1];
- if (x == null)
- continue;
-
- // For points and lines, the cursor must be within a
- // certain distance to the data point
- if (x - mx > maxx || x - mx < -maxx ||
- y - my > maxy || y - my < -maxy)
- continue;
-
- // We have to calculate distances in pixels, not in
- // data units, because the scales of the axes may be different
- var dx = Math.abs(axisx.p2c(x) - mouseX),
- dy = Math.abs(axisy.p2c(y) - mouseY),
- dist = dx * dx + dy * dy; // no idea in taking sqrt
- if (dist < lowestDistance) {
- lowestDistance = dist;
- item = [i, j / incr];
- }
- }
- }
-
- if (s.bars.show && !item) { // no other point can be nearby
- var barLeft = s.bars.align == "left" ? 0 : -s.bars.barWidth/2,
- barRight = barLeft + s.bars.barWidth;
-
- for (j = 0; j < points.length; j += incr) {
- var x = points[j], y = points[j + 1], b = points[j + 2];
- if (x == null)
- continue;
-
- // for a bar graph, the cursor must be inside the bar
- if (series[i].bars.horizontal ?
- (mx <= Math.max(b, x) && mx >= Math.min(b, x) &&
- my >= y + barLeft && my <= y + barRight) :
- (mx >= x + barLeft && mx <= x + barRight &&
- my >= Math.min(b, y) && my <= Math.max(b, y)))
- item = [i, j / incr];
- }
- }
- }
-
- if (item) {
- i = item[0];
- j = item[1];
-
- return { datapoint: series[i].data[j],
- dataIndex: j,
- series: series[i],
- seriesIndex: i }
- }
-
- return null;
- }
-
- function onMouseMove(ev) {
- // FIXME: temp. work-around until jQuery bug 4398 is fixed
- var e = ev || window.event;
- if (e.pageX == null && e.clientX != null) {
- var de = document.documentElement, b = document.body;
- lastMousePos.pageX = e.clientX + (de && de.scrollLeft || b.scrollLeft || 0) - (de.clientLeft || 0);
- lastMousePos.pageY = e.clientY + (de && de.scrollTop || b.scrollTop || 0) - (de.clientTop || 0);
- }
- else {
- lastMousePos.pageX = e.pageX;
- lastMousePos.pageY = e.pageY;
- }
-
- if (options.grid.hoverable)
- triggerClickHoverEvent("plothover", lastMousePos,
- function (s) { return s["hoverable"] != false; });
-
- if (options.crosshair.mode != null) {
- if (!selection.active) {
- setPositionFromEvent(crosshair.pos, lastMousePos);
- triggerRedrawOverlay();
- }
- else
- crosshair.pos.x = -1; // hide the crosshair while selecting
- }
-
- if (selection.active) {
- target.trigger("plotselecting", [ selectionIsSane() ? getSelectionForEvent() : null ]);
-
- updateSelection(lastMousePos);
- }
- }
-
- function onMouseDown(e) {
- if (e.which != 1) // only accept left-click
- return;
-
- // cancel out any text selections
- document.body.focus();
-
- // prevent text selection and drag in old-school browsers
- if (document.onselectstart !== undefined && workarounds.onselectstart == null) {
- workarounds.onselectstart = document.onselectstart;
- document.onselectstart = function () { return false; };
- }
- if (document.ondrag !== undefined && workarounds.ondrag == null) {
- workarounds.ondrag = document.ondrag;
- document.ondrag = function () { return false; };
- }
-
- setSelectionPos(selection.first, e);
-
- lastMousePos.pageX = null;
- selection.active = true;
- $(document).one("mouseup", onSelectionMouseUp);
- }
-
- function onMouseOut(ev) {
- if (options.crosshair.mode != null && crosshair.pos.x != -1) {
- crosshair.pos.x = -1;
- triggerRedrawOverlay();
- }
- }
-
- function onClick(e) {
- if (clickIsMouseUp) {
- clickIsMouseUp = false;
- return;
- }
-
- triggerClickHoverEvent("plotclick", e,
- function (s) { return s["clickable"] != false; });
- }
-
- /*
- function userPositionInCanvasSpace(pos) {
- return { x: parseInt(pos.x != null ? axes.xaxis.p2c(pos.x) : axes.x2axis.p2c(pos.x2)),
- y: parseInt(pos.y != null ? axes.yaxis.p2c(pos.y) : axes.y2axis.p2c(pos.y2)) };
- }
-
- function positionInDivSpace(pos) {
- var cpos = userPositionInCanvasSpace(pos);
- return { x: cpos.x + plotOffset.left,
- y: cpos.y + plotOffset.top };
- }*/
-
- // trigger click or hover event (they send the same parameters
- // so we share their code)
- function triggerClickHoverEvent(eventname, event, seriesFilter) {
- var offset = eventHolder.offset(),
- pos = { pageX: event.pageX, pageY: event.pageY },
- canvasX = event.pageX - offset.left - plotOffset.left,
- canvasY = event.pageY - offset.top - plotOffset.top;
-
- if (axes.xaxis.used)
- pos.x = axes.xaxis.c2p(canvasX);
- if (axes.yaxis.used)
- pos.y = axes.yaxis.c2p(canvasY);
- if (axes.x2axis.used)
- pos.x2 = axes.x2axis.c2p(canvasX);
- if (axes.y2axis.used)
- pos.y2 = axes.y2axis.c2p(canvasY);
-
- var item = findNearbyItem(canvasX, canvasY, seriesFilter);
-
- if (item) {
- // fill in mouse pos for any listeners out there
- item.pageX = parseInt(item.series.xaxis.p2c(item.datapoint[0]) + offset.left + plotOffset.left);
- item.pageY = parseInt(item.series.yaxis.p2c(item.datapoint[1]) + offset.top + plotOffset.top);
- }
-
- if (options.grid.autoHighlight) {
- // clear auto-highlights
- for (var i = 0; i < highlights.length; ++i) {
- var h = highlights[i];
- if (h.auto == eventname &&
- !(item && h.series == item.series && h.point == item.datapoint))
- unhighlight(h.series, h.point);
- }
-
- if (item)
- highlight(item.series, item.datapoint, eventname);
- }
-
- target.trigger(eventname, [ pos, item ]);
- }
-
- function triggerRedrawOverlay() {
- if (!redrawTimeout)
- redrawTimeout = setTimeout(redrawOverlay, 30);
- }
-
- function redrawOverlay() {
- redrawTimeout = null;
-
- // redraw highlights
- octx.save();
- octx.clearRect(0, 0, canvasWidth, canvasHeight);
- octx.translate(plotOffset.left, plotOffset.top);
-
- var i, hi;
- for (i = 0; i < highlights.length; ++i) {
- hi = highlights[i];
-
- if (hi.series.bars.show)
- drawBarHighlight(hi.series, hi.point);
- else
- drawPointHighlight(hi.series, hi.point);
- }
-
- // redraw selection
- if (selection.show && selectionIsSane()) {
- octx.strokeStyle = parseColor(options.selection.color).scale(null, null, null, 0.8).toString();
- octx.lineWidth = 1;
- ctx.lineJoin = "round";
- octx.fillStyle = parseColor(options.selection.color).scale(null, null, null, 0.4).toString();
-
- var x = Math.min(selection.first.x, selection.second.x),
- y = Math.min(selection.first.y, selection.second.y),
- w = Math.abs(selection.second.x - selection.first.x),
- h = Math.abs(selection.second.y - selection.first.y);
-
- octx.fillRect(x, y, w, h);
- octx.strokeRect(x, y, w, h);
- }
-
- // redraw crosshair
- var pos = crosshair.pos, mode = options.crosshair.mode;
- if (mode != null && pos.x != -1) {
- octx.strokeStyle = parseColor(options.crosshair.color).scale(null, null, null, 0.8).toString();
- octx.lineWidth = 1;
- ctx.lineJoin = "round";
-
- octx.beginPath();
- if (mode.indexOf("x") != -1) {
- octx.moveTo(pos.x, 0);
- octx.lineTo(pos.x, plotHeight);
- }
- if (mode.indexOf("y") != -1) {
- octx.moveTo(0, pos.y);
- octx.lineTo(plotWidth, pos.y);
- }
- octx.stroke();
-
- }
- octx.restore();
- }
-
- function highlight(s, point, auto) {
- if (typeof s == "number")
- s = series[s];
-
- if (typeof point == "number")
- point = s.data[point];
-
- var i = indexOfHighlight(s, point);
- if (i == -1) {
- highlights.push({ series: s, point: point, auto: auto });
-
- triggerRedrawOverlay();
- }
- else if (!auto)
- highlights[i].auto = false;
- }
-
- function unhighlight(s, point) {
- if (typeof s == "number")
- s = series[s];
-
- if (typeof point == "number")
- point = s.data[point];
-
- var i = indexOfHighlight(s, point);
- if (i != -1) {
- highlights.splice(i, 1);
-
- triggerRedrawOverlay();
- }
- }
-
- function indexOfHighlight(s, p) {
- for (var i = 0; i < highlights.length; ++i) {
- var h = highlights[i];
- if (h.series == s && h.point[0] == p[0]
- && h.point[1] == p[1])
- return i;
- }
- return -1;
- }
-
- function drawPointHighlight(series, point) {
- var x = point[0], y = point[1],
- axisx = series.xaxis, axisy = series.yaxis;
-
- if (x < axisx.min || x > axisx.max || y < axisy.min || y > axisy.max)
- return;
-
- var pointRadius = series.points.radius + series.points.lineWidth / 2;
- octx.lineWidth = pointRadius;
- octx.strokeStyle = parseColor(series.color).scale(1, 1, 1, 0.5).toString();
- var radius = 1.5 * pointRadius;
- octx.beginPath();
- octx.arc(axisx.p2c(x), axisy.p2c(y), radius, 0, 2 * Math.PI, true);
- octx.stroke();
- }
-
- function drawBarHighlight(series, point) {
- octx.lineWidth = series.bars.lineWidth;
- octx.strokeStyle = parseColor(series.color).scale(1, 1, 1, 0.5).toString();
- var fillStyle = parseColor(series.color).scale(1, 1, 1, 0.5).toString();
- var barLeft = series.bars.align == "left" ? 0 : -series.bars.barWidth/2;
- drawBar(point[0], point[1], point[2] || 0, barLeft, barLeft + series.bars.barWidth,
- 0, function () { return fillStyle; }, series.xaxis, series.yaxis, octx, series.bars.horizontal);
- }
-
- function setPositionFromEvent(pos, e) {
- var offset = eventHolder.offset();
- pos.x = clamp(0, e.pageX - offset.left - plotOffset.left, plotWidth);
- pos.y = clamp(0, e.pageY - offset.top - plotOffset.top, plotHeight);
- }
-
- function setCrosshair(pos) {
- if (pos == null)
- crosshair.pos.x = -1;
- else {
- crosshair.pos.x = clamp(0, pos.x != null ? axes.xaxis.p2c(pos.x) : axes.x2axis.p2c(pos.x2), plotWidth);
- crosshair.pos.y = clamp(0, pos.y != null ? axes.yaxis.p2c(pos.y) : axes.y2axis.p2c(pos.y2), plotHeight);
- }
- triggerRedrawOverlay();
- }
-
- function getSelectionForEvent() {
- var x1 = Math.min(selection.first.x, selection.second.x),
- x2 = Math.max(selection.first.x, selection.second.x),
- y1 = Math.max(selection.first.y, selection.second.y),
- y2 = Math.min(selection.first.y, selection.second.y);
-
- var r = {};
- if (axes.xaxis.used)
- r.xaxis = { from: axes.xaxis.c2p(x1), to: axes.xaxis.c2p(x2) };
- if (axes.x2axis.used)
- r.x2axis = { from: axes.x2axis.c2p(x1), to: axes.x2axis.c2p(x2) };
- if (axes.yaxis.used)
- r.yaxis = { from: axes.yaxis.c2p(y1), to: axes.yaxis.c2p(y2) };
- if (axes.y2axis.used)
- r.y2axis = { from: axes.y2axis.c2p(y1), to: axes.y2axis.c2p(y2) };
- return r;
- }
-
- function triggerSelectedEvent() {
- var r = getSelectionForEvent();
-
- target.trigger("plotselected", [ r ]);
-
- // backwards-compat stuff, to be removed in future
- if (axes.xaxis.used && axes.yaxis.used)
- target.trigger("selected", [ { x1: r.xaxis.from, y1: r.yaxis.from, x2: r.xaxis.to, y2: r.yaxis.to } ]);
- }
-
- function onSelectionMouseUp(e) {
- // revert drag stuff for old-school browsers
- if (document.onselectstart !== undefined)
- document.onselectstart = workarounds.onselectstart;
- if (document.ondrag !== undefined)
- document.ondrag = workarounds.ondrag;
-
- // no more draggy-dee-drag
- selection.active = false;
- updateSelection(e);
-
- if (selectionIsSane()) {
- triggerSelectedEvent();
- clickIsMouseUp = true;
- }
- else {
- // this counts as a clear
- target.trigger("plotunselected", [ ]);
- target.trigger("plotselecting", [ null ]);
- }
-
- return false;
- }
-
- function setSelectionPos(pos, e) {
- setPositionFromEvent(pos, e);
-
- if (options.selection.mode == "y") {
- if (pos == selection.first)
- pos.x = 0;
- else
- pos.x = plotWidth;
- }
-
- if (options.selection.mode == "x") {
- if (pos == selection.first)
- pos.y = 0;
- else
- pos.y = plotHeight;
- }
- }
-
- function updateSelection(pos) {
- if (pos.pageX == null)
- return;
-
- setSelectionPos(selection.second, pos);
- if (selectionIsSane()) {
- selection.show = true;
- triggerRedrawOverlay();
- }
- else
- clearSelection(true);
- }
-
- function clearSelection(preventEvent) {
- if (selection.show) {
- selection.show = false;
- triggerRedrawOverlay();
- if (!preventEvent)
- target.trigger("plotunselected", [ ]);
- }
- }
-
- function setSelection(ranges, preventEvent) {
- var range;
-
- if (options.selection.mode == "y") {
- selection.first.x = 0;
- selection.second.x = plotWidth;
- }
- else {
- range = extractRange(ranges, "x");
-
- selection.first.x = range.axis.p2c(range.from);
- selection.second.x = range.axis.p2c(range.to);
- }
-
- if (options.selection.mode == "x") {
- selection.first.y = 0;
- selection.second.y = plotHeight;
- }
- else {
- range = extractRange(ranges, "y");
-
- selection.first.y = range.axis.p2c(range.from);
- selection.second.y = range.axis.p2c(range.to);
- }
-
- selection.show = true;
- triggerRedrawOverlay();
- if (!preventEvent)
- triggerSelectedEvent();
- }
-
- function selectionIsSane() {
- var minSize = 5;
- return Math.abs(selection.second.x - selection.first.x) >= minSize &&
- Math.abs(selection.second.y - selection.first.y) >= minSize;
- }
-
- function getColorOrGradient(spec, bottom, top, defaultColor) {
- if (typeof spec == "string")
- return spec;
- else {
- // assume this is a gradient spec; IE currently only
- // supports a simple vertical gradient properly, so that's
- // what we support too
- var gradient = ctx.createLinearGradient(0, top, 0, bottom);
-
- for (var i = 0, l = spec.colors.length; i < l; ++i) {
- var c = spec.colors[i];
- gradient.addColorStop(i / (l - 1), typeof c == "string" ? c : parseColor(defaultColor).scale(c.brightness, c.brightness, c.brightness, c.opacity));
- }
-
- return gradient;
- }
- }
- }
-
- $.plot = function(target, data, options) {
- var plot = new Plot(target, data, options);
- /*var t0 = new Date();
- var t1 = new Date();
- var tstr = "time used (msecs): " + (t1.getTime() - t0.getTime())
- if (window.console)
- console.log(tstr);
- else
- alert(tstr);*/
- return plot;
- };
-
- // returns a string with the date d formatted according to fmt
- $.plot.formatDate = function(d, fmt, monthNames) {
- var leftPad = function(n) {
- n = "" + n;
- return n.length == 1 ? "0" + n : n;
- };
-
- var r = [];
- var escape = false;
- if (monthNames == null)
- monthNames = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
- for (var i = 0; i < fmt.length; ++i) {
- var c = fmt.charAt(i);
-
- if (escape) {
- switch (c) {
- case 'h': c = "" + d.getUTCHours(); break;
- case 'H': c = leftPad(d.getUTCHours()); break;
- case 'M': c = leftPad(d.getUTCMinutes()); break;
- case 'S': c = leftPad(d.getUTCSeconds()); break;
- case 'd': c = "" + d.getUTCDate(); break;
- case 'm': c = "" + (d.getUTCMonth() + 1); break;
- case 'y': c = "" + d.getUTCFullYear(); break;
- case 'b': c = "" + monthNames[d.getUTCMonth()]; break;
- }
- r.push(c);
- escape = false;
- }
- else {
- if (c == "%")
- escape = true;
- else
- r.push(c);
- }
- }
- return r.join("");
- };
-
- // round to nearby lower multiple of base
- function floorInBase(n, base) {
- return base * Math.floor(n / base);
- }
-
- function clamp(min, value, max) {
- if (value < min)
- return min;
- else if (value > max)
- return max;
- else
- return value;
- }
-
- // color helpers, inspiration from the jquery color animation
- // plugin by John Resig
- function Color (r, g, b, a) {
-
- var rgba = ['r','g','b','a'];
- var x = 4; //rgba.length
-
- while (-1<--x) {
- this[rgba[x]] = arguments[x] || ((x==3) ? 1.0 : 0);
- }
-
- this.toString = function() {
- if (this.a >= 1.0) {
- return "rgb("+[this.r,this.g,this.b].join(",")+")";
- } else {
- return "rgba("+[this.r,this.g,this.b,this.a].join(",")+")";
- }
- };
-
- this.scale = function(rf, gf, bf, af) {
- x = 4; //rgba.length
- while (-1<--x) {
- if (arguments[x] != null)
- this[rgba[x]] *= arguments[x];
- }
- return this.normalize();
- };
-
- this.adjust = function(rd, gd, bd, ad) {
- x = 4; //rgba.length
- while (-1<--x) {
- if (arguments[x] != null)
- this[rgba[x]] += arguments[x];
- }
- return this.normalize();
- };
-
- this.clone = function() {
- return new Color(this.r, this.b, this.g, this.a);
- };
-
- var limit = function(val,minVal,maxVal) {
- return Math.max(Math.min(val, maxVal), minVal);
- };
-
- this.normalize = function() {
- this.r = clamp(0, parseInt(this.r), 255);
- this.g = clamp(0, parseInt(this.g), 255);
- this.b = clamp(0, parseInt(this.b), 255);
- this.a = clamp(0, this.a, 1);
- return this;
- };
-
- this.normalize();
- }
-
- var lookupColors = {
- aqua:[0,255,255],
- azure:[240,255,255],
- beige:[245,245,220],
- black:[0,0,0],
- blue:[0,0,255],
- brown:[165,42,42],
- cyan:[0,255,255],
- darkblue:[0,0,139],
- darkcyan:[0,139,139],
- darkgrey:[169,169,169],
- darkgreen:[0,100,0],
- darkkhaki:[189,183,107],
- darkmagenta:[139,0,139],
- darkolivegreen:[85,107,47],
- darkorange:[255,140,0],
- darkorchid:[153,50,204],
- darkred:[139,0,0],
- darksalmon:[233,150,122],
- darkviolet:[148,0,211],
- fuchsia:[255,0,255],
- gold:[255,215,0],
- green:[0,128,0],
- indigo:[75,0,130],
- khaki:[240,230,140],
- lightblue:[173,216,230],
- lightcyan:[224,255,255],
- lightgreen:[144,238,144],
- lightgrey:[211,211,211],
- lightpink:[255,182,193],
- lightyellow:[255,255,224],
- lime:[0,255,0],
- magenta:[255,0,255],
- maroon:[128,0,0],
- navy:[0,0,128],
- olive:[128,128,0],
- orange:[255,165,0],
- pink:[255,192,203],
- purple:[128,0,128],
- violet:[128,0,128],
- red:[255,0,0],
- silver:[192,192,192],
- white:[255,255,255],
- yellow:[255,255,0]
- };
-
- function extractColor(element) {
- var color, elem = element;
- do {
- color = elem.css("background-color").toLowerCase();
- // keep going until we find an element that has color, or
- // we hit the body
- if (color != '' && color != 'transparent')
- break;
- elem = elem.parent();
- } while (!$.nodeName(elem.get(0), "body"));
-
- // catch Safari's way of signalling transparent
- if (color == "rgba(0, 0, 0, 0)")
- return "transparent";
-
- return color;
- }
-
- // parse string, returns Color
- function parseColor(str) {
- var result;
-
- // Look for rgb(num,num,num)
- if (result = /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(str))
- return new Color(parseInt(result[1], 10), parseInt(result[2], 10), parseInt(result[3], 10));
-
- // Look for rgba(num,num,num,num)
- if (result = /rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(str))
- return new Color(parseInt(result[1], 10), parseInt(result[2], 10), parseInt(result[3], 10), parseFloat(result[4]));
-
- // Look for rgb(num%,num%,num%)
- if (result = /rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(str))
- return new Color(parseFloat(result[1])*2.55, parseFloat(result[2])*2.55, parseFloat(result[3])*2.55);
-
- // Look for rgba(num%,num%,num%,num)
- if (result = /rgba\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(str))
- return new Color(parseFloat(result[1])*2.55, parseFloat(result[2])*2.55, parseFloat(result[3])*2.55, parseFloat(result[4]));
-
- // Look for #a0b1c2
- if (result = /#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(str))
- return new Color(parseInt(result[1], 16), parseInt(result[2], 16), parseInt(result[3], 16));
-
- // Look for #fff
- if (result = /#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(str))
- return new Color(parseInt(result[1]+result[1], 16), parseInt(result[2]+result[2], 16), parseInt(result[3]+result[3], 16));
-
- // Otherwise, we're most likely dealing with a named color
- var name = $.trim(str).toLowerCase();
- if (name == "transparent")
- return new Color(255, 255, 255, 0);
- else {
- result = lookupColors[name];
- return new Color(result[0], result[1], result[2]);
- }
- }
-
-})(jQuery);
+++ /dev/null
-(function(){jQuery.color={};jQuery.color.make=function(G,H,J,I){var A={};A.r=G||0;A.g=H||0;A.b=J||0;A.a=I!=null?I:1;A.add=function(C,D){for(var E=0;E<C.length;++E){A[C.charAt(E)]+=D}return A.normalize()};A.scale=function(C,D){for(var E=0;E<C.length;++E){A[C.charAt(E)]*=D}return A.normalize()};A.toString=function(){if(A.a>=1){return"rgb("+[A.r,A.g,A.b].join(",")+")"}else{return"rgba("+[A.r,A.g,A.b,A.a].join(",")+")"}};A.normalize=function(){function C(E,D,F){return D<E?E:(D>F?F:D)}A.r=C(0,parseInt(A.r),255);A.g=C(0,parseInt(A.g),255);A.b=C(0,parseInt(A.b),255);A.a=C(0,A.a,1);return A};A.clone=function(){return jQuery.color.make(A.r,A.b,A.g,A.a)};return A.normalize()};jQuery.color.extract=function(E,F){var A;do{A=E.css(F).toLowerCase();if(A!=""&&A!="transparent"){break}E=E.parent()}while(!jQuery.nodeName(E.get(0),"body"));if(A=="rgba(0, 0, 0, 0)"){A="transparent"}return jQuery.color.parse(A)};jQuery.color.parse=function(A){var F,H=jQuery.color.make;if(F=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(A)){return H(parseInt(F[1],10),parseInt(F[2],10),parseInt(F[3],10))}if(F=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(A)){return H(parseInt(F[1],10),parseInt(F[2],10),parseInt(F[3],10),parseFloat(F[4]))}if(F=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(A)){return H(parseFloat(F[1])*2.55,parseFloat(F[2])*2.55,parseFloat(F[3])*2.55)}if(F=/rgba\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(A)){return H(parseFloat(F[1])*2.55,parseFloat(F[2])*2.55,parseFloat(F[3])*2.55,parseFloat(F[4]))}if(F=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(A)){return H(parseInt(F[1],16),parseInt(F[2],16),parseInt(F[3],16))}if(F=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(A)){return H(parseInt(F[1]+F[1],16),parseInt(F[2]+F[2],16),parseInt(F[3]+F[3],16))}var G=jQuery.trim(A).toLowerCase();if(G=="transparent"){return H(255,255,255,0)}else{F=B[G];return H(F[0],F[1],F[2])}};var B={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]}})();(function(C){function B(l,W,X,E){var O=[],g={colors:["#edc240","#afd8f8","#cb4b4b","#4da74d","#9440ed"],legend:{show:true,noColumns:1,labelFormatter:null,labelBoxBorderColor:"#ccc",container:null,position:"ne",margin:5,backgroundColor:null,backgroundOpacity:0.85},xaxis:{mode:null,transform:null,inverseTransform:null,min:null,max:null,autoscaleMargin:null,ticks:null,tickFormatter:null,labelWidth:null,labelHeight:null,tickDecimals:null,tickSize:null,minTickSize:null,monthNames:null,timeformat:null,twelveHourClock:false},yaxis:{autoscaleMargin:0.02},x2axis:{autoscaleMargin:null},y2axis:{autoscaleMargin:0.02},series:{points:{show:false,radius:3,lineWidth:2,fill:true,fillColor:"#ffffff"},lines:{lineWidth:2,fill:false,fillColor:null,steps:false},bars:{show:false,lineWidth:2,barWidth:1,fill:true,fillColor:null,align:"left",horizontal:false},shadowSize:3},grid:{show:true,aboveData:false,color:"#545454",backgroundColor:null,tickColor:"rgba(0,0,0,0.15)",labelMargin:5,borderWidth:2,borderColor:null,markings:null,markingsColor:"#f4f4f4",markingsLineWidth:2,clickable:false,hoverable:false,autoHighlight:true,mouseActiveRadius:10},hooks:{}},P=null,AC=null,AD=null,Y=null,AJ=null,s={xaxis:{},yaxis:{},x2axis:{},y2axis:{}},e={left:0,right:0,top:0,bottom:0},y=0,Q=0,I=0,t=0,L={processOptions:[],processRawData:[],processDatapoints:[],draw:[],bindEvents:[],drawOverlay:[]},G=this;G.setData=f;G.setupGrid=k;G.draw=AH;G.getPlaceholder=function(){return l};G.getCanvas=function(){return P};G.getPlotOffset=function(){return e};G.width=function(){return I};G.height=function(){return t};G.offset=function(){var AK=AD.offset();AK.left+=e.left;AK.top+=e.top;return AK};G.getData=function(){return O};G.getAxes=function(){return s};G.getOptions=function(){return g};G.highlight=AE;G.unhighlight=x;G.triggerRedrawOverlay=q;G.pointOffset=function(AK){return{left:parseInt(T(AK,"xaxis").p2c(+AK.x)+e.left),top:parseInt(T(AK,"yaxis").p2c(+AK.y)+e.top)}};G.hooks=L;b(G);r(X);c();f(W);k();AH();AG();function Z(AM,AK){AK=[G].concat(AK);for(var AL=0;AL<AM.length;++AL){AM[AL].apply(this,AK)}}function b(){for(var AK=0;AK<E.length;++AK){var AL=E[AK];AL.init(G);if(AL.options){C.extend(true,g,AL.options)}}}function r(AK){C.extend(true,g,AK);if(g.grid.borderColor==null){g.grid.borderColor=g.grid.color}if(g.xaxis.noTicks&&g.xaxis.ticks==null){g.xaxis.ticks=g.xaxis.noTicks}if(g.yaxis.noTicks&&g.yaxis.ticks==null){g.yaxis.ticks=g.yaxis.noTicks}if(g.grid.coloredAreas){g.grid.markings=g.grid.coloredAreas}if(g.grid.coloredAreasColor){g.grid.markingsColor=g.grid.coloredAreasColor}if(g.lines){C.extend(true,g.series.lines,g.lines)}if(g.points){C.extend(true,g.series.points,g.points)}if(g.bars){C.extend(true,g.series.bars,g.bars)}if(g.shadowSize){g.series.shadowSize=g.shadowSize}for(var AL in L){if(g.hooks[AL]&&g.hooks[AL].length){L[AL]=L[AL].concat(g.hooks[AL])}}Z(L.processOptions,[g])}function f(AK){O=M(AK);U();m()}function M(AN){var AL=[];for(var AK=0;AK<AN.length;++AK){var AM=C.extend(true,{},g.series);if(AN[AK].data){AM.data=AN[AK].data;delete AN[AK].data;C.extend(true,AM,AN[AK]);AN[AK].data=AM.data}else{AM.data=AN[AK]}AL.push(AM)}return AL}function T(AM,AK){var AL=AM[AK];if(!AL||AL==1){return s[AK]}if(typeof AL=="number"){return s[AK.charAt(0)+AL+AK.slice(1)]}return AL}function U(){var AP;var AV=O.length,AK=[],AN=[];for(AP=0;AP<O.length;++AP){var AS=O[AP].color;if(AS!=null){--AV;if(typeof AS=="number"){AN.push(AS)}else{AK.push(C.color.parse(O[AP].color))}}}for(AP=0;AP<AN.length;++AP){AV=Math.max(AV,AN[AP]+1)}var AL=[],AO=0;AP=0;while(AL.length<AV){var AR;if(g.colors.length==AP){AR=C.color.make(100,100,100)}else{AR=C.color.parse(g.colors[AP])}var AM=AO%2==1?-1:1;AR.scale("rgb",1+AM*Math.ceil(AO/2)*0.2);AL.push(AR);++AP;if(AP>=g.colors.length){AP=0;++AO}}var AQ=0,AW;for(AP=0;AP<O.length;++AP){AW=O[AP];if(AW.color==null){AW.color=AL[AQ].toString();++AQ}else{if(typeof AW.color=="number"){AW.color=AL[AW.color].toString()}}if(AW.lines.show==null){var AU,AT=true;for(AU in AW){if(AW[AU].show){AT=false;break}}if(AT){AW.lines.show=true}}AW.xaxis=T(AW,"xaxis");AW.yaxis=T(AW,"yaxis")}}function m(){var AW=Number.POSITIVE_INFINITY,AQ=Number.NEGATIVE_INFINITY,Ac,Aa,AZ,AV,AL,AR,Ab,AX,AP,AO,AK,Ai,Af,AT;for(AK in s){s[AK].datamin=AW;s[AK].datamax=AQ;s[AK].used=false}function AN(Al,Ak,Aj){if(Ak<Al.datamin){Al.datamin=Ak}if(Aj>Al.datamax){Al.datamax=Aj}}for(Ac=0;Ac<O.length;++Ac){AR=O[Ac];AR.datapoints={points:[]};Z(L.processRawData,[AR,AR.data,AR.datapoints])}for(Ac=0;Ac<O.length;++Ac){AR=O[Ac];var Ah=AR.data,Ae=AR.datapoints.format;if(!Ae){Ae=[];Ae.push({x:true,number:true,required:true});Ae.push({y:true,number:true,required:true});if(AR.bars.show){Ae.push({y:true,number:true,required:false,defaultValue:0})}AR.datapoints.format=Ae}if(AR.datapoints.pointsize!=null){continue}if(AR.datapoints.pointsize==null){AR.datapoints.pointsize=Ae.length}AX=AR.datapoints.pointsize;Ab=AR.datapoints.points;insertSteps=AR.lines.show&&AR.lines.steps;AR.xaxis.used=AR.yaxis.used=true;for(Aa=AZ=0;Aa<Ah.length;++Aa,AZ+=AX){AT=Ah[Aa];var AM=AT==null;if(!AM){for(AV=0;AV<AX;++AV){Ai=AT[AV];Af=Ae[AV];if(Af){if(Af.number&&Ai!=null){Ai=+Ai;if(isNaN(Ai)){Ai=null}}if(Ai==null){if(Af.required){AM=true}if(Af.defaultValue!=null){Ai=Af.defaultValue}}}Ab[AZ+AV]=Ai}}if(AM){for(AV=0;AV<AX;++AV){Ai=Ab[AZ+AV];if(Ai!=null){Af=Ae[AV];if(Af.x){AN(AR.xaxis,Ai,Ai)}if(Af.y){AN(AR.yaxis,Ai,Ai)}}Ab[AZ+AV]=null}}else{if(insertSteps&&AZ>0&&Ab[AZ-AX]!=null&&Ab[AZ-AX]!=Ab[AZ]&&Ab[AZ-AX+1]!=Ab[AZ+1]){for(AV=0;AV<AX;++AV){Ab[AZ+AX+AV]=Ab[AZ+AV]}Ab[AZ+1]=Ab[AZ-AX+1];AZ+=AX}}}}for(Ac=0;Ac<O.length;++Ac){AR=O[Ac];Z(L.processDatapoints,[AR,AR.datapoints])}for(Ac=0;Ac<O.length;++Ac){AR=O[Ac];Ab=AR.datapoints.points,AX=AR.datapoints.pointsize;var AS=AW,AY=AW,AU=AQ,Ad=AQ;for(Aa=0;Aa<Ab.length;Aa+=AX){if(Ab[Aa]==null){continue}for(AV=0;AV<AX;++AV){Ai=Ab[Aa+AV];Af=Ae[AV];if(!Af){continue}if(Af.x){if(Ai<AS){AS=Ai}if(Ai>AU){AU=Ai}}if(Af.y){if(Ai<AY){AY=Ai}if(Ai>Ad){Ad=Ai}}}}if(AR.bars.show){var Ag=AR.bars.align=="left"?0:-AR.bars.barWidth/2;if(AR.bars.horizontal){AY+=Ag;Ad+=Ag+AR.bars.barWidth}else{AS+=Ag;AU+=Ag+AR.bars.barWidth}}AN(AR.xaxis,AS,AU);AN(AR.yaxis,AY,Ad)}for(AK in s){if(s[AK].datamin==AW){s[AK].datamin=null}if(s[AK].datamax==AQ){s[AK].datamax=null}}}function c(){function AK(AM,AL){var AN=document.createElement("canvas");AN.width=AM;AN.height=AL;if(C.browser.msie){AN=window.G_vmlCanvasManager.initElement(AN)}return AN}y=l.width();Q=l.height();l.html("");if(l.css("position")=="static"){l.css("position","relative")}if(y<=0||Q<=0){throw"Invalid dimensions for plot, width = "+y+", height = "+Q}if(C.browser.msie){window.G_vmlCanvasManager.init_(document)}P=C(AK(y,Q)).appendTo(l).get(0);Y=P.getContext("2d");AC=C(AK(y,Q)).css({position:"absolute",left:0,top:0}).appendTo(l).get(0);AJ=AC.getContext("2d");AJ.stroke()}function AG(){AD=C([AC,P]);if(g.grid.hoverable){AD.mousemove(D)}if(g.grid.clickable){AD.click(d)}Z(L.bindEvents,[AD])}function k(){function AL(AT,AU){function AP(AV){return AV}var AS,AO,AQ=AU.transform||AP,AR=AU.inverseTransform;if(AT==s.xaxis||AT==s.x2axis){AS=AT.scale=I/(AQ(AT.max)-AQ(AT.min));AO=AQ(AT.min);if(AQ==AP){AT.p2c=function(AV){return(AV-AO)*AS}}else{AT.p2c=function(AV){return(AQ(AV)-AO)*AS}}if(!AR){AT.c2p=function(AV){return AO+AV/AS}}else{AT.c2p=function(AV){return AR(AO+AV/AS)}}}else{AS=AT.scale=t/(AQ(AT.max)-AQ(AT.min));AO=AQ(AT.max);if(AQ==AP){AT.p2c=function(AV){return(AO-AV)*AS}}else{AT.p2c=function(AV){return(AO-AQ(AV))*AS}}if(!AR){AT.c2p=function(AV){return AO-AV/AS}}else{AT.c2p=function(AV){return AR(AO-AV/AS)}}}}function AN(AR,AT){var AQ,AS=[],AP;AR.labelWidth=AT.labelWidth;AR.labelHeight=AT.labelHeight;if(AR==s.xaxis||AR==s.x2axis){if(AR.labelWidth==null){AR.labelWidth=y/(AR.ticks.length>0?AR.ticks.length:1)}if(AR.labelHeight==null){AS=[];for(AQ=0;AQ<AR.ticks.length;++AQ){AP=AR.ticks[AQ].label;if(AP){AS.push('<div class="tickLabel" style="float:left;width:'+AR.labelWidth+'px">'+AP+"</div>")}}if(AS.length>0){var AO=C('<div style="position:absolute;top:-10000px;width:10000px;font-size:smaller">'+AS.join("")+'<div style="clear:left"></div></div>').appendTo(l);AR.labelHeight=AO.height();AO.remove()}}}else{if(AR.labelWidth==null||AR.labelHeight==null){for(AQ=0;AQ<AR.ticks.length;++AQ){AP=AR.ticks[AQ].label;if(AP){AS.push('<div class="tickLabel">'+AP+"</div>")}}if(AS.length>0){var AO=C('<div style="position:absolute;top:-10000px;font-size:smaller">'+AS.join("")+"</div>").appendTo(l);if(AR.labelWidth==null){AR.labelWidth=AO.width()}if(AR.labelHeight==null){AR.labelHeight=AO.find("div").height()}AO.remove()}}}if(AR.labelWidth==null){AR.labelWidth=0}if(AR.labelHeight==null){AR.labelHeight=0}}function AM(){var AP=g.grid.borderWidth;for(i=0;i<O.length;++i){AP=Math.max(AP,2*(O[i].points.radius+O[i].points.lineWidth/2))}e.left=e.right=e.top=e.bottom=AP;var AO=g.grid.labelMargin+g.grid.borderWidth;if(s.xaxis.labelHeight>0){e.bottom=Math.max(AP,s.xaxis.labelHeight+AO)}if(s.yaxis.labelWidth>0){e.left=Math.max(AP,s.yaxis.labelWidth+AO)}if(s.x2axis.labelHeight>0){e.top=Math.max(AP,s.x2axis.labelHeight+AO)}if(s.y2axis.labelWidth>0){e.right=Math.max(AP,s.y2axis.labelWidth+AO)}I=y-e.left-e.right;t=Q-e.bottom-e.top}var AK;for(AK in s){K(s[AK],g[AK])}if(g.grid.show){for(AK in s){F(s[AK],g[AK]);p(s[AK],g[AK]);AN(s[AK],g[AK])}AM()}else{e.left=e.right=e.top=e.bottom=0;I=y;t=Q}for(AK in s){AL(s[AK],g[AK])}if(g.grid.show){h()}AI()}function K(AN,AQ){var AM=+(AQ.min!=null?AQ.min:AN.datamin),AK=+(AQ.max!=null?AQ.max:AN.datamax),AP=AK-AM;if(AP==0){var AL=AK==0?1:0.01;if(AQ.min==null){AM-=AL}if(AQ.max==null||AQ.min!=null){AK+=AL}}else{var AO=AQ.autoscaleMargin;if(AO!=null){if(AQ.min==null){AM-=AP*AO;if(AM<0&&AN.datamin!=null&&AN.datamin>=0){AM=0}}if(AQ.max==null){AK+=AP*AO;if(AK>0&&AN.datamax!=null&&AN.datamax<=0){AK=0}}}}AN.min=AM;AN.max=AK}function F(AP,AS){var AO;if(typeof AS.ticks=="number"&&AS.ticks>0){AO=AS.ticks}else{if(AP==s.xaxis||AP==s.x2axis){AO=0.3*Math.sqrt(y)}else{AO=0.3*Math.sqrt(Q)}}var AX=(AP.max-AP.min)/AO,AZ,AT,AV,AW,AR,AM,AL;if(AS.mode=="time"){var AU={second:1000,minute:60*1000,hour:60*60*1000,day:24*60*60*1000,month:30*24*60*60*1000,year:365.2425*24*60*60*1000};var AY=[[1,"second"],[2,"second"],[5,"second"],[10,"second"],[30,"second"],[1,"minute"],[2,"minute"],[5,"minute"],[10,"minute"],[30,"minute"],[1,"hour"],[2,"hour"],[4,"hour"],[8,"hour"],[12,"hour"],[1,"day"],[2,"day"],[3,"day"],[0.25,"month"],[0.5,"month"],[1,"month"],[2,"month"],[3,"month"],[6,"month"],[1,"year"]];var AN=0;if(AS.minTickSize!=null){if(typeof AS.tickSize=="number"){AN=AS.tickSize}else{AN=AS.minTickSize[0]*AU[AS.minTickSize[1]]}}for(AR=0;AR<AY.length-1;++AR){if(AX<(AY[AR][0]*AU[AY[AR][1]]+AY[AR+1][0]*AU[AY[AR+1][1]])/2&&AY[AR][0]*AU[AY[AR][1]]>=AN){break}}AZ=AY[AR][0];AV=AY[AR][1];if(AV=="year"){AM=Math.pow(10,Math.floor(Math.log(AX/AU.year)/Math.LN10));AL=(AX/AU.year)/AM;if(AL<1.5){AZ=1}else{if(AL<3){AZ=2}else{if(AL<7.5){AZ=5}else{AZ=10}}}AZ*=AM}if(AS.tickSize){AZ=AS.tickSize[0];AV=AS.tickSize[1]}AT=function(Ac){var Ah=[],Af=Ac.tickSize[0],Ai=Ac.tickSize[1],Ag=new Date(Ac.min);var Ab=Af*AU[Ai];if(Ai=="second"){Ag.setUTCSeconds(A(Ag.getUTCSeconds(),Af))}if(Ai=="minute"){Ag.setUTCMinutes(A(Ag.getUTCMinutes(),Af))}if(Ai=="hour"){Ag.setUTCHours(A(Ag.getUTCHours(),Af))}if(Ai=="month"){Ag.setUTCMonth(A(Ag.getUTCMonth(),Af))}if(Ai=="year"){Ag.setUTCFullYear(A(Ag.getUTCFullYear(),Af))}Ag.setUTCMilliseconds(0);if(Ab>=AU.minute){Ag.setUTCSeconds(0)}if(Ab>=AU.hour){Ag.setUTCMinutes(0)}if(Ab>=AU.day){Ag.setUTCHours(0)}if(Ab>=AU.day*4){Ag.setUTCDate(1)}if(Ab>=AU.year){Ag.setUTCMonth(0)}var Ak=0,Aj=Number.NaN,Ad;do{Ad=Aj;Aj=Ag.getTime();Ah.push({v:Aj,label:Ac.tickFormatter(Aj,Ac)});if(Ai=="month"){if(Af<1){Ag.setUTCDate(1);var Aa=Ag.getTime();Ag.setUTCMonth(Ag.getUTCMonth()+1);var Ae=Ag.getTime();Ag.setTime(Aj+Ak*AU.hour+(Ae-Aa)*Af);Ak=Ag.getUTCHours();Ag.setUTCHours(0)}else{Ag.setUTCMonth(Ag.getUTCMonth()+Af)}}else{if(Ai=="year"){Ag.setUTCFullYear(Ag.getUTCFullYear()+Af)}else{Ag.setTime(Aj+Ab)}}}while(Aj<Ac.max&&Aj!=Ad);return Ah};AW=function(Aa,Ad){var Af=new Date(Aa);if(AS.timeformat!=null){return C.plot.formatDate(Af,AS.timeformat,AS.monthNames)}var Ab=Ad.tickSize[0]*AU[Ad.tickSize[1]];var Ac=Ad.max-Ad.min;var Ae=(AS.twelveHourClock)?" %p":"";if(Ab<AU.minute){fmt="%h:%M:%S"+Ae}else{if(Ab<AU.day){if(Ac<2*AU.day){fmt="%h:%M"+Ae}else{fmt="%b %d %h:%M"+Ae}}else{if(Ab<AU.month){fmt="%b %d"}else{if(Ab<AU.year){if(Ac<AU.year){fmt="%b"}else{fmt="%b %y"}}else{fmt="%y"}}}}return C.plot.formatDate(Af,fmt,AS.monthNames)}}else{var AK=AS.tickDecimals;var AQ=-Math.floor(Math.log(AX)/Math.LN10);if(AK!=null&&AQ>AK){AQ=AK}AM=Math.pow(10,-AQ);AL=AX/AM;if(AL<1.5){AZ=1}else{if(AL<3){AZ=2;if(AL>2.25&&(AK==null||AQ+1<=AK)){AZ=2.5;++AQ}}else{if(AL<7.5){AZ=5}else{AZ=10}}}AZ*=AM;if(AS.minTickSize!=null&&AZ<AS.minTickSize){AZ=AS.minTickSize}if(AS.tickSize!=null){AZ=AS.tickSize}AP.tickDecimals=Math.max(0,(AK!=null)?AK:AQ);AT=function(Ac){var Ae=[];var Af=A(Ac.min,Ac.tickSize),Ab=0,Aa=Number.NaN,Ad;do{Ad=Aa;Aa=Af+Ab*Ac.tickSize;Ae.push({v:Aa,label:Ac.tickFormatter(Aa,Ac)});++Ab}while(Aa<Ac.max&&Aa!=Ad);return Ae};AW=function(Aa,Ab){return Aa.toFixed(Ab.tickDecimals)}}AP.tickSize=AV?[AZ,AV]:AZ;AP.tickGenerator=AT;if(C.isFunction(AS.tickFormatter)){AP.tickFormatter=function(Aa,Ab){return""+AS.tickFormatter(Aa,Ab)}}else{AP.tickFormatter=AW}}function p(AO,AQ){AO.ticks=[];if(!AO.used){return }if(AQ.ticks==null){AO.ticks=AO.tickGenerator(AO)}else{if(typeof AQ.ticks=="number"){if(AQ.ticks>0){AO.ticks=AO.tickGenerator(AO)}}else{if(AQ.ticks){var AP=AQ.ticks;if(C.isFunction(AP)){AP=AP({min:AO.min,max:AO.max})}var AN,AK;for(AN=0;AN<AP.length;++AN){var AL=null;var AM=AP[AN];if(typeof AM=="object"){AK=AM[0];if(AM.length>1){AL=AM[1]}}else{AK=AM}if(AL==null){AL=AO.tickFormatter(AK,AO)}AO.ticks[AN]={v:AK,label:AL}}}}}if(AQ.autoscaleMargin!=null&&AO.ticks.length>0){if(AQ.min==null){AO.min=Math.min(AO.min,AO.ticks[0].v)}if(AQ.max==null&&AO.ticks.length>1){AO.max=Math.max(AO.max,AO.ticks[AO.ticks.length-1].v)}}}function AH(){Y.clearRect(0,0,y,Q);var AL=g.grid;if(AL.show&&!AL.aboveData){S()}for(var AK=0;AK<O.length;++AK){AA(O[AK])}Z(L.draw,[Y]);if(AL.show&&AL.aboveData){S()}}function N(AL,AR){var AO=AR+"axis",AK=AR+"2axis",AN,AQ,AP,AM;if(AL[AO]){AN=s[AO];AQ=AL[AO].from;AP=AL[AO].to}else{if(AL[AK]){AN=s[AK];AQ=AL[AK].from;AP=AL[AK].to}else{AN=s[AO];AQ=AL[AR+"1"];AP=AL[AR+"2"]}}if(AQ!=null&&AP!=null&&AQ>AP){return{from:AP,to:AQ,axis:AN}}return{from:AQ,to:AP,axis:AN}}function S(){var AO;Y.save();Y.translate(e.left,e.top);if(g.grid.backgroundColor){Y.fillStyle=R(g.grid.backgroundColor,t,0,"rgba(255, 255, 255, 0)");Y.fillRect(0,0,I,t)}var AL=g.grid.markings;if(AL){if(C.isFunction(AL)){AL=AL({xmin:s.xaxis.min,xmax:s.xaxis.max,ymin:s.yaxis.min,ymax:s.yaxis.max,xaxis:s.xaxis,yaxis:s.yaxis,x2axis:s.x2axis,y2axis:s.y2axis})}for(AO=0;AO<AL.length;++AO){var AK=AL[AO],AQ=N(AK,"x"),AN=N(AK,"y");if(AQ.from==null){AQ.from=AQ.axis.min}if(AQ.to==null){AQ.to=AQ.axis.max}if(AN.from==null){AN.from=AN.axis.min}if(AN.to==null){AN.to=AN.axis.max}if(AQ.to<AQ.axis.min||AQ.from>AQ.axis.max||AN.to<AN.axis.min||AN.from>AN.axis.max){continue}AQ.from=Math.max(AQ.from,AQ.axis.min);AQ.to=Math.min(AQ.to,AQ.axis.max);AN.from=Math.max(AN.from,AN.axis.min);AN.to=Math.min(AN.to,AN.axis.max);if(AQ.from==AQ.to&&AN.from==AN.to){continue}AQ.from=AQ.axis.p2c(AQ.from);AQ.to=AQ.axis.p2c(AQ.to);AN.from=AN.axis.p2c(AN.from);AN.to=AN.axis.p2c(AN.to);if(AQ.from==AQ.to||AN.from==AN.to){Y.beginPath();Y.strokeStyle=AK.color||g.grid.markingsColor;Y.lineWidth=AK.lineWidth||g.grid.markingsLineWidth;Y.moveTo(AQ.from,AN.from);Y.lineTo(AQ.to,AN.to);Y.stroke()}else{Y.fillStyle=AK.color||g.grid.markingsColor;Y.fillRect(AQ.from,AN.to,AQ.to-AQ.from,AN.from-AN.to)}}}Y.lineWidth=1;Y.strokeStyle=g.grid.tickColor;Y.beginPath();var AM,AP=s.xaxis;for(AO=0;AO<AP.ticks.length;++AO){AM=AP.ticks[AO].v;if(AM<=AP.min||AM>=s.xaxis.max){continue}Y.moveTo(Math.floor(AP.p2c(AM))+Y.lineWidth/2,0);Y.lineTo(Math.floor(AP.p2c(AM))+Y.lineWidth/2,t)}AP=s.yaxis;for(AO=0;AO<AP.ticks.length;++AO){AM=AP.ticks[AO].v;if(AM<=AP.min||AM>=AP.max){continue}Y.moveTo(0,Math.floor(AP.p2c(AM))+Y.lineWidth/2);Y.lineTo(I,Math.floor(AP.p2c(AM))+Y.lineWidth/2)}AP=s.x2axis;for(AO=0;AO<AP.ticks.length;++AO){AM=AP.ticks[AO].v;if(AM<=AP.min||AM>=AP.max){continue}Y.moveTo(Math.floor(AP.p2c(AM))+Y.lineWidth/2,-5);Y.lineTo(Math.floor(AP.p2c(AM))+Y.lineWidth/2,5)}AP=s.y2axis;for(AO=0;AO<AP.ticks.length;++AO){AM=AP.ticks[AO].v;if(AM<=AP.min||AM>=AP.max){continue}Y.moveTo(I-5,Math.floor(AP.p2c(AM))+Y.lineWidth/2);Y.lineTo(I+5,Math.floor(AP.p2c(AM))+Y.lineWidth/2)}Y.stroke();if(g.grid.borderWidth){var AR=g.grid.borderWidth;Y.lineWidth=AR;Y.strokeStyle=g.grid.borderColor;Y.strokeRect(-AR/2,-AR/2,I+AR,t+AR)}Y.restore()}function h(){l.find(".tickLabels").remove();var AK=['<div class="tickLabels" style="font-size:smaller;color:'+g.grid.color+'">'];function AM(AP,AQ){for(var AO=0;AO<AP.ticks.length;++AO){var AN=AP.ticks[AO];if(!AN.label||AN.v<AP.min||AN.v>AP.max){continue}AK.push(AQ(AN,AP))}}var AL=g.grid.labelMargin+g.grid.borderWidth;AM(s.xaxis,function(AN,AO){return'<div style="position:absolute;top:'+(e.top+t+AL)+"px;left:"+Math.round(e.left+AO.p2c(AN.v)-AO.labelWidth/2)+"px;width:"+AO.labelWidth+'px;text-align:center" class="tickLabel">'+AN.label+"</div>"});AM(s.yaxis,function(AN,AO){return'<div style="position:absolute;top:'+Math.round(e.top+AO.p2c(AN.v)-AO.labelHeight/2)+"px;right:"+(e.right+I+AL)+"px;width:"+AO.labelWidth+'px;text-align:right" class="tickLabel">'+AN.label+"</div>"});AM(s.x2axis,function(AN,AO){return'<div style="position:absolute;bottom:'+(e.bottom+t+AL)+"px;left:"+Math.round(e.left+AO.p2c(AN.v)-AO.labelWidth/2)+"px;width:"+AO.labelWidth+'px;text-align:center" class="tickLabel">'+AN.label+"</div>"});AM(s.y2axis,function(AN,AO){return'<div style="position:absolute;top:'+Math.round(e.top+AO.p2c(AN.v)-AO.labelHeight/2)+"px;left:"+(e.left+I+AL)+"px;width:"+AO.labelWidth+'px;text-align:left" class="tickLabel">'+AN.label+"</div>"});AK.push("</div>");l.append(AK.join(""))}function AA(AK){if(AK.lines.show){a(AK)}if(AK.bars.show){n(AK)}if(AK.points.show){o(AK)}}function a(AN){function AM(AY,AZ,AR,Ad,Ac){var Ae=AY.points,AS=AY.pointsize,AW=null,AV=null;Y.beginPath();for(var AX=AS;AX<Ae.length;AX+=AS){var AU=Ae[AX-AS],Ab=Ae[AX-AS+1],AT=Ae[AX],Aa=Ae[AX+1];if(AU==null||AT==null){continue}if(Ab<=Aa&&Ab<Ac.min){if(Aa<Ac.min){continue}AU=(Ac.min-Ab)/(Aa-Ab)*(AT-AU)+AU;Ab=Ac.min}else{if(Aa<=Ab&&Aa<Ac.min){if(Ab<Ac.min){continue}AT=(Ac.min-Ab)/(Aa-Ab)*(AT-AU)+AU;Aa=Ac.min}}if(Ab>=Aa&&Ab>Ac.max){if(Aa>Ac.max){continue}AU=(Ac.max-Ab)/(Aa-Ab)*(AT-AU)+AU;Ab=Ac.max}else{if(Aa>=Ab&&Aa>Ac.max){if(Ab>Ac.max){continue}AT=(Ac.max-Ab)/(Aa-Ab)*(AT-AU)+AU;Aa=Ac.max}}if(AU<=AT&&AU<Ad.min){if(AT<Ad.min){continue}Ab=(Ad.min-AU)/(AT-AU)*(Aa-Ab)+Ab;AU=Ad.min}else{if(AT<=AU&&AT<Ad.min){if(AU<Ad.min){continue}Aa=(Ad.min-AU)/(AT-AU)*(Aa-Ab)+Ab;AT=Ad.min}}if(AU>=AT&&AU>Ad.max){if(AT>Ad.max){continue}Ab=(Ad.max-AU)/(AT-AU)*(Aa-Ab)+Ab;AU=Ad.max}else{if(AT>=AU&&AT>Ad.max){if(AU>Ad.max){continue}Aa=(Ad.max-AU)/(AT-AU)*(Aa-Ab)+Ab;AT=Ad.max}}if(AU!=AW||Ab!=AV){Y.moveTo(Ad.p2c(AU)+AZ,Ac.p2c(Ab)+AR)}AW=AT;AV=Aa;Y.lineTo(Ad.p2c(AT)+AZ,Ac.p2c(Aa)+AR)}Y.stroke()}function AO(AX,Ae,Ac){var Af=AX.points,AR=AX.pointsize,AS=Math.min(Math.max(0,Ac.min),Ac.max),Aa,AV=0,Ad=false;for(var AW=AR;AW<Af.length;AW+=AR){var AU=Af[AW-AR],Ab=Af[AW-AR+1],AT=Af[AW],AZ=Af[AW+1];if(Ad&&AU!=null&&AT==null){Y.lineTo(Ae.p2c(AV),Ac.p2c(AS));Y.fill();Ad=false;continue}if(AU==null||AT==null){continue}if(AU<=AT&&AU<Ae.min){if(AT<Ae.min){continue}Ab=(Ae.min-AU)/(AT-AU)*(AZ-Ab)+Ab;AU=Ae.min}else{if(AT<=AU&&AT<Ae.min){if(AU<Ae.min){continue}AZ=(Ae.min-AU)/(AT-AU)*(AZ-Ab)+Ab;AT=Ae.min}}if(AU>=AT&&AU>Ae.max){if(AT>Ae.max){continue}Ab=(Ae.max-AU)/(AT-AU)*(AZ-Ab)+Ab;AU=Ae.max}else{if(AT>=AU&&AT>Ae.max){if(AU>Ae.max){continue}AZ=(Ae.max-AU)/(AT-AU)*(AZ-Ab)+Ab;AT=Ae.max}}if(!Ad){Y.beginPath();Y.moveTo(Ae.p2c(AU),Ac.p2c(AS));Ad=true}if(Ab>=Ac.max&&AZ>=Ac.max){Y.lineTo(Ae.p2c(AU),Ac.p2c(Ac.max));Y.lineTo(Ae.p2c(AT),Ac.p2c(Ac.max));AV=AT;continue}else{if(Ab<=Ac.min&&AZ<=Ac.min){Y.lineTo(Ae.p2c(AU),Ac.p2c(Ac.min));Y.lineTo(Ae.p2c(AT),Ac.p2c(Ac.min));AV=AT;continue}}var Ag=AU,AY=AT;if(Ab<=AZ&&Ab<Ac.min&&AZ>=Ac.min){AU=(Ac.min-Ab)/(AZ-Ab)*(AT-AU)+AU;Ab=Ac.min}else{if(AZ<=Ab&&AZ<Ac.min&&Ab>=Ac.min){AT=(Ac.min-Ab)/(AZ-Ab)*(AT-AU)+AU;AZ=Ac.min}}if(Ab>=AZ&&Ab>Ac.max&&AZ<=Ac.max){AU=(Ac.max-Ab)/(AZ-Ab)*(AT-AU)+AU;Ab=Ac.max}else{if(AZ>=Ab&&AZ>Ac.max&&Ab<=Ac.max){AT=(Ac.max-Ab)/(AZ-Ab)*(AT-AU)+AU;AZ=Ac.max}}if(AU!=Ag){if(Ab<=Ac.min){Aa=Ac.min}else{Aa=Ac.max}Y.lineTo(Ae.p2c(Ag),Ac.p2c(Aa));Y.lineTo(Ae.p2c(AU),Ac.p2c(Aa))}Y.lineTo(Ae.p2c(AU),Ac.p2c(Ab));Y.lineTo(Ae.p2c(AT),Ac.p2c(AZ));if(AT!=AY){if(AZ<=Ac.min){Aa=Ac.min}else{Aa=Ac.max}Y.lineTo(Ae.p2c(AT),Ac.p2c(Aa));Y.lineTo(Ae.p2c(AY),Ac.p2c(Aa))}AV=Math.max(AT,AY)}if(Ad){Y.lineTo(Ae.p2c(AV),Ac.p2c(AS));Y.fill()}}Y.save();Y.translate(e.left,e.top);Y.lineJoin="round";var AP=AN.lines.lineWidth,AK=AN.shadowSize;if(AP>0&&AK>0){Y.lineWidth=AK;Y.strokeStyle="rgba(0,0,0,0.1)";var AQ=Math.PI/18;AM(AN.datapoints,Math.sin(AQ)*(AP/2+AK/2),Math.cos(AQ)*(AP/2+AK/2),AN.xaxis,AN.yaxis);Y.lineWidth=AK/2;AM(AN.datapoints,Math.sin(AQ)*(AP/2+AK/4),Math.cos(AQ)*(AP/2+AK/4),AN.xaxis,AN.yaxis)}Y.lineWidth=AP;Y.strokeStyle=AN.color;var AL=V(AN.lines,AN.color,0,t);if(AL){Y.fillStyle=AL;AO(AN.datapoints,AN.xaxis,AN.yaxis)}if(AP>0){AM(AN.datapoints,0,0,AN.xaxis,AN.yaxis)}Y.restore()}function o(AN){function AP(AU,AT,Ab,AR,AV,AZ,AY){var Aa=AU.points,AQ=AU.pointsize;for(var AS=0;AS<Aa.length;AS+=AQ){var AX=Aa[AS],AW=Aa[AS+1];if(AX==null||AX<AZ.min||AX>AZ.max||AW<AY.min||AW>AY.max){continue}Y.beginPath();Y.arc(AZ.p2c(AX),AY.p2c(AW)+AR,AT,0,AV,false);if(Ab){Y.fillStyle=Ab;Y.fill()}Y.stroke()}}Y.save();Y.translate(e.left,e.top);var AO=AN.lines.lineWidth,AL=AN.shadowSize,AK=AN.points.radius;if(AO>0&&AL>0){var AM=AL/2;Y.lineWidth=AM;Y.strokeStyle="rgba(0,0,0,0.1)";AP(AN.datapoints,AK,null,AM+AM/2,Math.PI,AN.xaxis,AN.yaxis);Y.strokeStyle="rgba(0,0,0,0.2)";AP(AN.datapoints,AK,null,AM/2,Math.PI,AN.xaxis,AN.yaxis)}Y.lineWidth=AO;Y.strokeStyle=AN.color;AP(AN.datapoints,AK,V(AN.points,AN.color),0,2*Math.PI,AN.xaxis,AN.yaxis);Y.restore()}function AB(AV,AU,Ad,AQ,AY,AN,AL,AT,AS,Ac,AZ){var AM,Ab,AR,AX,AO,AK,AW,AP,Aa;if(AZ){AP=AK=AW=true;AO=false;AM=Ad;Ab=AV;AX=AU+AQ;AR=AU+AY;if(Ab<AM){Aa=Ab;Ab=AM;AM=Aa;AO=true;AK=false}}else{AO=AK=AW=true;AP=false;AM=AV+AQ;Ab=AV+AY;AR=Ad;AX=AU;if(AX<AR){Aa=AX;AX=AR;AR=Aa;AP=true;AW=false}}if(Ab<AT.min||AM>AT.max||AX<AS.min||AR>AS.max){return }if(AM<AT.min){AM=AT.min;AO=false}if(Ab>AT.max){Ab=AT.max;AK=false}if(AR<AS.min){AR=AS.min;AP=false}if(AX>AS.max){AX=AS.max;AW=false}AM=AT.p2c(AM);AR=AS.p2c(AR);Ab=AT.p2c(Ab);AX=AS.p2c(AX);if(AL){Ac.beginPath();Ac.moveTo(AM,AR);Ac.lineTo(AM,AX);Ac.lineTo(Ab,AX);Ac.lineTo(Ab,AR);Ac.fillStyle=AL(AR,AX);Ac.fill()}if(AO||AK||AW||AP){Ac.beginPath();Ac.moveTo(AM,AR+AN);if(AO){Ac.lineTo(AM,AX+AN)}else{Ac.moveTo(AM,AX+AN)}if(AW){Ac.lineTo(Ab,AX+AN)}else{Ac.moveTo(Ab,AX+AN)}if(AK){Ac.lineTo(Ab,AR+AN)}else{Ac.moveTo(Ab,AR+AN)}if(AP){Ac.lineTo(AM,AR+AN)}else{Ac.moveTo(AM,AR+AN)}Ac.stroke()}}function n(AM){function AL(AS,AR,AU,AP,AT,AW,AV){var AX=AS.points,AO=AS.pointsize;for(var AQ=0;AQ<AX.length;AQ+=AO){if(AX[AQ]==null){continue}AB(AX[AQ],AX[AQ+1],AX[AQ+2],AR,AU,AP,AT,AW,AV,Y,AM.bars.horizontal)}}Y.save();Y.translate(e.left,e.top);Y.lineWidth=AM.bars.lineWidth;Y.strokeStyle=AM.color;var AK=AM.bars.align=="left"?0:-AM.bars.barWidth/2;var AN=AM.bars.fill?function(AO,AP){return V(AM.bars,AM.color,AO,AP)}:null;AL(AM.datapoints,AK,AK+AM.bars.barWidth,0,AN,AM.xaxis,AM.yaxis);Y.restore()}function V(AM,AK,AL,AO){var AN=AM.fill;if(!AN){return null}if(AM.fillColor){return R(AM.fillColor,AL,AO,AK)}var AP=C.color.parse(AK);AP.a=typeof AN=="number"?AN:0.4;AP.normalize();return AP.toString()}function AI(){l.find(".legend").remove();if(!g.legend.show){return }var AP=[],AN=false,AV=g.legend.labelFormatter,AU,AR;for(i=0;i<O.length;++i){AU=O[i];AR=AU.label;if(!AR){continue}if(i%g.legend.noColumns==0){if(AN){AP.push("</tr>")}AP.push("<tr>");AN=true}if(AV){AR=AV(AR,AU)}AP.push('<td class="legendColorBox"><div style="border:1px solid '+g.legend.labelBoxBorderColor+';padding:1px"><div style="width:4px;height:0;border:5px solid '+AU.color+';overflow:hidden"></div></div></td><td class="legendLabel">'+AR+"</td>")}if(AN){AP.push("</tr>")}if(AP.length==0){return }var AT='<table style="font-size:smaller;color:'+g.grid.color+'">'+AP.join("")+"</table>";if(g.legend.container!=null){C(g.legend.container).html(AT)}else{var AQ="",AL=g.legend.position,AM=g.legend.margin;if(AM[0]==null){AM=[AM,AM]}if(AL.charAt(0)=="n"){AQ+="top:"+(AM[1]+e.top)+"px;"}else{if(AL.charAt(0)=="s"){AQ+="bottom:"+(AM[1]+e.bottom)+"px;"}}if(AL.charAt(1)=="e"){AQ+="right:"+(AM[0]+e.right)+"px;"}else{if(AL.charAt(1)=="w"){AQ+="left:"+(AM[0]+e.left)+"px;"}}var AS=C('<div class="legend">'+AT.replace('style="','style="position:absolute;'+AQ+";")+"</div>").appendTo(l);if(g.legend.backgroundOpacity!=0){var AO=g.legend.backgroundColor;if(AO==null){AO=g.grid.backgroundColor;if(AO&&typeof AO=="string"){AO=C.color.parse(AO)}else{AO=C.color.extract(AS,"background-color")}AO.a=1;AO=AO.toString()}var AK=AS.children();C('<div style="position:absolute;width:'+AK.width()+"px;height:"+AK.height()+"px;"+AQ+"background-color:"+AO+';"> </div>').prependTo(AS).css("opacity",g.legend.backgroundOpacity)}}}var w=[],J=null;function AF(AR,AP,AM){var AX=g.grid.mouseActiveRadius,Aj=AX*AX+1,Ah=null,Aa=false,Af,Ad;for(Af=0;Af<O.length;++Af){if(!AM(O[Af])){continue}var AY=O[Af],AQ=AY.xaxis,AO=AY.yaxis,Ae=AY.datapoints.points,Ac=AY.datapoints.pointsize,AZ=AQ.c2p(AR),AW=AO.c2p(AP),AL=AX/AQ.scale,AK=AX/AO.scale;if(AY.lines.show||AY.points.show){for(Ad=0;Ad<Ae.length;Ad+=Ac){var AT=Ae[Ad],AS=Ae[Ad+1];if(AT==null){continue}if(AT-AZ>AL||AT-AZ<-AL||AS-AW>AK||AS-AW<-AK){continue}var AV=Math.abs(AQ.p2c(AT)-AR),AU=Math.abs(AO.p2c(AS)-AP),Ab=AV*AV+AU*AU;if(Ab<=Aj){Aj=Ab;Ah=[Af,Ad/Ac]}}}if(AY.bars.show&&!Ah){var AN=AY.bars.align=="left"?0:-AY.bars.barWidth/2,Ag=AN+AY.bars.barWidth;for(Ad=0;Ad<Ae.length;Ad+=Ac){var AT=Ae[Ad],AS=Ae[Ad+1],Ai=Ae[Ad+2];if(AT==null){continue}if(O[Af].bars.horizontal?(AZ<=Math.max(Ai,AT)&&AZ>=Math.min(Ai,AT)&&AW>=AS+AN&&AW<=AS+Ag):(AZ>=AT+AN&&AZ<=AT+Ag&&AW>=Math.min(Ai,AS)&&AW<=Math.max(Ai,AS))){Ah=[Af,Ad/Ac]}}}}if(Ah){Af=Ah[0];Ad=Ah[1];Ac=O[Af].datapoints.pointsize;return{datapoint:O[Af].datapoints.points.slice(Ad*Ac,(Ad+1)*Ac),dataIndex:Ad,series:O[Af],seriesIndex:Af}}return null}function D(AK){if(g.grid.hoverable){H("plothover",AK,function(AL){return AL.hoverable!=false})}}function d(AK){H("plotclick",AK,function(AL){return AL.clickable!=false})}function H(AL,AK,AM){var AN=AD.offset(),AS={pageX:AK.pageX,pageY:AK.pageY},AQ=AK.pageX-AN.left-e.left,AO=AK.pageY-AN.top-e.top;if(s.xaxis.used){AS.x=s.xaxis.c2p(AQ)}if(s.yaxis.used){AS.y=s.yaxis.c2p(AO)}if(s.x2axis.used){AS.x2=s.x2axis.c2p(AQ)}if(s.y2axis.used){AS.y2=s.y2axis.c2p(AO)}var AT=AF(AQ,AO,AM);if(AT){AT.pageX=parseInt(AT.series.xaxis.p2c(AT.datapoint[0])+AN.left+e.left);AT.pageY=parseInt(AT.series.yaxis.p2c(AT.datapoint[1])+AN.top+e.top)}if(g.grid.autoHighlight){for(var AP=0;AP<w.length;++AP){var AR=w[AP];if(AR.auto==AL&&!(AT&&AR.series==AT.series&&AR.point==AT.datapoint)){x(AR.series,AR.point)}}if(AT){AE(AT.series,AT.datapoint,AL)}}l.trigger(AL,[AS,AT])}function q(){if(!J){J=setTimeout(v,30)}}function v(){J=null;AJ.save();AJ.clearRect(0,0,y,Q);AJ.translate(e.left,e.top);var AL,AK;for(AL=0;AL<w.length;++AL){AK=w[AL];if(AK.series.bars.show){z(AK.series,AK.point)}else{u(AK.series,AK.point)}}AJ.restore();Z(L.drawOverlay,[AJ])}function AE(AM,AK,AN){if(typeof AM=="number"){AM=O[AM]}if(typeof AK=="number"){AK=AM.data[AK]}var AL=j(AM,AK);if(AL==-1){w.push({series:AM,point:AK,auto:AN});q()}else{if(!AN){w[AL].auto=false}}}function x(AM,AK){if(AM==null&&AK==null){w=[];q()}if(typeof AM=="number"){AM=O[AM]}if(typeof AK=="number"){AK=AM.data[AK]}var AL=j(AM,AK);if(AL!=-1){w.splice(AL,1);q()}}function j(AM,AN){for(var AK=0;AK<w.length;++AK){var AL=w[AK];if(AL.series==AM&&AL.point[0]==AN[0]&&AL.point[1]==AN[1]){return AK}}return -1}function u(AN,AM){var AL=AM[0],AR=AM[1],AQ=AN.xaxis,AP=AN.yaxis;if(AL<AQ.min||AL>AQ.max||AR<AP.min||AR>AP.max){return }var AO=AN.points.radius+AN.points.lineWidth/2;AJ.lineWidth=AO;AJ.strokeStyle=C.color.parse(AN.color).scale("a",0.5).toString();var AK=1.5*AO;AJ.beginPath();AJ.arc(AQ.p2c(AL),AP.p2c(AR),AK,0,2*Math.PI,false);AJ.stroke()}function z(AN,AK){AJ.lineWidth=AN.bars.lineWidth;AJ.strokeStyle=C.color.parse(AN.color).scale("a",0.5).toString();var AM=C.color.parse(AN.color).scale("a",0.5).toString();var AL=AN.bars.align=="left"?0:-AN.bars.barWidth/2;AB(AK[0],AK[1],AK[2]||0,AL,AL+AN.bars.barWidth,0,function(){return AM},AN.xaxis,AN.yaxis,AJ,AN.bars.horizontal)}function R(AM,AL,AQ,AO){if(typeof AM=="string"){return AM}else{var AP=Y.createLinearGradient(0,AQ,0,AL);for(var AN=0,AK=AM.colors.length;AN<AK;++AN){var AR=AM.colors[AN];if(typeof AR!="string"){AR=C.color.parse(AO).scale("rgb",AR.brightness);AR.a*=AR.opacity;AR=AR.toString()}AP.addColorStop(AN/(AK-1),AR)}return AP}}}C.plot=function(G,E,D){var F=new B(C(G),E,D,C.plot.plugins);return F};C.plot.plugins=[];C.plot.formatDate=function(H,E,G){var L=function(N){N=""+N;return N.length==1?"0"+N:N};var D=[];var M=false;var K=H.getUTCHours();var I=K<12;if(G==null){G=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}if(E.search(/%p|%P/)!=-1){if(K>12){K=K-12}else{if(K==0){K=12}}}for(var F=0;F<E.length;++F){var J=E.charAt(F);if(M){switch(J){case"h":J=""+K;break;case"H":J=L(K);break;case"M":J=L(H.getUTCMinutes());break;case"S":J=L(H.getUTCSeconds());break;case"d":J=""+H.getUTCDate();break;case"m":J=""+(H.getUTCMonth()+1);break;case"y":J=""+H.getUTCFullYear();break;case"b":J=""+G[H.getUTCMonth()];break;case"p":J=(I)?("am"):("pm");break;case"P":J=(I)?("AM"):("PM");break}D.push(J);M=false}else{if(J=="%"){M=true}else{D.push(J)}}}return D.join("")};function A(E,D){return D*Math.floor(E/D)}})(jQuery);
\ No newline at end of file
+++ /dev/null
-/*
- * jQuery Form Plugin
- * version: 2.33 (22-SEP-2009)
- * @requires jQuery v1.2.6 or later
- *
- * Examples and documentation at: http://malsup.com/jquery/form/
- * Dual licensed under the MIT and GPL licenses:
- * http://www.opensource.org/licenses/mit-license.php
- * http://www.gnu.org/licenses/gpl.html
- */
-;(function($) {
-
-/*
- Usage Note:
- -----------
- Do not use both ajaxSubmit and ajaxForm on the same form. These
- functions are intended to be exclusive. Use ajaxSubmit if you want
- to bind your own submit handler to the form. For example,
-
- $(document).ready(function() {
- $('#myForm').bind('submit', function() {
- $(this).ajaxSubmit({
- target: '#output'
- });
- return false; // <-- important!
- });
- });
-
- Use ajaxForm when you want the plugin to manage all the event binding
- for you. For example,
-
- $(document).ready(function() {
- $('#myForm').ajaxForm({
- target: '#output'
- });
- });
-
- When using ajaxForm, the ajaxSubmit function will be invoked for you
- at the appropriate time.
-*/
-
-/**
- * ajaxSubmit() provides a mechanism for immediately submitting
- * an HTML form using AJAX.
- */
-$.fn.ajaxSubmit = function(options) {
- // fast fail if nothing selected (http://dev.jquery.com/ticket/2752)
- if (!this.length) {
- log('ajaxSubmit: skipping submit process - no element selected');
- return this;
- }
-
- if (typeof options == 'function')
- options = { success: options };
-
- var url = $.trim(this.attr('action'));
- if (url) {
- // clean url (don't include hash vaue)
- url = (url.match(/^([^#]+)/)||[])[1];
- }
- url = url || window.location.href || '';
-
- options = $.extend({
- url: url,
- type: this.attr('method') || 'GET'
- }, options || {});
-
- // hook for manipulating the form data before it is extracted;
- // convenient for use with rich editors like tinyMCE or FCKEditor
- var veto = {};
- this.trigger('form-pre-serialize', [this, options, veto]);
- if (veto.veto) {
- log('ajaxSubmit: submit vetoed via form-pre-serialize trigger');
- return this;
- }
-
- // provide opportunity to alter form data before it is serialized
- if (options.beforeSerialize && options.beforeSerialize(this, options) === false) {
- log('ajaxSubmit: submit aborted via beforeSerialize callback');
- return this;
- }
-
- var a = this.formToArray(options.semantic);
- if (options.data) {
- options.extraData = options.data;
- for (var n in options.data) {
- if(options.data[n] instanceof Array) {
- for (var k in options.data[n])
- a.push( { name: n, value: options.data[n][k] } );
- }
- else
- a.push( { name: n, value: options.data[n] } );
- }
- }
-
- // give pre-submit callback an opportunity to abort the submit
- if (options.beforeSubmit && options.beforeSubmit(a, this, options) === false) {
- log('ajaxSubmit: submit aborted via beforeSubmit callback');
- return this;
- }
-
- // fire vetoable 'validate' event
- this.trigger('form-submit-validate', [a, this, options, veto]);
- if (veto.veto) {
- log('ajaxSubmit: submit vetoed via form-submit-validate trigger');
- return this;
- }
-
- var q = $.param(a);
-
- if (options.type.toUpperCase() == 'GET') {
- options.url += (options.url.indexOf('?') >= 0 ? '&' : '?') + q;
- options.data = null; // data is null for 'get'
- }
- else
- options.data = q; // data is the query string for 'post'
-
- var $form = this, callbacks = [];
- if (options.resetForm) callbacks.push(function() { $form.resetForm(); });
- if (options.clearForm) callbacks.push(function() { $form.clearForm(); });
-
- // perform a load on the target only if dataType is not provided
- if (!options.dataType && options.target) {
- var oldSuccess = options.success || function(){};
- callbacks.push(function(data) {
- $(options.target).html(data).each(oldSuccess, arguments);
- });
- }
- else if (options.success)
- callbacks.push(options.success);
-
- options.success = function(data, status) {
- for (var i=0, max=callbacks.length; i < max; i++)
- callbacks[i].apply(options, [data, status, $form]);
- };
-
- // are there files to upload?
- var files = $('input:file', this).fieldValue();
- var found = false;
- for (var j=0; j < files.length; j++)
- if (files[j])
- found = true;
-
- var multipart = false;
-// var mp = 'multipart/form-data';
-// multipart = ($form.attr('enctype') == mp || $form.attr('encoding') == mp);
-
- // options.iframe allows user to force iframe mode
- if (options.iframe || found || multipart) {
- // hack to fix Safari hang (thanks to Tim Molendijk for this)
- // see: http://groups.google.com/group/jquery-dev/browse_thread/thread/36395b7ab510dd5d
- if (options.closeKeepAlive)
- $.get(options.closeKeepAlive, fileUpload);
- else
- fileUpload();
- }
- else{
- $.ajax(options);
- }
-
- // fire 'notify' event
- this.trigger('form-submit-notify', [this, options]);
- return this;
-
-
- // private function for handling file uploads (hat tip to YAHOO!)
- function fileUpload() {
- var form = $form[0];
-
- if ($(':input[name=submit]', form).length) {
- alert('Error: Form elements must not be named "submit".');
- return;
- }
-
- var opts = $.extend({}, $.ajaxSettings, options);
- var s = $.extend(true, {}, $.extend(true, {}, $.ajaxSettings), opts);
-
- var id = 'jqFormIO' + (new Date().getTime());
- var $io = $('<iframe id="' + id + '" name="' + id + '" src="about:blank" />');
- var io = $io[0];
-
- $io.css({ position: 'absolute', top: '-1000px', left: '-1000px' });
-
- var xhr = { // mock object
- aborted: 0,
- responseText: null,
- responseXML: null,
- status: 0,
- statusText: 'n/a',
- getAllResponseHeaders: function() {},
- getResponseHeader: function() {},
- setRequestHeader: function() {},
- abort: function() {
- this.aborted = 1;
- $io.attr('src','about:blank'); // abort op in progress
- }
- };
-
- var g = opts.global;
- // trigger ajax global events so that activity/block indicators work like normal
- if (g && ! $.active++) $.event.trigger("ajaxStart");
- if (g) $.event.trigger("ajaxSend", [xhr, opts]);
-
- if (s.beforeSend && s.beforeSend(xhr, s) === false) {
- s.global && $.active--;
- return;
- }
- if (xhr.aborted)
- return;
-
- var cbInvoked = 0;
- var timedOut = 0;
-
- // add submitting element to data if we know it
- var sub = form.clk;
- if (sub) {
- var n = sub.name;
- if (n && !sub.disabled) {
- options.extraData = options.extraData || {};
- options.extraData[n] = sub.value;
- if (sub.type == "image") {
- options.extraData[name+'.x'] = form.clk_x;
- options.extraData[name+'.y'] = form.clk_y;
- }
- }
- }
-
- // take a breath so that pending repaints get some cpu time before the upload starts
- setTimeout(function() {
- // make sure form attrs are set
- var t = $form.attr('target'), a = $form.attr('action');
-
- // update form attrs in IE friendly way
- form.setAttribute('target',id);
- if (form.getAttribute('method') != 'POST')
- form.setAttribute('method', 'POST');
- if (form.getAttribute('action') != opts.url)
- form.setAttribute('action', opts.url);
-
- // ie borks in some cases when setting encoding
- if (! options.skipEncodingOverride) {
- $form.attr({
- encoding: 'multipart/form-data',
- enctype: 'multipart/form-data'
- });
- }
-
- // support timout
- if (opts.timeout)
- setTimeout(function() { timedOut = true; cb(); }, opts.timeout);
-
- // add "extra" data to form if provided in options
- var extraInputs = [];
- try {
- if (options.extraData)
- for (var n in options.extraData)
- extraInputs.push(
- $('<input type="hidden" name="'+n+'" value="'+options.extraData[n]+'" />')
- .appendTo(form)[0]);
-
- // add iframe to doc and submit the form
- $io.appendTo('body');
- io.attachEvent ? io.attachEvent('onload', cb) : io.addEventListener('load', cb, false);
- form.submit();
- }
- finally {
- // reset attrs and remove "extra" input elements
- form.setAttribute('action',a);
- t ? form.setAttribute('target', t) : $form.removeAttr('target');
- $(extraInputs).remove();
- }
- }, 10);
-
- var domCheckCount = 50;
-
- function cb() {
- if (cbInvoked++) return;
-
- io.detachEvent ? io.detachEvent('onload', cb) : io.removeEventListener('load', cb, false);
-
- var ok = true;
- try {
- if (timedOut) throw 'timeout';
- // extract the server response from the iframe
- var data, doc;
-
- doc = io.contentWindow ? io.contentWindow.document : io.contentDocument ? io.contentDocument : io.document;
-
- var isXml = opts.dataType == 'xml' || doc.XMLDocument || $.isXMLDoc(doc);
- log('isXml='+isXml);
- if (!isXml && (doc.body == null || doc.body.innerHTML == '')) {
- if (--domCheckCount) {
- // in some browsers (Opera) the iframe DOM is not always traversable when
- // the onload callback fires, so we loop a bit to accommodate
- cbInvoked = 0;
- setTimeout(cb, 100);
- return;
- }
- log('Could not access iframe DOM after 50 tries.');
- return;
- }
-
- xhr.responseText = doc.body ? doc.body.innerHTML : null;
- xhr.responseXML = doc.XMLDocument ? doc.XMLDocument : doc;
- xhr.getResponseHeader = function(header){
- var headers = {'content-type': opts.dataType};
- return headers[header];
- };
-
- if (opts.dataType == 'json' || opts.dataType == 'script') {
- // see if user embedded response in textarea
- var ta = doc.getElementsByTagName('textarea')[0];
- if (ta)
- xhr.responseText = ta.value;
- else {
- // account for browsers injecting pre around json response
- var pre = doc.getElementsByTagName('pre')[0];
- if (pre)
- xhr.responseText = pre.innerHTML;
- }
- }
- else if (opts.dataType == 'xml' && !xhr.responseXML && xhr.responseText != null) {
- xhr.responseXML = toXml(xhr.responseText);
- }
- data = $.httpData(xhr, opts.dataType);
- }
- catch(e){
- ok = false;
- $.handleError(opts, xhr, 'error', e);
- }
-
- // ordering of these callbacks/triggers is odd, but that's how $.ajax does it
- if (ok) {
- opts.success(data, 'success');
- if (g) $.event.trigger("ajaxSuccess", [xhr, opts]);
- }
- if (g) $.event.trigger("ajaxComplete", [xhr, opts]);
- if (g && ! --$.active) $.event.trigger("ajaxStop");
- if (opts.complete) opts.complete(xhr, ok ? 'success' : 'error');
-
- // clean up
- setTimeout(function() {
- $io.remove();
- xhr.responseXML = null;
- }, 100);
- };
-
- function toXml(s, doc) {
- if (window.ActiveXObject) {
- doc = new ActiveXObject('Microsoft.XMLDOM');
- doc.async = 'false';
- doc.loadXML(s);
- }
- else
- doc = (new DOMParser()).parseFromString(s, 'text/xml');
- return (doc && doc.documentElement && doc.documentElement.tagName != 'parsererror') ? doc : null;
- };
- };
-};
-
-/**
- * ajaxForm() provides a mechanism for fully automating form submission.
- *
- * The advantages of using this method instead of ajaxSubmit() are:
- *
- * 1: This method will include coordinates for <input type="image" /> elements (if the element
- * is used to submit the form).
- * 2. This method will include the submit element's name/value data (for the element that was
- * used to submit the form).
- * 3. This method binds the submit() method to the form for you.
- *
- * The options argument for ajaxForm works exactly as it does for ajaxSubmit. ajaxForm merely
- * passes the options argument along after properly binding events for submit elements and
- * the form itself.
- */
-$.fn.ajaxForm = function(options) {
- return this.ajaxFormUnbind().bind('submit.form-plugin', function() {
- $(this).ajaxSubmit(options);
- return false;
- }).bind('click.form-plugin', function(e) {
- var $el = $(e.target);
- if (!($el.is(":submit,input:image"))) {
- return;
- }
- var form = this;
- form.clk = e.target;
- if (e.target.type == 'image') {
- if (e.offsetX != undefined) {
- form.clk_x = e.offsetX;
- form.clk_y = e.offsetY;
- } else if (typeof $.fn.offset == 'function') { // try to use dimensions plugin
- var offset = $el.offset();
- form.clk_x = e.pageX - offset.left;
- form.clk_y = e.pageY - offset.top;
- } else {
- form.clk_x = e.pageX - e.target.offsetLeft;
- form.clk_y = e.pageY - e.target.offsetTop;
- }
- }
- // clear form vars
- setTimeout(function() { form.clk = form.clk_x = form.clk_y = null; }, 10);
- });
-};
-
-// ajaxFormUnbind unbinds the event handlers that were bound by ajaxForm
-$.fn.ajaxFormUnbind = function() {
- return this.unbind('submit.form-plugin click.form-plugin');
-};
-
-/**
- * formToArray() gathers form element data into an array of objects that can
- * be passed to any of the following ajax functions: $.get, $.post, or load.
- * Each object in the array has both a 'name' and 'value' property. An example of
- * an array for a simple login form might be:
- *
- * [ { name: 'username', value: 'jresig' }, { name: 'password', value: 'secret' } ]
- *
- * It is this array that is passed to pre-submit callback functions provided to the
- * ajaxSubmit() and ajaxForm() methods.
- */
-$.fn.formToArray = function(semantic) {
- var a = [];
- if (this.length == 0) return a;
-
- var form = this[0];
- var els = semantic ? form.getElementsByTagName('*') : form.elements;
- if (!els) return a;
- for(var i=0, max=els.length; i < max; i++) {
- var el = els[i];
- var n = el.name;
- if (!n) continue;
-
- if (semantic && form.clk && el.type == "image") {
- // handle image inputs on the fly when semantic == true
- if(!el.disabled && form.clk == el) {
- a.push({name: n, value: $(el).val()});
- a.push({name: n+'.x', value: form.clk_x}, {name: n+'.y', value: form.clk_y});
- }
- continue;
- }
-
- var v = $.fieldValue(el, true);
- if (v && v.constructor == Array) {
- for(var j=0, jmax=v.length; j < jmax; j++)
- a.push({name: n, value: v[j]});
- }
- else if (v !== null && typeof v != 'undefined')
- a.push({name: n, value: v});
- }
-
- if (!semantic && form.clk) {
- // input type=='image' are not found in elements array! handle it here
- var $input = $(form.clk), input = $input[0], n = input.name;
- if (n && !input.disabled && input.type == 'image') {
- a.push({name: n, value: $input.val()});
- a.push({name: n+'.x', value: form.clk_x}, {name: n+'.y', value: form.clk_y});
- }
- }
- return a;
-};
-
-/**
- * Serializes form data into a 'submittable' string. This method will return a string
- * in the format: name1=value1&name2=value2
- */
-$.fn.formSerialize = function(semantic) {
- //hand off to jQuery.param for proper encoding
- return $.param(this.formToArray(semantic));
-};
-
-/**
- * Serializes all field elements in the jQuery object into a query string.
- * This method will return a string in the format: name1=value1&name2=value2
- */
-$.fn.fieldSerialize = function(successful) {
- var a = [];
- this.each(function() {
- var n = this.name;
- if (!n) return;
- var v = $.fieldValue(this, successful);
- if (v && v.constructor == Array) {
- for (var i=0,max=v.length; i < max; i++)
- a.push({name: n, value: v[i]});
- }
- else if (v !== null && typeof v != 'undefined')
- a.push({name: this.name, value: v});
- });
- //hand off to jQuery.param for proper encoding
- return $.param(a);
-};
-
-/**
- * Returns the value(s) of the element in the matched set. For example, consider the following form:
- *
- * <form><fieldset>
- * <input name="A" type="text" />
- * <input name="A" type="text" />
- * <input name="B" type="checkbox" value="B1" />
- * <input name="B" type="checkbox" value="B2"/>
- * <input name="C" type="radio" value="C1" />
- * <input name="C" type="radio" value="C2" />
- * </fieldset></form>
- *
- * var v = $(':text').fieldValue();
- * // if no values are entered into the text inputs
- * v == ['','']
- * // if values entered into the text inputs are 'foo' and 'bar'
- * v == ['foo','bar']
- *
- * var v = $(':checkbox').fieldValue();
- * // if neither checkbox is checked
- * v === undefined
- * // if both checkboxes are checked
- * v == ['B1', 'B2']
- *
- * var v = $(':radio').fieldValue();
- * // if neither radio is checked
- * v === undefined
- * // if first radio is checked
- * v == ['C1']
- *
- * The successful argument controls whether or not the field element must be 'successful'
- * (per http://www.w3.org/TR/html4/interact/forms.html#successful-controls).
- * The default value of the successful argument is true. If this value is false the value(s)
- * for each element is returned.
- *
- * Note: This method *always* returns an array. If no valid value can be determined the
- * array will be empty, otherwise it will contain one or more values.
- */
-$.fn.fieldValue = function(successful) {
- for (var val=[], i=0, max=this.length; i < max; i++) {
- var el = this[i];
- var v = $.fieldValue(el, successful);
- if (v === null || typeof v == 'undefined' || (v.constructor == Array && !v.length))
- continue;
- v.constructor == Array ? $.merge(val, v) : val.push(v);
- }
- return val;
-};
-
-/**
- * Returns the value of the field element.
- */
-$.fieldValue = function(el, successful) {
- var n = el.name, t = el.type, tag = el.tagName.toLowerCase();
- if (typeof successful == 'undefined') successful = true;
-
- if (successful && (!n || el.disabled || t == 'reset' || t == 'button' ||
- (t == 'checkbox' || t == 'radio') && !el.checked ||
- (t == 'submit' || t == 'image') && el.form && el.form.clk != el ||
- tag == 'select' && el.selectedIndex == -1))
- return null;
-
- if (tag == 'select') {
- var index = el.selectedIndex;
- if (index < 0) return null;
- var a = [], ops = el.options;
- var one = (t == 'select-one');
- var max = (one ? index+1 : ops.length);
- for(var i=(one ? index : 0); i < max; i++) {
- var op = ops[i];
- if (op.selected) {
- var v = op.value;
- if (!v) // extra pain for IE...
- v = (op.attributes && op.attributes['value'] && !(op.attributes['value'].specified)) ? op.text : op.value;
- if (one) return v;
- a.push(v);
- }
- }
- return a;
- }
- return el.value;
-};
-
-/**
- * Clears the form data. Takes the following actions on the form's input fields:
- * - input text fields will have their 'value' property set to the empty string
- * - select elements will have their 'selectedIndex' property set to -1
- * - checkbox and radio inputs will have their 'checked' property set to false
- * - inputs of type submit, button, reset, and hidden will *not* be effected
- * - button elements will *not* be effected
- */
-$.fn.clearForm = function() {
- return this.each(function() {
- $('input,select,textarea', this).clearFields();
- });
-};
-
-/**
- * Clears the selected form elements.
- */
-$.fn.clearFields = $.fn.clearInputs = function() {
- return this.each(function() {
- var t = this.type, tag = this.tagName.toLowerCase();
- if (t == 'text' || t == 'password' || tag == 'textarea')
- this.value = '';
- else if (t == 'checkbox' || t == 'radio')
- this.checked = false;
- else if (tag == 'select')
- this.selectedIndex = -1;
- });
-};
-
-/**
- * Resets the form data. Causes all form elements to be reset to their original value.
- */
-$.fn.resetForm = function() {
- return this.each(function() {
- // guard against an input with the name of 'reset'
- // note that IE reports the reset function as an 'object'
- if (typeof this.reset == 'function' || (typeof this.reset == 'object' && !this.reset.nodeType))
- this.reset();
- });
-};
-
-/**
- * Enables or disables any matching elements.
- */
-$.fn.enable = function(b) {
- if (b == undefined) b = true;
- return this.each(function() {
- this.disabled = !b;
- });
-};
-
-/**
- * Checks/unchecks any matching checkboxes or radio buttons and
- * selects/deselects and matching option elements.
- */
-$.fn.selected = function(select) {
- if (select == undefined) select = true;
- return this.each(function() {
- var t = this.type;
- if (t == 'checkbox' || t == 'radio')
- this.checked = select;
- else if (this.tagName.toLowerCase() == 'option') {
- var $sel = $(this).parent('select');
- if (select && $sel[0] && $sel[0].type == 'select-one') {
- // deselect all other options
- $sel.find('option').selected(false);
- }
- this.selected = select;
- }
- });
-};
-
-// helper fn for console logging
-// set $.fn.ajaxSubmit.debug to true to enable debug logging
-function log() {
- if ($.fn.ajaxSubmit.debug && window.console && window.console.log)
- window.console.log('[jquery.form] ' + Array.prototype.join.call(arguments,''));
-};
-
-})(jQuery);
+++ /dev/null
-/*
- * jQuery i18n plugin
- * @requires jQuery v1.1 or later
- *
- * Examples at: http://recurser.com/articles/2008/02/21/jquery-i18n-translation-plugin/
- * Dual licensed under the MIT and GPL licenses:
- * http://www.opensource.org/licenses/mit-license.php
- * http://www.gnu.org/licenses/gpl.html
- *
- * Based on 'javascript i18n that almost doesn't suck' by markos
- * http://markos.gaivo.net/blog/?p=100
- *
- * Revision: $Id$
- * Version: 1.0.0 Feb-10-2008
- */
- (function($) {
-/**
- * i18n provides a mechanism for translating strings using a jscript dictionary.
- *
- */
-
-
-/*
- * i18n property list
- */
-$.i18n = {
-
-/**
- * setDictionary()
- * Initialise the dictionary and translate nodes
- *
- * @param property_list i18n_dict : The dictionary to use for translation
- */
- setDictionary: function(i18n_dict) {
- i18n_dict = i18n_dict;
- },
-
-/**
- * _()
- * The actual translation function. Looks the given string up in the
- * dictionary and returns the translation if one exists. If a translation
- * is not found, returns the original word
- *
- * @param string str : The string to translate
- * @param property_list params : params for using printf() on the string
- * @return string : Translated word
- *
- */
- _: function (str, params) {
- var transl = str;
- if (i18n_dict&& i18n_dict[str]) {
- transl = i18n_dict[str];
- }
- return this.printf(transl, params);
- },
-
-/**
- * toEntity()
- * Change non-ASCII characters to entity representation
- *
- * @param string str : The string to transform
- * @return string result : Original string with non-ASCII content converted to entities
- *
- */
- toEntity: function (str) {
- var result = '';
- for (var i=0;i<str.length; i++) {
- if (str.charCodeAt(i) > 128)
- result += "&#"+str.charCodeAt(i)+";";
- else
- result += str.charAt(i);
- }
- return result;
- },
-
-/**
- * stripStr()
- *
- * @param string str : The string to strip
- * @return string result : Stripped string
- *
- */
- stripStr: function(str) {
- return str.replace(/^\s*/, "").replace(/\s*$/, "");
- },
-
-/**
- * stripStrML()
- *
- * @param string str : The multi-line string to strip
- * @return string result : Stripped string
- *
- */
- stripStrML: function(str) {
- // Split because m flag doesn't exist before JS1.5 and we need to
- // strip newlines anyway
- var parts = str.split('\n');
- for (var i=0; i<parts.length; i++)
- parts[i] = stripStr(parts[i]);
-
- // Don't join with empty strings, because it "concats" words
- // And strip again
- return stripStr(parts.join(" "));
- },
-
-/*
- * printf()
- * C-printf like function, which substitutes %s with parameters
- * given in list. %%s is used to escape %s.
- *
- * Doesn't work in IE5.0 (splice)
- *
- * @param string S : string to perform printf on.
- * @param string L : Array of arguments for printf()
- */
- printf: function(S, L) {
- if (!L) return S;
-
- var nS = "";
- var tS = S.split("%s");
-
- for(var i=0; i<L.length; i++) {
- if (tS[i].lastIndexOf('%') == tS[i].length-1 && i != L.length-1)
- tS[i] += "s"+tS.splice(i+1,1)[0];
- nS += tS[i] + L[i];
- }
- return nS + tS[tS.length-1];
- }
-
-};
-
-
-})(jQuery);
+++ /dev/null
-/*
-openid login boxes
-*/
-var providers_large = {
- google: {
- name: 'Google',
- url: 'https://www.google.com/accounts/o8/id'
- },
- yahoo: {
- name: 'Yahoo',
- url: 'http://yahoo.com/'
- },
- aol: {
- name: 'AOL',
- label: 'Enter your AOL screenname.',
- url: 'http://openid.aol.com/{username}'
- },
- openid: {
- name: 'OpenID',
- label: 'Enter your OpenID.',
- url: 'http://'
- }
-};
-var providers_small = {
- myopenid: {
- name: 'MyOpenID',
- label: 'Enter your MyOpenID username.',
- url: 'http://{username}.myopenid.com/'
- },
- livejournal: {
- name: 'LiveJournal',
- label: 'Enter your Livejournal username.',
- url: 'http://{username}.livejournal.com/'
- },
- flickr: {
- name: 'Flickr',
- label: 'Enter your Flickr username.',
- url: 'http://flickr.com/{username}/'
- },
- technorati: {
- name: 'Technorati',
- label: 'Enter your Technorati username.',
- url: 'http://technorati.com/people/technorati/{username}/'
- },
- wordpress: {
- name: 'Wordpress',
- label: 'Enter your Wordpress.com username.',
- url: 'http://{username}.wordpress.com/'
- },
- blogger: {
- name: 'Blogger',
- label: 'Your Blogger account',
- url: 'http://{username}.blogspot.com/'
- },
- verisign: {
- name: 'Verisign',
- label: 'Your Verisign username',
- url: 'http://{username}.pip.verisignlabs.com/'
- },
- vidoop: {
- name: 'Vidoop',
- label: 'Your Vidoop username',
- url: 'http://{username}.myvidoop.com/'
- },
- verisign: {
- name: 'Verisign',
- label: 'Your Verisign username',
- url: 'http://{username}.pip.verisignlabs.com/'
- },
- claimid: {
- name: 'ClaimID',
- label: 'Your ClaimID username',
- url: 'http://claimid.com/{username}'
- }
-};
-var providers = $.extend({}, providers_large, providers_small);
-
-var openid = {
-
- cookie_expires: 6*30, // 6 months.
- cookie_name: 'openid_provider',
- cookie_path: '/',
-
- img_path: '/media/images/openid/',
-
- input_id: null,
- provider_url: null,
-
- init: function(input_id) {
-
- var openid_btns = $('#openid_btns');
- this.input_id = input_id;
-
- $('#openid_choice').show();
- //$('#openid_input_area').empty();
-
- // add box for each provider
- for (id in providers_large) {
- openid_btns.append(this.getBoxHTML(providers_large[id], 'large', '.gif'));
- }
- if (providers_small) {
- openid_btns.append('<br/>');
- for (id in providers_small) {
- openid_btns.append(this.getBoxHTML(providers_small[id], 'small', '.ico'));
- }
- }
-
- var box_id = this.readCookie();
- if (box_id) {
- this.signin(box_id, true);
- }
- },
- getBoxHTML: function(provider, box_size, image_ext) {
-
- var box_id = provider["name"].toLowerCase();
- return '<a title="'+provider["name"]+'" href="javascript: openid.signin(\''+ box_id +'\');"' +
- ' style="background: #FFF url(' + this.img_path + box_id + image_ext+') no-repeat center center" ' + 'class="' + box_id + ' openid_' + box_size + '_btn"></a>';
-
- },
- /* Provider image click */
- signin: function(box_id, onload) {
- var provider = providers[box_id];
- if (! provider) {
- return;
- }
- this.highlight(box_id);
- this.setCookie(box_id);
-
- $('#'+this.input_id).val(provider['url']);
- var input = $('#'+this.input_id);
- if(document.selection){
- var r = document.all.openid_url.createTextRange();
- var res = r.findText("{username}");
- if(res)
- r.select();
-
- }
- else {
- var text = input.val();
- var searchText = "{username}";
- var posStart = text.indexOf(searchText);
- if(posStart > -1){
- input.focus();
- document.getElementById(this.input_id).setSelectionRange(posStart, posStart + searchText.length);
- }
- }
- },
-
- highlight: function (box_id) {
- // remove previous highlight.
- var highlight = $('#openid_highlight');
- if (highlight) {
- highlight.replaceWith($('#openid_highlight a')[0]);
- }
- // add new highlight.
- $('.'+box_id).wrap('<div id="openid_highlight"></div>');
- },
-
- setCookie: function (value) {
- var date = new Date();
- date.setTime(date.getTime()+(this.cookie_expires*24*60*60*1000));
- var expires = "; expires="+date.toGMTString();
- document.cookie = this.cookie_name+"="+value+expires+"; path=" + this.cookie_path;
- },
-
- readCookie: function () {
- var nameEQ = this.cookie_name + "=";
- var ca = document.cookie.split(';');
- for(var i=0;i < ca.length;i++) {
- var c = ca[i];
- while (c.charAt(0)==' ') c = c.substring(1,c.length);
- if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
- }
- return null;
- }
-};
+++ /dev/null
-/*
- * jQuery validation plug-in 1.5
- *
- * http://bassistance.de/jquery-plugins/jquery-plugin-validation/
- * http://docs.jquery.com/Plugins/Validation
- *
- * Copyright (c) 2006 - 2008 Jörn Zaefferer
- *
- * $Id: jquery.validate.js 5952 2008-11-25 19:12:30Z joern.zaefferer $
- *
- * Dual licensed under the MIT and GPL licenses:
- * http://www.opensource.org/licenses/mit-license.php
- * http://www.gnu.org/licenses/gpl.html
- */
-eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(7($){$.G($.2J,{1y:7(c){l(!6.E){c&&c.2g&&2T.1q&&1q.4Z("3r 2y, 4B\'t 1y, 6d 3r");8}p b=$.16(6[0],\'u\');l(b){8 b}b=1V $.u(c,6[0]);$.16(6[0],\'u\',b);l(b.q.3s){6.4I("1Y, 4E").1t(".4w").4p(7(){b.35=v});6.30(7(a){l(b.q.2g)a.5X();7 24(){l(b.q.3S){b.q.3S.12(b,b.V);8 H}8 v}l(b.35){b.35=H;8 24()}l(b.K()){l(b.1g){b.1v=v;8 H}8 24()}1c{b.2i();8 H}})}8 b},M:7(){l($(6[0]).2H(\'K\')){8 6.1y().K()}1c{p b=H;p a=$(6[0].K).1y();6.O(7(){b|=a.L(6)});8 b}},4L:7(a){p b={},$L=6;$.O(a.1H(/\\s/),7(){b[6]=$L.1G(6);$L.4G(6)});8 b},1b:7(h,k){p f=6[0];l(h){p i=$.16(f.K,\'u\').q;p d=i.1b;p c=$.u.2s(f);2q(h){1e"2o":$.G(c,$.u.1S(k));d[f.r]=c;l(k.J)i.J[f.r]=$.G(i.J[f.r],k.J);31;1e"63":l(!k){R d[f.r];8 c}p e={};$.O(k.1H(/\\s/),7(a,b){e[b]=c[b];R c[b]});8 e}}p g=$.u.3x($.G({},$.u.40(f),$.u.3W(f),$.u.3T(f),$.u.2s(f)),f);l(g.13){p j=g.13;R g.13;g=$.G({13:j},g)}8 g},Y:7(t){8 6.5A(6.2o(t).5w())}});$.G($.5t[":"],{5p:7(a){8!$.2b(a.T)},5m:7(a){8!!$.2b(a.T)},5i:7(a){8!a.3U}});$.1a=7(c,b){l(P.E==1)8 7(){p a=$.48(P);a.52(c);8 $.1a.1I(6,a)};l(P.E>2&&b.2m!=3A){b=$.48(P).4O(1)}l(b.2m!=3A){b=[b]}$.O(b,7(i,n){c=c.3u(1V 3t("\\\\{"+i+"\\\\}","g"),n)});8 c};$.u=7(b,a){6.q=$.G({},$.u.2D,b);6.V=a;6.3q()};$.G($.u,{2D:{J:{},21:{},1b:{},18:"3l",2B:"4H",2i:v,3k:$([]),2A:$([]),3s:v,3j:[],3h:H,4F:7(a){6.3g=a;l(6.q.4D&&!6.4C){6.q.1U&&6.q.1U.12(6,a,6.q.18);6.1E(a).2v()}},4z:7(a){l(!6.1u(a)&&(a.r Z 6.1j||!6.F(a))){6.L(a)}},4t:7(a){l(a.r Z 6.1j||a==6.4q){6.L(a)}},6n:7(a){l(a.r Z 6.1j)6.L(a)},37:7(a,b){$(a).2p(b)},1U:7(a,b){$(a).36(b)}},6g:7(a){$.G($.u.2D,a)},J:{13:"6e 4k 2H 13.",1R:"I 38 6 4k.",1F:"I N a M 1F 65.",1k:"I N a M 62.",1l:"I N a M 1l.",2a:"I N a M 1l (61).",20:"45 44 42 2E 5T¼5S 5R 2E.",1n:"I N a M 1n.",28:"45 44 42 5N 5M 2E.",1O:"I N 5G 1O",2d:"I N a M 5E 5C 1n.",3P:"I N 3O 5v T 5u.",3L:"I N a T 5q a M 5o.",15:$.1a("I N 3K 5n 2O {0} 2R."),1r:$.1a("I N 5k 5h {0} 2R."),2h:$.1a("I N a T 3E {0} 3R {1} 2R 5c."),27:$.1a("I N a T 3E {0} 3R {1}."),1m:$.1a("I N a T 5a 2O 47 43 3D {0}."),1w:$.1a("I N a T 51 2O 47 43 3D {0}.")},4f:H,4Y:{3q:7(){6.26=$(6.q.2A);6.3C=6.26.E&&6.26||$(6.V);6.2k=$(6.q.3k).2o(6.q.2A);6.1j={};6.4S={};6.1g=0;6.1d={};6.1f={};6.1J();p f=(6.21={});$.O(6.q.21,7(d,c){$.O(c.1H(/\\s/),7(a,b){f[b]=d})});p e=6.q.1b;$.O(e,7(b,a){e[b]=$.u.1S(a)});7 1p(a){p b=$.16(6[0].K,"u");b.q["3z"+a.1o]&&b.q["3z"+a.1o].12(b,6[0])}$(6.V).1p("3y 3w 4N",":2F, :4M, :4K, 23, 4J",1p).1p("4p",":3p, :3o",1p);l(6.q.3n)$(6.V).3m("1f-K.1y",6.q.3n)},K:7(){6.3v();$.G(6.1j,6.1z);6.1f=$.G({},6.1z);l(!6.M())$(6.V).2C("1f-K",[6]);6.1h();8 6.M()},3v:7(){6.2G();Q(p i=0,11=(6.1Z=6.11());11[i];i++){6.2n(11[i])}8 6.M()},L:7(a){a=6.2z(a);6.4q=a;6.2N(a);6.1Z=$(a);p b=6.2n(a);l(b){R 6.1f[a.r]}1c{6.1f[a.r]=v}l(!6.3i()){6.14.Y(6.2k)}6.1h();8 b},1h:7(b){l(b){$.G(6.1z,b);6.S=[];Q(p c Z b){6.S.Y({19:b[c],L:6.1X(c)[0]})}6.1i=$.3f(6.1i,7(a){8!(a.r Z b)})}6.q.1h?6.q.1h.12(6,6.1z,6.S):6.3e()},2x:7(){l($.2J.2x)$(6.V).2x();6.1j={};6.2G();6.2W();6.11().36(6.q.18)},3i:7(){8 6.2c(6.1f)},2c:7(a){p b=0;Q(p i Z a)b++;8 b},2W:7(){6.2w(6.14).2v()},M:7(){8 6.3d()==0},3d:7(){8 6.S.E},2i:7(){l(6.q.2i){3c{$(6.3b()||6.S.E&&6.S[0].L||[]).1t(":4A").3a()}39(e){}}},3b:7(){p a=6.3g;8 a&&$.3f(6.S,7(n){8 n.L.r==a.r}).E==1&&a},11:7(){p a=6,2u={};8 $([]).2o(6.V.11).1t(":1Y").1D(":30, :1J, :4y, [4x]").1D(6.q.3j).1t(7(){!6.r&&a.q.2g&&2T.1q&&1q.3l("%o 4v 3K r 4u",6);l(6.r Z 2u||!a.2c($(6).1b()))8 H;2u[6.r]=v;8 v})},2z:7(a){8 $(a)[0]},2t:7(){8 $(6.q.2B+"."+6.q.18,6.3C)},1J:7(){6.1i=[];6.S=[];6.1z={};6.1C=$([]);6.14=$([]);6.1v=H;6.1Z=$([])},2G:7(){6.1J();6.14=6.2t().Y(6.2k)},2N:7(a){6.1J();6.14=6.1E(a)},2n:7(d){d=6.2z(d);l(6.1u(d)){d=6.1X(d.r)[0]}p a=$(d).1b();p c=H;Q(W Z a){p b={W:W,2r:a[W]};3c{p f=$.u.1P[W].12(6,d.T,d,b.2r);l(f=="1T-1Q"){c=v;6m}c=H;l(f=="1d"){6.14=6.14.1D(6.1E(d));8}l(!f){6.4o(d,b);8 H}}39(e){6.q.2g&&2T.1q&&1q.6l("6k 6j 6i 6h L "+d.4n+", 2n 3O \'"+b.W+"\' W");6f e;}}l(c)8;l(6.2c(a))6.1i.Y(d);8 v},4l:7(a,b){l(!$.1x)8;p c=6.q.33?$(a).1x()[6.q.33]:$(a).1x();8 c&&c.J&&c.J[b]},4j:7(a,b){p m=6.q.J[a];8 m&&(m.2m==4i?m:m[b])},4h:7(){Q(p i=0;i<P.E;i++){l(P[i]!==2l)8 P[i]}8 2l},2j:7(a,b){8 6.4h(6.4j(a.r,b),6.4l(a,b),!6.q.3h&&a.6c||2l,$.u.J[b],"<4g>6b: 6a 19 68 Q "+a.r+"</4g>")},4o:7(b,a){p c=6.2j(b,a.W);l(17 c=="7")c=c.12(6,a.2r,b);6.S.Y({19:c,L:b});6.1z[b.r]=c;6.1j[b.r]=c},2w:7(a){l(6.q.1W)a.Y(a.64(6.q.1W));8 a},3e:7(){Q(p i=0;6.S[i];i++){p a=6.S[i];6.q.37&&6.q.37.12(6,a.L,6.q.18);6.2Z(a.L,a.19)}l(6.S.E){6.1C.Y(6.2k)}l(6.q.1s){Q(p i=0;6.1i[i];i++){6.2Z(6.1i[i])}}l(6.q.1U){Q(p i=0,11=6.4e();11[i];i++){6.q.1U.12(6,11[i],6.q.18)}}6.14=6.14.1D(6.1C);6.2W();6.2w(6.1C).4d()},4e:7(){8 6.1Z.1D(6.4c())},4c:7(){8 $(6.S).4b(7(){8 6.L})},2Z:7(a,c){p b=6.1E(a);l(b.E){b.36().2p(6.q.18);b.1G("4a")&&b.49(c)}1c{b=$("<"+6.q.2B+"/>").1G({"Q":6.2Y(a),4a:v}).2p(6.q.18).49(c||"");l(6.q.1W){b=b.2v().4d().60("<"+6.q.1W+">").5Z()}l(!6.26.5Y(b).E)6.q.46?6.q.46(b,$(a)):b.5W(a)}l(!c&&6.q.1s){b.2F("");17 6.q.1s=="1B"?b.2p(6.q.1s):6.q.1s(b)}6.1C.Y(b)},1E:7(a){8 6.2t().1t("[@Q=\'"+6.2Y(a)+"\']")},2Y:7(a){8 6.21[a.r]||(6.1u(a)?a.r:a.4n||a.r)},1u:7(a){8/3p|3o/i.U(a.1o)},1X:7(d){p c=6.V;8 $(5V.5U(d)).4b(7(a,b){8 b.K==c&&b.r==d&&b||41})},1K:7(a,b){2q(b.3Z.3Y()){1e\'23\':8 $("3X:2y",b).E;1e\'1Y\':l(6.1u(b))8 6.1X(b.r).1t(\':3U\').E}8 a.E},3B:7(b,a){8 6.2X[17 b]?6.2X[17 b](b,a):v},2X:{"5Q":7(b,a){8 b},"1B":7(b,a){8!!$(b,a.K).E},"7":7(b,a){8 b(a)}},F:7(a){8!$.u.1P.13.12(6,$.2b(a.T),a)&&"1T-1Q"},3V:7(a){l(!6.1d[a.r]){6.1g++;6.1d[a.r]=v}},4s:7(a,b){6.1g--;l(6.1g<0)6.1g=0;R 6.1d[a.r];l(b&&6.1g==0&&6.1v&&6.K()){$(6.V).30()}1c l(!b&&6.1g==0&&6.1v){$(6.V).2C("1f-K",[6])}},2f:7(a){8 $.16(a,"2f")||$.16(a,"2f",5O={2K:41,M:v,19:6.2j(a,"1R")})}},1M:{13:{13:v},1F:{1F:v},1k:{1k:v},1l:{1l:v},2a:{2a:v},20:{20:v},1n:{1n:v},28:{28:v},1O:{1O:v},2d:{2d:v}},3Q:7(a,b){a.2m==4i?6.1M[a]=b:$.G(6.1M,a)},3W:7(b){p a={};p c=$(b).1G(\'5K\');c&&$.O(c.1H(\' \'),7(){l(6 Z $.u.1M){$.G(a,$.u.1M[6])}});8 a},3T:7(c){p a={};p d=$(c);Q(W Z $.u.1P){p b=d.1G(W);l(b){a[W]=b}}l(a.15&&/-1|5J|5H/.U(a.15)){R a.15}8 a},40:7(a){l(!$.1x)8{};p b=$.16(a.K,\'u\').q.33;8 b?$(a).1x()[b]:$(a).1x()},2s:7(b){p a={};p c=$.16(b.K,\'u\');l(c.q.1b){a=$.u.1S(c.q.1b[b.r])||{}}8 a},3x:7(d,e){$.O(d,7(c,b){l(b===H){R d[c];8}l(b.2V||b.2e){p a=v;2q(17 b.2e){1e"1B":a=!!$(b.2e,e.K).E;31;1e"7":a=b.2e.12(e,e);31}l(a){d[c]=b.2V!==2l?b.2V:v}1c{R d[c]}}});$.O(d,7(a,b){d[a]=$.5F(b)?b(e):b});$.O([\'1r\',\'15\',\'1w\',\'1m\'],7(){l(d[6]){d[6]=2U(d[6])}});$.O([\'2h\',\'27\'],7(){l(d[6]){d[6]=[2U(d[6][0]),2U(d[6][1])]}});l($.u.4f){l(d.1w&&d.1m){d.27=[d.1w,d.1m];R d.1w;R d.1m}l(d.1r&&d.15){d.2h=[d.1r,d.15];R d.1r;R d.15}}l(d.J){R d.J}8 d},1S:7(a){l(17 a=="1B"){p b={};$.O(a.1H(/\\s/),7(){b[6]=v});a=b}8 a},5D:7(c,a,b){$.u.1P[c]=a;$.u.J[c]=b;l(a.E<3){$.u.3Q(c,$.u.1S(c))}},1P:{13:7(b,c,a){l(!6.3B(a,c))8"1T-1Q";2q(c.3Z.3Y()){1e\'23\':p d=$("3X:2y",c);8 d.E>0&&(c.1o=="23-5B"||($.2S.2Q&&!(d[0].5z[\'T\'].5y)?d[0].2F:d[0].T).E>0);1e\'1Y\':l(6.1u(c))8 6.1K(b,c)>0;5x:8 $.2b(b).E>0}},1R:7(e,h,d){l(6.F(h))8"1T-1Q";p g=6.2f(h);l(!6.q.J[h.r])6.q.J[h.r]={};6.q.J[h.r].1R=17 g.19=="7"?g.19(e):g.19;d=17 d=="1B"&&{1k:d}||d;l(g.2K!==e){g.2K=e;p i=6;6.3V(h);p f={};f[h.r]=e;$.2P($.G(v,{1k:d,3N:"2L",3M:"1y"+h.r,5s:"5r",16:f,1s:7(a){l(a){p b=i.1v;i.2N(h);i.1v=b;i.1i.Y(h);i.1h()}1c{p c={};c[h.r]=a||i.2j(h,"1R");i.1h(c)}g.M=a;i.4s(h,a)}},d));8"1d"}1c l(6.1d[h.r]){8"1d"}8 g.M},1r:7(b,c,a){8 6.F(c)||6.1K(b,c)>=a},15:7(b,c,a){8 6.F(c)||6.1K(b,c)<=a},2h:7(b,d,a){p c=6.1K(b,d);8 6.F(d)||(c>=a[0]&&c<=a[1])},1w:7(b,c,a){8 6.F(c)||b>=a},1m:7(b,c,a){8 6.F(c)||b<=a},27:7(b,c,a){8 6.F(c)||(b>=a[0]&&b<=a[1])},1F:7(a,b){8 6.F(b)||/^((([a-z]|\\d|[!#\\$%&\'\\*\\+\\-\\/=\\?\\^X`{\\|}~]|[\\A-\\C\\w-\\B\\x-\\y])+(\\.([a-z]|\\d|[!#\\$%&\'\\*\\+\\-\\/=\\?\\^X`{\\|}~]|[\\A-\\C\\w-\\B\\x-\\y])+)*)|((\\3J)((((\\29|\\1N)*(\\2M\\3I))?(\\29|\\1N)+)?(([\\3H-\\5l\\3G\\3F\\5j-\\5I\\4r]|\\5g|[\\5L-\\5f]|[\\5e-\\5d]|[\\A-\\C\\w-\\B\\x-\\y])|(\\\\([\\3H-\\1N\\3G\\3F\\2M-\\4r]|[\\A-\\C\\w-\\B\\x-\\y]))))*(((\\29|\\1N)*(\\2M\\3I))?(\\29|\\1N)+)?(\\3J)))@((([a-z]|\\d|[\\A-\\C\\w-\\B\\x-\\y])|(([a-z]|\\d|[\\A-\\C\\w-\\B\\x-\\y])([a-z]|\\d|-|\\.|X|~|[\\A-\\C\\w-\\B\\x-\\y])*([a-z]|\\d|[\\A-\\C\\w-\\B\\x-\\y])))\\.)+(([a-z]|[\\A-\\C\\w-\\B\\x-\\y])|(([a-z]|[\\A-\\C\\w-\\B\\x-\\y])([a-z]|\\d|-|\\.|X|~|[\\A-\\C\\w-\\B\\x-\\y])*([a-z]|[\\A-\\C\\w-\\B\\x-\\y])))\\.?$/i.U(a)},1k:7(a,b){8 6.F(b)||/^(5P?|5b):\\/\\/(((([a-z]|\\d|-|\\.|X|~|[\\A-\\C\\w-\\B\\x-\\y])|(%[\\1L-f]{2})|[!\\$&\'\\(\\)\\*\\+,;=]|:)*@)?(((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5]))|((([a-z]|\\d|[\\A-\\C\\w-\\B\\x-\\y])|(([a-z]|\\d|[\\A-\\C\\w-\\B\\x-\\y])([a-z]|\\d|-|\\.|X|~|[\\A-\\C\\w-\\B\\x-\\y])*([a-z]|\\d|[\\A-\\C\\w-\\B\\x-\\y])))\\.)+(([a-z]|[\\A-\\C\\w-\\B\\x-\\y])|(([a-z]|[\\A-\\C\\w-\\B\\x-\\y])([a-z]|\\d|-|\\.|X|~|[\\A-\\C\\w-\\B\\x-\\y])*([a-z]|[\\A-\\C\\w-\\B\\x-\\y])))\\.?)(:\\d*)?)(\\/((([a-z]|\\d|-|\\.|X|~|[\\A-\\C\\w-\\B\\x-\\y])|(%[\\1L-f]{2})|[!\\$&\'\\(\\)\\*\\+,;=]|:|@)+(\\/(([a-z]|\\d|-|\\.|X|~|[\\A-\\C\\w-\\B\\x-\\y])|(%[\\1L-f]{2})|[!\\$&\'\\(\\)\\*\\+,;=]|:|@)*)*)?)?(\\?((([a-z]|\\d|-|\\.|X|~|[\\A-\\C\\w-\\B\\x-\\y])|(%[\\1L-f]{2})|[!\\$&\'\\(\\)\\*\\+,;=]|:|@)|[\\59-\\58]|\\/|\\?)*)?(\\#((([a-z]|\\d|-|\\.|X|~|[\\A-\\C\\w-\\B\\x-\\y])|(%[\\1L-f]{2})|[!\\$&\'\\(\\)\\*\\+,;=]|:|@)|\\/|\\?)*)?$/i.U(a)},1l:7(a,b){8 6.F(b)||!/57|56/.U(1V 55(a))},2a:7(a,b){8 6.F(b)||/^\\d{4}[\\/-]\\d{1,2}[\\/-]\\d{1,2}$/.U(a)},20:7(a,b){8 6.F(b)||/^\\d\\d?\\.\\d\\d?\\.\\d\\d\\d?\\d?$/.U(a)},1n:7(a,b){8 6.F(b)||/^-?(?:\\d+|\\d{1,3}(?:,\\d{3})+)(?:\\.\\d+)?$/.U(a)},28:7(a,b){8 6.F(b)||/^-?(?:\\d+|\\d{1,3}(?:\\.\\d{3})+)(?:,\\d+)?$/.U(a)},1O:7(a,b){8 6.F(b)||/^\\d+$/.U(a)},2d:7(b,e){l(6.F(e))8"1T-1Q";l(/[^0-9-]+/.U(b))8 H;p a=0,d=0,22=H;b=b.3u(/\\D/g,"");Q(n=b.E-1;n>=0;n--){p c=b.54(n);p d=53(c,10);l(22){l((d*=2)>9)d-=9}a+=d;22=!22}8(a%10)==0},3L:7(b,c,a){a=17 a=="1B"?a:"66|67?g|50";8 6.F(c)||b.69(1V 3t(".("+a+")$","i"))},3P:7(b,c,a){8 b==$(a).4X()}}})})(2I);(7($){p c=$.2P;p d={};$.2P=7(a){a=$.G(a,$.G({},$.4W,a));p b=a.3M;l(a.3N=="2L"){l(d[b]){d[b].2L()}8(d[b]=c.1I(6,P))}8 c.1I(6,P)}})(2I);(7($){$.O({3a:\'3y\',4V:\'3w\'},7(b,a){$.1A.32[a]={4U:7(){l($.2S.2Q)8 H;6.4T(b,$.1A.32[a].34,v)},4R:7(){l($.2S.2Q)8 H;6.4Q(b,$.1A.32[a].34,v)},34:7(e){P[0]=$.1A.38(e);P[0].1o=a;8 $.1A.24.1I(6,P)}}});$.G($.2J,{1p:7(d,e,c){8 6.3m(d,7(a){p b=$(a.4m);l(b.2H(e)){8 c.1I(b,P)}})},4P:7(a,b){8 6.2C(a,[$.1A.38({1o:a,4m:b})])}})})(2I);',62,396,'||||||this|function|return|||||||||||||if||||var|settings|name|||validator|true|uF900|uFDF0|uFFEF||u00A0|uFDCF|uD7FF||length|optional|extend|false|Please|messages|form|element|valid|enter|each|arguments|for|delete|errorList|value|test|currentForm|method|_|push|in||elements|call|required|toHide|maxlength|data|typeof|errorClass|message|format|rules|else|pending|case|invalid|pendingRequest|showErrors|successList|submitted|url|date|max|number|type|delegate|console|minlength|success|filter|checkable|formSubmitted|min|metadata|validate|errorMap|event|string|toShow|not|errorsFor|email|attr|split|apply|reset|getLength|da|classRuleSettings|x09|digits|methods|mismatch|remote|normalizeRule|dependency|unhighlight|new|wrapper|findByName|input|currentElements|dateDE|groups|bEven|select|handle||labelContainer|range|numberDE|x20|dateISO|trim|objectLength|creditcard|depends|previousValue|debug|rangelength|focusInvalid|defaultMessage|containers|undefined|constructor|check|add|addClass|switch|parameters|staticRules|errors|rulesCache|hide|addWrapper|resetForm|selected|clean|errorLabelContainer|errorElement|triggerHandler|defaults|ein|text|prepareForm|is|jQuery|fn|old|abort|x0d|prepareElement|than|ajax|msie|characters|browser|window|Number|param|hideErrors|dependTypes|idOrName|showLabel|submit|break|special|meta|handler|cancelSubmit|removeClass|highlight|fix|catch|focus|findLastActive|try|size|defaultShowErrors|grep|lastActive|ignoreTitle|numberOfInvalids|ignore|errorContainer|error|bind|invalidHandler|checkbox|radio|init|nothing|onsubmit|RegExp|replace|checkForm|focusout|normalizeRules|focusin|on|Array|depend|errorContext|to|between|x0c|x0b|x01|x0a|x22|no|accept|port|mode|the|equalTo|addClassRules|and|submitHandler|attributeRules|checked|startRequest|classRules|option|toLowerCase|nodeName|metadataRules|null|Sie|equal|geben|Bitte|errorPlacement|or|makeArray|html|generated|map|invalidElements|show|validElements|autoCreateRanges|strong|findDefined|String|customMessage|field|customMetaMessage|target|id|formatAndAdd|click|lastElement|x7f|stopRequest|onkeyup|assigned|has|cancel|disabled|image|onfocusout|visible|can|blockFocusCleanup|focusCleanup|button|onfocusin|removeAttr|label|find|textarea|file|removeAttrs|password|keyup|slice|triggerEvent|removeEventListener|teardown|valueCache|addEventListener|setup|blur|ajaxSettings|val|prototype|warn|gif|greater|unshift|parseInt|charAt|Date|NaN|Invalid|uF8FF|uE000|less|ftp|long|x7e|x5d|x5b|x21|least|unchecked|x0e|at|x08|filled|more|extension|blank|with|json|dataType|expr|again|same|get|default|specified|attributes|setArray|multiple|card|addMethod|credit|isFunction|only|524288|x1f|2147483647|class|x23|Nummer|eine|previous|https|boolean|Datum|ltiges|gÃ|getElementsByName|document|insertAfter|preventDefault|append|parent|wrap|ISO|URL|remove|parents|address|png|jpe|defined|match|No|Warning|title|returning|This|throw|setDefaults|checking|when|occured|exception|log|continue|onclick'.split('|'),0,{}))
\ No newline at end of file
+++ /dev/null
-var response_commands = {\r
- update_post_score: function(type, id, inc) {\r
- var $score_board = $('#' + type + '-' + id + '-score');\r
- $score_board.html(parseInt($score_board.html()) + inc)\r
- },\r
-\r
- update_user_post_vote: function(type, id, vote_type) {\r
- var $upvote_button = $('#' + type + '-' + id + '-upvote');\r
- var $downvote_button = $('#' + type + '-' + id + '-downvote');\r
-\r
- $upvote_button.removeClass('on');\r
- $downvote_button.removeClass('on');\r
-\r
- if (vote_type == 'up') {\r
- $upvote_button.addClass('on');\r
- } else if (vote_type == 'down') {\r
- $downvote_button.addClass('on');\r
- }\r
- },\r
-\r
- update_favorite_count: function(inc) {\r
- var $favorite_count = $('#favorite-count');\r
- var count = parseInt($favorite_count.html());\r
-\r
- if (isNaN(count))\r
- count = 0;\r
-\r
- count += inc;\r
-\r
- if (count == 0)\r
- count = '';\r
-\r
- $favorite_count.html(count);\r
- },\r
-\r
- update_favorite_mark: function(type) {\r
- if (type == 'on') {\r
- $('#favorite-mark').addClass('on');\r
- } else {\r
- $('#favorite-mark').removeClass('on');\r
- }\r
- },\r
-\r
- mark_accepted: function(id) {\r
- $('.accepted-answer').removeClass('accepted-answer');\r
- $('.accept-answer.on').removeClass('on');\r
- \r
- var $answer = $('#answer-container-' + id);\r
- $answer.addClass('accepted-answer');\r
- $answer.find('.accept-answer').addClass('on');\r
- },\r
-\r
- unmark_accepted: function(id) {\r
- var $answer = $('#answer-container-' + id);\r
- $answer.removeClass('accepted-answer');\r
- $answer.find('.accept-answer').removeClass('on');\r
- },\r
-\r
- update_comment_score: function(id, inc) {\r
- var $comment_score = $('#comment-' + id + '-score');\r
- var count = parseInt($comment_score.html());\r
-\r
- if (isNaN(count))\r
- count = 0;\r
-\r
- count += inc;\r
-\r
- if (count == 0)\r
- count = '';\r
-\r
- $comment_score.html(count);\r
- },\r
-\r
- update_likes_comment_mark: function(id, like_type) {\r
- var $comment_like_mark = $("#comment-" + id + "-like");\r
-\r
- if (like_type == "on") {\r
- $comment_like_mark.addClass("on");\r
- } else {\r
- $comment_like_mark.removeClass("on"); \r
- }\r
- },\r
-\r
- remove_comment: function(id) {\r
- var $comment = $('#comment-' + id);\r
- $comment.css('background', 'red')\r
- $comment.fadeOut('slow', function() {\r
- $comment.remove(); \r
- });\r
- },\r
-\r
- insert_comment: function(post_type, post_id, comment_id, comment, username, profile_url, delete_url) {\r
- var $container = $('#comments-container-' + post_type + '-' + post_id);\r
- var skeleton = $('#new-comment-skeleton-' + post_type + '-' + post_id).html().toString();\r
-\r
- skeleton = skeleton.replace(new RegExp('%ID%', 'g'), comment_id)\r
- .replace(new RegExp('%COMMENT%', 'g'), comment)\r
- .replace(new RegExp('%USERNAME%', 'g'), username)\r
- .replace(new RegExp('%PROFILE_URL%', 'g'), profile_url)\r
- .replace(new RegExp('%DELETE_URL%', 'g'), delete_url);\r
-\r
- $container.append(skeleton);\r
-\r
- $('#comment-' + comment_id).slideDown('slow');\r
- },\r
-\r
- update_comment: function(comment_id, comment_text) {\r
- var $comment = $('#comment-' + comment_id);\r
- $comment.find('.comment-text').html(comment_text);\r
-\r
- $comment.slideDown('slow');\r
- },\r
-\r
- mark_deleted: function(post_type, post_id) {\r
- if (post_type == 'answer') {\r
- var $answer = $('#answer-container-' + post_id);\r
- $answer.addClass('deleted');\r
- } else {\r
- var $container = $('#question-table');\r
- $container.addClass('deleted');\r
- }\r
- },\r
-\r
- set_subscription_button: function(text) {\r
- $('.subscription_switch').html(text);\r
- },\r
-\r
- set_subscription_status: function(text) {\r
- $('.subscription-status').html(text);\r
- }\r
-}\r
-\r
-function show_message(object, msg) {\r
- var div = $('<div class="vote-notification"><h3>' + msg + '</h3>(' +\r
- 'click to close' + ')</div>');\r
-\r
- div.click(function(event) {\r
- $(".vote-notification").fadeOut("fast", function() { $(this).remove(); });\r
- });\r
-\r
- object.parent().append(div);\r
- div.fadeIn("fast");\r
-}\r
-\r
-function process_ajax_response(data, el) {\r
- if (!data.success && data['error_message'] != undefined) {\r
- show_message(el, data.error_message)\r
- } else if (typeof data['commands'] != undefined){\r
- for (var command in data.commands) {\r
- response_commands[command].apply(null, data.commands[command])\r
- }\r
-\r
- if (data['message'] != undefined) {\r
- show_message(el, data.message)\r
- }\r
- }\r
-}\r
-\r
-$(function() {\r
- $('a.ajax-command').live('click', function() {\r
- var el = $(this);\r
- $.getJSON(el.attr('href'), function(data) {\r
- process_ajax_response(data, el);\r
- });\r
-\r
- return false\r
- });\r
-\r
- $('div.comment-form-container').each(function() {\r
- var $container = $(this);\r
- var $form = $container.find('form');\r
- var $textarea = $container.find('textarea');\r
- var $button = $container.find('input[type="submit"]');\r
- var $chars_left_message = $('.comment-chars-left');\r
- var $chars_counter = $container.find('.comments-char-left-count');\r
-\r
- var $comment_tools = $container.parent().find('.comment-tools');\r
- var $add_comment_link = $comment_tools.find('.add-comment-link');\r
- var $comments_container = $container.parent().find('.comments-container');\r
-\r
- var max_length = parseInt($chars_counter.html());\r
- var comment_in_form = false;\r
-\r
- function cleanup_form() {\r
- $textarea.val('');\r
- $chars_counter.html(max_length);\r
- $chars_left_message.removeClass('warn');\r
- comment_in_form = false;\r
- }\r
-\r
- cleanup_form();\r
-\r
- function calculate_chars_left() {\r
- var length = $textarea.val().length;\r
- var allow = true;\r
-\r
- if (length < max_length) {\r
- if (length < max_length * 0.75) {\r
- $chars_left_message.removeClass('warn');\r
- } else {\r
- $chars_left_message.addClass('warn');\r
- }\r
- } else {\r
- allow = false;\r
- }\r
-\r
- $chars_counter.html(max_length - length);\r
- return allow;\r
- }\r
-\r
- function show_comment_form() {\r
- $container.slideDown('slow');\r
- $add_comment_link.fadeOut('slow');\r
- }\r
-\r
- function hide_comment_form() {\r
- $container.slideUp('slow');\r
- $add_comment_link.fadeIn('slow');\r
- }\r
-\r
- $add_comment_link.click(function(){\r
- cleanup_form();\r
- show_comment_form();\r
- return false;\r
- });\r
-\r
- $comment_tools.find('.show-all-comments-link').click(function() {\r
- $comments_container.find('.not_top_scorer').slideDown('slow');\r
- $(this).fadeOut('slow');\r
- $comment_tools.find('.comments-showing').fadeOut('slow');\r
- return false;\r
- });\r
-\r
- $('#' + $comments_container.attr('id') + ' .comment-edit').live('click', function() {\r
- var $link = $(this);\r
- var comment_id = /comment-(\d+)-edit/.exec($link.attr('id'))[1];\r
- var $comment = $link.parents('.comment');\r
- var comment_text = $comment.find('.comment-text').text().trim();\r
-\r
- comment_in_form = comment_id;\r
- $textarea.val(comment_text);\r
- calculate_chars_left();\r
- $comment.slideUp('slow');\r
- show_comment_form();\r
- return false;\r
- });\r
-\r
- $textarea.keyup(calculate_chars_left);\r
-\r
- $button.click(function() {\r
- if ($textarea.val().length > max_length) {\r
- show_message($button, "Your comment exceeds the max number of characters allowed.");\r
- } else {\r
- var post_data = {\r
- comment: $textarea.val()\r
- }\r
-\r
- if (comment_in_form) {\r
- post_data['id'] = comment_in_form;\r
- }\r
-\r
- $.post($form.attr('action'), post_data, function(data) {\r
- process_ajax_response(data, $button);\r
- cleanup_form();\r
- }, "json")\r
- }\r
-\r
- hide_comment_form();\r
- return false;\r
- });\r
- });\r
-\r
- \r
-});\r
-\r
-//var scriptUrl, interestingTags, ignoredTags, tags, $;\r
-function pickedTags(){\r
-\r
- var sendAjax = function(tagname, reason, action, callback){\r
- var url = scriptUrl;\r
- if (action == 'add'){\r
- url += $.i18n._('mark-tag/');\r
- if (reason == 'good'){\r
- url += $.i18n._('interesting/');\r
- }\r
- else {\r
- url += $.i18n._('ignored/');\r
- }\r
- }\r
- else {\r
- url += $.i18n._('unmark-tag/');\r
- }\r
- url = url + tagname + '/';\r
-\r
- var call_settings = {\r
- type:'POST',\r
- url:url\r
- };\r
- if (callback !== false){\r
- call_settings.success = callback;\r
- }\r
- $.ajax(call_settings);\r
- };\r
-\r
-\r
- var unpickTag = function(from_target ,tagname, reason, send_ajax){\r
- //send ajax request to delete tag\r
- var deleteTagLocally = function(){\r
- from_target[tagname].remove();\r
- delete from_target[tagname];\r
- };\r
- if (send_ajax){\r
- sendAjax(tagname,reason,'remove',deleteTagLocally);\r
- }\r
- else {\r
- deleteTagLocally();\r
- }\r
-\r
- };\r
-\r
- var setupTagDeleteEvents = function(obj,tag_store,tagname,reason,send_ajax){\r
- obj.unbind('mouseover').bind('mouseover', function(){\r
- $(this).attr('src', mediaUrl('media/images/close-small-hover.png'));\r
- });\r
- obj.unbind('mouseout').bind('mouseout', function(){\r
- $(this).attr('src', mediaUrl('media/images/close-small-dark.png'));\r
- });\r
- obj.click( function(){\r
- unpickTag(tag_store,tagname,reason,send_ajax);\r
- });\r
- };\r
-\r
- var handlePickedTag = function(obj,reason){\r
- var tagname = $.trim($(obj).prev().attr('value'));\r
- var to_target = interestingTags;\r
- var from_target = ignoredTags;\r
- var to_tag_container;\r
- if (reason == 'bad'){\r
- to_target = ignoredTags;\r
- from_target = interestingTags;\r
- to_tag_container = $('div .tags.ignored');\r
- }\r
- else if (reason != 'good'){\r
- return;\r
- }\r
- else {\r
- to_tag_container = $('div .tags.interesting');\r
- }\r
-\r
- if (tagname in from_target){\r
- unpickTag(from_target,tagname,reason,false);\r
- }\r
-\r
- if (!(tagname in to_target)){\r
- //send ajax request to pick this tag\r
-\r
- sendAjax(tagname,reason,'add',function(){\r
- var new_tag = $('<span></span>');\r
- new_tag.addClass('deletable-tag');\r
- var tag_link = $('<a></a>');\r
- tag_link.attr('rel','tag');\r
- tag_link.attr('href', scriptUrl + $.i18n._('tags/') + tagname);\r
- tag_link.html(tagname);\r
- var del_link = $('<img></img>');\r
- del_link.addClass('delete-icon');\r
- del_link.attr('src', mediaUrl('/media/images/close-small-dark.png'));\r
-\r
- setupTagDeleteEvents(del_link, to_target, tagname, reason, true);\r
-\r
- new_tag.append(tag_link);\r
- new_tag.append(del_link);\r
- to_tag_container.append(new_tag);\r
-\r
- to_target[tagname] = new_tag;\r
- });\r
- }\r
- };\r
-\r
- var collectPickedTags = function(){\r
- var good_prefix = 'interesting-tag-';\r
- var bad_prefix = 'ignored-tag-';\r
- var good_re = RegExp('^' + good_prefix);\r
- var bad_re = RegExp('^' + bad_prefix);\r
- interestingTags = {};\r
- ignoredTags = {};\r
- $('.deletable-tag').each(\r
- function(i,item){\r
- var item_id = $(item).attr('id');\r
- var tag_name, tag_store;\r
- if (good_re.test(item_id)){\r
- tag_name = item_id.replace(good_prefix,'');\r
- tag_store = interestingTags;\r
- reason = 'good';\r
- }\r
- else if (bad_re.test(item_id)){\r
- tag_name = item_id.replace(bad_prefix,'');\r
- tag_store = ignoredTags;\r
- reason = 'bad';\r
- }\r
- else {\r
- return;\r
- }\r
- tag_store[tag_name] = $(item);\r
- setupTagDeleteEvents($(item).find('img'),tag_store,tag_name,reason,true);\r
- }\r
- );\r
- };\r
-\r
- var setupHideIgnoredQuestionsControl = function(){\r
- $('#hideIgnoredTagsCb').unbind('click').click(function(){\r
- $.ajax({\r
- type: 'POST',\r
- dataType: 'json',\r
- cache: false,\r
- url: scriptUrl + $.i18n._('command/'),\r
- data: {command:'toggle-ignored-questions'}\r
- });\r
- });\r
- };\r
- return {\r
- init: function(){\r
- collectPickedTags();\r
- setupHideIgnoredQuestionsControl();\r
- $("#interestingTagInput, #ignoredTagInput").autocomplete(tags, {\r
- minChars: 1,\r
- matchContains: true,\r
- max: 20,\r
- multiple: true,\r
- multipleSeparator: " ",\r
- formatItem: function(row, i, max) {\r
- return row.n + " ("+ row.c +")";\r
- },\r
- formatResult: function(row, i, max){\r
- return row.n;\r
- }\r
-\r
- });\r
- $("#interestingTagAdd").click(function(){handlePickedTag(this,'good');});\r
- $("#ignoredTagAdd").click(function(){handlePickedTag(this,'bad');});\r
- }\r
- };\r
-}\r
-\r
-$(document).ready( function(){\r
- if (window.tags != undefined)\r
- pickedTags().init();\r
-});\r
-\r
-Hilite={elementid:"content",exact:true,max_nodes:1000,onload:true,style_name:"hilite",style_name_suffix:true,debug_referrer:""};Hilite.search_engines=[["local","q"],["cnprog\\.","q"],["google\\.","q"],["search\\.yahoo\\.","p"],["search\\.msn\\.","q"],["search\\.live\\.","query"],["search\\.aol\\.","userQuery"],["ask\\.com","q"],["altavista\\.","q"],["feedster\\.","q"],["search\\.lycos\\.","q"],["alltheweb\\.","q"],["technorati\\.com/search/([^\\?/]+)",1],["dogpile\\.com/info\\.dogpl/search/web/([^\\?/]+)",1,true]];Hilite.decodeReferrer=function(d){var g=null;var e=new RegExp("");for(var c=0;c<Hilite.search_engines.length;c++){var f=Hilite.search_engines[c];e.compile("^http://(www\\.)?"+f[0],"i");var b=d.match(e);if(b){var a;if(isNaN(f[1])){a=Hilite.decodeReferrerQS(d,f[1])}else{a=b[f[1]+1]}if(a){a=decodeURIComponent(a);if(f.length>2&&f[2]){a=decodeURIComponent(a)}a=a.replace(/\'|"/g,"");a=a.split(/[\s,\+\.]+/);return a}break}}return null};Hilite.decodeReferrerQS=function(f,d){var b=f.indexOf("?");var c;if(b>=0){var a=new String(f.substring(b+1));b=0;c=0;while((b>=0)&&((c=a.indexOf("=",b))>=0)){var e,g;e=a.substring(b,c);b=a.indexOf("&",c)+1;if(e==d){if(b<=0){return a.substring(c+1)}else{return a.substring(c+1,b-1)}}else{if(b<=0){return null}}}}return null};Hilite.hiliteElement=function(f,e){if(!e||f.childNodes.length==0){return}var c=new Array();for(var b=0;b<e.length;b++){e[b]=e[b].toLowerCase();if(Hilite.exact){c.push("\\b"+e[b]+"\\b")}else{c.push(e[b])}}c=new RegExp(c.join("|"),"i");var a={};for(var b=0;b<e.length;b++){if(Hilite.style_name_suffix){a[e[b]]=Hilite.style_name+(b+1)}else{a[e[b]]=Hilite.style_name}}var d=function(m){var j=c.exec(m.data);if(j){var n=j[0];var i="";var h=m.splitText(j.index);var g=h.splitText(n.length);var l=m.ownerDocument.createElement("SPAN");m.parentNode.replaceChild(l,h);l.className=a[n.toLowerCase()];l.appendChild(h);return l}else{return m}};Hilite.walkElements(f.childNodes[0],1,d)};Hilite.hilite=function(){var a=Hilite.debug_referrer?Hilite.debug_referrer:document.referrer;var b=null;a=Hilite.decodeReferrer(a);if(a&&((Hilite.elementid&&(b=document.getElementById(Hilite.elementid)))||(b=document.body))){Hilite.hiliteElement(b,a)}};Hilite.walkElements=function(d,f,e){var a=/^(script|style|textarea)/i;var c=0;while(d&&f>0){c++;if(c>=Hilite.max_nodes){var b=function(){Hilite.walkElements(d,f,e)};setTimeout(b,50);return}if(d.nodeType==1){if(!a.test(d.tagName)&&d.childNodes.length>0){d=d.childNodes[0];f++;continue}}else{if(d.nodeType==3){d=e(d)}}if(d.nextSibling){d=d.nextSibling}else{while(f>0){d=d.parentNode;f--;if(d.nextSibling){d=d.nextSibling;break}}}}};if(Hilite.onload){if(window.attachEvent){window.attachEvent("onload",Hilite.hilite)}else{if(window.addEventListener){window.addEventListener("load",Hilite.hilite,false)}else{var __onload=window.onload;window.onload=function(){Hilite.hilite();__onload()}}}};\r
-\r
-var mediaUrl = function(resource){\r
- return scriptUrl + 'm/' + osqaSkin + '/' + resource;\r
-};\r
-\r
-/*\r
- * jQuery i18n plugin\r
- * @requires jQuery v1.1 or later\r
- *\r
- * Examples at: http://recurser.com/articles/2008/02/21/jquery-i18n-translation-plugin/\r
- * Dual licensed under the MIT and GPL licenses:\r
- * http://www.opensource.org/licenses/mit-license.php\r
- * http://www.gnu.org/licenses/gpl.html\r
- *\r
- * Based on 'javascript i18n that almost doesn't suck' by markos\r
- * http://markos.gaivo.net/blog/?p=100\r
- *\r
- * Revision: $Id$\r
- * Version: 1.0.0 Feb-10-2008\r
- */\r
- (function($) {\r
-/**\r
- * i18n provides a mechanism for translating strings using a jscript dictionary.\r
- *\r
- */\r
-\r
-\r
-/*\r
- * i18n property list\r
- */\r
-$.i18n = {\r
-\r
-/**\r
- * setDictionary()\r
- * Initialise the dictionary and translate nodes\r
- *\r
- * @param property_list i18n_dict : The dictionary to use for translation\r
- */\r
- setDictionary: function(i18n_dict) {\r
- i18n_dict = i18n_dict;\r
- },\r
-\r
-/**\r
- * _()\r
- * The actual translation function. Looks the given string up in the\r
- * dictionary and returns the translation if one exists. If a translation\r
- * is not found, returns the original word\r
- *\r
- * @param string str : The string to translate\r
- * @param property_list params : params for using printf() on the string\r
- * @return string : Translated word\r
- *\r
- */\r
- _: function (str, params) {\r
- var transl = str;\r
- if (i18n_dict&& i18n_dict[str]) {\r
- transl = i18n_dict[str];\r
- }\r
- return this.printf(transl, params);\r
- },\r
-\r
-/**\r
- * toEntity()\r
- * Change non-ASCII characters to entity representation\r
- *\r
- * @param string str : The string to transform\r
- * @return string result : Original string with non-ASCII content converted to entities\r
- *\r
- */\r
- toEntity: function (str) {\r
- var result = '';\r
- for (var i=0;i<str.length; i++) {\r
- if (str.charCodeAt(i) > 128)\r
- result += "&#"+str.charCodeAt(i)+";";\r
- else\r
- result += str.charAt(i);\r
- }\r
- return result;\r
- },\r
-\r
-/**\r
- * stripStr()\r
- *\r
- * @param string str : The string to strip\r
- * @return string result : Stripped string\r
- *\r
- */\r
- stripStr: function(str) {\r
- return str.replace(/^\s*/, "").replace(/\s*$/, "");\r
- },\r
-\r
-/**\r
- * stripStrML()\r
- *\r
- * @param string str : The multi-line string to strip\r
- * @return string result : Stripped string\r
- *\r
- */\r
- stripStrML: function(str) {\r
- // Split because m flag doesn't exist before JS1.5 and we need to\r
- // strip newlines anyway\r
- var parts = str.split('\n');\r
- for (var i=0; i<parts.length; i++)\r
- parts[i] = stripStr(parts[i]);\r
-\r
- // Don't join with empty strings, because it "concats" words\r
- // And strip again\r
- return stripStr(parts.join(" "));\r
- },\r
-\r
-/*\r
- * printf()\r
- * C-printf like function, which substitutes %s with parameters\r
- * given in list. %%s is used to escape %s.\r
- *\r
- * Doesn't work in IE5.0 (splice)\r
- *\r
- * @param string S : string to perform printf on.\r
- * @param string L : Array of arguments for printf()\r
- */\r
- printf: function(S, L) {\r
- if (!L) return S;\r
-\r
- var nS = "";\r
- var tS = S.split("%s");\r
-\r
- for(var i=0; i<L.length; i++) {\r
- if (tS[i].lastIndexOf('%') == tS[i].length-1 && i != L.length-1)\r
- tS[i] += "s"+tS.splice(i+1,1)[0];\r
- nS += tS[i] + L[i];\r
- }\r
- return nS + tS[tS.length-1];\r
- }\r
-\r
-};\r
-\r
-\r
-})(jQuery);\r
-\r
-\r
-//var i18nLang;\r
-var i18nZh = {\r
- 'insufficient privilege':'??????????',\r
- 'cannot pick own answer as best':'??????????????',\r
- 'anonymous users cannot select favorite questions':'?????????????',\r
- 'please login':'??????',\r
- 'anonymous users cannot vote':'????????',\r
- '>15 points requried to upvote':'??+15?????????',\r
- '>100 points required to downvote':'??+100?????????',\r
- 'please see': '??',\r
- 'cannot vote for own posts':'??????????',\r
- 'daily vote cap exhausted':'????????????????',\r
- 'cannot revoke old vote':'??????????????',\r
- 'please confirm offensive':"??????????????????????",\r
- 'anonymous users cannot flag offensive posts':'???????????',\r
- 'cannot flag message as offensive twice':'???????',\r
- 'flag offensive cap exhausted':'?????????????5?\91??\92???',\r
- 'need >15 points to report spam':"??+15??????\91???\92?",\r
- 'confirm delete':"?????/????????",\r
- 'anonymous users cannot delete/undelete':"???????????????",\r
- 'post recovered':"?????????????",\r
- 'post deleted':"????????????",\r
- 'add comment':'????',\r
- 'community karma points':'????',\r
- 'to comment, need':'????',\r
- 'delete this comment':'?????',\r
- 'hide comments':"????",\r
- 'add a comment':"????",\r
- 'comments':"??",\r
- 'confirm delete comment':"?????????",\r
- 'characters':'??',\r
- 'can write':'???',\r
- 'click to close':'???????',\r
- 'loading...':'???...',\r
- 'tags cannot be empty':'???????',\r
- 'tablimits info':"??5????????????20????",\r
- 'content cannot be empty':'???????',\r
- 'content minchars': '????? {0} ???',\r
- 'please enter title':'??????',\r
- 'title minchars':"????? {0} ???",\r
- 'delete':'??',\r
- 'undelete': '??',\r
- 'bold':'??',\r
- 'italic':'??',\r
- 'link':'???',\r
- 'quote':'??',\r
- 'preformatted text':'??',\r
- 'image':'??',\r
- 'numbered list':'??????',\r
- 'bulleted list':'??????',\r
- 'heading':'??',\r
- 'horizontal bar':'???',\r
- 'undo':'??',\r
- 'redo':'??',\r
- 'enter image url':'<b>??????</b></p><p>???<br />http://www.example.com/image.jpg \"????\"',\r
- 'enter url':'<b>??Web??</b></p><p>???<br />http://www.cnprog.com/ \"????\"</p>"',\r
- 'upload image':'?????????'\r
-};\r
-\r
-var i18nEn = {\r
- 'need >15 points to report spam':'need >15 points to report spam ',\r
- '>15 points requried to upvote':'>15 points required to upvote ',\r
- 'tags cannot be empty':'please enter at least one tag',\r
- 'anonymous users cannot vote':'sorry, anonymous users cannot vote ',\r
- 'anonymous users cannot select favorite questions':'sorry, anonymous users cannot select favorite questions ',\r
- 'to comment, need': '(to comment other people\'s posts, karma ',\r
- 'please see':'please see ',\r
- 'community karma points':' or more is necessary) - ',\r
- 'upload image':'Upload image:',\r
- 'enter image url':'enter URL of the image, e.g. http://www.example.com/image.jpg \"image title\"',\r
- 'enter url':'enter Web address, e.g. http://www.example.com \"page title\"',\r
- 'daily vote cap exhausted':'sorry, you\'ve used up todays vote cap',\r
- 'cannot pick own answer as best':'sorry, you cannot accept your own answer',\r
- 'cannot revoke old vote':'sorry, older votes cannot be revoked',\r
- 'please confirm offensive':'are you sure this post is offensive, contains spam, advertising, malicious remarks, etc.?',\r
- 'flag offensive cap exhausted':'sorry, you\'ve used up todays cap of flagging offensive messages ',\r
- 'confirm delete':'are you sure you want to delete this?',\r
- 'anonymous users cannot delete/undelete':'sorry, anonymous users cannot delete or undelete posts',\r
- 'post recovered':'your post is now restored!',\r
- 'post deleted':'your post has been deleted',\r
- 'confirm delete comment':'do you really want to delete this comment?',\r
- 'can write':'have ',\r
- 'tablimits info':'up to 5 tags, no more than 20 characters each',\r
- 'content minchars': 'please enter more than {0} characters',\r
- 'title minchars':"please enter at least {0} characters",\r
- 'characters':'characters left',\r
- 'cannot vote for own posts':'sorry, you cannot vote for your own posts',\r
- 'cannot flag message as offensive twice':'cannot flag message as offensive twice ',\r
- '>100 points required to downvote':'>100 points required to downvote '\r
-};\r
-\r
-var i18nEs = {\r
- 'insufficient privilege':'privilegio insuficiente',\r
- 'cannot pick own answer as best':'no puede escoger su propia respuesta como la mejor',\r
- 'anonymous users cannot select favorite questions':'usuarios anonimos no pueden seleccionar',\r
- 'please login':'por favor inicie sesión',\r
- 'anonymous users cannot vote':'usuarios anónimos no pueden votar',\r
- '>15 points requried to upvote': '>15 puntos requeridos para votar positivamente',\r
- '>100 points required to downvote':'>100 puntos requeridos para votar negativamente',\r
- 'please see': 'por favor vea',\r
- 'cannot vote for own posts':'no se puede votar por sus propias publicaciones',\r
- 'daily vote cap exhausted':'cuota de votos diarios excedida',\r
- 'cannot revoke old vote':'no puede revocar un voto viejo',\r
- 'please confirm offensive':"por favor confirme ofensiva",\r
- 'anonymous users cannot flag offensive posts':'usuarios anónimos no pueden marcar publicaciones como ofensivas',\r
- 'cannot flag message as offensive twice':'no puede marcar mensaje como ofensivo dos veces',\r
- 'flag offensive cap exhausted':'cuota para marcar ofensivas ha sido excedida',\r
- 'need >15 points to report spam':"necesita >15 puntos para reportar spam",\r
- 'confirm delete':"¿Está seguro que desea borrar esto?",\r
- 'anonymous users cannot delete/undelete':"usuarios anónimos no pueden borrar o recuperar publicaciones",\r
- 'post recovered':"publicación recuperada",\r
- 'post deleted':"publicación borrada?",\r
- 'add comment':'agregar comentario',\r
- 'community karma points':'reputación comunitaria',\r
- 'to comment, need':'para comentar, necesita reputación',\r
- 'delete this comment':'borrar este comentario',\r
- 'hide comments':"ocultar comentarios",\r
- 'add a comment':"agregar comentarios",\r
- 'comments':"comentarios",\r
- 'confirm delete comment':"¿Realmente desea borrar este comentario?",\r
- 'characters':'caracteres faltantes',\r
- 'can write':'tiene ',\r
- 'click to close':'haga click para cerrar',\r
- 'loading...':'cargando...',\r
- 'tags cannot be empty':'las etiquetas no pueden estar vacías',\r
- 'tablimits info':"hasta 5 etiquetas de no mas de 20 caracteres cada una",\r
- 'content cannot be empty':'el contenido no puede estar vacío',\r
- 'content minchars': 'por favor introduzca mas de {0} caracteres',\r
- 'please enter title':'por favor ingrese un título',\r
- 'title minchars':"por favor introduzca al menos {0} caracteres",\r
- 'delete':'borrar',\r
- 'undelete': 'recuperar',\r
- 'bold': 'negrita',\r
- 'italic':'cursiva',\r
- 'link':'enlace',\r
- 'quote':'citar',\r
- 'preformatted text':'texto preformateado',\r
- 'image':'imagen',\r
- 'numbered list':'lista numerada',\r
- 'bulleted list':'lista no numerada',\r
- 'heading':'??',\r
- 'horizontal bar':'barra horizontal',\r
- 'undo':'deshacer',\r
- 'redo':'rehacer',\r
- 'enter image url':'introduzca la URL de la imagen, por ejemplo?<br />http://www.example.com/image.jpg \"titulo de imagen\"',\r
- 'enter url':'introduzca direcciones web, ejemplo?<br />http://www.cnprog.com/ \"titulo del enlace\"</p>"',\r
- 'upload image':'cargar imagen?',\r
- 'questions/' : 'preguntas/',\r
- 'vote/' : 'votar/'\r
-};\r
-\r
-var i18n = {\r
- 'en':i18nEn,\r
- 'zh_CN':i18nZh,\r
- 'es':i18nEs\r
-};\r
-\r
-var i18n_dict = i18n[i18nLang];\r
-\r
-/*\r
- jQuery TextAreaResizer plugin\r
- Created on 17th January 2008 by Ryan O'Dell\r
- Version 1.0.4\r
-*/(function($){var textarea,staticOffset;var iLastMousePos=0;var iMin=32;var grip;$.fn.TextAreaResizer=function(){return this.each(function(){textarea=$(this).addClass('processed'),staticOffset=null;$(this).wrap('<div class="resizable-textarea"><span></span></div>').parent().append($('<div class="grippie"></div>').bind("mousedown",{el:this},startDrag));var grippie=$('div.grippie',$(this).parent())[0];grippie.style.marginRight=(grippie.offsetWidth-$(this)[0].offsetWidth)+'px'})};function startDrag(e){textarea=$(e.data.el);textarea.blur();iLastMousePos=mousePosition(e).y;staticOffset=textarea.height()-iLastMousePos;textarea.css('opacity',0.25);$(document).mousemove(performDrag).mouseup(endDrag);return false}function performDrag(e){var iThisMousePos=mousePosition(e).y;var iMousePos=staticOffset+iThisMousePos;if(iLastMousePos>=(iThisMousePos)){iMousePos-=5}iLastMousePos=iThisMousePos;iMousePos=Math.max(iMin,iMousePos);textarea.height(iMousePos+'px');if(iMousePos<iMin){endDrag(e)}return false}function endDrag(e){$(document).unbind('mousemove',performDrag).unbind('mouseup',endDrag);textarea.css('opacity',1);textarea.focus();textarea=null;staticOffset=null;iLastMousePos=0}function mousePosition(e){return{x:e.clientX+document.documentElement.scrollLeft,y:e.clientY+document.documentElement.scrollTop}}})(jQuery);\r
-/*\r
- * Autocomplete - jQuery plugin 1.0.2\r
- * Copyright (c) 2007 Dylan Verheul, Dan G. Switzer, Anjesh Tuladhar, Jörn Zaefferer\r
- * Dual licensed under the MIT and GPL licenses:\r
- * http://www.opensource.org/licenses/mit-license.php\r
- * http://www.gnu.org/licenses/gpl.html\r
- */;(function($){$.fn.extend({autocomplete:function(urlOrData,options){var isUrl=typeof urlOrData=="string";options=$.extend({},$.Autocompleter.defaults,{url:isUrl?urlOrData:null,data:isUrl?null:urlOrData,delay:isUrl?$.Autocompleter.defaults.delay:10,max:options&&!options.scroll?10:150},options);options.highlight=options.highlight||function(value){return value;};options.formatMatch=options.formatMatch||options.formatItem;return this.each(function(){new $.Autocompleter(this,options);});},result:function(handler){return this.bind("result",handler);},search:function(handler){return this.trigger("search",[handler]);},flushCache:function(){return this.trigger("flushCache");},setOptions:function(options){return this.trigger("setOptions",[options]);},unautocomplete:function(){return this.trigger("unautocomplete");}});$.Autocompleter=function(input,options){var KEY={UP:38,DOWN:40,DEL:46,TAB:9,RETURN:13,ESC:27,COMMA:188,PAGEUP:33,PAGEDOWN:34,BACKSPACE:8};var $input=$(input).attr("autocomplete","off").addClass(options.inputClass);var timeout;var previousValue="";var cache=$.Autocompleter.Cache(options);var hasFocus=0;var lastKeyPressCode;var config={mouseDownOnSelect:false};var select=$.Autocompleter.Select(options,input,selectCurrent,config);var blockSubmit;$.browser.opera&&$(input.form).bind("submit.autocomplete",function(){if(blockSubmit){blockSubmit=false;return false;}});$input.bind(($.browser.opera?"keypress":"keydown")+".autocomplete",function(event){lastKeyPressCode=event.keyCode;switch(event.keyCode){case KEY.UP:event.preventDefault();if(select.visible()){select.prev();}else{onChange(0,true);}break;case KEY.DOWN:event.preventDefault();if(select.visible()){select.next();}else{onChange(0,true);}break;case KEY.PAGEUP:event.preventDefault();if(select.visible()){select.pageUp();}else{onChange(0,true);}break;case KEY.PAGEDOWN:event.preventDefault();if(select.visible()){select.pageDown();}else{onChange(0,true);}break;case options.multiple&&$.trim(options.multipleSeparator)==","&&KEY.COMMA:case KEY.TAB:case KEY.RETURN:if(selectCurrent()){event.preventDefault();blockSubmit=true;return false;}break;case KEY.ESC:select.hide();break;default:clearTimeout(timeout);timeout=setTimeout(onChange,options.delay);break;}}).focus(function(){hasFocus++;}).blur(function(){hasFocus=0;if(!config.mouseDownOnSelect){hideResults();}}).click(function(){if(hasFocus++>1&&!select.visible()){onChange(0,true);}}).bind("search",function(){var fn=(arguments.length>1)?arguments[1]:null;function findValueCallback(q,data){var result;if(data&&data.length){for(var i=0;i<data.length;i++){if(data[i].result.toLowerCase()==q.toLowerCase()){result=data[i];break;}}}if(typeof fn=="function")fn(result);else $input.trigger("result",result&&[result.data,result.value]);}$.each(trimWords($input.val()),function(i,value){request(value,findValueCallback,findValueCallback);});}).bind("flushCache",function(){cache.flush();}).bind("setOptions",function(){$.extend(options,arguments[1]);if("data"in arguments[1])cache.populate();}).bind("unautocomplete",function(){select.unbind();$input.unbind();$(input.form).unbind(".autocomplete");});function selectCurrent(){var selected=select.selected();if(!selected)return false;var v=selected.result;previousValue=v;if(options.multiple){var words=trimWords($input.val());if(words.length>1){v=words.slice(0,words.length-1).join(options.multipleSeparator)+options.multipleSeparator+v;}v+=options.multipleSeparator;}$input.val(v);hideResultsNow();$input.trigger("result",[selected.data,selected.value]);return true;}function onChange(crap,skipPrevCheck){if(lastKeyPressCode==KEY.DEL){select.hide();return;}var currentValue=$input.val();if(!skipPrevCheck&¤tValue==previousValue)return;previousValue=currentValue;currentValue=lastWord(currentValue);if(currentValue.length>=options.minChars){$input.addClass(options.loadingClass);if(!options.matchCase)currentValue=currentValue.toLowerCase();request(currentValue,receiveData,hideResultsNow);}else{stopLoading();select.hide();}};function trimWords(value){if(!value){return[""];}var words=value.split(options.multipleSeparator);var result=[];$.each(words,function(i,value){if($.trim(value))result[i]=$.trim(value);});return result;}function lastWord(value){if(!options.multiple)return value;var words=trimWords(value);return words[words.length-1];}function autoFill(q,sValue){if(options.autoFill&&(lastWord($input.val()).toLowerCase()==q.toLowerCase())&&lastKeyPressCode!=KEY.BACKSPACE){$input.val($input.val()+sValue.substring(lastWord(previousValue).length));$.Autocompleter.Selection(input,previousValue.length,previousValue.length+sValue.length);}};function hideResults(){clearTimeout(timeout);timeout=setTimeout(hideResultsNow,200);};function hideResultsNow(){var wasVisible=select.visible();select.hide();clearTimeout(timeout);stopLoading();if(options.mustMatch){$input.search(function(result){if(!result){if(options.multiple){var words=trimWords($input.val()).slice(0,-1);$input.val(words.join(options.multipleSeparator)+(words.length?options.multipleSeparator:""));}else\r
- $input.val("");}});}if(wasVisible)$.Autocompleter.Selection(input,input.value.length,input.value.length);};function receiveData(q,data){if(data&&data.length&&hasFocus){stopLoading();select.display(data,q);autoFill(q,data[0].value);select.show();}else{hideResultsNow();}};function request(term,success,failure){if(!options.matchCase)term=term.toLowerCase();var data=cache.load(term);if(data&&data.length){success(term,data);}else if((typeof options.url=="string")&&(options.url.length>0)){var extraParams={timestamp:+new Date()};$.each(options.extraParams,function(key,param){extraParams[key]=typeof param=="function"?param():param;});$.ajax({mode:"abort",port:"autocomplete"+input.name,dataType:options.dataType,url:options.url,data:$.extend({q:lastWord(term),limit:options.max},extraParams),success:function(data){var parsed=options.parse&&options.parse(data)||parse(data);cache.add(term,parsed);success(term,parsed);}});}else{select.emptyList();failure(term);}};function parse(data){var parsed=[];var rows=data.split("\n");for(var i=0;i<rows.length;i++){var row=$.trim(rows[i]);if(row){row=row.split("|");parsed[parsed.length]={data:row,value:row[0],result:options.formatResult&&options.formatResult(row,row[0])||row[0]};}}return parsed;};function stopLoading(){$input.removeClass(options.loadingClass);};};$.Autocompleter.defaults={inputClass:"ac_input",resultsClass:"ac_results",loadingClass:"ac_loading",minChars:1,delay:400,matchCase:false,matchSubset:true,matchContains:false,cacheLength:10,max:100,mustMatch:false,extraParams:{},selectFirst:true,formatItem:function(row){return row[0];},formatMatch:null,autoFill:false,width:0,multiple:false,multipleSeparator:", ",highlight:function(value,term){return value.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+term.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),"<strong>$1</strong>");},scroll:true,scrollHeight:180};$.Autocompleter.Cache=function(options){var data={};var length=0;function matchSubset(s,sub){if(!options.matchCase)s=s.toLowerCase();var i=s.indexOf(sub);if(i==-1)return false;return i==0||options.matchContains;};function add(q,value){if(length>options.cacheLength){flush();}if(!data[q]){length++;}data[q]=value;}function populate(){if(!options.data)return false;var stMatchSets={},nullData=0;if(!options.url)options.cacheLength=1;stMatchSets[""]=[];for(var i=0,ol=options.data.length;i<ol;i++){var rawValue=options.data[i];rawValue=(typeof rawValue=="string")?[rawValue]:rawValue;var value=options.formatMatch(rawValue,i+1,options.data.length);if(value===false)continue;var firstChar=value.charAt(0).toLowerCase();if(!stMatchSets[firstChar])stMatchSets[firstChar]=[];var row={value:value,data:rawValue,result:options.formatResult&&options.formatResult(rawValue)||value};stMatchSets[firstChar].push(row);if(nullData++<options.max){stMatchSets[""].push(row);}};$.each(stMatchSets,function(i,value){options.cacheLength++;add(i,value);});}setTimeout(populate,25);function flush(){data={};length=0;}return{flush:flush,add:add,populate:populate,load:function(q){if(!options.cacheLength||!length)return null;if(!options.url&&options.matchContains){var csub=[];for(var k in data){if(k.length>0){var c=data[k];$.each(c,function(i,x){if(matchSubset(x.value,q)){csub.push(x);}});}}return csub;}else\r
- if(data[q]){return data[q];}else\r
- if(options.matchSubset){for(var i=q.length-1;i>=options.minChars;i--){var c=data[q.substr(0,i)];if(c){var csub=[];$.each(c,function(i,x){if(matchSubset(x.value,q)){csub[csub.length]=x;}});return csub;}}}return null;}};};$.Autocompleter.Select=function(options,input,select,config){var CLASSES={ACTIVE:"ac_over"};var listItems,active=-1,data,term="",needsInit=true,element,list;function init(){if(!needsInit)return;element=$("<div/>").hide().addClass(options.resultsClass).css("position","absolute").appendTo(document.body);list=$("<ul/>").appendTo(element).mouseover(function(event){if(target(event).nodeName&&target(event).nodeName.toUpperCase()=='LI'){active=$("li",list).removeClass(CLASSES.ACTIVE).index(target(event));$(target(event)).addClass(CLASSES.ACTIVE);}}).click(function(event){$(target(event)).addClass(CLASSES.ACTIVE);select();input.focus();return false;}).mousedown(function(){config.mouseDownOnSelect=true;}).mouseup(function(){config.mouseDownOnSelect=false;});if(options.width>0)element.css("width",options.width);needsInit=false;}function target(event){var element=event.target;while(element&&element.tagName!="LI")element=element.parentNode;if(!element)return[];return element;}function moveSelect(step){listItems.slice(active,active+1).removeClass(CLASSES.ACTIVE);movePosition(step);var activeItem=listItems.slice(active,active+1).addClass(CLASSES.ACTIVE);if(options.scroll){var offset=0;listItems.slice(0,active).each(function(){offset+=this.offsetHeight;});if((offset+activeItem[0].offsetHeight-list.scrollTop())>list[0].clientHeight){list.scrollTop(offset+activeItem[0].offsetHeight-list.innerHeight());}else if(offset<list.scrollTop()){list.scrollTop(offset);}}};function movePosition(step){active+=step;if(active<0){active=listItems.size()-1;}else if(active>=listItems.size()){active=0;}}function limitNumberOfItems(available){return options.max&&options.max<available?options.max:available;}function fillList(){list.empty();var max=limitNumberOfItems(data.length);for(var i=0;i<max;i++){if(!data[i])continue;var formatted=options.formatItem(data[i].data,i+1,max,data[i].value,term);if(formatted===false)continue;var li=$("<li/>").html(options.highlight(formatted,term)).addClass(i%2==0?"ac_even":"ac_odd").appendTo(list)[0];$.data(li,"ac_data",data[i]);}listItems=list.find("li");if(options.selectFirst){listItems.slice(0,1).addClass(CLASSES.ACTIVE);active=0;}if($.fn.bgiframe)list.bgiframe();}return{display:function(d,q){init();data=d;term=q;fillList();},next:function(){moveSelect(1);},prev:function(){moveSelect(-1);},pageUp:function(){if(active!=0&&active-8<0){moveSelect(-active);}else{moveSelect(-8);}},pageDown:function(){if(active!=listItems.size()-1&&active+8>listItems.size()){moveSelect(listItems.size()-1-active);}else{moveSelect(8);}},hide:function(){element&&element.hide();listItems&&listItems.removeClass(CLASSES.ACTIVE);active=-1;},visible:function(){return element&&element.is(":visible");},current:function(){return this.visible()&&(listItems.filter("."+CLASSES.ACTIVE)[0]||options.selectFirst&&listItems[0]);},show:function(){var offset=$(input).offset();element.css({width:typeof options.width=="string"||options.width>0?options.width:$(input).width(),top:offset.top+input.offsetHeight,left:offset.left}).show();if(options.scroll){list.scrollTop(0);list.css({maxHeight:options.scrollHeight,overflow:'auto'});if($.browser.msie&&typeof document.body.style.maxHeight==="undefined"){var listHeight=0;listItems.each(function(){listHeight+=this.offsetHeight;});var scrollbarsVisible=listHeight>options.scrollHeight;list.css('height',scrollbarsVisible?options.scrollHeight:listHeight);if(!scrollbarsVisible){listItems.width(list.width()-parseInt(listItems.css("padding-left"))-parseInt(listItems.css("padding-right")));}}}},selected:function(){var selected=listItems&&listItems.filter("."+CLASSES.ACTIVE).removeClass(CLASSES.ACTIVE);return selected&&selected.length&&$.data(selected[0],"ac_data");},emptyList:function(){list&&list.empty();},unbind:function(){element&&element.remove();}};};$.Autocompleter.Selection=function(field,start,end){if(field.createTextRange){var selRange=field.createTextRange();selRange.collapse(true);selRange.moveStart("character",start);selRange.moveEnd("character",end);selRange.select();}else if(field.setSelectionRange){field.setSelectionRange(start,end);}else{if(field.selectionStart){field.selectionStart=start;field.selectionEnd=end;}}field.focus();};})(jQuery);\r
-\r
-var notify = function() {\r
- var visible = false;\r
- return {\r
- show: function(html) {\r
- if (html) {\r
- $("body").css("margin-top", "2.2em");\r
- $(".notify span").html(html);\r
- }\r
- $(".notify").fadeIn("slow");\r
- visible = true;\r
- },\r
- close: function(doPostback) {\r
- if (doPostback) {\r
- $.post(scriptUrl + $.i18n._("messages/") +\r
- $.i18n._("markread/"), { formdata: "required" });\r
- }\r
- $(".notify").fadeOut("fast");\r
- $("body").css("margin-top", "0");\r
- visible = false;\r
- },\r
- isVisible: function() { return visible; }\r
- };\r
-} ();
\ No newline at end of file
+++ /dev/null
-var response_commands={update_post_score:function(a,d,b){var c=$("#"+a+"-"+d+"-score");c.html(parseInt(c.html())+b)},update_user_post_vote:function(c,e,b){var a=$("#"+c+"-"+e+"-upvote");var d=$("#"+c+"-"+e+"-downvote");a.removeClass("on");d.removeClass("on");if(b=="up"){a.addClass("on")}else{if(b=="down"){d.addClass("on")}}},update_favorite_count:function(b){var c=$("#favorite-count");var a=parseInt(c.html());if(isNaN(a)){a=0}a+=b;if(a==0){a=""}c.html(a)},update_favorite_mark:function(a){if(a=="on"){$("#favorite-mark").addClass("on")}else{$("#favorite-mark").removeClass("on")}},mark_accepted:function(b){$(".accepted-answer").removeClass("accepted-answer");$(".accept-answer.on").removeClass("on");var a=$("#answer-container-"+b);a.addClass("accepted-answer");a.find(".accept-answer").addClass("on")},unmark_accepted:function(b){var a=$("#answer-container-"+b);a.removeClass("accepted-answer");a.find(".accept-answer").removeClass("on")},update_comment_score:function(d,b){var c=$("#comment-"+d+"-score");var a=parseInt(c.html());if(isNaN(a)){a=0}a+=b;if(a==0){a=""}c.html(a)},update_likes_comment_mark:function(c,a){var b=$("#comment-"+c+"-like");if(a=="on"){b.addClass("on")}else{b.removeClass("on")}},remove_comment:function(b){var a=$("#comment-"+b);a.css("background","red");a.fadeOut("slow",function(){a.remove()})},insert_comment:function(g,c,a,f,e,h,b){var i=$("#comments-container-"+g+"-"+c);var d=$("#new-comment-skeleton-"+g+"-"+c).html().toString();d=d.replace(new RegExp("%ID%","g"),a).replace(new RegExp("%COMMENT%","g"),f).replace(new RegExp("%USERNAME%","g"),e).replace(new RegExp("%PROFILE_URL%","g"),h).replace(new RegExp("%DELETE_URL%","g"),b);i.append(d);$("#comment-"+a).slideDown("slow")},update_comment:function(b,a){var c=$("#comment-"+b);c.find(".comment-text").html(a);c.slideDown("slow")},mark_deleted:function(b,a){if(b=="answer"){var d=$("#answer-container-"+a);d.addClass("deleted")}else{var c=$("#question-table");c.addClass("deleted")}},set_subscription_button:function(a){$(".subscription_switch").html(a)},set_subscription_status:function(a){$(".subscription-status").html(a)}};function show_message(a,b){var c=$('<div class="vote-notification"><h3>'+b+"</h3>(click to close)</div>");c.click(function(d){$(".vote-notification").fadeOut("fast",function(){$(this).remove()})});a.parent().append(c);c.fadeIn("fast")}function process_ajax_response(b,a){if(!b.success&&b.error_message!=undefined){show_message(a,b.error_message)}else{if(typeof b.commands!=undefined){for(var c in b.commands){response_commands[c].apply(null,b.commands[c])}if(b.message!=undefined){show_message(a,b.message)}}}}$(function(){$("a.ajax-command").live("click",function(){var a=$(this);$.getJSON(a.attr("href"),function(b){process_ajax_response(b,a)});return false});$("div.comment-form-container").each(function(){var l=$(this);var o=l.find("form");var g=l.find("textarea");var a=l.find('input[type="submit"]');var e=$(".comment-chars-left");var b=l.find(".comments-char-left-count");var m=l.parent().find(".comment-tools");var n=m.find(".add-comment-link");var f=l.parent().find(".comments-container");var k=parseInt(b.html());var h=false;function i(){g.val("");b.html(k);e.removeClass("warn");h=false}i();function d(){var q=g.val().length;var p=true;if(q<k){if(q<k*0.75){e.removeClass("warn")}else{e.addClass("warn")}}else{p=false}b.html(k-q);return p}function c(){l.slideDown("slow");n.fadeOut("slow")}function j(){l.slideUp("slow");n.fadeIn("slow")}n.click(function(){i();c();return false});m.find(".show-all-comments-link").click(function(){f.find(".not_top_scorer").slideDown("slow");$(this).fadeOut("slow");m.find(".comments-showing").fadeOut("slow");return false});$("#"+f.attr("id")+" .comment-edit").live("click",function(){var q=$(this);var r=/comment-(\d+)-edit/.exec(q.attr("id"))[1];var s=q.parents(".comment");var p=s.find(".comment-text").text().trim();h=r;g.val(p);d();s.slideUp("slow");c();return false});g.keyup(d);a.click(function(){if(g.val().length>k){show_message(a,"Your comment exceeds the max number of characters allowed.")}else{var p={comment:g.val()};if(h){p.id=h}$.post(o.attr("action"),p,function(q){process_ajax_response(q,a);i()},"json")}j();return false})})});function pickedTags(){var a=function(j,k,i,l){var h=scriptUrl;if(i=="add"){h+=$.i18n._("mark-tag/");if(k=="good"){h+=$.i18n._("interesting/")}else{h+=$.i18n._("ignored/")}}else{h+=$.i18n._("unmark-tag/")}h=h+j+"/";var g={type:"POST",url:h};if(l!==false){g.success=l}$.ajax(g)};var f=function(k,h,i,g){var j=function(){k[h].remove();delete k[h]};if(g){a(h,i,"remove",j)}else{j()}};var b=function(k,h,i,j,g){k.unbind("mouseover").bind("mouseover",function(){$(this).attr("src",mediaUrl("media/images/close-small-hover.png"))});k.unbind("mouseout").bind("mouseout",function(){$(this).attr("src",mediaUrl("media/images/close-small-dark.png"))});k.click(function(){f(h,i,j,g)})};var d=function(k,j){var i=$.trim($(k).prev().attr("value"));var g=interestingTags;var l=ignoredTags;var h;if(j=="bad"){g=ignoredTags;l=interestingTags;h=$("div .tags.ignored")}else{if(j!="good"){return}else{h=$("div .tags.interesting")}}if(i in l){f(l,i,j,false)}if(!(i in g)){a(i,j,"add",function(){var n=$("<span></span>");n.addClass("deletable-tag");var m=$("<a></a>");m.attr("rel","tag");m.attr("href",scriptUrl+$.i18n._("tags/")+i);m.html(i);var o=$("<img></img>");o.addClass("delete-icon");o.attr("src",mediaUrl("/media/images/close-small-dark.png"));b(o,g,i,j,true);n.append(m);n.append(o);h.append(n);g[i]=n})}};var c=function(){var g="interesting-tag-";var j="ignored-tag-";var i=RegExp("^"+g);var h=RegExp("^"+j);interestingTags={};ignoredTags={};$(".deletable-tag").each(function(l,n){var k=$(n).attr("id");var o,m;if(i.test(k)){o=k.replace(g,"");m=interestingTags;reason="good"}else{if(h.test(k)){o=k.replace(j,"");m=ignoredTags;reason="bad"}else{return}}m[o]=$(n);b($(n).find("img"),m,o,reason,true)})};var e=function(){$("#hideIgnoredTagsCb").unbind("click").click(function(){$.ajax({type:"POST",dataType:"json",cache:false,url:scriptUrl+$.i18n._("command/"),data:{command:"toggle-ignored-questions"}})})};return{init:function(){c();e();$("#interestingTagInput, #ignoredTagInput").autocomplete(tags,{minChars:1,matchContains:true,max:20,multiple:true,multipleSeparator:" ",formatItem:function(j,h,g){return j.n+" ("+j.c+")"},formatResult:function(j,h,g){return j.n}});$("#interestingTagAdd").click(function(){d(this,"good")});$("#ignoredTagAdd").click(function(){d(this,"bad")})}}}$(document).ready(function(){if(window.tags!=undefined){pickedTags().init()}});Hilite={elementid:"content",exact:true,max_nodes:1000,onload:true,style_name:"hilite",style_name_suffix:true,debug_referrer:""};Hilite.search_engines=[["local","q"],["cnprog\\.","q"],["google\\.","q"],["search\\.yahoo\\.","p"],["search\\.msn\\.","q"],["search\\.live\\.","query"],["search\\.aol\\.","userQuery"],["ask\\.com","q"],["altavista\\.","q"],["feedster\\.","q"],["search\\.lycos\\.","q"],["alltheweb\\.","q"],["technorati\\.com/search/([^\\?/]+)",1],["dogpile\\.com/info\\.dogpl/search/web/([^\\?/]+)",1,true]];Hilite.decodeReferrer=function(m){var j=null;var l=new RegExp("");for(var n=0;n<Hilite.search_engines.length;n++){var k=Hilite.search_engines[n];l.compile("^http://(www\\.)?"+k[0],"i");var h=m.match(l);if(h){var i;if(isNaN(k[1])){i=Hilite.decodeReferrerQS(m,k[1])}else{i=h[k[1]+1]}if(i){i=decodeURIComponent(i);if(k.length>2&&k[2]){i=decodeURIComponent(i)}i=i.replace(/\'|"/g,"");i=i.split(/[\s,\+\.]+/);return i}break}}return null};Hilite.decodeReferrerQS=function(k,m){var h=k.indexOf("?");var n;if(h>=0){var i=new String(k.substring(h+1));h=0;n=0;while((h>=0)&&((n=i.indexOf("=",h))>=0)){var l,j;l=i.substring(h,n);h=i.indexOf("&",n)+1;if(l==m){if(h<=0){return i.substring(n+1)}else{return i.substring(n+1,h-1)}}else{if(h<=0){return null}}}}return null};Hilite.hiliteElement=function(i,j){if(!j||i.childNodes.length==0){return}var l=new Array();for(var g=0;g<j.length;g++){j[g]=j[g].toLowerCase();if(Hilite.exact){l.push("\\b"+j[g]+"\\b")}else{l.push(j[g])}}l=new RegExp(l.join("|"),"i");var h={};for(var g=0;g<j.length;g++){if(Hilite.style_name_suffix){h[j[g]]=Hilite.style_name+(g+1)}else{h[j[g]]=Hilite.style_name}}var k=function(a){var c=l.exec(a.data);if(c){var o=c[0];var d="";var e=a.splitText(c.index);var f=e.splitText(o.length);var b=a.ownerDocument.createElement("SPAN");a.parentNode.replaceChild(b,e);b.className=h[o.toLowerCase()];b.appendChild(e);return b}else{return a}};Hilite.walkElements(i.childNodes[0],1,k)};Hilite.hilite=function(){var d=Hilite.debug_referrer?Hilite.debug_referrer:document.referrer;var c=null;d=Hilite.decodeReferrer(d);if(d&&((Hilite.elementid&&(c=document.getElementById(Hilite.elementid)))||(c=document.body))){Hilite.hiliteElement(c,d)}};Hilite.walkElements=function(k,i,j){var h=/^(script|style|textarea)/i;var l=0;while(k&&i>0){l++;if(l>=Hilite.max_nodes){var g=function(){Hilite.walkElements(k,i,j)};setTimeout(g,50);return}if(k.nodeType==1){if(!h.test(k.tagName)&&k.childNodes.length>0){k=k.childNodes[0];i++;continue}}else{if(k.nodeType==3){k=j(k)}}if(k.nextSibling){k=k.nextSibling}else{while(i>0){k=k.parentNode;i--;if(k.nextSibling){k=k.nextSibling;break}}}}};if(Hilite.onload){if(window.attachEvent){window.attachEvent("onload",Hilite.hilite)}else{if(window.addEventListener){window.addEventListener("load",Hilite.hilite,false)}else{var __onload=window.onload;window.onload=function(){Hilite.hilite();__onload()}}}}var mediaUrl=function(a){return scriptUrl+"m/"+osqaSkin+"/"+a};(function(a){a.i18n={setDictionary:function(b){b=b},_:function(d,c){var b=d;if(i18n_dict&&i18n_dict[d]){b=i18n_dict[d]}return this.printf(b,c)},toEntity:function(d){var b="";for(var c=0;c<d.length;c++){if(d.charCodeAt(c)>128){b+="&#"+d.charCodeAt(c)+";"}else{b+=d.charAt(c)}}return b},stripStr:function(b){return b.replace(/^\s*/,"").replace(/\s*$/,"")},stripStrML:function(d){var c=d.split("\n");for(var b=0;b<c.length;b++){c[b]=stripStr(c[b])}return stripStr(c.join(" "))},printf:function(e,b){if(!b){return e}var d="";var f=e.split("%s");for(var c=0;c<b.length;c++){if(f[c].lastIndexOf("%")==f[c].length-1&&c!=b.length-1){f[c]+="s"+f.splice(c+1,1)[0]}d+=f[c]+b[c]}return d+f[f.length-1]}}})(jQuery);var i18nZh={"insufficient privilege":"??????????","cannot pick own answer as best":"??????????????","anonymous users cannot select favorite questions":"?????????????","please login":"??????","anonymous users cannot vote":"????????",">15 points requried to upvote":"??+15?????????",">100 points required to downvote":"??+100?????????","please see":"??","cannot vote for own posts":"??????????","daily vote cap exhausted":"????????????????","cannot revoke old vote":"??????????????","please confirm offensive":"??????????????????????","anonymous users cannot flag offensive posts":"???????????","cannot flag message as offensive twice":"???????","flag offensive cap exhausted":"?????????????5?�??�???","need >15 points to report spam":"??+15??????�???�?","confirm delete":"?????/????????","anonymous users cannot delete/undelete":"???????????????","post recovered":"?????????????","post deleted":"????????????","add comment":"????","community karma points":"????","to comment, need":"????","delete this comment":"?????","hide comments":"????","add a comment":"????",comments:"??","confirm delete comment":"?????????",characters:"??","can write":"???","click to close":"???????","loading...":"???...","tags cannot be empty":"???????","tablimits info":"??5????????????20????","content cannot be empty":"???????","content minchars":"????? {0} ???","please enter title":"??????","title minchars":"????? {0} ???","delete":"??",undelete:"??",bold:"??",italic:"??",link:"???",quote:"??","preformatted text":"??",image:"??","numbered list":"??????","bulleted list":"??????",heading:"??","horizontal bar":"???",undo:"??",redo:"??","enter image url":'<b>??????</b></p><p>???<br />http://www.example.com/image.jpg "????"',"enter url":'<b>??Web??</b></p><p>???<br />http://www.cnprog.com/ "????"</p>"',"upload image":"?????????"};var i18nEn={"need >15 points to report spam":"need >15 points to report spam ",">15 points requried to upvote":">15 points required to upvote ","tags cannot be empty":"please enter at least one tag","anonymous users cannot vote":"sorry, anonymous users cannot vote ","anonymous users cannot select favorite questions":"sorry, anonymous users cannot select favorite questions ","to comment, need":"(to comment other people's posts, karma ","please see":"please see ","community karma points":" or more is necessary) - ","upload image":"Upload image:","enter image url":'enter URL of the image, e.g. http://www.example.com/image.jpg "image title"',"enter url":'enter Web address, e.g. http://www.example.com "page title"',"daily vote cap exhausted":"sorry, you've used up todays vote cap","cannot pick own answer as best":"sorry, you cannot accept your own answer","cannot revoke old vote":"sorry, older votes cannot be revoked","please confirm offensive":"are you sure this post is offensive, contains spam, advertising, malicious remarks, etc.?","flag offensive cap exhausted":"sorry, you've used up todays cap of flagging offensive messages ","confirm delete":"are you sure you want to delete this?","anonymous users cannot delete/undelete":"sorry, anonymous users cannot delete or undelete posts","post recovered":"your post is now restored!","post deleted":"your post has been deleted","confirm delete comment":"do you really want to delete this comment?","can write":"have ","tablimits info":"up to 5 tags, no more than 20 characters each","content minchars":"please enter more than {0} characters","title minchars":"please enter at least {0} characters",characters:"characters left","cannot vote for own posts":"sorry, you cannot vote for your own posts","cannot flag message as offensive twice":"cannot flag message as offensive twice ",">100 points required to downvote":">100 points required to downvote "};var i18nEs={"insufficient privilege":"privilegio insuficiente","cannot pick own answer as best":"no puede escoger su propia respuesta como la mejor","anonymous users cannot select favorite questions":"usuarios anonimos no pueden seleccionar","please login":"por favor inicie sesi�n","anonymous users cannot vote":"usuarios an�nimos no pueden votar",">15 points requried to upvote":">15 puntos requeridos para votar positivamente",">100 points required to downvote":">100 puntos requeridos para votar negativamente","please see":"por favor vea","cannot vote for own posts":"no se puede votar por sus propias publicaciones","daily vote cap exhausted":"cuota de votos diarios excedida","cannot revoke old vote":"no puede revocar un voto viejo","please confirm offensive":"por favor confirme ofensiva","anonymous users cannot flag offensive posts":"usuarios an�nimos no pueden marcar publicaciones como ofensivas","cannot flag message as offensive twice":"no puede marcar mensaje como ofensivo dos veces","flag offensive cap exhausted":"cuota para marcar ofensivas ha sido excedida","need >15 points to report spam":"necesita >15 puntos para reportar spam","confirm delete":"�Est� seguro que desea borrar esto?","anonymous users cannot delete/undelete":"usuarios an�nimos no pueden borrar o recuperar publicaciones","post recovered":"publicaci�n recuperada","post deleted":"publicaci�n borrada?","add comment":"agregar comentario","community karma points":"reputaci�n comunitaria","to comment, need":"para comentar, necesita reputaci�n","delete this comment":"borrar este comentario","hide comments":"ocultar comentarios","add a comment":"agregar comentarios",comments:"comentarios","confirm delete comment":"�Realmente desea borrar este comentario?",characters:"caracteres faltantes","can write":"tiene ","click to close":"haga click para cerrar","loading...":"cargando...","tags cannot be empty":"las etiquetas no pueden estar vac�as","tablimits info":"hasta 5 etiquetas de no mas de 20 caracteres cada una","content cannot be empty":"el contenido no puede estar vac�o","content minchars":"por favor introduzca mas de {0} caracteres","please enter title":"por favor ingrese un t�tulo","title minchars":"por favor introduzca al menos {0} caracteres","delete":"borrar",undelete:"recuperar",bold:"negrita",italic:"cursiva",link:"enlace",quote:"citar","preformatted text":"texto preformateado",image:"imagen","numbered list":"lista numerada","bulleted list":"lista no numerada",heading:"??","horizontal bar":"barra horizontal",undo:"deshacer",redo:"rehacer","enter image url":'introduzca la URL de la imagen, por ejemplo?<br />http://www.example.com/image.jpg "titulo de imagen"',"enter url":'introduzca direcciones web, ejemplo?<br />http://www.cnprog.com/ "titulo del enlace"</p>"',"upload image":"cargar imagen?","questions/":"preguntas/","vote/":"votar/"};var i18n={en:i18nEn,zh_CN:i18nZh,es:i18nEs};var i18n_dict=i18n[i18nLang];(function(c){var h,i;var d=0;var a=32;var e;c.fn.TextAreaResizer=function(){return this.each(function(){h=c(this).addClass("processed"),i=null;c(this).wrap('<div class="resizable-textarea"><span></span></div>').parent().append(c('<div class="grippie"></div>').bind("mousedown",{el:this},b));var k=c("div.grippie",c(this).parent())[0];k.style.marginRight=(k.offsetWidth-c(this)[0].offsetWidth)+"px"})};function b(k){h=c(k.data.el);h.blur();d=j(k).y;i=h.height()-d;h.css("opacity",0.25);c(document).mousemove(g).mouseup(f);return false}function g(m){var k=j(m).y;var l=i+k;if(d>=(k)){l-=5}d=k;l=Math.max(a,l);h.height(l+"px");if(l<a){f(m)}return false}function f(k){c(document).unbind("mousemove",g).unbind("mouseup",f);h.css("opacity",1);h.focus();h=null;i=null;d=0}function j(k){return{x:k.clientX+document.documentElement.scrollLeft,y:k.clientY+document.documentElement.scrollTop}}})(jQuery);(function(a){a.fn.extend({autocomplete:function(b,c){var d=typeof b=="string";c=a.extend({},a.Autocompleter.defaults,{url:d?b:null,data:d?null:b,delay:d?a.Autocompleter.defaults.delay:10,max:c&&!c.scroll?10:150},c);c.highlight=c.highlight||function(e){return e};c.formatMatch=c.formatMatch||c.formatItem;return this.each(function(){new a.Autocompleter(this,c)})},result:function(b){return this.bind("result",b)},search:function(b){return this.trigger("search",[b])},flushCache:function(){return this.trigger("flushCache")},setOptions:function(b){return this.trigger("setOptions",[b])},unautocomplete:function(){return this.trigger("unautocomplete")}});a.Autocompleter=function(l,g){var c={UP:38,DOWN:40,DEL:46,TAB:9,RETURN:13,ESC:27,COMMA:188,PAGEUP:33,PAGEDOWN:34,BACKSPACE:8};var b=a(l).attr("autocomplete","off").addClass(g.inputClass);var j;var p="";var m=a.Autocompleter.Cache(g);var e=0;var u;var x={mouseDownOnSelect:false};var r=a.Autocompleter.Select(g,l,d,x);var w;a.browser.opera&&a(l.form).bind("submit.autocomplete",function(){if(w){w=false;return false}});b.bind((a.browser.opera?"keypress":"keydown")+".autocomplete",function(y){u=y.keyCode;switch(y.keyCode){case c.UP:y.preventDefault();if(r.visible()){r.prev()}else{t(0,true)}break;case c.DOWN:y.preventDefault();if(r.visible()){r.next()}else{t(0,true)}break;case c.PAGEUP:y.preventDefault();if(r.visible()){r.pageUp()}else{t(0,true)}break;case c.PAGEDOWN:y.preventDefault();if(r.visible()){r.pageDown()}else{t(0,true)}break;case g.multiple&&a.trim(g.multipleSeparator)==","&&c.COMMA:case c.TAB:case c.RETURN:if(d()){y.preventDefault();w=true;return false}break;case c.ESC:r.hide();break;default:clearTimeout(j);j=setTimeout(t,g.delay);break}}).focus(function(){e++}).blur(function(){e=0;if(!x.mouseDownOnSelect){s()}}).click(function(){if(e++>1&&!r.visible()){t(0,true)}}).bind("search",function(){var y=(arguments.length>1)?arguments[1]:null;function z(D,C){var A;if(C&&C.length){for(var B=0;B<C.length;B++){if(C[B].result.toLowerCase()==D.toLowerCase()){A=C[B];break}}}if(typeof y=="function"){y(A)}else{b.trigger("result",A&&[A.data,A.value])}}a.each(h(b.val()),function(A,B){f(B,z,z)})}).bind("flushCache",function(){m.flush()}).bind("setOptions",function(){a.extend(g,arguments[1]);if("data" in arguments[1]){m.populate()}}).bind("unautocomplete",function(){r.unbind();b.unbind();a(l.form).unbind(".autocomplete")});function d(){var z=r.selected();if(!z){return false}var y=z.result;p=y;if(g.multiple){var A=h(b.val());if(A.length>1){y=A.slice(0,A.length-1).join(g.multipleSeparator)+g.multipleSeparator+y}y+=g.multipleSeparator}b.val(y);v();b.trigger("result",[z.data,z.value]);return true}function t(A,z){if(u==c.DEL){r.hide();return}var y=b.val();if(!z&&y==p){return}p=y;y=i(y);if(y.length>=g.minChars){b.addClass(g.loadingClass);if(!g.matchCase){y=y.toLowerCase()}f(y,k,v)}else{n();r.hide()}}function h(z){if(!z){return[""]}var A=z.split(g.multipleSeparator);var y=[];a.each(A,function(B,C){if(a.trim(C)){y[B]=a.trim(C)}});return y}function i(y){if(!g.multiple){return y}var z=h(y);return z[z.length-1]}function q(y,z){if(g.autoFill&&(i(b.val()).toLowerCase()==y.toLowerCase())&&u!=c.BACKSPACE){b.val(b.val()+z.substring(i(p).length));a.Autocompleter.Selection(l,p.length,p.length+z.length)}}function s(){clearTimeout(j);j=setTimeout(v,200)}function v(){var y=r.visible();r.hide();clearTimeout(j);n();if(g.mustMatch){b.search(function(z){if(!z){if(g.multiple){var A=h(b.val()).slice(0,-1);b.val(A.join(g.multipleSeparator)+(A.length?g.multipleSeparator:""))}else{b.val("")}}})}if(y){a.Autocompleter.Selection(l,l.value.length,l.value.length)}}function k(z,y){if(y&&y.length&&e){n();r.display(y,z);q(z,y[0].value);r.show()}else{v()}}function f(z,B,y){if(!g.matchCase){z=z.toLowerCase()}var A=m.load(z);if(A&&A.length){B(z,A)}else{if((typeof g.url=="string")&&(g.url.length>0)){var C={timestamp:+new Date()};a.each(g.extraParams,function(D,E){C[D]=typeof E=="function"?E():E});a.ajax({mode:"abort",port:"autocomplete"+l.name,dataType:g.dataType,url:g.url,data:a.extend({q:i(z),limit:g.max},C),success:function(E){var D=g.parse&&g.parse(E)||o(E);m.add(z,D);B(z,D)}})}else{r.emptyList();y(z)}}}function o(B){var y=[];var A=B.split("\n");for(var z=0;z<A.length;z++){var C=a.trim(A[z]);if(C){C=C.split("|");y[y.length]={data:C,value:C[0],result:g.formatResult&&g.formatResult(C,C[0])||C[0]}}}return y}function n(){b.removeClass(g.loadingClass)}};a.Autocompleter.defaults={inputClass:"ac_input",resultsClass:"ac_results",loadingClass:"ac_loading",minChars:1,delay:400,matchCase:false,matchSubset:true,matchContains:false,cacheLength:10,max:100,mustMatch:false,extraParams:{},selectFirst:true,formatItem:function(b){return b[0]},formatMatch:null,autoFill:false,width:0,multiple:false,multipleSeparator:", ",highlight:function(c,b){return c.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+b.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),"<strong>$1</strong>")},scroll:true,scrollHeight:180};a.Autocompleter.Cache=function(c){var f={};var d=0;function h(l,k){if(!c.matchCase){l=l.toLowerCase()}var j=l.indexOf(k);if(j==-1){return false}return j==0||c.matchContains}function g(j,i){if(d>c.cacheLength){b()}if(!f[j]){d++}f[j]=i}function e(){if(!c.data){return false}var k={},j=0;if(!c.url){c.cacheLength=1}k[""]=[];for(var m=0,l=c.data.length;m<l;m++){var p=c.data[m];p=(typeof p=="string")?[p]:p;var o=c.formatMatch(p,m+1,c.data.length);if(o===false){continue}var n=o.charAt(0).toLowerCase();if(!k[n]){k[n]=[]}var q={value:o,data:p,result:c.formatResult&&c.formatResult(p)||o};k[n].push(q);if(j++<c.max){k[""].push(q)}}a.each(k,function(r,s){c.cacheLength++;g(r,s)})}setTimeout(e,25);function b(){f={};d=0}return{flush:b,add:g,populate:e,load:function(n){if(!c.cacheLength||!d){return null}if(!c.url&&c.matchContains){var m=[];for(var j in f){if(j.length>0){var o=f[j];a.each(o,function(p,k){if(h(k.value,n)){m.push(k)}})}}return m}else{if(f[n]){return f[n]}else{if(c.matchSubset){for(var l=n.length-1;l>=c.minChars;l--){var o=f[n.substr(0,l)];if(o){var m=[];a.each(o,function(p,k){if(h(k.value,n)){m[m.length]=k}});return m}}}}}return null}}};a.Autocompleter.Select=function(e,j,l,p){var i={ACTIVE:"ac_over"};var k,f=-1,r,m="",s=true,c,o;function n(){if(!s){return}c=a("<div/>").hide().addClass(e.resultsClass).css("position","absolute").appendTo(document.body);o=a("<ul/>").appendTo(c).mouseover(function(t){if(q(t).nodeName&&q(t).nodeName.toUpperCase()=="LI"){f=a("li",o).removeClass(i.ACTIVE).index(q(t));a(q(t)).addClass(i.ACTIVE)}}).click(function(t){a(q(t)).addClass(i.ACTIVE);l();j.focus();return false}).mousedown(function(){p.mouseDownOnSelect=true}).mouseup(function(){p.mouseDownOnSelect=false});if(e.width>0){c.css("width",e.width)}s=false}function q(u){var t=u.target;while(t&&t.tagName!="LI"){t=t.parentNode}if(!t){return[]}return t}function h(t){k.slice(f,f+1).removeClass(i.ACTIVE);g(t);var v=k.slice(f,f+1).addClass(i.ACTIVE);if(e.scroll){var u=0;k.slice(0,f).each(function(){u+=this.offsetHeight});if((u+v[0].offsetHeight-o.scrollTop())>o[0].clientHeight){o.scrollTop(u+v[0].offsetHeight-o.innerHeight())}else{if(u<o.scrollTop()){o.scrollTop(u)}}}}function g(t){f+=t;if(f<0){f=k.size()-1}else{if(f>=k.size()){f=0}}}function b(t){return e.max&&e.max<t?e.max:t}function d(){o.empty();var u=b(r.length);for(var v=0;v<u;v++){if(!r[v]){continue}var w=e.formatItem(r[v].data,v+1,u,r[v].value,m);if(w===false){continue}var t=a("<li/>").html(e.highlight(w,m)).addClass(v%2==0?"ac_even":"ac_odd").appendTo(o)[0];a.data(t,"ac_data",r[v])}k=o.find("li");if(e.selectFirst){k.slice(0,1).addClass(i.ACTIVE);f=0}if(a.fn.bgiframe){o.bgiframe()}}return{display:function(u,t){n();r=u;m=t;d()},next:function(){h(1)},prev:function(){h(-1)},pageUp:function(){if(f!=0&&f-8<0){h(-f)}else{h(-8)}},pageDown:function(){if(f!=k.size()-1&&f+8>k.size()){h(k.size()-1-f)}else{h(8)}},hide:function(){c&&c.hide();k&&k.removeClass(i.ACTIVE);f=-1},visible:function(){return c&&c.is(":visible")},current:function(){return this.visible()&&(k.filter("."+i.ACTIVE)[0]||e.selectFirst&&k[0])},show:function(){var v=a(j).offset();c.css({width:typeof e.width=="string"||e.width>0?e.width:a(j).width(),top:v.top+j.offsetHeight,left:v.left}).show();if(e.scroll){o.scrollTop(0);o.css({maxHeight:e.scrollHeight,overflow:"auto"});if(a.browser.msie&&typeof document.body.style.maxHeight==="undefined"){var t=0;k.each(function(){t+=this.offsetHeight});var u=t>e.scrollHeight;o.css("height",u?e.scrollHeight:t);if(!u){k.width(o.width()-parseInt(k.css("padding-left"))-parseInt(k.css("padding-right")))}}}},selected:function(){var t=k&&k.filter("."+i.ACTIVE).removeClass(i.ACTIVE);return t&&t.length&&a.data(t[0],"ac_data")},emptyList:function(){o&&o.empty()},unbind:function(){c&&c.remove()}}};a.Autocompleter.Selection=function(d,e,c){if(d.createTextRange){var b=d.createTextRange();b.collapse(true);b.moveStart("character",e);b.moveEnd("character",c);b.select()}else{if(d.setSelectionRange){d.setSelectionRange(e,c)}else{if(d.selectionStart){d.selectionStart=e;d.selectionEnd=c}}}d.focus()}})(jQuery);var notify=function(){var a=false;return{show:function(b){if(b){$("body").css("margin-top","2.2em");$(".notify span").html(b)}$(".notify").fadeIn("slow");a=true},close:function(b){if(b){$.post(scriptUrl+$.i18n._("messages/")+$.i18n._("markread/"),{formdata:"required"})}$(".notify").fadeOut("fast");$("body").css("margin-top","0");a=false},isVisible:function(){return a}}}();
\ No newline at end of file
+++ /dev/null
-Hilite={elementid:"content",exact:true,max_nodes:1000,onload:true,style_name:"hilite",style_name_suffix:true,debug_referrer:""};Hilite.search_engines=[["google\\.","q"],["search\\.yahoo\\.","p"],["search\\.msn\\.","q"],["search\\.live\\.","query"],["search\\.aol\\.","userQuery"],["ask\\.com","q"],["altavista\\.","q"],["feedster\\.","q"],["search\\.lycos\\.","q"],["alltheweb\\.","q"],["technorati\\.com/search/([^\\?/]+)",1],["dogpile\\.com/info\\.dogpl/search/web/([^\\?/]+)",1,true]];Hilite.decodeReferrer=function(d){var g=null;var e=new RegExp("");for(var c=0;c<Hilite.search_engines.length;c++){var f=Hilite.search_engines[c];e.compile("^http://(www\\.)?"+f[0],"i");var b=d.match(e);if(b){var a;if(isNaN(f[1])){a=Hilite.decodeReferrerQS(d,f[1])}else{a=b[f[1]+1]}if(a){a=decodeURIComponent(a);if(f.length>2&&f[2]){a=decodeURIComponent(a)}a=a.replace(/\'|"/g,"");a=a.split(/[\s,\+\.]+/);return a}break}}return null};Hilite.decodeReferrerQS=function(f,d){var b=f.indexOf("?");var c;if(b>=0){var a=new String(f.substring(b+1));b=0;c=0;while((b>=0)&&((c=a.indexOf("=",b))>=0)){var e,g;e=a.substring(b,c);b=a.indexOf("&",c)+1;if(e==d){if(b<=0){return a.substring(c+1)}else{return a.substring(c+1,b-1)}}else{if(b<=0){return null}}}}return null};Hilite.hiliteElement=function(f,e){if(!e||f.childNodes.length==0){return}var c=new Array();for(var b=0;b<e.length;b++){e[b]=e[b].toLowerCase();if(Hilite.exact){c.push("\\b"+e[b]+"\\b")}else{c.push(e[b])}}c=new RegExp(c.join("|"),"i");var a={};for(var b=0;b<e.length;b++){if(Hilite.style_name_suffix){a[e[b]]=Hilite.style_name+(b+1)}else{a[e[b]]=Hilite.style_name}}var d=function(m){var j=c.exec(m.data);if(j){var n=j[0];var i="";var h=m.splitText(j.index);var g=h.splitText(n.length);var l=m.ownerDocument.createElement("SPAN");m.parentNode.replaceChild(l,h);l.className=a[n.toLowerCase()];l.appendChild(h);return l}else{return m}};Hilite.walkElements(f.childNodes[0],1,d)};Hilite.hilite=function(){var a=Hilite.debug_referrer?Hilite.debug_referrer:document.referrer;var b=null;a=Hilite.decodeReferrer(a);if(a&&((Hilite.elementid&&(b=document.getElementById(Hilite.elementid)))||(b=document.body))){Hilite.hiliteElement(b,a)}};Hilite.walkElements=function(d,f,e){var a=/^(script|style|textarea)/i;var c=0;while(d&&f>0){c++;if(c>=Hilite.max_nodes){var b=function(){Hilite.walkElements(d,f,e)};setTimeout(b,50);return}if(d.nodeType==1){if(!a.test(d.tagName)&&d.childNodes.length>0){d=d.childNodes[0];f++;continue}}else{if(d.nodeType==3){d=e(d)}}if(d.nextSibling){d=d.nextSibling}else{while(f>0){d=d.parentNode;f--;if(d.nextSibling){d=d.nextSibling;break}}}}};if(Hilite.onload){if(window.attachEvent){window.attachEvent("onload",Hilite.hilite)}else{if(window.addEventListener){window.addEventListener("load",Hilite.hilite,false)}else{var __onload=window.onload;window.onload=function(){Hilite.hilite();__onload()}}}};
\ No newline at end of file
+++ /dev/null
-/**
- * Search Engine Keyword Highlight (http://fucoder.com/code/se-hilite/)
- *
- * This module can be imported by any HTML page, and it would analyse the
- * referrer for search engine keywords, and then highlight those keywords on
- * the page, by wrapping them around <span class="hilite">...</span> tags.
- * Document can then define styles else where to provide visual feedbacks.
- *
- * Usage:
- *
- * In HTML. Add the following line towards the end of the document.
- *
- * <script type="text/javascript" src="se_hilite.js"></script>
- *
- * In CSS, define the following style:
- *
- * .hilite { background-color: #ff0; }
- *
- * If Hilite.style_name_suffix is true, then define the follow styles:
- *
- * .hilite1 { background-color: #ff0; }
- * .hilite2 { background-color: #f0f; }
- * .hilite3 { background-color: #0ff; }
- * .hilite4 ...
- *
- * @author Scott Yang <http://scott.yang.id.au/>
- * @version 1.5
- */
-
-// Configuration:
-Hilite = {
- /**
- * Element ID to be highlighted. If set, then only content inside this DOM
- * element will be highlighted, otherwise everything inside document.body
- * will be searched.
- */
- elementid: 'content',
-
- /**
- * Whether we are matching an exact word. For example, searching for
- * "highlight" will only match "highlight" but not "highlighting" if exact
- * is set to true.
- */
- exact: true,
-
- /**
- * Maximum number of DOM nodes to test, before handing the control back to
- * the GUI thread. This prevents locking up the UI when parsing and
- * replacing inside a large document.
- */
- max_nodes: 1000,
-
- /**
- * Whether to automatically hilite a section of the HTML document, by
- * binding the "Hilite.hilite()" to window.onload() event. If this
- * attribute is set to false, you can still manually trigger the hilite by
- * calling Hilite.hilite() in Javascript after document has been fully
- * loaded.
- */
- onload: true,
-
- /**
- * Name of the style to be used. Default to 'hilite'.
- */
- style_name: 'hilite',
-
- /**
- * Whether to use different style names for different search keywords by
- * appending a number starting from 1, i.e. hilite1, hilite2, etc.
- */
- style_name_suffix: true,
-
- /**
- * Set it to override the document.referrer string. Used for debugging
- * only.
- */
- debug_referrer: ''
-};
-
-Hilite.search_engines = [
- ['google\\.', 'q'], // Google
- ['search\\.yahoo\\.', 'p'], // Yahoo
- ['search\\.msn\\.', 'q'], // MSN
- ['search\\.live\\.', 'query'], // MSN Live
- ['search\\.aol\\.', 'userQuery'], // AOL
- ['ask\\.com', 'q'], // Ask.com
- ['altavista\\.', 'q'], // AltaVista
- ['feedster\\.', 'q'], // Feedster
- ['search\\.lycos\\.', 'q'], // Lycos
- ['alltheweb\\.', 'q'], // AllTheWeb
- ['technorati\\.com/search/([^\\?/]+)', 1], // Technorati
- ['dogpile\\.com/info\\.dogpl/search/web/([^\\?/]+)', 1, true] // DogPile
-];
-
-/**
- * Decode the referrer string and return a list of search keywords.
- */
-Hilite.decodeReferrer = function(referrer) {
- var query = null;
- var regex = new RegExp('');
-
- for (var i = 0; i < Hilite.search_engines.length; i ++) {
- var se = Hilite.search_engines[i];
- regex.compile('^http://(www\\.)?' + se[0], 'i');
- var match = referrer.match(regex);
- if (match) {
- var result;
- if (isNaN(se[1])) {
- result = Hilite.decodeReferrerQS(referrer, se[1]);
- } else {
- result = match[se[1] + 1];
- }
- if (result) {
- result = decodeURIComponent(result);
- // XXX: DogPile's URI requires decoding twice.
- if (se.length > 2 && se[2])
- result = decodeURIComponent(result);
- result = result.replace(/\'|"/g, '');
- result = result.split(/[\s,\+\.]+/);
- return result;
- }
- break;
- }
- }
- return null;
-};
-
-Hilite.decodeReferrerQS = function(referrer, match) {
- var idx = referrer.indexOf('?');
- var idx2;
- if (idx >= 0) {
- var qs = new String(referrer.substring(idx + 1));
- idx = 0;
- idx2 = 0;
- while ((idx >= 0) && ((idx2 = qs.indexOf('=', idx)) >= 0)) {
- var key, val;
- key = qs.substring(idx, idx2);
- idx = qs.indexOf('&', idx2) + 1;
- if (key == match) {
- if (idx <= 0) {
- return qs.substring(idx2+1);
- } else {
- return qs.substring(idx2+1, idx - 1);
- }
- }
- else if (idx <=0) {
- return null;
- }
- }
- }
- return null;
-};
-
-/**
- * Highlight a DOM element with a list of keywords.
- */
-Hilite.hiliteElement = function(elm, query) {
- if (!query || elm.childNodes.length == 0)
- return;
-
- var qre = new Array();
- for (var i = 0; i < query.length; i ++) {
- query[i] = query[i].toLowerCase();
- if (Hilite.exact)
- qre.push('\\b'+query[i]+'\\b');
- else
- qre.push(query[i]);
- }
-
- qre = new RegExp(qre.join("|"), "i");
-
- var stylemapper = {};
- for (var i = 0; i < query.length; i ++) {
- if (Hilite.style_name_suffix)
- stylemapper[query[i]] = Hilite.style_name+(i+1);
- else
- stylemapper[query[i]] = Hilite.style_name;
- }
-
- var textproc = function(node) {
- var match = qre.exec(node.data);
- if (match) {
- var val = match[0];
- var k = '';
- var node2 = node.splitText(match.index);
- var node3 = node2.splitText(val.length);
- var span = node.ownerDocument.createElement('SPAN');
- node.parentNode.replaceChild(span, node2);
- span.className = stylemapper[val.toLowerCase()];
- span.appendChild(node2);
- return span;
- } else {
- return node;
- }
- };
- Hilite.walkElements(elm.childNodes[0], 1, textproc);
-};
-
-/**
- * Highlight a HTML document using keywords extracted from document.referrer.
- * This is the main function to be called to perform search engine highlight
- * on a document.
- *
- * Currently it would check for DOM element 'content', element 'container' and
- * then document.body in that order, so it only highlights appropriate section
- * on WordPress and Movable Type pages.
- */
-Hilite.hilite = function() {
- // If 'debug_referrer' then we will use that as our referrer string
- // instead.
- var q = Hilite.debug_referrer ? Hilite.debug_referrer : document.referrer;
- var e = null;
- q = Hilite.decodeReferrer(q);
- if (q && ((Hilite.elementid &&
- (e = document.getElementById(Hilite.elementid))) ||
- (e = document.body)))
- {
- Hilite.hiliteElement(e, q);
- }
-};
-
-Hilite.walkElements = function(node, depth, textproc) {
- var skipre = /^(script|style|textarea)/i;
- var count = 0;
- while (node && depth > 0) {
- count ++;
- if (count >= Hilite.max_nodes) {
- var handler = function() {
- Hilite.walkElements(node, depth, textproc);
- };
- setTimeout(handler, 50);
- return;
- }
-
- if (node.nodeType == 1) { // ELEMENT_NODE
- if (!skipre.test(node.tagName) && node.childNodes.length > 0) {
- node = node.childNodes[0];
- depth ++;
- continue;
- }
- } else if (node.nodeType == 3) { // TEXT_NODE
- node = textproc(node);
- }
-
- if (node.nextSibling) {
- node = node.nextSibling;
- } else {
- while (depth > 0) {
- node = node.parentNode;
- depth --;
- if (node.nextSibling) {
- node = node.nextSibling;
- break;
- }
- }
- }
- }
-};
-
-// Trigger the highlight using the onload handler.
-if (Hilite.onload) {
- if (window.attachEvent) {
- window.attachEvent('onload', Hilite.hilite);
- } else if (window.addEventListener) {
- window.addEventListener('load', Hilite.hilite, false);
- } else {
- var __onload = window.onload;
- window.onload = function() {
- Hilite.hilite();
- __onload();
- };
- }
-}
+++ /dev/null
-var Attacklab=Attacklab||{};Attacklab.showdown=Attacklab.showdown||{};Attacklab.showdown.converter=function(){var a;var j;var A;var i=0;this.makeHtml=function(H){a=new Array();j=new Array();A=new Array();H=H.replace(/~/g,"~T");H=H.replace(/\$/g,"~D");H=H.replace(/\r\n/g,"\n");H=H.replace(/\r/g,"\n");H="\n\n"+H+"\n\n";H=z(H);H=H.replace(/^[ \t]+$/mg,"");H=m(H);H=d(H);H=G(H);H=q(H);H=H.replace(/~D/g,"$$");H=H.replace(/~T/g,"~");return H};var d=function(H){var H=H.replace(/^[ ]{0,3}\[(.+)\]:[ \t]*\n?[ \t]*<?(\S+?)>?[ \t]*\n?[ \t]*(?:(\n*)["(](.+?)[")][ \t]*)?(?:\n+|\Z)/gm,function(K,M,L,J,I){M=M.toLowerCase();a[M]=h(L);if(J){return J+I}else{if(I){j[M]=I.replace(/"/g,""")}}return""});return H};var m=function(J){J=J.replace(/\n/g,"\n\n");var I="p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|ins|del";var H="p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math";J=J.replace(/^(<(p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|ins|del)\b[^\r]*?\n<\/\2>[ \t]*(?=\n+))/gm,x);J=J.replace(/^(<(p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math)\b[^\r]*?.*<\/\2>[ \t]*(?=\n+)\n)/gm,x);J=J.replace(/(\n[ ]{0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,x);J=J.replace(/(\n\n[ ]{0,3}<!(--[^\r]*?--\s*)+>[ \t]*(?=\n{2,}))/g,x);J=J.replace(/(?:\n\n)([ ]{0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,x);J=J.replace(/\n\n/g,"\n");return J};var x=function(H,I){var J=I;J=J.replace(/\n\n/g,"\n");J=J.replace(/^\n/,"");J=J.replace(/\n+$/g,"");J="\n\n~K"+(A.push(J)-1)+"K\n\n";return J};var G=function(I){I=f(I);var H=o("<hr />");I=I.replace(/^[ ]{0,2}([ ]?\*[ ]?){3,}[ \t]*$/gm,H);I=I.replace(/^[ ]{0,2}([ ]?-[ ]?){3,}[ \t]*$/gm,H);I=I.replace(/^[ ]{0,2}([ ]?_[ ]?){3,}[ \t]*$/gm,H);I=E(I);I=b(I);I=u(I);I=m(I);I=g(I);return I};var r=function(H){H=C(H);H=l(H);H=e(H);H=F(H);H=y(H);H=n(H);H=h(H);H=c(H);H=H.replace(/ +\n/g," <br />\n");return H};var l=function(I){var H=/(<[a-z\/!$]("[^"]*"|'[^']*'|[^'">])*>|<!(--.*?--\s*)+>)/gi;I=I.replace(H,function(K){var J=K.replace(/(.)<\/?code>(?=.)/g,"$1`");J=w(J,"\\`*_");return J});return I};var y=function(H){H=H.replace(/(\[((?:\[[^\]]*\]|[^\[\]])*)\][ ]?(?:\n[ ]*)?\[(.*?)\])()()()()/g,D);H=H.replace(/(\[((?:\[[^\]]*\]|[^\[\]])*)\]\([ \t]*()<?(.*?)>?[ \t]*((['"])(.*?)\6[ \t]*)?\))/g,D);H=H.replace(/(\[([^\[\]]+)\])()()()()()/g,D);return H};var D=function(N,T,S,R,Q,P,M,L){if(L==undefined){L=""}var K=T;var I=S;var J=R.toLowerCase();var H=Q;var O=L;if(H==""){if(J==""){J=I.toLowerCase().replace(/ ?\n/g," ")}H="#"+J;if(a[J]!=undefined){H=a[J];if(j[J]!=undefined){O=j[J]}}else{if(K.search(/\(\s*\)$/m)>-1){H=""}else{return K}}}H=w(H,"*_");var U='<a href="'+H+'"';if(O!=""){O=O.replace(/"/g,""");O=w(O,"*_");U+=' title="'+O+'"'}U+=">"+I+"</a>";return U};var F=function(H){H=H.replace(/(!\[(.*?)\][ ]?(?:\n[ ]*)?\[(.*?)\])()()()()/g,t);H=H.replace(/(!\[(.*?)\]\s?\([ \t]*()<?(\S+?)>?[ \t]*((['"])(.*?)\6[ \t]*)?\))/g,t);return H};var t=function(N,T,S,R,Q,P,M,L){var K=T;var J=S;var I=R.toLowerCase();var H=Q;var O=L;if(!O){O=""}if(H==""){if(I==""){I=J.toLowerCase().replace(/ ?\n/g," ")}H="#"+I;if(a[I]!=undefined){H=a[I];if(j[I]!=undefined){O=j[I]}}else{return K}}J=J.replace(/"/g,""");H=w(H,"*_");var U='<img src="'+H+'" alt="'+J+'"';O=O.replace(/"/g,""");O=w(O,"*_");U+=' title="'+O+'"';U+=" />";return U};var f=function(H){H=H.replace(/^(.+)[ \t]*\n=+[ \t]*\n+/gm,function(I,J){return o("<h1>"+r(J)+"</h1>")});H=H.replace(/^(.+)[ \t]*\n-+[ \t]*\n+/gm,function(J,I){return o("<h2>"+r(I)+"</h2>")});H=H.replace(/^(\#{1,6})[ \t]*(.+?)[ \t]*\#*\n+/gm,function(I,L,K){var J=L.length;return o("<h"+J+">"+r(K)+"</h"+J+">")});return H};var p;var E=function(I){I+="~0";var H=/^(([ ]{0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(~0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm;if(i){I=I.replace(H,function(K,N,M){var O=N;var L=(M.search(/[*+-]/g)>-1)?"ul":"ol";O=O.replace(/\n{2,}/g,"\n\n\n");var J=p(O);J=J.replace(/\s+$/,"");J="<"+L+">"+J+"</"+L+">\n";return J})}else{H=/(\n\n|^\n?)(([ ]{0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(~0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/g;I=I.replace(H,function(L,P,N,K){var O=P;var Q=N;var M=(K.search(/[*+-]/g)>-1)?"ul":"ol";var Q=Q.replace(/\n{2,}/g,"\n\n\n");var J=p(Q);J=O+"<"+M+">\n"+J+"</"+M+">\n";return J})}I=I.replace(/~0/,"");return I};p=function(H){i++;H=H.replace(/\n{2,}$/,"\n");H+="~0";H=H.replace(/(\n)?(^[ \t]*)([*+-]|\d+[.])[ \t]+([^\r]+?(\n{1,2}))(?=\n*(~0|\2([*+-]|\d+[.])[ \t]+))/gm,function(K,M,L,J,I){var O=I;var N=M;var P=L;if(N||(O.search(/\n{2,}/)>-1)){O=G(s(O))}else{O=E(s(O));O=O.replace(/\n$/,"");O=r(O)}return"<li>"+O+"</li>\n"});H=H.replace(/~0/g,"");i--;return H};var b=function(H){H+="~0";H=H.replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=~0))/g,function(I,K,J){var L=K;var M=J;L=v(s(L));L=z(L);L=L.replace(/^\n+/g,"");L=L.replace(/\n+$/g,"");L="<pre><code>"+L+"\n</code></pre>";return o(L)+M});H=H.replace(/~0/,"");return H};var o=function(H){H=H.replace(/(^\n+|\n+$)/g,"");return"\n\n~K"+(A.push(H)-1)+"K\n\n"};var C=function(H){H=H.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,function(K,M,L,J,I){var N=J;N=N.replace(/^([ \t]*)/g,"");N=N.replace(/[ \t]*$/g,"");N=v(N);return M+"<code>"+N+"</code>"});return H};var v=function(H){H=H.replace(/&/g,"&");H=H.replace(/</g,"<");H=H.replace(/>/g,">");H=w(H,"*_{}[]\\",false);return H};var c=function(H){H=H.replace(/(\*\*|__)(?=\S)([^\r]*?\S[\*_]*)\1/g,"<strong>$2</strong>");H=H.replace(/(\*|_)(?=\S)([^\r]*?\S)\1/g,"<em>$2</em>");return H};var u=function(H){H=H.replace(/((^[ \t]*>[ \t]?.+\n(.+\n)*\n*)+)/gm,function(I,J){var K=J;K=K.replace(/^[ \t]*>[ \t]?/gm,"~0");K=K.replace(/~0/g,"");K=K.replace(/^[ \t]+$/gm,"");K=G(K);K=K.replace(/(^|\n)/g,"$1 ");K=K.replace(/(\s*<pre>[^\r]+?<\/pre>)/gm,function(L,M){var N=M;N=N.replace(/^ /mg,"~0");N=N.replace(/~0/g,"");return N});return o("<blockquote>\n"+K+"\n</blockquote>")});return H};var g=function(N){N=N.replace(/^\n+/g,"");N=N.replace(/\n+$/g,"");var M=N.split(/\n{2,}/g);var J=new Array();var H=M.length;for(var I=0;I<H;I++){var L=M[I];if(L.search(/~K(\d+)K/g)>=0){J.push(L)}else{if(L.search(/\S/)>=0){L=r(L);L=L.replace(/^([ \t]*)/g,"<p>");L+="</p>";J.push(L)}}}H=J.length;for(var I=0;I<H;I++){while(J[I].search(/~K(\d+)K/)>=0){var K=A[RegExp.$1];K=K.replace(/\$/g,"$$$$");J[I]=J[I].replace(/~K\d+K/,K)}}return J.join("\n\n")};var h=function(H){H=H.replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g,"&");H=H.replace(/<(?![a-z\/?\$!])/gi,"<");return H};var e=function(H){H=H.replace(/\\(\\)/g,k);H=H.replace(/\\([`*_{}\[\]()>#+-.!])/g,k);return H};var n=function(H){H=H.replace(/<((https?|ftp|dict):[^'">\s]+)>/gi,'<a href="$1">$1</a>');H=H.replace(/<(?:mailto:)?([-.\w]+\@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,function(I,J){return B(q(J))});return H};var B=function(J){function I(L){var K="0123456789ABCDEF";var M=L.charCodeAt(0);return(K.charAt(M>>4)+K.charAt(M&15))}var H=[function(K){return"&#"+K.charCodeAt(0)+";"},function(K){return"&#x"+I(K)+";"},function(K){return K}];J="mailto:"+J;J=J.replace(/./g,function(K){if(K=="@"){K=H[Math.floor(Math.random()*2)](K)}else{if(K!=":"){var L=Math.random();K=(L>0.9?H[2](K):L>0.45?H[1](K):H[0](K))}}return K});J='<a href="'+J+'">'+J+"</a>";J=J.replace(/">.+:/g,'">');return J};var q=function(H){H=H.replace(/~E(\d+)E/g,function(I,K){var J=parseInt(K);return String.fromCharCode(J)});return H};var s=function(H){H=H.replace(/^(\t|[ ]{1,4})/gm,"~0");H=H.replace(/~0/g,"");return H};var z=function(H){H=H.replace(/\t(?=\t)/g," ");H=H.replace(/\t/g,"~A~B");H=H.replace(/~B(.+?)~A/g,function(I,L,K){var N=L;var J=4-N.length%4;for(var M=0;M<J;M++){N+=" "}return N});H=H.replace(/~A/g," ");H=H.replace(/~B/g,"");return H};var w=function(L,I,J){var H="(["+I.replace(/([\[\]\\])/g,"\\$1")+"])";if(J){H="\\\\"+H}var K=new RegExp(H,"g");L=L.replace(K,k);return L};var k=function(H,J){var I=J.charCodeAt(0);return"~E"+I+"E"}};var Showdown=Attacklab.showdown;if(Attacklab.fileLoaded){Attacklab.fileLoaded("showdown.js")};
\ No newline at end of file
+++ /dev/null
-//
-// showdown.js -- A javascript port of Markdown.
-//
-// Copyright (c) 2007 John Fraser.
-//
-// Original Markdown Copyright (c) 2004-2005 John Gruber
-// <http://daringfireball.net/projects/markdown/>
-//
-// Redistributable under a BSD-style open source license.
-// See license.txt for more information.
-//
-// The full source distribution is at:
-//
-// A A L
-// T C A
-// T K B
-//
-// <http://www.attacklab.net/>
-//
-
-//
-// Wherever possible, Showdown is a straight, line-by-line port
-// of the Perl version of Markdown.
-//
-// This is not a normal parser design; it's basically just a
-// series of string substitutions. It's hard to read and
-// maintain this way, but keeping Showdown close to the original
-// design makes it easier to port new features.
-//
-// More importantly, Showdown behaves like markdown.pl in most
-// edge cases. So web applications can do client-side preview
-// in Javascript, and then build identical HTML on the server.
-//
-// This port needs the new RegExp functionality of ECMA 262,
-// 3rd Edition (i.e. Javascript 1.5). Most modern web browsers
-// should do fine. Even with the new regular expression features,
-// We do a lot of work to emulate Perl's regex functionality.
-// The tricky changes in this file mostly have the "attacklab:"
-// label. Major or self-explanatory changes don't.
-//
-// Smart diff tools like Araxis Merge will be able to match up
-// this file with markdown.pl in a useful way. A little tweaking
-// helps: in a copy of markdown.pl, replace "#" with "//" and
-// replace "$text" with "text". Be sure to ignore whitespace
-// and line endings.
-//
-
-
-//
-// Showdown usage:
-//
-// var text = "Markdown *rocks*.";
-//
-// var converter = new Attacklab.showdown.converter();
-// var html = converter.makeHtml(text);
-//
-// alert(html);
-//
-// Note: move the sample code to the bottom of this
-// file before uncommenting it.
-//
-
-
-//
-// Attacklab namespace
-//
-var Attacklab = Attacklab || {}
-
-//
-// Showdown namespace
-//
-Attacklab.showdown = Attacklab.showdown || {}
-
-//
-// converter
-//
-// Wraps all "globals" so that the only thing
-// exposed is makeHtml().
-//
-Attacklab.showdown.converter = function() {
-
-//
-// Globals:
-//
-
-// Global hashes, used by various utility routines
-var g_urls;
-var g_titles;
-var g_html_blocks;
-
-// Used to track when we're inside an ordered or unordered list
-// (see _ProcessListItems() for details):
-var g_list_level = 0;
-
-
-this.makeHtml = function(text) {
-//
-// Main function. The order in which other subs are called here is
-// essential. Link and image substitutions need to happen before
-// _EscapeSpecialCharsWithinTagAttributes(), so that any *'s or _'s in the <a>
-// and <img> tags get encoded.
-//
-
- // Clear the global hashes. If we don't clear these, you get conflicts
- // from other articles when generating a page which contains more than
- // one article (e.g. an index page that shows the N most recent
- // articles):
- g_urls = new Array();
- g_titles = new Array();
- g_html_blocks = new Array();
-
- // attacklab: Replace ~ with ~T
- // This lets us use tilde as an escape char to avoid md5 hashes
- // The choice of character is arbitray; anything that isn't
- // magic in Markdown will work.
- text = text.replace(/~/g,"~T");
-
- // attacklab: Replace $ with ~D
- // RegExp interprets $ as a special character
- // when it's in a replacement string
- text = text.replace(/\$/g,"~D");
-
- // Standardize line endings
- text = text.replace(/\r\n/g,"\n"); // DOS to Unix
- text = text.replace(/\r/g,"\n"); // Mac to Unix
-
- // Make sure text begins and ends with a couple of newlines:
- text = "\n\n" + text + "\n\n";
-
- // Convert all tabs to spaces.
- text = _Detab(text);
-
- // Strip any lines consisting only of spaces and tabs.
- // This makes subsequent regexen easier to write, because we can
- // match consecutive blank lines with /\n+/ instead of something
- // contorted like /[ \t]*\n+/ .
- text = text.replace(/^[ \t]+$/mg,"");
-
- // Turn block-level HTML blocks into hash entries
- text = _HashHTMLBlocks(text);
-
- // Strip link definitions, store in hashes.
- text = _StripLinkDefinitions(text);
-
- text = _RunBlockGamut(text);
-
- text = _UnescapeSpecialChars(text);
-
- // attacklab: Restore dollar signs
- text = text.replace(/~D/g,"$$");
-
- // attacklab: Restore tildes
- text = text.replace(/~T/g,"~");
-
- return text;
-}
-
-var _StripLinkDefinitions = function(text) {
-//
-// Strips link definitions from text, stores the URLs and titles in
-// hash references.
-//
-
- // Link defs are in the form: ^[id]: url "optional title"
-
- /*
- var text = text.replace(/
- ^[ ]{0,3}\[(.+)\]: // id = $1 attacklab: g_tab_width - 1
- [ \t]*
- \n? // maybe *one* newline
- [ \t]*
- <?(\S+?)>? // url = $2
- [ \t]*
- \n? // maybe one newline
- [ \t]*
- (?:
- (\n*) // any lines skipped = $3 attacklab: lookbehind removed
- ["(]
- (.+?) // title = $4
- [")]
- [ \t]*
- )? // title is optional
- (?:\n+|$)
- /gm,
- function(){...});
- */
- var text = text.replace(/^[ ]{0,3}\[(.+)\]:[ \t]*\n?[ \t]*<?(\S+?)>?[ \t]*\n?[ \t]*(?:(\n*)["(](.+?)[")][ \t]*)?(?:\n+|\Z)/gm,
- function (wholeMatch,m1,m2,m3,m4) {
- m1 = m1.toLowerCase();
- g_urls[m1] = _EncodeAmpsAndAngles(m2); // Link IDs are case-insensitive
- if (m3) {
- // Oops, found blank lines, so it's not a title.
- // Put back the parenthetical statement we stole.
- return m3+m4;
- } else if (m4) {
- g_titles[m1] = m4.replace(/"/g,""");
- }
-
- // Completely remove the definition from the text
- return "";
- }
- );
-
- return text;
-}
-
-var _HashHTMLBlocks = function(text) {
- // attacklab: Double up blank lines to reduce lookaround
- text = text.replace(/\n/g,"\n\n");
-
- // Hashify HTML blocks:
- // We only want to do this for block-level HTML tags, such as headers,
- // lists, and tables. That's because we still want to wrap <p>s around
- // "paragraphs" that are wrapped in non-block-level tags, such as anchors,
- // phrase emphasis, and spans. The list of tags we're looking for is
- // hard-coded:
- var block_tags_a = "p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|ins|del"
- var block_tags_b = "p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math"
-
- // First, look for nested blocks, e.g.:
- // <div>
- // <div>
- // tags for inner block must be indented.
- // </div>
- // </div>
- //
- // The outermost tags must start at the left margin for this to match, and
- // the inner nested divs must be indented.
- // We need to do this before the next, more liberal match, because the next
- // match will start at the first `<div>` and stop at the first `</div>`.
-
- // attacklab: This regex can be expensive when it fails.
- /*
- var text = text.replace(/
- ( // save in $1
- ^ // start of line (with /m)
- <($block_tags_a) // start tag = $2
- \b // word break
- // attacklab: hack around khtml/pcre bug...
- [^\r]*?\n // any number of lines, minimally matching
- </\2> // the matching end tag
- [ \t]* // trailing spaces/tabs
- (?=\n+) // followed by a newline
- ) // attacklab: there are sentinel newlines at end of document
- /gm,function(){...}};
- */
- text = text.replace(/^(<(p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|ins|del)\b[^\r]*?\n<\/\2>[ \t]*(?=\n+))/gm,hashElement);
-
- //
- // Now match more liberally, simply from `\n<tag>` to `</tag>\n`
- //
-
- /*
- var text = text.replace(/
- ( // save in $1
- ^ // start of line (with /m)
- <($block_tags_b) // start tag = $2
- \b // word break
- // attacklab: hack around khtml/pcre bug...
- [^\r]*? // any number of lines, minimally matching
- .*</\2> // the matching end tag
- [ \t]* // trailing spaces/tabs
- (?=\n+) // followed by a newline
- ) // attacklab: there are sentinel newlines at end of document
- /gm,function(){...}};
- */
- text = text.replace(/^(<(p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math)\b[^\r]*?.*<\/\2>[ \t]*(?=\n+)\n)/gm,hashElement);
-
- // Special case just for <hr />. It was easier to make a special case than
- // to make the other regex more complicated.
-
- /*
- text = text.replace(/
- ( // save in $1
- \n\n // Starting after a blank line
- [ ]{0,3}
- (<(hr) // start tag = $2
- \b // word break
- ([^<>])*? //
- \/?>) // the matching end tag
- [ \t]*
- (?=\n{2,}) // followed by a blank line
- )
- /g,hashElement);
- */
- text = text.replace(/(\n[ ]{0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,hashElement);
-
- // Special case for standalone HTML comments:
-
- /*
- text = text.replace(/
- ( // save in $1
- \n\n // Starting after a blank line
- [ ]{0,3} // attacklab: g_tab_width - 1
- <!
- (--[^\r]*?--\s*)+
- >
- [ \t]*
- (?=\n{2,}) // followed by a blank line
- )
- /g,hashElement);
- */
- text = text.replace(/(\n\n[ ]{0,3}<!(--[^\r]*?--\s*)+>[ \t]*(?=\n{2,}))/g,hashElement);
-
- // PHP and ASP-style processor instructions (<?...?> and <%...%>)
-
- /*
- text = text.replace(/
- (?:
- \n\n // Starting after a blank line
- )
- ( // save in $1
- [ ]{0,3} // attacklab: g_tab_width - 1
- (?:
- <([?%]) // $2
- [^\r]*?
- \2>
- )
- [ \t]*
- (?=\n{2,}) // followed by a blank line
- )
- /g,hashElement);
- */
- text = text.replace(/(?:\n\n)([ ]{0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,hashElement);
-
- // attacklab: Undo double lines (see comment at top of this function)
- text = text.replace(/\n\n/g,"\n");
- return text;
-}
-
-var hashElement = function(wholeMatch,m1) {
- var blockText = m1;
-
- // Undo double lines
- blockText = blockText.replace(/\n\n/g,"\n");
- blockText = blockText.replace(/^\n/,"");
-
- // strip trailing blank lines
- blockText = blockText.replace(/\n+$/g,"");
-
- // Replace the element text with a marker ("~KxK" where x is its key)
- blockText = "\n\n~K" + (g_html_blocks.push(blockText)-1) + "K\n\n";
-
- return blockText;
-};
-
-var _RunBlockGamut = function(text) {
-//
-// These are all the transformations that form block-level
-// tags like paragraphs, headers, and list items.
-//
- text = _DoHeaders(text);
-
- // Do Horizontal Rules:
- var key = hashBlock("<hr />");
- text = text.replace(/^[ ]{0,2}([ ]?\*[ ]?){3,}[ \t]*$/gm,key);
- text = text.replace(/^[ ]{0,2}([ ]?-[ ]?){3,}[ \t]*$/gm,key);
- text = text.replace(/^[ ]{0,2}([ ]?_[ ]?){3,}[ \t]*$/gm,key);
-
- text = _DoLists(text);
- text = _DoCodeBlocks(text);
- text = _DoBlockQuotes(text);
-
- // We already ran _HashHTMLBlocks() before, in Markdown(), but that
- // was to escape raw HTML in the original Markdown source. This time,
- // we're escaping the markup we've just created, so that we don't wrap
- // <p> tags around block-level tags.
- text = _HashHTMLBlocks(text);
- text = _FormParagraphs(text);
-
- return text;
-}
-
-
-var _RunSpanGamut = function(text) {
-//
-// These are all the transformations that occur *within* block-level
-// tags like paragraphs, headers, and list items.
-//
-
- text = _DoCodeSpans(text);
- text = _EscapeSpecialCharsWithinTagAttributes(text);
- text = _EncodeBackslashEscapes(text);
-
- // Process anchor and image tags. Images must come first,
- // because ![foo][f] looks like an anchor.
- text = _DoImages(text);
- text = _DoAnchors(text);
-
- // Make links out of things like `<http://example.com/>`
- // Must come after _DoAnchors(), because you can use < and >
- // delimiters in inline links like [this](<url>).
- text = _DoAutoLinks(text);
- text = _EncodeAmpsAndAngles(text);
- text = _DoItalicsAndBold(text);
-
- // Do hard breaks:
- text = text.replace(/ +\n/g," <br />\n");
-
- return text;
-}
-
-var _EscapeSpecialCharsWithinTagAttributes = function(text) {
-//
-// Within tags -- meaning between < and > -- encode [\ ` * _] so they
-// don't conflict with their use in Markdown for code, italics and strong.
-//
-
- // Build a regex to find HTML tags and comments. See Friedl's
- // "Mastering Regular Expressions", 2nd Ed., pp. 200-201.
- var regex = /(<[a-z\/!$]("[^"]*"|'[^']*'|[^'">])*>|<!(--.*?--\s*)+>)/gi;
-
- text = text.replace(regex, function(wholeMatch) {
- var tag = wholeMatch.replace(/(.)<\/?code>(?=.)/g,"$1`");
- tag = escapeCharacters(tag,"\\`*_");
- return tag;
- });
-
- return text;
-}
-
-var _DoAnchors = function(text) {
-//
-// Turn Markdown link shortcuts into XHTML <a> tags.
-//
- //
- // First, handle reference-style links: [link text] [id]
- //
-
- /*
- text = text.replace(/
- ( // wrap whole match in $1
- \[
- (
- (?:
- \[[^\]]*\] // allow brackets nested one level
- |
- [^\[] // or anything else
- )*
- )
- \]
-
- [ ]? // one optional space
- (?:\n[ ]*)? // one optional newline followed by spaces
-
- \[
- (.*?) // id = $3
- \]
- )()()()() // pad remaining backreferences
- /g,_DoAnchors_callback);
- */
- text = text.replace(/(\[((?:\[[^\]]*\]|[^\[\]])*)\][ ]?(?:\n[ ]*)?\[(.*?)\])()()()()/g,writeAnchorTag);
-
- //
- // Next, inline-style links: [link text](url "optional title")
- //
-
- /*
- text = text.replace(/
- ( // wrap whole match in $1
- \[
- (
- (?:
- \[[^\]]*\] // allow brackets nested one level
- |
- [^\[\]] // or anything else
- )
- )
- \]
- \( // literal paren
- [ \t]*
- () // no id, so leave $3 empty
- <?(.*?)>? // href = $4
- [ \t]*
- ( // $5
- (['"]) // quote char = $6
- (.*?) // Title = $7
- \6 // matching quote
- [ \t]* // ignore any spaces/tabs between closing quote and )
- )? // title is optional
- \)
- )
- /g,writeAnchorTag);
- */
- text = text.replace(/(\[((?:\[[^\]]*\]|[^\[\]])*)\]\([ \t]*()<?(.*?)>?[ \t]*((['"])(.*?)\6[ \t]*)?\))/g,writeAnchorTag);
-
- //
- // Last, handle reference-style shortcuts: [link text]
- // These must come last in case you've also got [link test][1]
- // or [link test](/foo)
- //
-
- /*
- text = text.replace(/
- ( // wrap whole match in $1
- \[
- ([^\[\]]+) // link text = $2; can't contain '[' or ']'
- \]
- )()()()()() // pad rest of backreferences
- /g, writeAnchorTag);
- */
- text = text.replace(/(\[([^\[\]]+)\])()()()()()/g, writeAnchorTag);
-
- return text;
-}
-
-var writeAnchorTag = function(wholeMatch,m1,m2,m3,m4,m5,m6,m7) {
- if (m7 == undefined) m7 = "";
- var whole_match = m1;
- var link_text = m2;
- var link_id = m3.toLowerCase();
- var url = m4;
- var title = m7;
-
- if (url == "") {
- if (link_id == "") {
- // lower-case and turn embedded newlines into spaces
- link_id = link_text.toLowerCase().replace(/ ?\n/g," ");
- }
- url = "#"+link_id;
-
- if (g_urls[link_id] != undefined) {
- url = g_urls[link_id];
- if (g_titles[link_id] != undefined) {
- title = g_titles[link_id];
- }
- }
- else {
- if (whole_match.search(/\(\s*\)$/m)>-1) {
- // Special case for explicit empty url
- url = "";
- } else {
- return whole_match;
- }
- }
- }
-
- url = escapeCharacters(url,"*_");
- var result = "<a href=\"" + url + "\"";
-
- if (title != "") {
- title = title.replace(/"/g,""");
- title = escapeCharacters(title,"*_");
- result += " title=\"" + title + "\"";
- }
-
- result += ">" + link_text + "</a>";
-
- return result;
-}
-
-
-var _DoImages = function(text) {
-//
-// Turn Markdown image shortcuts into <img> tags.
-//
-
- //
- // First, handle reference-style labeled images: ![alt text][id]
- //
-
- /*
- text = text.replace(/
- ( // wrap whole match in $1
- !\[
- (.*?) // alt text = $2
- \]
-
- [ ]? // one optional space
- (?:\n[ ]*)? // one optional newline followed by spaces
-
- \[
- (.*?) // id = $3
- \]
- )()()()() // pad rest of backreferences
- /g,writeImageTag);
- */
- text = text.replace(/(!\[(.*?)\][ ]?(?:\n[ ]*)?\[(.*?)\])()()()()/g,writeImageTag);
-
- //
- // Next, handle inline images: ![alt text](url "optional title")
- // Don't forget: encode * and _
-
- /*
- text = text.replace(/
- ( // wrap whole match in $1
- !\[
- (.*?) // alt text = $2
- \]
- \s? // One optional whitespace character
- \( // literal paren
- [ \t]*
- () // no id, so leave $3 empty
- <?(\S+?)>? // src url = $4
- [ \t]*
- ( // $5
- (['"]) // quote char = $6
- (.*?) // title = $7
- \6 // matching quote
- [ \t]*
- )? // title is optional
- \)
- )
- /g,writeImageTag);
- */
- text = text.replace(/(!\[(.*?)\]\s?\([ \t]*()<?(\S+?)>?[ \t]*((['"])(.*?)\6[ \t]*)?\))/g,writeImageTag);
-
- return text;
-}
-
-var writeImageTag = function(wholeMatch,m1,m2,m3,m4,m5,m6,m7) {
- var whole_match = m1;
- var alt_text = m2;
- var link_id = m3.toLowerCase();
- var url = m4;
- var title = m7;
-
- if (!title) title = "";
-
- if (url == "") {
- if (link_id == "") {
- // lower-case and turn embedded newlines into spaces
- link_id = alt_text.toLowerCase().replace(/ ?\n/g," ");
- }
- url = "#"+link_id;
-
- if (g_urls[link_id] != undefined) {
- url = g_urls[link_id];
- if (g_titles[link_id] != undefined) {
- title = g_titles[link_id];
- }
- }
- else {
- return whole_match;
- }
- }
-
- alt_text = alt_text.replace(/"/g,""");
- url = escapeCharacters(url,"*_");
- var result = "<img src=\"" + url + "\" alt=\"" + alt_text + "\"";
-
- // attacklab: Markdown.pl adds empty title attributes to images.
- // Replicate this bug.
-
- //if (title != "") {
- title = title.replace(/"/g,""");
- title = escapeCharacters(title,"*_");
- result += " title=\"" + title + "\"";
- //}
-
- result += " />";
-
- return result;
-}
-
-
-var _DoHeaders = function(text) {
-
- // Setext-style headers:
- // Header 1
- // ========
- //
- // Header 2
- // --------
- //
- text = text.replace(/^(.+)[ \t]*\n=+[ \t]*\n+/gm,
- function(wholeMatch,m1){return hashBlock("<h1>" + _RunSpanGamut(m1) + "</h1>");});
-
- text = text.replace(/^(.+)[ \t]*\n-+[ \t]*\n+/gm,
- function(matchFound,m1){return hashBlock("<h2>" + _RunSpanGamut(m1) + "</h2>");});
-
- // atx-style headers:
- // # Header 1
- // ## Header 2
- // ## Header 2 with closing hashes ##
- // ...
- // ###### Header 6
- //
-
- /*
- text = text.replace(/
- ^(\#{1,6}) // $1 = string of #'s
- [ \t]*
- (.+?) // $2 = Header text
- [ \t]*
- \#* // optional closing #'s (not counted)
- \n+
- /gm, function() {...});
- */
-
- text = text.replace(/^(\#{1,6})[ \t]*(.+?)[ \t]*\#*\n+/gm,
- function(wholeMatch,m1,m2) {
- var h_level = m1.length;
- return hashBlock("<h" + h_level + ">" + _RunSpanGamut(m2) + "</h" + h_level + ">");
- });
-
- return text;
-}
-
-// This declaration keeps Dojo compressor from outputting garbage:
-var _ProcessListItems;
-
-var _DoLists = function(text) {
-//
-// Form HTML ordered (numbered) and unordered (bulleted) lists.
-//
-
- // attacklab: add sentinel to hack around khtml/safari bug:
- // http://bugs.webkit.org/show_bug.cgi?id=11231
- text += "~0";
-
- // Re-usable pattern to match any entirel ul or ol list:
-
- /*
- var whole_list = /
- ( // $1 = whole list
- ( // $2
- [ ]{0,3} // attacklab: g_tab_width - 1
- ([*+-]|\d+[.]) // $3 = first list item marker
- [ \t]+
- )
- [^\r]+?
- ( // $4
- ~0 // sentinel for workaround; should be $
- |
- \n{2,}
- (?=\S)
- (?! // Negative lookahead for another list item marker
- [ \t]*
- (?:[*+-]|\d+[.])[ \t]+
- )
- )
- )/g
- */
- var whole_list = /^(([ ]{0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(~0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm;
-
- if (g_list_level) {
- text = text.replace(whole_list,function(wholeMatch,m1,m2) {
- var list = m1;
- var list_type = (m2.search(/[*+-]/g)>-1) ? "ul" : "ol";
-
- // Turn double returns into triple returns, so that we can make a
- // paragraph for the last item in a list, if necessary:
- list = list.replace(/\n{2,}/g,"\n\n\n");;
- var result = _ProcessListItems(list);
-
- // Trim any trailing whitespace, to put the closing `</$list_type>`
- // up on the preceding line, to get it past the current stupid
- // HTML block parser. This is a hack to work around the terrible
- // hack that is the HTML block parser.
- result = result.replace(/\s+$/,"");
- result = "<"+list_type+">" + result + "</"+list_type+">\n";
- return result;
- });
- } else {
- whole_list = /(\n\n|^\n?)(([ ]{0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(~0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/g;
- text = text.replace(whole_list,function(wholeMatch,m1,m2,m3) {
- var runup = m1;
- var list = m2;
-
- var list_type = (m3.search(/[*+-]/g)>-1) ? "ul" : "ol";
- // Turn double returns into triple returns, so that we can make a
- // paragraph for the last item in a list, if necessary:
- var list = list.replace(/\n{2,}/g,"\n\n\n");;
- var result = _ProcessListItems(list);
- result = runup + "<"+list_type+">\n" + result + "</"+list_type+">\n";
- return result;
- });
- }
-
- // attacklab: strip sentinel
- text = text.replace(/~0/,"");
-
- return text;
-}
-
-_ProcessListItems = function(list_str) {
-//
-// Process the contents of a single ordered or unordered list, splitting it
-// into individual list items.
-//
- // The $g_list_level global keeps track of when we're inside a list.
- // Each time we enter a list, we increment it; when we leave a list,
- // we decrement. If it's zero, we're not in a list anymore.
- //
- // We do this because when we're not inside a list, we want to treat
- // something like this:
- //
- // I recommend upgrading to version
- // 8. Oops, now this line is treated
- // as a sub-list.
- //
- // As a single paragraph, despite the fact that the second line starts
- // with a digit-period-space sequence.
- //
- // Whereas when we're inside a list (or sub-list), that line will be
- // treated as the start of a sub-list. What a kludge, huh? This is
- // an aspect of Markdown's syntax that's hard to parse perfectly
- // without resorting to mind-reading. Perhaps the solution is to
- // change the syntax rules such that sub-lists must start with a
- // starting cardinal number; e.g. "1." or "a.".
-
- g_list_level++;
-
- // trim trailing blank lines:
- list_str = list_str.replace(/\n{2,}$/,"\n");
-
- // attacklab: add sentinel to emulate \z
- list_str += "~0";
-
- /*
- list_str = list_str.replace(/
- (\n)? // leading line = $1
- (^[ \t]*) // leading whitespace = $2
- ([*+-]|\d+[.]) [ \t]+ // list marker = $3
- ([^\r]+? // list item text = $4
- (\n{1,2}))
- (?= \n* (~0 | \2 ([*+-]|\d+[.]) [ \t]+))
- /gm, function(){...});
- */
- list_str = list_str.replace(/(\n)?(^[ \t]*)([*+-]|\d+[.])[ \t]+([^\r]+?(\n{1,2}))(?=\n*(~0|\2([*+-]|\d+[.])[ \t]+))/gm,
- function(wholeMatch,m1,m2,m3,m4){
- var item = m4;
- var leading_line = m1;
- var leading_space = m2;
-
- if (leading_line || (item.search(/\n{2,}/)>-1)) {
- item = _RunBlockGamut(_Outdent(item));
- }
- else {
- // Recursion for sub-lists:
- item = _DoLists(_Outdent(item));
- item = item.replace(/\n$/,""); // chomp(item)
- item = _RunSpanGamut(item);
- }
-
- return "<li>" + item + "</li>\n";
- }
- );
-
- // attacklab: strip sentinel
- list_str = list_str.replace(/~0/g,"");
-
- g_list_level--;
- return list_str;
-}
-
-
-var _DoCodeBlocks = function(text) {
-//
-// Process Markdown `<pre><code>` blocks.
-//
-
- /*
- text = text.replace(text,
- /(?:\n\n|^)
- ( // $1 = the code block -- one or more lines, starting with a space/tab
- (?:
- (?:[ ]{4}|\t) // Lines must start with a tab or a tab-width of spaces - attacklab: g_tab_width
- .*\n+
- )+
- )
- (\n*[ ]{0,3}[^ \t\n]|(?=~0)) // attacklab: g_tab_width
- /g,function(){...});
- */
-
- // attacklab: sentinel workarounds for lack of \A and \Z, safari\khtml bug
- text += "~0";
-
- text = text.replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=~0))/g,
- function(wholeMatch,m1,m2) {
- var codeblock = m1;
- var nextChar = m2;
-
- codeblock = _EncodeCode( _Outdent(codeblock));
- codeblock = _Detab(codeblock);
- codeblock = codeblock.replace(/^\n+/g,""); // trim leading newlines
- codeblock = codeblock.replace(/\n+$/g,""); // trim trailing whitespace
-
- codeblock = "<pre><code>" + codeblock + "\n</code></pre>";
-
- return hashBlock(codeblock) + nextChar;
- }
- );
-
- // attacklab: strip sentinel
- text = text.replace(/~0/,"");
-
- return text;
-}
-
-var hashBlock = function(text) {
- text = text.replace(/(^\n+|\n+$)/g,"");
- return "\n\n~K" + (g_html_blocks.push(text)-1) + "K\n\n";
-}
-
-
-var _DoCodeSpans = function(text) {
-//
-// * Backtick quotes are used for <code></code> spans.
-//
-// * You can use multiple backticks as the delimiters if you want to
-// include literal backticks in the code span. So, this input:
-//
-// Just type ``foo `bar` baz`` at the prompt.
-//
-// Will translate to:
-//
-// <p>Just type <code>foo `bar` baz</code> at the prompt.</p>
-//
-// There's no arbitrary limit to the number of backticks you
-// can use as delimters. If you need three consecutive backticks
-// in your code, use four for delimiters, etc.
-//
-// * You can use spaces to get literal backticks at the edges:
-//
-// ... type `` `bar` `` ...
-//
-// Turns to:
-//
-// ... type <code>`bar`</code> ...
-//
-
- /*
- text = text.replace(/
- (^|[^\\]) // Character before opening ` can't be a backslash
- (`+) // $2 = Opening run of `
- ( // $3 = The code block
- [^\r]*?
- [^`] // attacklab: work around lack of lookbehind
- )
- \2 // Matching closer
- (?!`)
- /gm, function(){...});
- */
-
- text = text.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,
- function(wholeMatch,m1,m2,m3,m4) {
- var c = m3;
- c = c.replace(/^([ \t]*)/g,""); // leading whitespace
- c = c.replace(/[ \t]*$/g,""); // trailing whitespace
- c = _EncodeCode(c);
- return m1+"<code>"+c+"</code>";
- });
-
- return text;
-}
-
-
-var _EncodeCode = function(text) {
-//
-// Encode/escape certain characters inside Markdown code runs.
-// The point is that in code, these characters are literals,
-// and lose their special Markdown meanings.
-//
- // Encode all ampersands; HTML entities are not
- // entities within a Markdown code span.
- text = text.replace(/&/g,"&");
-
- // Do the angle bracket song and dance:
- text = text.replace(/</g,"<");
- text = text.replace(/>/g,">");
-
- // Now, escape characters that are magic in Markdown:
- text = escapeCharacters(text,"\*_{}[]\\",false);
-
-// jj the line above breaks this:
-//---
-
-//* Item
-
-// 1. Subitem
-
-// special char: *
-//---
-
- return text;
-}
-
-
-var _DoItalicsAndBold = function(text) {
-
- // <strong> must go first:
- text = text.replace(/(\*\*|__)(?=\S)([^\r]*?\S[\*_]*)\1/g,
- "<strong>$2</strong>");
-
- text = text.replace(/(\*|_)(?=\S)([^\r]*?\S)\1/g,
- "<em>$2</em>");
-
- return text;
-}
-
-
-var _DoBlockQuotes = function(text) {
-
- /*
- text = text.replace(/
- ( // Wrap whole match in $1
- (
- ^[ \t]*>[ \t]? // '>' at the start of a line
- .+\n // rest of the first line
- (.+\n)* // subsequent consecutive lines
- \n* // blanks
- )+
- )
- /gm, function(){...});
- */
-
- text = text.replace(/((^[ \t]*>[ \t]?.+\n(.+\n)*\n*)+)/gm,
- function(wholeMatch,m1) {
- var bq = m1;
-
- // attacklab: hack around Konqueror 3.5.4 bug:
- // "----------bug".replace(/^-/g,"") == "bug"
-
- bq = bq.replace(/^[ \t]*>[ \t]?/gm,"~0"); // trim one level of quoting
-
- // attacklab: clean up hack
- bq = bq.replace(/~0/g,"");
-
- bq = bq.replace(/^[ \t]+$/gm,""); // trim whitespace-only lines
- bq = _RunBlockGamut(bq); // recurse
-
- bq = bq.replace(/(^|\n)/g,"$1 ");
- // These leading spaces screw with <pre> content, so we need to fix that:
- bq = bq.replace(
- /(\s*<pre>[^\r]+?<\/pre>)/gm,
- function(wholeMatch,m1) {
- var pre = m1;
- // attacklab: hack around Konqueror 3.5.4 bug:
- pre = pre.replace(/^ /mg,"~0");
- pre = pre.replace(/~0/g,"");
- return pre;
- });
-
- return hashBlock("<blockquote>\n" + bq + "\n</blockquote>");
- });
- return text;
-}
-
-
-var _FormParagraphs = function(text) {
-//
-// Params:
-// $text - string to process with html <p> tags
-//
-
- // Strip leading and trailing lines:
- text = text.replace(/^\n+/g,"");
- text = text.replace(/\n+$/g,"");
-
- var grafs = text.split(/\n{2,}/g);
- var grafsOut = new Array();
-
- //
- // Wrap <p> tags.
- //
- var end = grafs.length;
- for (var i=0; i<end; i++) {
- var str = grafs[i];
-
- // if this is an HTML marker, copy it
- if (str.search(/~K(\d+)K/g) >= 0) {
- grafsOut.push(str);
- }
- else if (str.search(/\S/) >= 0) {
- str = _RunSpanGamut(str);
- str = str.replace(/^([ \t]*)/g,"<p>");
- str += "</p>"
- grafsOut.push(str);
- }
-
- }
-
- //
- // Unhashify HTML blocks
- //
- end = grafsOut.length;
- for (var i=0; i<end; i++) {
- // if this is a marker for an html block...
- while (grafsOut[i].search(/~K(\d+)K/) >= 0) {
- var blockText = g_html_blocks[RegExp.$1];
- blockText = blockText.replace(/\$/g,"$$$$"); // Escape any dollar signs
- grafsOut[i] = grafsOut[i].replace(/~K\d+K/,blockText);
- }
- }
-
- return grafsOut.join("\n\n");
-}
-
-
-var _EncodeAmpsAndAngles = function(text) {
-// Smart processing for ampersands and angle brackets that need to be encoded.
-
- // Ampersand-encoding based entirely on Nat Irons's Amputator MT plugin:
- // http://bumppo.net/projects/amputator/
- text = text.replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g,"&");
-
- // Encode naked <'s
- text = text.replace(/<(?![a-z\/?\$!])/gi,"<");
-
- return text;
-}
-
-
-var _EncodeBackslashEscapes = function(text) {
-//
-// Parameter: String.
-// Returns: The string, with after processing the following backslash
-// escape sequences.
-//
-
- // attacklab: The polite way to do this is with the new
- // escapeCharacters() function:
- //
- // text = escapeCharacters(text,"\\",true);
- // text = escapeCharacters(text,"`*_{}[]()>#+-.!",true);
- //
- // ...but we're sidestepping its use of the (slow) RegExp constructor
- // as an optimization for Firefox. This function gets called a LOT.
-
- text = text.replace(/\\(\\)/g,escapeCharacters_callback);
- text = text.replace(/\\([`*_{}\[\]()>#+-.!])/g,escapeCharacters_callback);
- return text;
-}
-
-
-var _DoAutoLinks = function(text) {
-
- text = text.replace(/<((https?|ftp|dict):[^'">\s]+)>/gi,"<a href=\"$1\">$1</a>");
-
- // Email addresses: <address@domain.foo>
-
- /*
- text = text.replace(/
- <
- (?:mailto:)?
- (
- [-.\w]+
- \@
- [-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+
- )
- >
- /gi, _DoAutoLinks_callback());
- */
- text = text.replace(/<(?:mailto:)?([-.\w]+\@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,
- function(wholeMatch,m1) {
- return _EncodeEmailAddress( _UnescapeSpecialChars(m1) );
- }
- );
-
- return text;
-}
-
-
-var _EncodeEmailAddress = function(addr) {
-//
-// Input: an email address, e.g. "foo@example.com"
-//
-// Output: the email address as a mailto link, with each character
-// of the address encoded as either a decimal or hex entity, in
-// the hopes of foiling most address harvesting spam bots. E.g.:
-//
-// <a href="mailto:foo@e
-// xample.com">foo
-// @example.com</a>
-//
-// Based on a filter by Matthew Wickline, posted to the BBEdit-Talk
-// mailing list: <http://tinyurl.com/yu7ue>
-//
-
- // attacklab: why can't javascript speak hex?
- function char2hex(ch) {
- var hexDigits = '0123456789ABCDEF';
- var dec = ch.charCodeAt(0);
- return(hexDigits.charAt(dec>>4) + hexDigits.charAt(dec&15));
- }
-
- var encode = [
- function(ch){return "&#"+ch.charCodeAt(0)+";";},
- function(ch){return "&#x"+char2hex(ch)+";";},
- function(ch){return ch;}
- ];
-
- addr = "mailto:" + addr;
-
- addr = addr.replace(/./g, function(ch) {
- if (ch == "@") {
- // this *must* be encoded. I insist.
- ch = encode[Math.floor(Math.random()*2)](ch);
- } else if (ch !=":") {
- // leave ':' alone (to spot mailto: later)
- var r = Math.random();
- // roughly 10% raw, 45% hex, 45% dec
- ch = (
- r > .9 ? encode[2](ch) :
- r > .45 ? encode[1](ch) :
- encode[0](ch)
- );
- }
- return ch;
- });
-
- addr = "<a href=\"" + addr + "\">" + addr + "</a>";
- addr = addr.replace(/">.+:/g,"\">"); // strip the mailto: from the visible part
-
- return addr;
-}
-
-
-var _UnescapeSpecialChars = function(text) {
-//
-// Swap back in all the special characters we've hidden.
-//
- text = text.replace(/~E(\d+)E/g,
- function(wholeMatch,m1) {
- var charCodeToReplace = parseInt(m1);
- return String.fromCharCode(charCodeToReplace);
- }
- );
- return text;
-}
-
-
-var _Outdent = function(text) {
-//
-// Remove one level of line-leading tabs or spaces
-//
-
- // attacklab: hack around Konqueror 3.5.4 bug:
- // "----------bug".replace(/^-/g,"") == "bug"
-
- text = text.replace(/^(\t|[ ]{1,4})/gm,"~0"); // attacklab: g_tab_width
-
- // attacklab: clean up hack
- text = text.replace(/~0/g,"")
-
- return text;
-}
-
-var _Detab = function(text) {
-// attacklab: Detab's completely rewritten for speed.
-// In perl we could fix it by anchoring the regexp with \G.
-// In javascript we're less fortunate.
-
- // expand first n-1 tabs
- text = text.replace(/\t(?=\t)/g," "); // attacklab: g_tab_width
-
- // replace the nth with two sentinels
- text = text.replace(/\t/g,"~A~B");
-
- // use the sentinel to anchor our regex so it doesn't explode
- text = text.replace(/~B(.+?)~A/g,
- function(wholeMatch,m1,m2) {
- var leadingText = m1;
- var numSpaces = 4 - leadingText.length % 4; // attacklab: g_tab_width
-
- // there *must* be a better way to do this:
- for (var i=0; i<numSpaces; i++) leadingText+=" ";
-
- return leadingText;
- }
- );
-
- // clean up sentinels
- text = text.replace(/~A/g," "); // attacklab: g_tab_width
- text = text.replace(/~B/g,"");
-
- return text;
-}
-
-
-//
-// attacklab: Utility functions
-//
-
-
-var escapeCharacters = function(text, charsToEscape, afterBackslash) {
- // First we have to escape the escape characters so that
- // we can build a character class out of them
- var regexString = "([" + charsToEscape.replace(/([\[\]\\])/g,"\\$1") + "])";
-
- if (afterBackslash) {
- regexString = "\\\\" + regexString;
- }
-
- var regex = new RegExp(regexString,"g");
- text = text.replace(regex,escapeCharacters_callback);
-
- return text;
-}
-
-
-var escapeCharacters_callback = function(wholeMatch,m1) {
- var charCodeToEscape = m1.charCodeAt(0);
- return "~E"+charCodeToEscape+"E";
-}
-
-} // end of Attacklab.showdown.converter
-
-
-// Version 0.9 used the Showdown namespace instead of Attacklab.showdown
-// The old namespace is deprecated, but we'll support it for now:
-var Showdown = Attacklab.showdown;
-
-// If anyone's interested, tell the world that this file's been loaded
-if (Attacklab.fileLoaded) {
- Attacklab.fileLoaded("showdown.js");
-}
\ No newline at end of file
+++ /dev/null
-var Attacklab=Attacklab||{};Attacklab.wmdBase=function(){var y=top.Attacklab;var E=top.document;var s=top.RegExp;var l=top.navigator;y.Util={};y.Position={};y.Command={};y.Global={};var a=y.Util;var C=y.Position;var h=y.Command;var v=y.Global;v.isIE=/msie/.test(l.userAgent.toLowerCase());v.isIE_5or6=/msie 6/.test(l.userAgent.toLowerCase())||/msie 5/.test(l.userAgent.toLowerCase());v.isIE_7plus=v.isIE&&!v.isIE_5or6;v.isOpera=/opera/.test(l.userAgent.toLowerCase());v.isKonqueror=/konqueror/.test(l.userAgent.toLowerCase());var c="粗体 <strong> Ctrl-B";var f="斜体 <em> Ctrl-I";var z="超链接 <a> Ctrl-L";var u="引用 <blockquote> Ctrl-.";var e="代码 <pre><code> Ctrl-K";var d="图片 <img> Ctrl-G";var q="数字编号列表 <ol> Ctrl-O";var t="项目符号列表 <ul> Ctrl-U";var i="标题 <h1>/<h2> Ctrl-H";var p="水平线 <hr> Ctrl-R";var m="撤销 Ctrl-Z";var j="重做 Ctrl-Y";var B="<p style='margin-top: 0px'><b>输入图片地址</b></p><p>示例:<br />http://www.cnprog.com/images/temp.jpg \"我的截图\"</p>";var D="<p style='margin-top: 0px'><b>输入Web地址</b></p><p>示例:<br />http://www.cnprog.com/ \"我的网站\"</p>";var n='<div>或者上传本地图片:</div><input type="file" name="file-upload" id="file-upload" size="26" onchange="return ajaxFileUpload($(\'#image-url\'));"/><br><img id="loading" src="/media/images/indicator.gif" style="display:none;"/>';var b="http://";var g="http://";var o="images/";var A=500;var x=100;var k="http://wmd-editor.com/";var r="WMD website";var w="_blank";y.PanelCollection=function(){this.buttonBar=E.getElementById("wmd-button-bar");this.preview=E.getElementById("previewer");this.output=E.getElementById("wmd-output");this.input=E.getElementById("editor")};y.panels=undefined;y.ieCachedRange=null;y.ieRetardedClick=false;a.isVisible=function(F){if(window.getComputedStyle){return window.getComputedStyle(F,null).getPropertyValue("display")!=="none"}else{if(F.currentStyle){return F.currentStyle.display!=="none"}}};a.addEvent=function(G,F,H){if(G.attachEvent){G.attachEvent("on"+F,H)}else{G.addEventListener(F,H,false)}};a.removeEvent=function(G,F,H){if(G.detachEvent){G.detachEvent("on"+F,H)}else{G.removeEventListener(F,H,false)}};a.fixEolChars=function(F){F=F.replace(/\r\n/g,"\n");F=F.replace(/\r/g,"\n");return F};a.extendRegExp=function(H,J,G){if(J===null||J===undefined){J=""}if(G===null||G===undefined){G=""}var I=H.toString();var F;I=I.replace(/\/([gim]*)$/,"");F=s.$1;I=I.replace(/(^\/|\/$)/g,"");I=J+I+G;return new s(I,F)};a.createImage=function(F){var H=o+F;var G=E.createElement("img");G.className="wmd-button";G.src=H;return G};a.prompt=function(M,P,H){var I;var F;var K;var J=0;if(arguments.length==4){J=arguments[3]}if(P===undefined){P=""}var L=function(Q){var R=(Q.charCode||Q.keyCode);if(R===27){N(true)}};var N=function(Q){a.removeEvent(E.body,"keydown",L);var R=K.value;if(Q){R=null}else{R=R.replace("http://http://","http://");R=R.replace("http://https://","https://");R=R.replace("http://ftp://","ftp://");if(R.indexOf("http://")===-1&&R.indexOf("ftp://")===-1){R="http://"+R}}I.parentNode.removeChild(I);F.parentNode.removeChild(F);H(R);return false};var G=function(){F=E.createElement("div");F.className="wmd-prompt-background";style=F.style;style.position="absolute";style.top="0";style.zIndex="1000";if(v.isKonqueror){style.backgroundColor="transparent"}else{if(v.isIE){style.filter="alpha(opacity=50)"}else{style.opacity="0.5"}}var Q=C.getPageSize();style.height=Q[1]+"px";if(v.isIE){style.left=E.documentElement.scrollLeft;style.width=E.documentElement.clientWidth}else{style.left="0";style.width="100%"}E.body.appendChild(F)};var O=function(){I=E.createElement("div");I.className="wmd-prompt-dialog";I.style.padding="10px;";I.style.position="fixed";I.style.width="400px";I.style.zIndex="1001";var Q=E.createElement("div");Q.innerHTML=M;Q.style.padding="5px";I.appendChild(Q);var S=E.createElement("form");S.onsubmit=function(){return N(false)};style=S.style;style.padding="0";style.margin="0";style.cssFloat="left";style.width="100%";style.textAlign="center";style.position="relative";I.appendChild(S);K=E.createElement("input");if(J==1){K.id="image-url"}K.type="text";K.value=P;style=K.style;style.display="block";style.width="80%";style.marginLeft=style.marginRight="auto";S.appendChild(K);if(J==1){var R=E.createElement("div");R.innerHTML=n;R.style.padding="5px";S.appendChild(R)}var U=E.createElement("input");U.type="button";U.onclick=function(){return N(false)};U.value="OK";style=U.style;style.margin="10px";style.display="inline";style.width="7em";var T=E.createElement("input");T.type="button";T.onclick=function(){return N(true)};T.value="Cancel";style=T.style;style.margin="10px";style.display="inline";style.width="7em";if(/mac/.test(l.platform.toLowerCase())){S.appendChild(T);S.appendChild(U)}else{S.appendChild(U);S.appendChild(T)}a.addEvent(E.body,"keydown",L);I.style.top="50%";I.style.left="50%";I.style.display="block";if(v.isIE_5or6){I.style.position="absolute";I.style.top=E.documentElement.scrollTop+200+"px";I.style.left="50%"}E.body.appendChild(I);I.style.marginTop=-(C.getHeight(I)/2)+"px";I.style.marginLeft=-(C.getWidth(I)/2)+"px"};G();top.setTimeout(function(){O();var R=P.length;if(K.selectionStart!==undefined){K.selectionStart=0;K.selectionEnd=R}else{if(K.createTextRange){var Q=K.createTextRange();Q.collapse(false);Q.moveStart("character",-R);Q.moveEnd("character",R);Q.select()}}K.focus()},0)};C.getTop=function(H,G){var F=H.offsetTop;if(!G){while(H=H.offsetParent){F+=H.offsetTop}}return F};C.getHeight=function(F){return F.offsetHeight||F.scrollHeight};C.getWidth=function(F){return F.offsetWidth||F.scrollWidth};C.getPageSize=function(){var G,H;var F,K;if(self.innerHeight&&self.scrollMaxY){G=E.body.scrollWidth;H=self.innerHeight+self.scrollMaxY}else{if(E.body.scrollHeight>E.body.offsetHeight){G=E.body.scrollWidth;H=E.body.scrollHeight}else{G=E.body.offsetWidth;H=E.body.offsetHeight}}if(self.innerHeight){F=self.innerWidth;K=self.innerHeight}else{if(E.documentElement&&E.documentElement.clientHeight){F=E.documentElement.clientWidth;K=E.documentElement.clientHeight}else{if(E.body){F=E.body.clientWidth;K=E.body.clientHeight}}}var J=Math.max(G,F);var I=Math.max(H,K);return[J,I,F,K]};y.inputPoller=function(O,H){var F=this;var K=y.panels.input;var G;var I;var L;var J;this.tick=function(){if(!a.isVisible(K)){return}if(K.selectionStart||K.selectionStart===0){var Q=K.selectionStart;var P=K.selectionEnd;if(Q!=G||P!=I){G=Q;I=P;if(L!=K.value){L=K.value;return true}}}return false};var N=function(){if(!a.isVisible(K)){return}if(F.tick()){O()}};var M=function(){J=top.setInterval(N,H)};this.destroy=function(){top.clearInterval(J)};M()};y.undoManager=function(Q){var U=this;var O=[];var M=0;var L="none";var G;var R;var H;var K;var F=function(W,V){if(L!=W){L=W;if(!V){I()}}if(!v.isIE||L!="moving"){H=top.setTimeout(N,1)}else{K=null}};var N=function(){K=new y.TextareaState();R.tick();H=undefined};this.setCommandMode=function(){L="command";I();H=top.setTimeout(N,0)};this.canUndo=function(){return M>1};this.canRedo=function(){if(O[M+1]){return true}return false};this.undo=function(){if(U.canUndo()){if(G){G.restore();G=null}else{O[M]=new y.TextareaState();O[--M].restore();if(Q){Q()}}}L="none";y.panels.input.focus();N()};this.redo=function(){if(U.canRedo()){O[++M].restore();if(Q){Q()}}L="none";y.panels.input.focus();N()};var I=function(){var V=K||new y.TextareaState();if(!V){return false}if(L=="moving"){if(!G){G=V}return}if(G){if(O[M-1].text!=G.text){O[M++]=G}G=null}O[M++]=V;O[M+1]=null;if(Q){Q()}};var P=function(V){var X=false;if(V.ctrlKey||V.metaKey){var W=V.charCode||V.keyCode;var Y=String.fromCharCode(W);switch(Y){case"y":U.redo();X=true;break;case"z":if(!V.shiftKey){U.undo()}else{U.redo()}X=true;break}}if(X){if(V.preventDefault){V.preventDefault()}if(top.event){top.event.returnValue=false}return}};var T=function(V){if(!V.ctrlKey&&!V.metaKey){var W=V.keyCode;if((W>=33&&W<=40)||(W>=63232&&W<=63235)){F("moving")}else{if(W==8||W==46||W==127){F("deleting")}else{if(W==13){F("newlines")}else{if(W==27){F("escape")}else{if((W<16||W>20)&&W!=91){F("typing")}}}}}}};var J=function(){a.addEvent(y.panels.input,"keypress",function(W){if((W.ctrlKey||W.metaKey)&&(W.keyCode==89||W.keyCode==90)){W.preventDefault()}});var V=function(){if(v.isIE||(K&&K.text!=y.panels.input.value)){if(H==undefined){L="paste";I();N()}}};R=new y.inputPoller(V,x);a.addEvent(y.panels.input,"keydown",P);a.addEvent(y.panels.input,"keydown",T);a.addEvent(y.panels.input,"mousedown",function(){F("moving")});y.panels.input.onpaste=V;y.panels.input.ondrop=V};var S=function(){J();N();I()};this.destroy=function(){if(R){R.destroy()}};S()};y.editor=function(O){if(!O){O=function(){}}var L=y.panels.input;var I=0;var P=this;var K;var R;var G;var M;var N;var U=function(W){L.focus();if(W.textOp){if(N){N.setCommandMode()}var Y=new y.TextareaState();if(!Y){return}var Z=Y.getChunks();var V=function(){L.focus();if(Z){Y.setChunks(Z)}Y.restore();O()};var X=W.textOp(Z,V);if(!X){V()}}if(W.execute){W.execute(P)}};var S=function(){if(N){F(document.getElementById("wmd-undo-button"),N.canUndo());F(document.getElementById("wmd-redo-button"),N.canRedo())}};var F=function(V,X){var Y="0px";var Z="-20px";var W="-40px";if(X){V.style.backgroundPosition=V.XShift+" "+Y;V.onmouseover=function(){this.style.backgroundPosition=this.XShift+" "+W};V.onmouseout=function(){this.style.backgroundPosition=this.XShift+" "+Y};if(v.isIE){V.onmousedown=function(){y.ieRetardedClick=true;y.ieCachedRange=document.selection.createRange()}}if(!V.isHelp){V.onclick=function(){if(this.onmouseout){this.onmouseout()}U(this);return false}}}else{V.style.backgroundPosition=V.XShift+" "+Z;V.onmouseover=V.onmouseout=V.onclick=function(){}}};var J=function(){var Z=document.getElementById("wmd-button-bar");var W="0px";var Y="-20px";var ae="-40px";var ak=document.createElement("ul");ak.id="wmd-button-row";ak=Z.appendChild(ak);var ad=document.createElement("li");ad.className="wmd-button";ad.id="wmd-bold-button";ad.title=c;ad.XShift="0px";ad.textOp=h.doBold;F(ad,true);ak.appendChild(ad);var ac=document.createElement("li");ac.className="wmd-button";ac.id="wmd-italic-button";ac.title=f;ac.XShift="-20px";ac.textOp=h.doItalic;F(ac,true);ak.appendChild(ac);var ah=document.createElement("li");ah.className="wmd-spacer";ah.id="wmd-spacer1";ak.appendChild(ah);var ai=document.createElement("li");ai.className="wmd-button";ai.id="wmd-link-button";ai.title=z;ai.XShift="-40px";ai.textOp=function(ap,aq){return h.doLinkOrImage(ap,aq,false)};F(ai,true);ak.appendChild(ai);var al=document.createElement("li");al.className="wmd-button";al.id="wmd-quote-button";al.title=u;al.XShift="-60px";al.textOp=h.doBlockquote;F(al,true);ak.appendChild(al);var am=document.createElement("li");am.className="wmd-button";am.id="wmd-code-button";am.title=e;am.XShift="-80px";am.textOp=h.doCode;F(am,true);ak.appendChild(am);var aa=document.createElement("li");aa.className="wmd-button";aa.id="wmd-image-button";aa.title=d;aa.XShift="-100px";aa.textOp=function(ap,aq){return h.doLinkOrImage(ap,aq,true)};F(aa,true);ak.appendChild(aa);var ag=document.createElement("li");ag.className="wmd-spacer";ag.id="wmd-spacer2";ak.appendChild(ag);var ab=document.createElement("li");ab.className="wmd-button";ab.id="wmd-olist-button";ab.title=q;ab.XShift="-120px";ab.textOp=function(ap,aq){h.doList(ap,aq,true)};F(ab,true);ak.appendChild(ab);var ao=document.createElement("li");ao.className="wmd-button";ao.id="wmd-ulist-button";ao.title=t;ao.XShift="-140px";ao.textOp=function(ap,aq){h.doList(ap,aq,false)};F(ao,true);ak.appendChild(ao);var aj=document.createElement("li");aj.className="wmd-button";aj.id="wmd-heading-button";aj.title=i;aj.XShift="-160px";aj.textOp=h.doHeading;F(aj,true);ak.appendChild(aj);var X=document.createElement("li");X.className="wmd-button";X.id="wmd-hr-button";X.title=p;X.XShift="-180px";X.textOp=h.doHorizontalRule;F(X,true);ak.appendChild(X);var af=document.createElement("li");af.className="wmd-spacer";af.id="wmd-spacer3";ak.appendChild(af);var V=document.createElement("li");V.className="wmd-button";V.id="wmd-undo-button";V.title=m;V.XShift="-200px";V.execute=function(ap){ap.undo()};F(V,true);ak.appendChild(V);var an=document.createElement("li");an.className="wmd-button";an.id="wmd-redo-button";an.title=j;if(/win/.test(l.platform.toLowerCase())){an.title=j}else{an.title="重做 - Ctrl+Shift+Z"}an.XShift="-220px";an.execute=function(ap){ap.redo()};F(an,true);ak.appendChild(an);S()};var H=function(){if(/\?noundo/.test(E.location.href)){y.nativeUndo=true}if(!y.nativeUndo){N=new y.undoManager(function(){O();S()})}J();var W="keydown";if(v.isOpera){W="keypress"}a.addEvent(L,W,function(Y){if(Y.ctrlKey||Y.metaKey){var Z=Y.charCode||Y.keyCode;var X=String.fromCharCode(Z).toLowerCase();if(Z===46){X=""}if(Z===190){X="."}switch(X){case"b":U(document.getElementById("wmd-bold-button"));break;case"i":U(document.getElementById("wmd-italic-button"));break;case"l":U(document.getElementById("wmd-link-button"));break;case".":U(document.getElementById("wmd-quote-button"));break;case"k":U(document.getElementById("wmd-code-button"));break;case"g":U(document.getElementById("wmd-image-button"));break;case"o":U(document.getElementById("wmd-olist-button"));break;case"u":U(document.getElementById("wmd-ulist-button"));break;case"h":U(document.getElementById("wmd-heading-button"));break;case"r":U(document.getElementById("wmd-hr-button"));break;case"y":U(document.getElementById("wmd-redo-button"));break;case"z":if(Y.shiftKey){U(document.getElementById("wmd-redo-button"))}else{U(document.getElementById("wmd-undo-button"))}break;default:return}if(Y.preventDefault){Y.preventDefault()}if(top.event){top.event.returnValue=false}}});a.addEvent(L,"keyup",function(X){if(X.shiftKey&&!X.ctrlKey&&!X.metaKey){var Y=X.charCode||X.keyCode;if(Y===13){fakeButton={};fakeButton.textOp=h.doAutoindent;U(fakeButton)}}});if(L.form){var V=L.form.onsubmit;L.form.onsubmit=function(){Q();if(V){return V.apply(this,arguments)}}}};var Q=function(){if(y.showdown){var V=new y.showdown.converter()}var W=L.value;var X=function(){L.value=W};if(!/markdown/.test(y.wmd_env.output.toLowerCase())){if(V){L.value=V.makeHtml(W);top.setTimeout(X,0)}}return true};this.undo=function(){if(N){N.undo()}};this.redo=function(){if(N){N.redo()}};var T=function(){H()};this.destroy=function(){if(N){N.destroy()}if(G.parentNode){G.parentNode.removeChild(G)}if(L){L.style.marginTop=""}top.clearInterval(M)};T()};y.TextareaState=function(){var F=this;var G=y.panels.input;this.init=function(){if(!a.isVisible(G)){return}this.setInputAreaSelectionStartEnd();this.scrollTop=G.scrollTop;if(!this.text&&G.selectionStart||G.selectionStart===0){this.text=G.value}};this.setInputAreaSelection=function(){if(!a.isVisible(G)){return}if(G.selectionStart!==undefined&&!v.isOpera){G.focus();G.selectionStart=F.start;G.selectionEnd=F.end;G.scrollTop=F.scrollTop}else{if(E.selection){if(E.activeElement&&E.activeElement!==G){return}G.focus();var H=G.createTextRange();H.moveStart("character",-G.value.length);H.moveEnd("character",-G.value.length);H.moveEnd("character",F.end);H.moveStart("character",F.start);H.select()}}};this.setInputAreaSelectionStartEnd=function(){if(G.selectionStart||G.selectionStart===0){F.start=G.selectionStart;F.end=G.selectionEnd}else{if(E.selection){F.text=a.fixEolChars(G.value);var K;if(y.ieRetardedClick&&y.ieCachedRange){K=y.ieCachedRange;y.ieRetardedClick=false}else{K=E.selection.createRange()}var L=a.fixEolChars(K.text);var J="\x07";var I=J+L+J;K.text=I;var M=a.fixEolChars(G.value);K.moveStart("character",-I.length);K.text=L;F.start=M.indexOf(J);F.end=M.lastIndexOf(J)-J.length;var H=F.text.length-a.fixEolChars(G.value).length;if(H){K.moveStart("character",-L.length);while(H--){L+="\n";F.end+=1}K.text=L}this.setInputAreaSelection()}}};this.restore=function(){if(F.text!=undefined&&F.text!=G.value){G.value=F.text}this.setInputAreaSelection();G.scrollTop=F.scrollTop};this.getChunks=function(){var H=new y.Chunks();H.before=a.fixEolChars(F.text.substring(0,F.start));H.startTag="";H.selection=a.fixEolChars(F.text.substring(F.start,F.end));H.endTag="";H.after=a.fixEolChars(F.text.substring(F.end));H.scrollTop=F.scrollTop;return H};this.setChunks=function(H){H.before=H.before+H.startTag;H.after=H.endTag+H.after;if(v.isOpera){H.before=H.before.replace(/\n/g,"\r\n");H.selection=H.selection.replace(/\n/g,"\r\n");H.after=H.after.replace(/\n/g,"\r\n")}this.start=H.before.length;this.end=H.before.length+H.selection.length;this.text=H.before+H.selection+H.after;this.scrollTop=H.scrollTop};this.init()};y.Chunks=function(){};y.Chunks.prototype.findTags=function(G,I){var F=this;var H;if(G){H=a.extendRegExp(G,"","$");this.before=this.before.replace(H,function(J){F.startTag=F.startTag+J;return""});H=a.extendRegExp(G,"^","");this.selection=this.selection.replace(H,function(J){F.startTag=F.startTag+J;return""})}if(I){H=a.extendRegExp(I,"","$");this.selection=this.selection.replace(H,function(J){F.endTag=J+F.endTag;return""});H=a.extendRegExp(I,"^","");this.after=this.after.replace(H,function(J){F.endTag=J+F.endTag;return""})}};y.Chunks.prototype.trimWhitespace=function(F){this.selection=this.selection.replace(/^(\s*)/,"");if(!F){this.before+=s.$1}this.selection=this.selection.replace(/(\s*)$/,"");if(!F){this.after=s.$1+this.after}};y.Chunks.prototype.skipLines=function(H,G,F){if(H===undefined){H=1}if(G===undefined){G=1}H++;G++;var I;var J;this.selection=this.selection.replace(/(^\n*)/,"");this.startTag=this.startTag+s.$1;this.selection=this.selection.replace(/(\n*$)/,"");this.endTag=this.endTag+s.$1;this.startTag=this.startTag.replace(/(^\n*)/,"");this.before=this.before+s.$1;this.endTag=this.endTag.replace(/(\n*$)/,"");this.after=this.after+s.$1;if(this.before){I=J="";while(H--){I+="\\n?";J+="\n"}if(F){I="\\n*"}this.before=this.before.replace(new s(I+"$",""),J)}if(this.after){I=J="";while(G--){I+="\\n?";J+="\n"}if(F){I="\\n*"}this.after=this.after.replace(new s(I,""),J)}};h.prefixes="(?:\\s{4,}|\\s*>|\\s*-\\s+|\\s*\\d+\\.|=|\\+|-|_|\\*|#|\\s*\\[[^\n]]+\\]:)";h.unwrap=function(G){var F=new s("([^\\n])\\n(?!(\\n|"+h.prefixes+"))","g");G.selection=G.selection.replace(F,"$1 $2")};h.wrap=function(G,F){h.unwrap(G);var H=new s("(.{1,"+F+"})( +|$\\n?)","gm");G.selection=G.selection.replace(H,function(I,J){if(new s("^"+h.prefixes,"").test(I)){return I}return J+"\n"});G.selection=G.selection.replace(/\s+$/,"")};h.doBold=function(F,G){return h.doBorI(F,G,2,"strong text")};h.doItalic=function(F,G){return h.doBorI(F,G,1,"emphasized text")};h.doBorI=function(L,J,K,F){L.trimWhitespace();L.selection=L.selection.replace(/\n{2,}/g,"\n");L.before.search(/(\**$)/);var I=s.$1;L.after.search(/(^\**)/);var G=s.$1;var M=Math.min(I.length,G.length);if((M>=K)&&(M!=2||K!=1)){L.before=L.before.replace(s("[*]{"+K+"}$",""),"");L.after=L.after.replace(s("^[*]{"+K+"}",""),"")}else{if(!L.selection&&G){L.after=L.after.replace(/^([*_]*)/,"");L.before=L.before.replace(/(\s?)$/,"");var H=s.$1;L.before=L.before+G+H}else{if(!L.selection&&!G){L.selection=F}var N=K<=1?"*":"**";L.before=L.before+N;L.after=N+L.after}}return};h.stripLinkDefs=function(G,F){G=G.replace(/^[ ]{0,3}\[(\d+)\]:[ \t]*\n?[ \t]*<?(\S+?)>?[ \t]*\n?[ \t]*(?:(\n*)["(](.+?)[")][ \t]*)?(?:\n+|$)/gm,function(K,L,H,I,J){F[L]=K.replace(/\s*$/,"");if(I){F[L]=K.replace(/["(](.+?)[")]$/,"");return I+J}return""});return G};h.addLinkDef=function(M,I){var F=0;var H={};M.before=h.stripLinkDefs(M.before,H);M.selection=h.stripLinkDefs(M.selection,H);M.after=h.stripLinkDefs(M.after,H);var G="";var L=/(\[(?:\[[^\]]*\]|[^\[\]])*\][ ]?(?:\n[ ]*)?\[)(\d+)(\])/g;var K=function(O){F++;O=O.replace(/^[ ]{0,3}\[(\d+)\]:/," ["+F+"]:");G+="\n"+O};var J=function(P,Q,R,O){if(H[R]){K(H[R]);return Q+F+O}return P};M.before=M.before.replace(L,J);if(I){K(I)}else{M.selection=M.selection.replace(L,J)}var N=F;M.after=M.after.replace(L,J);if(M.after){M.after=M.after.replace(/\n*$/,"")}if(!M.after){M.selection=M.selection.replace(/\n*$/,"")}M.after+="\n\n"+G;return N};h.doLinkOrImage=function(F,G,I){F.trimWhitespace();F.findTags(/\s*!?\[/,/\][ ]?(?:\n[ ]*)?(\[.*?\])?/);if(F.endTag.length>1){F.startTag=F.startTag.replace(/!?\[/,"");F.endTag="";h.addLinkDef(F,null)}else{if(/\n\n/.test(F.selection)){h.addLinkDef(F,null);return}var H=function(L){if(L!==null){F.startTag=F.endTag="";var K=" [999]: "+L;var J=h.addLinkDef(F,K);F.startTag=I?"![":"[";F.endTag="]["+J+"]";if(!F.selection){if(I){F.selection="alt text"}else{F.selection="link text"}}}G()};if(I){a.prompt(B,b,H,1)}else{a.prompt(D,g,H)}return true}};a.makeAPI=function(){y.wmd={};y.wmd.editor=y.editor;y.wmd.previewManager=y.previewManager};a.startEditor=function(){if(y.wmd_env.autostart===false){a.makeAPI();return}var G;var F;var H=function(){y.panels=new y.PanelCollection();F=new y.previewManager();var I=F.refresh;G=new y.editor(I);F.refresh(true)};a.addEvent(top,"load",H)};y.previewManager=function(){var H=this;var V;var F;var N;var M;var S;var O;var I=3000;var P="delayed";var K=function(X,Y){a.addEvent(X,"input",Y);X.onpaste=Y;X.ondrop=Y;a.addEvent(X,"keypress",Y);a.addEvent(X,"keydown",Y);F=new y.inputPoller(Y,A)};var R=function(){var X=0;if(top.innerHeight){X=top.pageYOffset}else{if(E.documentElement&&E.documentElement.scrollTop){X=E.documentElement.scrollTop}else{if(E.body){X=E.body.scrollTop}}}return X};var L=function(){if(!y.panels.preview&&!y.panels.output){return}var Z=y.panels.input.value;if(Z&&Z==S){return}else{S=Z}var Y=new Date().getTime();if(!V&&y.showdown){V=new y.showdown.converter()}if(V){Z=V.makeHtml(Z)}var X=new Date().getTime();M=X-Y;G(Z);O=Z};var U=function(){if(N){top.clearTimeout(N);N=undefined}if(P!=="manual"){var X=0;if(P==="delayed"){X=M}if(X>I){X=I}N=top.setTimeout(L,X)}};var J=function(X){if(X.scrollHeight<=X.clientHeight){return 1}return X.scrollTop/(X.scrollHeight-X.clientHeight)};var W=function(){if(y.panels.preview){y.panels.preview.scrollTop=(y.panels.preview.scrollHeight-y.panels.preview.clientHeight)*J(y.panels.preview)}if(y.panels.output){y.panels.output.scrollTop=(y.panels.output.scrollHeight-y.panels.output.clientHeight)*J(y.panels.output)}};this.refresh=function(X){if(X){S="";L()}else{U()}};this.processingTime=function(){return M};this.output=function(){return O};this.setUpdateMode=function(X){P=X;H.refresh()};var Q=true;var G=function(aa){var X=C.getTop(y.panels.input)-R();if(y.panels.output){if(y.panels.output.value!==undefined){y.panels.output.value=aa;y.panels.output.readOnly=true}else{var Z=aa.replace(/&/g,"&");Z=Z.replace(/</g,"<");y.panels.output.innerHTML="<pre><code>"+Z+"</code></pre>"}}if(y.panels.preview){y.panels.preview.innerHTML=aa}W();if(Q){Q=false;return}var Y=C.getTop(y.panels.input)-R();if(v.isIE){top.setTimeout(function(){top.scrollBy(0,Y-X)},0)}else{top.scrollBy(0,Y-X)}};var T=function(){K(y.panels.input,U);L();if(y.panels.preview){y.panels.preview.scrollTop=0}if(y.panels.output){y.panels.output.scrollTop=0}};this.destroy=function(){if(F){F.destroy()}};T()};h.doAutoindent=function(F,G){F.before=F.before.replace(/(\n|^)[ ]{0,3}([*+-]|\d+[.])[ \t]*\n$/,"\n\n");F.before=F.before.replace(/(\n|^)[ ]{0,3}>[ \t]*\n$/,"\n\n");F.before=F.before.replace(/(\n|^)[ \t]+\n$/,"\n\n");if(/(\n|^)[ ]{0,3}([*+-]|\d+[.])[ \t]+.*\n$/.test(F.before)){if(h.doList){h.doList(F)}}if(/(\n|^)[ ]{0,3}>[ \t]+.*\n$/.test(F.before)){if(h.doBlockquote){h.doBlockquote(F)}}if(/(\n|^)(\t|[ ]{4,}).*\n$/.test(F.before)){if(h.doCode){h.doCode(F)}}};h.doBlockquote=function(F,G){F.selection=F.selection.replace(/^(\n*)([^\r]+?)(\n*)$/,function(L,K,J,I){F.before+=K;F.after=I+F.after;return J});F.before=F.before.replace(/(>[ \t]*)$/,function(J,I){F.selection=I+F.selection;return""});F.selection=F.selection.replace(/^(\s|>)+$/,"");F.selection=F.selection||"Blockquote";if(F.before){F.before=F.before.replace(/\n?$/,"\n")}if(F.after){F.after=F.after.replace(/^\n?/,"\n")}F.before=F.before.replace(/(((\n|^)(\n[ \t]*)*>(.+\n)*.*)+(\n[ \t]*)*$)/,function(I){F.startTag=I;return""});F.after=F.after.replace(/^(((\n|^)(\n[ \t]*)*>(.+\n)*.*)+(\n[ \t]*)*)/,function(I){F.endTag=I;return""});var H=function(J){var I=J?"> ":"";if(F.startTag){F.startTag=F.startTag.replace(/\n((>|\s)*)\n$/,function(L,K){return"\n"+K.replace(/^[ ]{0,3}>?[ \t]*$/gm,I)+"\n"})}if(F.endTag){F.endTag=F.endTag.replace(/^\n((>|\s)*)\n/,function(L,K){return"\n"+K.replace(/^[ ]{0,3}>?[ \t]*$/gm,I)+"\n"})}};if(/^(?![ ]{0,3}>)/m.test(F.selection)){h.wrap(F,y.wmd_env.lineLength-2);F.selection=F.selection.replace(/^/gm,"> ");H(true);F.skipLines()}else{F.selection=F.selection.replace(/^[ ]{0,3}> ?/gm,"");h.unwrap(F);H(false);if(!/^(\n|^)[ ]{0,3}>/.test(F.selection)&&F.startTag){F.startTag=F.startTag.replace(/\n{0,2}$/,"\n\n")}if(!/(\n|^)[ ]{0,3}>.*$/.test(F.selection)&&F.endTag){F.endTag=F.endTag.replace(/^\n{0,2}/,"\n\n")}}if(!/\n/.test(F.selection)){F.selection=F.selection.replace(/^(> *)/,function(I,J){F.startTag+=J;return""})}};h.doCode=function(F,G){var I=/\S[ ]*$/.test(F.before);var K=/^[ ]*\S/.test(F.after);if((!K&&!I)||/\n/.test(F.selection)){F.before=F.before.replace(/[ ]{4}$/,function(L){F.selection=L+F.selection;return""});var J=1;var H=1;if(/\n(\t|[ ]{4,}).*\n$/.test(F.before)){J=0}if(/^\n(\t|[ ]{4,})/.test(F.after)){H=0}F.skipLines(J,H);if(!F.selection){F.startTag=" ";F.selection="enter code here"}else{if(/^[ ]{0,3}\S/m.test(F.selection)){F.selection=F.selection.replace(/^/gm," ")}else{F.selection=F.selection.replace(/^[ ]{4}/gm,"")}}}else{F.trimWhitespace();F.findTags(/`/,/`/);if(!F.startTag&&!F.endTag){F.startTag=F.endTag="`";if(!F.selection){F.selection="enter code here"}}else{if(F.endTag&&!F.startTag){F.before+=F.endTag;F.endTag=""}else{F.startTag=F.endTag=""}}}};h.doList=function(Q,J,I){var S=/(\n|^)(([ ]{0,3}([*+-]|\d+[.])[ \t]+.*)(\n.+|\n{2,}([*+-].*|\d+[.])[ \t]+.*|\n{2,}[ \t]+\S.*)*)\n*$/;var R=/^\n*(([ ]{0,3}([*+-]|\d+[.])[ \t]+.*)(\n.+|\n{2,}([*+-].*|\d+[.])[ \t]+.*|\n{2,}[ \t]+\S.*)*)\n*/;var F="-";var N=1;var L=function(){var T;if(I){T=" "+N+". ";N++}else{T=" "+F+" "}return T};var M=function(T){if(I===undefined){I=/^\s*\d/.test(T)}T=T.replace(/^[ ]{0,3}([*+-]|\d+[.])\s/gm,function(U){return L()});return T};Q.findTags(/(\n|^)*[ ]{0,3}([*+-]|\d+[.])\s+/,null);if(Q.before&&!/\n$/.test(Q.before)&&!/^\n/.test(Q.startTag)){Q.before+=Q.startTag;Q.startTag=""}if(Q.startTag){var H=/\d+[.]/.test(Q.startTag);Q.startTag="";Q.selection=Q.selection.replace(/\n[ ]{4}/g,"\n");h.unwrap(Q);Q.skipLines();if(H){Q.after=Q.after.replace(R,M)}if(I==H){return}}var K=1;Q.before=Q.before.replace(S,function(T){if(/^\s*([*+-])/.test(T)){F=s.$1}K=/[^\n]\n\n[^\n]/.test(T)?1:0;return M(T)});if(!Q.selection){Q.selection="List item"}var O=L();var G=1;Q.after=Q.after.replace(R,function(T){G=/[^\n]\n\n[^\n]/.test(T)?1:0;return M(T)});Q.trimWhitespace(true);Q.skipLines(K,G,true);Q.startTag=O;var P=O.replace(/./g," ");h.wrap(Q,y.wmd_env.lineLength-P.length);Q.selection=Q.selection.replace(/\n/g,"\n"+P)};h.doHeading=function(H,I){H.selection=H.selection.replace(/\s+/g," ");H.selection=H.selection.replace(/(^\s+|\s+$)/g,"");if(!H.selection){H.startTag="## ";H.selection="Heading";H.endTag=" ##";return}var J=0;H.findTags(/#+[ ]*/,/[ ]*#+/);if(/#+/.test(H.startTag)){J=s.lastMatch.length}H.startTag=H.endTag="";H.findTags(null,/\s?(-+|=+)/);if(/=+/.test(H.endTag)){J=1}if(/-+/.test(H.endTag)){J=2}H.startTag=H.endTag="";H.skipLines(1,1);var K=J==0?2:J-1;if(K>0){var G=K>=2?"-":"=";var F=H.selection.length;if(F>y.wmd_env.lineLength){F=y.wmd_env.lineLength}H.endTag="\n";while(F--){H.endTag+=G}}};h.doHorizontalRule=function(F,G){F.startTag="----------\n";F.selection="";F.skipLines(2,1,true)}};Attacklab.wmd_env={};Attacklab.account_options={};Attacklab.wmd_defaults={version:1,output:"Markdown",lineLength:40,delayLoad:false};if(!Attacklab.wmd){Attacklab.wmd=function(){Attacklab.loadEnv=function(){var b=function(d){if(!d){return}for(var c in d){Attacklab.wmd_env[c]=d[c]}};b(Attacklab.wmd_defaults);b(Attacklab.account_options);b(top.wmd_options);Attacklab.full=true;var a="bold italic link blockquote code image ol ul heading hr";Attacklab.wmd_env.buttons=Attacklab.wmd_env.buttons||a};Attacklab.loadEnv()};Attacklab.wmd();Attacklab.wmdBase();Attacklab.Util.startEditor()};
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html>
-<html>
-
- <head>
- <title>Test WMD Page</title>
-
- <link rel="stylesheet" type="text/css" href="wmd.css" />
-
- <meta http-equiv="pragma" content="no-cache">
- <meta http-equiv="cache-control" content="no-cache">
- <meta http-equiv="pragma-directive" content="no-cache">
- <meta http-equiv="cache-directive" content="no-cache">
- <meta http-equiv="expires" content="0">
-
- <script type="text/javascript" src="jQuery/jquery-1.2.6.js"></script>
- <script type="text/javascript" src="showdown.js"></script>
- </head>
-
- <body>
- <div id="wmd-button-bar" class="wmd-panel"></div>
- <br/>
- <textarea id="editor" class="wmd-panel"></textarea>
- <br/>
- <div id="previewer" class="wmd-panel"></div>
- <br/>
- <div id="wmd-output" class="wmd-panel"></div>
-
- <p>To test that page up/down and arrow keys work, copy this above the WMD
- control.</p>
-
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
- Scroll Down!<br/>
-
- <script type="text/javascript" src="wmd.js"></script>
- </body>
-</html>
\ No newline at end of file
+++ /dev/null
-/*body
-{
- background-color: White
-}
-*/
-.wmd-panel
-{
-}
-
-#wmd-button-bar
-{
- background-color: White;
-}
-
-#wmd-input
-{
- height: 500px;
- background-color: Gainsboro;
- border: 1px solid DarkGray;
- margin-top: -20px;
-}
-
-#wmd-preview
-{
- background-color: LightSkyBlue;
-}
-
-#wmd-output
-{
- background-color: Pink;
-}
-
-#wmd-button-row
-{
- position: relative;
- margin-left: 5px;
- margin-right: 5px;
- margin-bottom: 5px;
- margin-top: 10px;
- padding: 0px;
- height: 20px;
-}
-
-.wmd-spacer
-{
- width: 1px;
- height: 20px;
- margin-left: 14px;
-
- position: absolute;
- background-color: Silver;
- display: inline-block;
- list-style: none;
-}
-
-.wmd-button
-{
- width: 20px;
- height: 20px;
- margin-left: 5px;
- margin-right: 5px;
-
- position: absolute;
- background-image: url(images/wmd-buttons.png);
- background-repeat: no-repeat;
- background-position: 0px 0px;
- display: inline-block;
- list-style: none;
-}
-
-.wmd-button > a
-{
- width: 20px;
- height: 20px;
- margin-left: 5px;
- margin-right: 5px;
-
- position: absolute;
- display: inline-block;
-}
-
-
-/* sprite button slicing style information */
-#wmd-button-bar #wmd-bold-button {left: 0px; background-position: 0px 0;}
-#wmd-button-bar #wmd-italic-button {left: 25px; background-position: -20px 0;}
-#wmd-button-bar #wmd-spacer1 {left: 50px;}
-#wmd-button-bar #wmd-link-button {left: 75px; background-position: -40px 0;}
-#wmd-button-bar #wmd-quote-button {left: 100px; background-position: -60px 0;}
-#wmd-button-bar #wmd-code-button {left: 125px; background-position: -80px 0;}
-#wmd-button-bar #wmd-image-button {left: 150px; background-position: -100px 0;}
-#wmd-button-bar #wmd-spacer2 {left: 175px;}
-#wmd-button-bar #wmd-olist-button {left: 200px; background-position: -120px 0;}
-#wmd-button-bar #wmd-ulist-button {left: 225px; background-position: -140px 0;}
-#wmd-button-bar #wmd-heading-button {left: 250px; background-position: -160px 0;}
-#wmd-button-bar #wmd-hr-button {left: 275px; background-position: -180px 0;}
-#wmd-button-bar #wmd-spacer3 {left: 300px;}
-#wmd-button-bar #wmd-undo-button {left: 325px; background-position: -200px 0;}
-#wmd-button-bar #wmd-redo-button {left: 350px; background-position: -220px 0;}
-#wmd-button-bar #wmd-help-button {right: 0px; background-position: -240px 0;}
-
-
-.wmd-prompt-background
-{
- background-color: Black;
-}
-
-.wmd-prompt-dialog
-{
- border: 1px solid #999999;
- background-color: #F5F5F5;
-}
-
-.wmd-prompt-dialog > div {
- font-size: 1em;
- font-family: arial, helvetica, sans-serif;
-}
-
-
-.wmd-prompt-dialog > form > input[type="text"] {
- border: 1px solid #999999;
- color: black;
-}
-
-.wmd-prompt-dialog > form > input[type="button"]{
- border: 1px solid #888888;
- font-family: trebuchet MS, helvetica, sans-serif;
- font-size: 1em;
- font-weight: bold;
-}
+++ /dev/null
-/*
-Ajax upload
-*/jQuery.extend({createUploadIframe:function(d,b){var a="jUploadFrame"+d;if(window.ActiveXObject){var c=document.createElement('<iframe id="'+a+'" name="'+a+'" />');if(typeof b=="boolean"){c.src="javascript:false"}else{if(typeof b=="string"){c.src=b}}}else{var c=document.createElement("iframe");c.id=a;c.name=a}c.style.position="absolute";c.style.top="-1000px";c.style.left="-1000px";document.body.appendChild(c);return c},createUploadForm:function(g,b){var e="jUploadForm"+g;var a="jUploadFile"+g;var d=$('<form action="" method="POST" name="'+e+'" id="'+e+'" enctype="multipart/form-data"></form>');var c=$("#"+b);var f=$(c).clone();$(c).attr("id",a);$(c).before(f);$(c).appendTo(d);$(d).css("position","absolute");$(d).css("top","-1200px");$(d).css("left","-1200px");$(d).appendTo("body");return d},ajaxFileUpload:function(k){k=jQuery.extend({},jQuery.ajaxSettings,k);var a=new Date().getTime();var b=jQuery.createUploadForm(a,k.fileElementId);var i=jQuery.createUploadIframe(a,k.secureuri);var h="jUploadFrame"+a;var j="jUploadForm"+a;if(k.global&&!jQuery.active++){jQuery.event.trigger("ajaxStart")}var c=false;var f={};if(k.global){jQuery.event.trigger("ajaxSend",[f,k])}var d=function(l){var p=document.getElementById(h);try{if(p.contentWindow){f.responseText=p.contentWindow.document.body?p.contentWindow.document.body.innerText:null;f.responseXML=p.contentWindow.document.XMLDocument?p.contentWindow.document.XMLDocument:p.contentWindow.document}else{if(p.contentDocument){f.responseText=p.contentDocument.document.body?p.contentDocument.document.body.textContent||document.body.innerText:null;f.responseXML=p.contentDocument.document.XMLDocument?p.contentDocument.document.XMLDocument:p.contentDocument.document}}}catch(o){jQuery.handleError(k,f,null,o)}if(f||l=="timeout"){c=true;var m;try{m=l!="timeout"?"success":"error";if(m!="error"){var n=jQuery.uploadHttpData(f,k.dataType);if(k.success){k.success(n,m)}if(k.global){jQuery.event.trigger("ajaxSuccess",[f,k])}}else{jQuery.handleError(k,f,m)}}catch(o){m="error";jQuery.handleError(k,f,m,o)}if(k.global){jQuery.event.trigger("ajaxComplete",[f,k])}if(k.global&&!--jQuery.active){jQuery.event.trigger("ajaxStop")}if(k.complete){k.complete(f,m)}jQuery(p).unbind();setTimeout(function(){try{$(p).remove();$(b).remove()}catch(q){jQuery.handleError(k,f,null,q)}},100);f=null}};if(k.timeout>0){setTimeout(function(){if(!c){d("timeout")}},k.timeout)}try{var b=$("#"+j);$(b).attr("action",k.url);$(b).attr("method","POST");$(b).attr("target",h);if(b.encoding){b.encoding="multipart/form-data"}else{b.enctype="multipart/form-data"}$(b).submit()}catch(g){jQuery.handleError(k,f,null,g)}if(window.attachEvent){document.getElementById(h).attachEvent("onload",d)}else{document.getElementById(h).addEventListener("load",d,false)}return{abort:function(){}}},uploadHttpData:function(r,type){var data=!type;data=type=="xml"||data?r.responseXML:r.responseText;if(type=="script"){jQuery.globalEval(data)}if(type=="json"){eval("data = "+data)}if(type=="html"){jQuery("<div>").html(data).evalScripts()}return data}});
-/*Upload call*/
-function ajaxFileUpload(imageUrl)
-{
- $("#loading").ajaxStart(function(){
- $(this).show();
- }).ajaxComplete(function(){
- $(this).hide();
- });
-
- $("#upload").ajaxStart(function(){
- $(this).hide();
- }).ajaxComplete(function(){
- $(this).show();
- });
-
- $.ajaxFileUpload
- (
- {
- url:'/upload/',
- secureuri:false,
- fileElementId:'file-upload',
- dataType: 'xml',
- success: function (data, status)
- {
- var fileURL = $(data).find('file_url').text();
- var error = $(data).find('error').text();
- if(error != ''){
- alert(error);
- }else{
- imageUrl.attr('value', fileURL);
- }
-
- },
- error: function (data, status, e)
- {
- alert(e);
- }
- }
- )
-
- return false;
-}
-
-var Attacklab = Attacklab || {};
-
-Attacklab.wmdBase = function(){
-
- // A few handy aliases for readability.
- var wmd = top.Attacklab;
- var doc = top.document;
- var re = top.RegExp;
- var nav = top.navigator;
-
- // Some namespaces.
- wmd.Util = {};
- wmd.Position = {};
- wmd.Command = {};
- wmd.Global = {};
-
- var util = wmd.Util;
- var position = wmd.Position;
- var command = wmd.Command;
- var global = wmd.Global;
-
-
- // Used to work around some browser bugs where we can't use feature testing.
- global.isIE = /msie/.test(nav.userAgent.toLowerCase());
- global.isIE_5or6 = /msie 6/.test(nav.userAgent.toLowerCase()) || /msie 5/.test(nav.userAgent.toLowerCase());
- global.isIE_7plus = global.isIE && !global.isIE_5or6;
- global.isOpera = /opera/.test(nav.userAgent.toLowerCase());
- global.isKonqueror = /konqueror/.test(nav.userAgent.toLowerCase());
-
- var toolbar_strong_label = $.i18n._('bold') + " <strong> Ctrl-B";
- var toolbar_emphasis_label = $.i18n._('italic') + " <em> Ctrl-I";
- var toolbar_hyperlink_label = $.i18n._('link') + " <a> Ctrl-L";
- var toolbar_blockquote_label = $.i18n._('quote') + " <blockquote> Ctrl-.";
- var toolbar_code_label = $.i18n._('preformatted text') + " <pre><code> Ctrl-K";
- var toolbar_image_label = $.i18n._('image') + " <img> Ctrl-G";
- var toolbar_numbered_label = $.i18n._('numbered list') + " <ol> Ctrl-O";
- var toolbar_bulleted_label = $.i18n._('bulleted list') + " <ul> Ctrl-U";
- var toolbar_heading_label = $.i18n._('heading') + " <h1>/<h2> Ctrl-H";
- var toolbar_horizontal_label = $.i18n._('horizontal bar') + " <hr> Ctrl-R";
- var toolbar_undo_label = $.i18n._('undo') + " Ctrl-Z";
- var toolbar_redo_label = $.i18n._('redo') + " Ctrl-Y";
-
- // -------------------------------------------------------------------
- // YOUR CHANGES GO HERE
- //
- // I've tried to localize the things you are likely to change to
- // this area.
- // -------------------------------------------------------------------
-
- // The text that appears on the upper part of the dialog box when
- // entering links.
- var imageDialogText = "<p style='margin-top: 0px'>" + $.i18n._('enter image url') + '</p>';
- var linkDialogText = "<p style='margin-top: 0px'>" + $.i18n._('enter url') + '</p>';
- var uploadImageHTML ="<div>" + $.i18n._('upload image') + "</div>" +
- "<input type=\"file\" name=\"file-upload\" id=\"file-upload\" size=\"26\" "+
- "onchange=\"return ajaxFileUpload($('#image-url'));\"/><br>" +
- "<img id=\"loading\" src=\"" + mediaUrl("media/images/indicator.gif") + "\" style=\"display:none;\"/>";
-
- // The default text that appears in the dialog input box when entering
- // links.
- var imageDefaultText = "http://";
- var linkDefaultText = "http://";
-
- // The location of your button images relative to the base directory.
- var imageDirectory = "images/";
-
- // Some intervals in ms. These can be adjusted to reduce the control's load.
- var previewPollInterval = 500;
- var pastePollInterval = 100;
-
- // The link and title for the help button
- var helpLink = "http://wmd-editor.com/";
- var helpHoverTitle = "WMD website";
- var helpTarget = "_blank";
-
- // -------------------------------------------------------------------
- // END OF YOUR CHANGES
- // -------------------------------------------------------------------
-
- // A collection of the important regions on the page.
- // Cached so we don't have to keep traversing the DOM.
- wmd.PanelCollection = function(){
- this.buttonBar = doc.getElementById("wmd-button-bar");
- this.preview = doc.getElementById("previewer");
- this.output = doc.getElementById("wmd-output");
- this.input = doc.getElementById("editor");
- };
-
- // This PanelCollection object can't be filled until after the page
- // has loaded.
- wmd.panels = undefined;
-
- // Internet explorer has problems with CSS sprite buttons that use HTML
- // lists. When you click on the background image "button", IE will
- // select the non-existent link text and discard the selection in the
- // textarea. The solution to this is to cache the textarea selection
- // on the button's mousedown event and set a flag. In the part of the
- // code where we need to grab the selection, we check for the flag
- // and, if it's set, use the cached area instead of querying the
- // textarea.
- //
- // This ONLY affects Internet Explorer (tested on versions 6, 7
- // and 8) and ONLY on button clicks. Keyboard shortcuts work
- // normally since the focus never leaves the textarea.
- wmd.ieCachedRange = null; // cached textarea selection
- wmd.ieRetardedClick = false; // flag
-
- // Returns true if the DOM element is visible, false if it's hidden.
- // Checks if display is anything other than none.
- util.isVisible = function (elem) {
-
- if (window.getComputedStyle) {
- // Most browsers
- return window.getComputedStyle(elem, null).getPropertyValue("display") !== "none";
- }
- else if (elem.currentStyle) {
- // IE
- return elem.currentStyle.display !== "none";
- }
- };
-
-
- // Adds a listener callback to a DOM element which is fired on a specified
- // event.
- util.addEvent = function(elem, event, listener){
- if (elem.attachEvent) {
- // IE only. The "on" is mandatory.
- elem.attachEvent("on" + event, listener);
- }
- else {
- // Other browsers.
- elem.addEventListener(event, listener, false);
- }
- };
-
-
- // Removes a listener callback from a DOM element which is fired on a specified
- // event.
- util.removeEvent = function(elem, event, listener){
- if (elem.detachEvent) {
- // IE only. The "on" is mandatory.
- elem.detachEvent("on" + event, listener);
- }
- else {
- // Other browsers.
- elem.removeEventListener(event, listener, false);
- }
- };
-
- // Converts \r\n and \r to \n.
- util.fixEolChars = function(text){
- text = text.replace(/\r\n/g, "\n");
- text = text.replace(/\r/g, "\n");
- return text;
- };
-
- // Extends a regular expression. Returns a new RegExp
- // using pre + regex + post as the expression.
- // Used in a few functions where we have a base
- // expression and we want to pre- or append some
- // conditions to it (e.g. adding "$" to the end).
- // The flags are unchanged.
- //
- // regex is a RegExp, pre and post are strings.
- util.extendRegExp = function(regex, pre, post){
-
- if (pre === null || pre === undefined)
- {
- pre = "";
- }
- if(post === null || post === undefined)
- {
- post = "";
- }
-
- var pattern = regex.toString();
- var flags;
-
- // Replace the flags with empty space and store them.
- pattern = pattern.replace(/\/([gim]*)$/, "");
- flags = re.$1;
-
- // Remove the slash delimiters on the regular expression.
- pattern = pattern.replace(/(^\/|\/$)/g, "");
- pattern = pre + pattern + post;
-
- return new re(pattern, flags);
- };
-
-
- // Sets the image for a button passed to the WMD editor.
- // Returns a new element with the image attached.
- // Adds several style properties to the image.
- util.createImage = function(img){
-
- var imgPath = imageDirectory + img;
-
- var elem = doc.createElement("img");
- elem.className = "wmd-button";
- elem.src = imgPath;
-
- return elem;
- };
-
-
- // This simulates a modal dialog box and asks for the URL when you
- // click the hyperlink or image buttons.
- //
- // text: The html for the input box.
- // defaultInputText: The default value that appears in the input box.
- // makeLinkMarkdown: The function which is executed when the prompt is dismissed, either via OK or Cancel
- util.prompt = function(text, defaultInputText, makeLinkMarkdown){
-
- // These variables need to be declared at this level since they are used
- // in multiple functions.
- var dialog; // The dialog box.
- var background; // The background beind the dialog box.
- var input; // The text box where you enter the hyperlink.
- var type = 0;
- // The dialog box type(0: Link, 1: Image)
- if(arguments.length == 4){
- type = arguments[3];
- }
-
- if (defaultInputText === undefined) {
- defaultInputText = "";
- }
-
- // Used as a keydown event handler. Esc dismisses the prompt.
- // Key code 27 is ESC.
- var checkEscape = function(key){
- var code = (key.charCode || key.keyCode);
- if (code === 27) {
- close(true);
- }
- };
-
- // Dismisses the hyperlink input box.
- // isCancel is true if we don't care about the input text.
- // isCancel is false if we are going to keep the text.
- var close = function(isCancel){
- util.removeEvent(doc.body, "keydown", checkEscape);
- var text = input.value;
-
- if (isCancel){
- text = null;
- }
- else{
- // Fixes common pasting errors.
- text = text.replace('http://http://', 'http://');
- text = text.replace('http://https://', 'https://');
- text = text.replace('http://ftp://', 'ftp://');
-
- if (text.indexOf('http://') === -1 && text.indexOf('ftp://') === -1) {
- text = 'http://' + text;
- }
- }
-
- dialog.parentNode.removeChild(dialog);
- background.parentNode.removeChild(background);
- makeLinkMarkdown(text);
- return false;
- };
-
- // Creates the background behind the hyperlink text entry box.
- // Most of this has been moved to CSS but the div creation and
- // browser-specific hacks remain here.
- var createBackground = function(){
-
- background = doc.createElement("div");
- background.className = "wmd-prompt-background";
- style = background.style;
- style.position = "absolute";
- style.top = "0";
-
- style.zIndex = "1000";
-
- // Some versions of Konqueror don't support transparent colors
- // so we make the whole window transparent.
- //
- // Is this necessary on modern konqueror browsers?
- if (global.isKonqueror){
- style.backgroundColor = "transparent";
- }
- else if (global.isIE){
- style.filter = "alpha(opacity=50)";
- }
- else {
- style.opacity = "0.5";
- }
-
- var pageSize = position.getPageSize();
- style.height = pageSize[1] + "px";
-
- if(global.isIE){
- style.left = doc.documentElement.scrollLeft;
- style.width = doc.documentElement.clientWidth;
- }
- else {
- style.left = "0";
- style.width = "100%";
- }
-
- doc.body.appendChild(background);
- };
-
- // Create the text input box form/window.
- var createDialog = function(){
-
- // The main dialog box.
- dialog = doc.createElement("div");
- dialog.className = "wmd-prompt-dialog";
- dialog.style.padding = "10px;";
- dialog.style.position = "fixed";
- dialog.style.width = "400px";
- dialog.style.zIndex = "1001";
-
- // The dialog text.
- var question = doc.createElement("div");
- question.innerHTML = text;
- question.style.padding = "5px";
- dialog.appendChild(question);
-
- // The web form container for the text box and buttons.
- var form = doc.createElement("form");
- form.onsubmit = function(){ return close(false); };
- style = form.style;
- style.padding = "0";
- style.margin = "0";
- style.cssFloat = "left";
- style.width = "100%";
- style.textAlign = "center";
- style.position = "relative";
- dialog.appendChild(form);
-
- // The input text box
- input = doc.createElement("input");
- if(type == 1){
- input.id = "image-url";
- }
- input.type = "text";
- input.value = defaultInputText;
- style = input.style;
- style.display = "block";
- style.width = "80%";
- style.marginLeft = style.marginRight = "auto";
- form.appendChild(input);
-
- // The upload file input
- if(type == 1){
- var upload = doc.createElement("div");
- upload.innerHTML = uploadImageHTML;
- upload.style.padding = "5px";
- form.appendChild(upload);
- }
-
- // The ok button
- var okButton = doc.createElement("input");
- okButton.type = "button";
- okButton.onclick = function(){ return close(false); };
- okButton.value = "OK";
- style = okButton.style;
- style.margin = "10px";
- style.display = "inline";
- style.width = "7em";
-
-
- // The cancel button
- var cancelButton = doc.createElement("input");
- cancelButton.type = "button";
- cancelButton.onclick = function(){ return close(true); };
- cancelButton.value = "Cancel";
- style = cancelButton.style;
- style.margin = "10px";
- style.display = "inline";
- style.width = "7em";
-
- // The order of these buttons is different on macs.
- if (/mac/.test(nav.platform.toLowerCase())) {
- form.appendChild(cancelButton);
- form.appendChild(okButton);
- }
- else {
- form.appendChild(okButton);
- form.appendChild(cancelButton);
- }
-
- util.addEvent(doc.body, "keydown", checkEscape);
- dialog.style.top = "50%";
- dialog.style.left = "50%";
- dialog.style.display = "block";
- if(global.isIE_5or6){
- dialog.style.position = "absolute";
- dialog.style.top = doc.documentElement.scrollTop + 200 + "px";
- dialog.style.left = "50%";
- }
- doc.body.appendChild(dialog);
-
- // This has to be done AFTER adding the dialog to the form if you
- // want it to be centered.
- dialog.style.marginTop = -(position.getHeight(dialog) / 2) + "px";
- dialog.style.marginLeft = -(position.getWidth(dialog) / 2) + "px";
-
- };
-
- createBackground();
-
- // Why is this in a zero-length timeout?
- // Is it working around a browser bug?
- top.setTimeout(function(){
-
- createDialog();
-
- var defTextLen = defaultInputText.length;
- if (input.selectionStart !== undefined) {
- input.selectionStart = 0;
- input.selectionEnd = defTextLen;
- }
- else if (input.createTextRange) {
- var range = input.createTextRange();
- range.collapse(false);
- range.moveStart("character", -defTextLen);
- range.moveEnd("character", defTextLen);
- range.select();
- }
-
- input.focus();
- }, 0);
- };
-
-
- // UNFINISHED
- // The assignment in the while loop makes jslint cranky.
- // I'll change it to a better loop later.
- position.getTop = function(elem, isInner){
- var result = elem.offsetTop;
- if (!isInner) {
- while (elem.offsetParent) {
- elem = elem.offsetParent;
- result += elem.offsetTop;
- }
- }
- return result;
- };
-
- position.getHeight = function (elem) {
- return elem.offsetHeight || elem.scrollHeight;
- };
-
- position.getWidth = function (elem) {
- return elem.offsetWidth || elem.scrollWidth;
- };
-
- position.getPageSize = function(){
-
- var scrollWidth, scrollHeight;
- var innerWidth, innerHeight;
-
- // It's not very clear which blocks work with which browsers.
- if(self.innerHeight && self.scrollMaxY){
- scrollWidth = doc.body.scrollWidth;
- scrollHeight = self.innerHeight + self.scrollMaxY;
- }
- else if(doc.body.scrollHeight > doc.body.offsetHeight){
- scrollWidth = doc.body.scrollWidth;
- scrollHeight = doc.body.scrollHeight;
- }
- else{
- scrollWidth = doc.body.offsetWidth;
- scrollHeight = doc.body.offsetHeight;
- }
-
- if(self.innerHeight){
- // Non-IE browser
- innerWidth = self.innerWidth;
- innerHeight = self.innerHeight;
- }
- else if(doc.documentElement && doc.documentElement.clientHeight){
- // Some versions of IE (IE 6 w/ a DOCTYPE declaration)
- innerWidth = doc.documentElement.clientWidth;
- innerHeight = doc.documentElement.clientHeight;
- }
- else if(doc.body){
- // Other versions of IE
- innerWidth = doc.body.clientWidth;
- innerHeight = doc.body.clientHeight;
- }
-
- var maxWidth = Math.max(scrollWidth, innerWidth);
- var maxHeight = Math.max(scrollHeight, innerHeight);
- return [maxWidth, maxHeight, innerWidth, innerHeight];
- };
-
- // Watches the input textarea, polling at an interval and runs
- // a callback function if anything has changed.
- wmd.inputPoller = function(callback, interval){
-
- var pollerObj = this;
- var inputArea = wmd.panels.input;
-
- // Stored start, end and text. Used to see if there are changes to the input.
- var lastStart;
- var lastEnd;
- var markdown;
-
- var killHandle; // Used to cancel monitoring on destruction.
- // Checks to see if anything has changed in the textarea.
- // If so, it runs the callback.
- this.tick = function(){
-
- if (!util.isVisible(inputArea)) {
- return;
- }
-
- // Update the selection start and end, text.
- if (inputArea.selectionStart || inputArea.selectionStart === 0) {
- var start = inputArea.selectionStart;
- var end = inputArea.selectionEnd;
- if (start != lastStart || end != lastEnd) {
- lastStart = start;
- lastEnd = end;
-
- if (markdown != inputArea.value) {
- markdown = inputArea.value;
- return true;
- }
- }
- }
- return false;
- };
-
-
- var doTickCallback = function(){
-
- if (!util.isVisible(inputArea)) {
- return;
- }
-
- // If anything has changed, call the function.
- if (pollerObj.tick()) {
- callback();
- }
- };
-
- // Set how often we poll the textarea for changes.
- var assignInterval = function(){
- // previewPollInterval is set at the top of the namespace.
- killHandle = top.setInterval(doTickCallback, interval);
- };
-
- this.destroy = function(){
- top.clearInterval(killHandle);
- };
-
- assignInterval();
- };
-
- // Handles pushing and popping TextareaStates for undo/redo commands.
- // I should rename the stack variables to list.
- wmd.undoManager = function(callback){
-
- var undoObj = this;
- var undoStack = []; // A stack of undo states
- var stackPtr = 0; // The index of the current state
- var mode = "none";
- var lastState; // The last state
- var poller;
- var timer; // The setTimeout handle for cancelling the timer
- var inputStateObj;
-
- // Set the mode for later logic steps.
- var setMode = function(newMode, noSave){
-
- if (mode != newMode) {
- mode = newMode;
- if (!noSave) {
- saveState();
- }
- }
-
- if (!global.isIE || mode != "moving") {
- timer = top.setTimeout(refreshState, 1);
- }
- else {
- inputStateObj = null;
- }
- };
-
- var refreshState = function(){
- inputStateObj = new wmd.TextareaState();
- poller.tick();
- timer = undefined;
- };
-
- this.setCommandMode = function(){
- mode = "command";
- saveState();
- timer = top.setTimeout(refreshState, 0);
- };
-
- this.canUndo = function(){
- return stackPtr > 1;
- };
-
- this.canRedo = function(){
- if (undoStack[stackPtr + 1]) {
- return true;
- }
- return false;
- };
-
- // Removes the last state and restores it.
- this.undo = function(){
-
- if (undoObj.canUndo()) {
- if (lastState) {
- // What about setting state -1 to null or checking for undefined?
- lastState.restore();
- lastState = null;
- }
- else {
- undoStack[stackPtr] = new wmd.TextareaState();
- undoStack[--stackPtr].restore();
-
- if (callback) {
- callback();
- }
- }
- }
-
- mode = "none";
- wmd.panels.input.focus();
- refreshState();
- };
-
- // Redo an action.
- this.redo = function(){
-
- if (undoObj.canRedo()) {
-
- undoStack[++stackPtr].restore();
-
- if (callback) {
- callback();
- }
- }
-
- mode = "none";
- wmd.panels.input.focus();
- refreshState();
- };
-
- // Push the input area state to the stack.
- var saveState = function(){
-
- var currState = inputStateObj || new wmd.TextareaState();
-
- if (!currState) {
- return false;
- }
- if (mode == "moving") {
- if (!lastState) {
- lastState = currState;
- }
- return;
- }
- if (lastState) {
- if (undoStack[stackPtr - 1].text != lastState.text) {
- undoStack[stackPtr++] = lastState;
- }
- lastState = null;
- }
- undoStack[stackPtr++] = currState;
- undoStack[stackPtr + 1] = null;
- if (callback) {
- callback();
- }
- };
-
- var handleCtrlYZ = function(event){
-
- var handled = false;
-
- if (event.ctrlKey || event.metaKey) {
-
- // IE and Opera do not support charCode.
- var keyCode = event.charCode || event.keyCode;
- var keyCodeChar = String.fromCharCode(keyCode);
-
- switch (keyCodeChar) {
-
- case "y":
- undoObj.redo();
- handled = true;
- break;
-
- case "z":
- if (!event.shiftKey) {
- undoObj.undo();
- }
- else {
- undoObj.redo();
- }
- handled = true;
- break;
- }
- }
-
- if (handled) {
- if (event.preventDefault) {
- event.preventDefault();
- }
- if (top.event) {
- top.event.returnValue = false;
- }
- return;
- }
- };
-
- // Set the mode depending on what is going on in the input area.
- var handleModeChange = function(event){
-
- if (!event.ctrlKey && !event.metaKey) {
-
- var keyCode = event.keyCode;
-
- if ((keyCode >= 33 && keyCode <= 40) || (keyCode >= 63232 && keyCode <= 63235)) {
- // 33 - 40: page up/dn and arrow keys
- // 63232 - 63235: page up/dn and arrow keys on safari
- setMode("moving");
- }
- else if (keyCode == 8 || keyCode == 46 || keyCode == 127) {
- // 8: backspace
- // 46: delete
- // 127: delete
- setMode("deleting");
- }
- else if (keyCode == 13) {
- // 13: Enter
- setMode("newlines");
- }
- else if (keyCode == 27) {
- // 27: escape
- setMode("escape");
- }
- else if ((keyCode < 16 || keyCode > 20) && keyCode != 91) {
- // 16-20 are shift, etc.
- // 91: left window key
- // I think this might be a little messed up since there are
- // a lot of nonprinting keys above 20.
- setMode("typing");
- }
- }
- };
-
- var setEventHandlers = function(){
-
- util.addEvent(wmd.panels.input, "keypress", function(event){
- // keyCode 89: y
- // keyCode 90: z
- if ((event.ctrlKey || event.metaKey) && (event.keyCode == 89 || event.keyCode == 90)) {
- event.preventDefault();
- }
- });
-
- var handlePaste = function(){
- if (global.isIE || (inputStateObj && inputStateObj.text != wmd.panels.input.value)) {
- if (timer === undefined) {
- mode = "paste";
- saveState();
- refreshState();
- }
- }
- };
-
- // pastePollInterval is specified at the beginning of this namespace.
- poller = new wmd.inputPoller(handlePaste, pastePollInterval);
-
- util.addEvent(wmd.panels.input, "keydown", handleCtrlYZ);
- util.addEvent(wmd.panels.input, "keydown", handleModeChange);
-
- util.addEvent(wmd.panels.input, "mousedown", function(){
- setMode("moving");
- });
- wmd.panels.input.onpaste = handlePaste;
- wmd.panels.input.ondrop = handlePaste;
- };
-
- var init = function(){
- setEventHandlers();
- refreshState();
- saveState();
- };
-
- this.destroy = function(){
- if (poller) {
- poller.destroy();
- }
- };
-
- init();
- };
-
- // I think my understanding of how the buttons and callbacks are stored in the array is incomplete.
- wmd.editor = function(previewRefreshCallback){
-
- if (!previewRefreshCallback) {
- previewRefreshCallback = function(){};
- }
-
- var inputBox = wmd.panels.input;
-
- var offsetHeight = 0;
-
- var editObj = this;
-
- var mainDiv;
- var mainSpan;
-
- var div; // This name is pretty ambiguous. I should rename this.
-
- // Used to cancel recurring events from setInterval.
- var creationHandle;
-
- var undoMgr; // The undo manager
-
- // Perform the button's action.
- var doClick = function(button){
-
- inputBox.focus();
-
- if (button.textOp) {
-
- if (undoMgr) {
- undoMgr.setCommandMode();
- }
-
- var state = new wmd.TextareaState();
-
- if (!state) {
- return;
- }
-
- var chunks = state.getChunks();
-
- // Some commands launch a "modal" prompt dialog. Javascript
- // can't really make a modal dialog box and the WMD code
- // will continue to execute while the dialog is displayed.
- // This prevents the dialog pattern I'm used to and means
- // I can't do something like this:
- //
- // var link = CreateLinkDialog();
- // makeMarkdownLink(link);
- //
- // Instead of this straightforward method of handling a
- // dialog I have to pass any code which would execute
- // after the dialog is dismissed (e.g. link creation)
- // in a function parameter.
- //
- // Yes this is awkward and I think it sucks, but there's
- // no real workaround. Only the image and link code
- // create dialogs and require the function pointers.
- var fixupInputArea = function(){
-
- inputBox.focus();
-
- if (chunks) {
- state.setChunks(chunks);
- }
-
- state.restore();
- previewRefreshCallback();
- };
-
- var noCleanup = button.textOp(chunks, fixupInputArea);
-
- if(!noCleanup) {
- fixupInputArea();
- }
-
- }
-
- if (button.execute) {
- button.execute(editObj);
- }
- };
-
- var setUndoRedoButtonStates = function(){
- if(undoMgr){
- setupButton(document.getElementById("wmd-undo-button"), undoMgr.canUndo());
- setupButton(document.getElementById("wmd-redo-button"), undoMgr.canRedo());
- }
- };
-
- var setupButton = function(button, isEnabled) {
-
- var normalYShift = "0px";
- var disabledYShift = "-20px";
- var highlightYShift = "-40px";
-
- if(isEnabled) {
- button.style.backgroundPosition = button.XShift + " " + normalYShift;
- button.onmouseover = function(){
- this.style.backgroundPosition = this.XShift + " " + highlightYShift;
- };
-
- button.onmouseout = function(){
- this.style.backgroundPosition = this.XShift + " " + normalYShift;
- };
-
- // IE tries to select the background image "button" text (it's
- // implemented in a list item) so we have to cache the selection
- // on mousedown.
- if(global.isIE) {
- button.onmousedown = function() {
- wmd.ieRetardedClick = true;
- wmd.ieCachedRange = document.selection.createRange();
- };
- }
-
- if (!button.isHelp)
- {
- button.onclick = function() {
- if (this.onmouseout) {
- this.onmouseout();
- }
- doClick(this);
- return false;
- };
- }
- }
- else {
- button.style.backgroundPosition = button.XShift + " " + disabledYShift;
- button.onmouseover = button.onmouseout = button.onclick = function(){};
- }
- };
-
- var makeSpritedButtonRow = function(){
- var buttonBar = document.getElementById("wmd-button-bar");
- var normalYShift = "0px";
- var disabledYShift = "-20px";
- var highlightYShift = "-40px";
-
- var buttonRow = document.createElement("ul");
- buttonRow.id = "wmd-button-row";
- buttonRow = buttonBar.appendChild(buttonRow);
-
-
- var boldButton = document.createElement("li");
- boldButton.className = "wmd-button";
- boldButton.id = "wmd-bold-button";
- boldButton.title = toolbar_strong_label;
- boldButton.XShift = "0px";
- boldButton.textOp = command.doBold;
- setupButton(boldButton, true);
- buttonRow.appendChild(boldButton);
-
- var italicButton = document.createElement("li");
- italicButton.className = "wmd-button";
- italicButton.id = "wmd-italic-button";
- italicButton.title = toolbar_emphasis_label;
- italicButton.XShift = "-20px";
- italicButton.textOp = command.doItalic;
- setupButton(italicButton, true);
- buttonRow.appendChild(italicButton);
-
- var spacer1 = document.createElement("li");
- spacer1.className = "wmd-spacer";
- spacer1.id = "wmd-spacer1";
- buttonRow.appendChild(spacer1);
-
- var linkButton = document.createElement("li");
- linkButton.className = "wmd-button";
- linkButton.id = "wmd-link-button";
- linkButton.title = toolbar_hyperlink_label;
- linkButton.XShift = "-40px";
- linkButton.textOp = function(chunk, postProcessing){
- return command.doLinkOrImage(chunk, postProcessing, false);
- };
- setupButton(linkButton, true);
- buttonRow.appendChild(linkButton);
-
- var quoteButton = document.createElement("li");
- quoteButton.className = "wmd-button";
- quoteButton.id = "wmd-quote-button";
- quoteButton.title = toolbar_blockquote_label;
- quoteButton.XShift = "-60px";
- quoteButton.textOp = command.doBlockquote;
- setupButton(quoteButton, true);
- buttonRow.appendChild(quoteButton);
-
- var codeButton = document.createElement("li");
- codeButton.className = "wmd-button";
- codeButton.id = "wmd-code-button";
- codeButton.title = toolbar_code_label;
- codeButton.XShift = "-80px";
- codeButton.textOp = command.doCode;
- setupButton(codeButton, true);
- buttonRow.appendChild(codeButton);
-
- var imageButton = document.createElement("li");
- imageButton.className = "wmd-button";
- imageButton.id = "wmd-image-button";
- imageButton.title = toolbar_image_label;
- imageButton.XShift = "-100px";
- imageButton.textOp = function(chunk, postProcessing){
- return command.doLinkOrImage(chunk, postProcessing, true);
- };
- setupButton(imageButton, true);
- buttonRow.appendChild(imageButton);
-
- var spacer2 = document.createElement("li");
- spacer2.className = "wmd-spacer";
- spacer2.id = "wmd-spacer2";
- buttonRow.appendChild(spacer2);
-
- var olistButton = document.createElement("li");
- olistButton.className = "wmd-button";
- olistButton.id = "wmd-olist-button";
- olistButton.title = toolbar_numbered_label;
- olistButton.XShift = "-120px";
- olistButton.textOp = function(chunk, postProcessing){
- command.doList(chunk, postProcessing, true);
- };
- setupButton(olistButton, true);
- buttonRow.appendChild(olistButton);
-
- var ulistButton = document.createElement("li");
- ulistButton.className = "wmd-button";
- ulistButton.id = "wmd-ulist-button";
- ulistButton.title = toolbar_bulleted_label;
- ulistButton.XShift = "-140px";
- ulistButton.textOp = function(chunk, postProcessing){
- command.doList(chunk, postProcessing, false);
- };
- setupButton(ulistButton, true);
- buttonRow.appendChild(ulistButton);
-
- var headingButton = document.createElement("li");
- headingButton.className = "wmd-button";
- headingButton.id = "wmd-heading-button";
- headingButton.title = toolbar_heading_label;
- headingButton.XShift = "-160px";
- headingButton.textOp = command.doHeading;
- setupButton(headingButton, true);
- buttonRow.appendChild(headingButton);
-
- var hrButton = document.createElement("li");
- hrButton.className = "wmd-button";
- hrButton.id = "wmd-hr-button";
- hrButton.title = toolbar_horizontal_label;
- hrButton.XShift = "-180px";
- hrButton.textOp = command.doHorizontalRule;
- setupButton(hrButton, true);
- buttonRow.appendChild(hrButton);
-
- var spacer3 = document.createElement("li");
- spacer3.className = "wmd-spacer";
- spacer3.id = "wmd-spacer3";
- buttonRow.appendChild(spacer3);
-
- var undoButton = document.createElement("li");
- undoButton.className = "wmd-button";
- undoButton.id = "wmd-undo-button";
- undoButton.title = toolbar_undo_label;
- undoButton.XShift = "-200px";
- undoButton.execute = function(manager){
- manager.undo();
- };
- setupButton(undoButton, true);
- buttonRow.appendChild(undoButton);
-
- var redoButton = document.createElement("li");
- redoButton.className = "wmd-button";
- redoButton.id = "wmd-redo-button";
- redoButton.title = toolbar_redo_label;
- if (/win/.test(nav.platform.toLowerCase())) {
- redoButton.title = toolbar_redo_label;
- }
- else {
- // mac and other non-Windows platforms
- redoButton.title = $.i18n._('redo') + " - Ctrl+Shift+Z";
- }
- redoButton.XShift = "-220px";
- redoButton.execute = function(manager){
- manager.redo();
- };
- setupButton(redoButton, true);
- buttonRow.appendChild(redoButton);
- /*
- var helpButton = document.createElement("li");
- helpButton.className = "wmd-button";
- helpButton.id = "wmd-help-button";
- helpButton.XShift = "-240px";
- helpButton.isHelp = true;
-
- var helpAnchor = document.createElement("a");
- helpAnchor.href = helpLink;
- helpAnchor.target = helpTarget
- helpAnchor.title = helpHoverTitle;
- helpButton.appendChild(helpAnchor);
-
- setupButton(helpButton, true);
- buttonRow.appendChild(helpButton);
- */
- setUndoRedoButtonStates();
- };
-
- var setupEditor = function(){
-
- if (/\?noundo/.test(doc.location.href)) {
- wmd.nativeUndo = true;
- }
-
- if (!wmd.nativeUndo) {
- undoMgr = new wmd.undoManager(function(){
- previewRefreshCallback();
- setUndoRedoButtonStates();
- });
- }
-
- makeSpritedButtonRow();
-
-
- var keyEvent = "keydown";
- if (global.isOpera) {
- keyEvent = "keypress";
- }
-
- util.addEvent(inputBox, keyEvent, function(key){
-
- // Check to see if we have a button key and, if so execute the callback.
- if (key.ctrlKey || key.metaKey) {
-
- var keyCode = key.charCode || key.keyCode;
- var keyCodeStr = String.fromCharCode(keyCode).toLowerCase();
-
- // Bugfix for messed up DEL and .
- if (keyCode === 46) {
- keyCodeStr = "";
- }
- if (keyCode === 190) {
- keyCodeStr = ".";
- }
-
- switch(keyCodeStr) {
- case "b":
- doClick(document.getElementById("wmd-bold-button"));
- break;
- case "i":
- doClick(document.getElementById("wmd-italic-button"));
- break;
- case "l":
- doClick(document.getElementById("wmd-link-button"));
- break;
- case ".":
- doClick(document.getElementById("wmd-quote-button"));
- break;
- case "k":
- doClick(document.getElementById("wmd-code-button"));
- break;
- case "g":
- doClick(document.getElementById("wmd-image-button"));
- break;
- case "o":
- doClick(document.getElementById("wmd-olist-button"));
- break;
- case "u":
- doClick(document.getElementById("wmd-ulist-button"));
- break;
- case "h":
- doClick(document.getElementById("wmd-heading-button"));
- break;
- case "r":
- doClick(document.getElementById("wmd-hr-button"));
- break;
- case "y":
- doClick(document.getElementById("wmd-redo-button"));
- break;
- case "z":
- if(key.shiftKey) {
- doClick(document.getElementById("wmd-redo-button"));
- }
- else {
- doClick(document.getElementById("wmd-undo-button"));
- }
- break;
- default:
- return;
- }
-
-
- if (key.preventDefault) {
- key.preventDefault();
- }
-
- if (top.event) {
- top.event.returnValue = false;
- }
- }
- });
-
- // Auto-indent on shift-enter
- util.addEvent(inputBox, "keyup", function(key){
- if (key.shiftKey && !key.ctrlKey && !key.metaKey) {
- var keyCode = key.charCode || key.keyCode;
- // Character 13 is Enter
- if (keyCode === 13) {
- fakeButton = {};
- fakeButton.textOp = command.doAutoindent;
- doClick(fakeButton);
- }
- }
- });
-
- if (inputBox.form) {
- var submitCallback = inputBox.form.onsubmit;
- inputBox.form.onsubmit = function(){
- convertToHtml();
- if (submitCallback) {
- return submitCallback.apply(this, arguments);
- }
- };
- }
- };
-
- // Convert the contents of the input textarea to HTML in the output/preview panels.
- var convertToHtml = function(){
-
- if (wmd.showdown) {
- var markdownConverter = new wmd.showdown.converter();
- }
- var text = inputBox.value;
-
- var callback = function(){
- inputBox.value = text;
- };
-
- if (!/markdown/.test(wmd.wmd_env.output.toLowerCase())) {
- if (markdownConverter) {
- inputBox.value = markdownConverter.makeHtml(text);
- top.setTimeout(callback, 0);
- }
- }
- return true;
- };
-
-
- this.undo = function(){
- if (undoMgr) {
- undoMgr.undo();
- }
- };
-
- this.redo = function(){
- if (undoMgr) {
- undoMgr.redo();
- }
- };
-
- // This is pretty useless. The setupEditor function contents
- // should just be copied here.
- var init = function(){
- setupEditor();
- };
-
- this.destroy = function(){
- if (undoMgr) {
- undoMgr.destroy();
- }
- if (div.parentNode) {
- div.parentNode.removeChild(div);
- }
- if (inputBox) {
- inputBox.style.marginTop = "";
- }
- top.clearInterval(creationHandle);
- };
-
- init();
- };
-
- // The input textarea state/contents.
- // This is used to implement undo/redo by the undo manager.
- wmd.TextareaState = function(){
-
- // Aliases
- var stateObj = this;
- var inputArea = wmd.panels.input;
-
- this.init = function() {
-
- if (!util.isVisible(inputArea)) {
- return;
- }
-
- this.setInputAreaSelectionStartEnd();
- this.scrollTop = inputArea.scrollTop;
- if (!this.text && inputArea.selectionStart || inputArea.selectionStart === 0) {
- this.text = inputArea.value;
- }
-
- };
-
- // Sets the selected text in the input box after we've performed an
- // operation.
- this.setInputAreaSelection = function(){
-
- if (!util.isVisible(inputArea)) {
- return;
- }
-
- if (inputArea.selectionStart !== undefined && !global.isOpera) {
-
- inputArea.focus();
- inputArea.selectionStart = stateObj.start;
- inputArea.selectionEnd = stateObj.end;
- inputArea.scrollTop = stateObj.scrollTop;
- }
- else if (doc.selection) {
-
- if (doc.activeElement && doc.activeElement !== inputArea) {
- return;
- }
-
- inputArea.focus();
- var range = inputArea.createTextRange();
- range.moveStart("character", -inputArea.value.length);
- range.moveEnd("character", -inputArea.value.length);
- range.moveEnd("character", stateObj.end);
- range.moveStart("character", stateObj.start);
- range.select();
- }
- };
-
- this.setInputAreaSelectionStartEnd = function(){
-
- if (inputArea.selectionStart || inputArea.selectionStart === 0) {
-
- stateObj.start = inputArea.selectionStart;
- stateObj.end = inputArea.selectionEnd;
- }
- else if (doc.selection) {
-
- stateObj.text = util.fixEolChars(inputArea.value);
-
- // IE loses the selection in the textarea when buttons are
- // clicked. On IE we cache the selection and set a flag
- // which we check for here.
- var range;
- if(wmd.ieRetardedClick && wmd.ieCachedRange) {
- range = wmd.ieCachedRange;
- wmd.ieRetardedClick = false;
- }
- else {
- range = doc.selection.createRange();
- }
-
- var fixedRange = util.fixEolChars(range.text);
- var marker = "\x07";
- var markedRange = marker + fixedRange + marker;
- range.text = markedRange;
- var inputText = util.fixEolChars(inputArea.value);
-
- range.moveStart("character", -markedRange.length);
- range.text = fixedRange;
-
- stateObj.start = inputText.indexOf(marker);
- stateObj.end = inputText.lastIndexOf(marker) - marker.length;
-
- var len = stateObj.text.length - util.fixEolChars(inputArea.value).length;
-
- if (len) {
- range.moveStart("character", -fixedRange.length);
- while (len--) {
- fixedRange += "\n";
- stateObj.end += 1;
- }
- range.text = fixedRange;
- }
-
- this.setInputAreaSelection();
- }
- };
-
- // Restore this state into the input area.
- this.restore = function(){
-
- if (stateObj.text !== undefined && stateObj.text != inputArea.value) {
- inputArea.value = stateObj.text;
- }
- this.setInputAreaSelection();
- inputArea.scrollTop = stateObj.scrollTop;
- };
-
- // Gets a collection of HTML chunks from the inptut textarea.
- this.getChunks = function(){
-
- var chunk = new wmd.Chunks();
-
- chunk.before = util.fixEolChars(stateObj.text.substring(0, stateObj.start));
- chunk.startTag = "";
- chunk.selection = util.fixEolChars(stateObj.text.substring(stateObj.start, stateObj.end));
- chunk.endTag = "";
- chunk.after = util.fixEolChars(stateObj.text.substring(stateObj.end));
- chunk.scrollTop = stateObj.scrollTop;
-
- return chunk;
- };
-
- // Sets the TextareaState properties given a chunk of markdown.
- this.setChunks = function(chunk){
-
- chunk.before = chunk.before + chunk.startTag;
- chunk.after = chunk.endTag + chunk.after;
-
- if (global.isOpera) {
- chunk.before = chunk.before.replace(/\n/g, "\r\n");
- chunk.selection = chunk.selection.replace(/\n/g, "\r\n");
- chunk.after = chunk.after.replace(/\n/g, "\r\n");
- }
-
- this.start = chunk.before.length;
- this.end = chunk.before.length + chunk.selection.length;
- this.text = chunk.before + chunk.selection + chunk.after;
- this.scrollTop = chunk.scrollTop;
- };
-
- this.init();
- };
-
- // before: contains all the text in the input box BEFORE the selection.
- // after: contains all the text in the input box AFTER the selection.
- wmd.Chunks = function(){
- };
-
- // startRegex: a regular expression to find the start tag
- // endRegex: a regular expresssion to find the end tag
- wmd.Chunks.prototype.findTags = function(startRegex, endRegex){
-
- var chunkObj = this;
- var regex;
-
- if (startRegex) {
-
- regex = util.extendRegExp(startRegex, "", "$");
-
- this.before = this.before.replace(regex,
- function(match){
- chunkObj.startTag = chunkObj.startTag + match;
- return "";
- });
-
- regex = util.extendRegExp(startRegex, "^", "");
-
- this.selection = this.selection.replace(regex,
- function(match){
- chunkObj.startTag = chunkObj.startTag + match;
- return "";
- });
- }
-
- if (endRegex) {
-
- regex = util.extendRegExp(endRegex, "", "$");
-
- this.selection = this.selection.replace(regex,
- function(match){
- chunkObj.endTag = match + chunkObj.endTag;
- return "";
- });
-
- regex = util.extendRegExp(endRegex, "^", "");
-
- this.after = this.after.replace(regex,
- function(match){
- chunkObj.endTag = match + chunkObj.endTag;
- return "";
- });
- }
- };
-
- // If remove is false, the whitespace is transferred
- // to the before/after regions.
- //
- // If remove is true, the whitespace disappears.
- wmd.Chunks.prototype.trimWhitespace = function(remove){
-
- this.selection = this.selection.replace(/^(\s*)/, "");
-
- if (!remove) {
- this.before += re.$1;
- }
-
- this.selection = this.selection.replace(/(\s*)$/, "");
-
- if (!remove) {
- this.after = re.$1 + this.after;
- }
- };
-
-
- wmd.Chunks.prototype.skipLines = function(nLinesBefore, nLinesAfter, findExtraNewlines){
-
- if (nLinesBefore === undefined) {
- nLinesBefore = 1;
- }
-
- if (nLinesAfter === undefined) {
- nLinesAfter = 1;
- }
-
- nLinesBefore++;
- nLinesAfter++;
-
- var regexText;
- var replacementText;
-
- this.selection = this.selection.replace(/(^\n*)/, "");
- this.startTag = this.startTag + re.$1;
- this.selection = this.selection.replace(/(\n*$)/, "");
- this.endTag = this.endTag + re.$1;
- this.startTag = this.startTag.replace(/(^\n*)/, "");
- this.before = this.before + re.$1;
- this.endTag = this.endTag.replace(/(\n*$)/, "");
- this.after = this.after + re.$1;
-
- if (this.before) {
-
- regexText = replacementText = "";
-
- while (nLinesBefore--) {
- regexText += "\\n?";
- replacementText += "\n";
- }
-
- if (findExtraNewlines) {
- regexText = "\\n*";
- }
- this.before = this.before.replace(new re(regexText + "$", ""), replacementText);
- }
-
- if (this.after) {
-
- regexText = replacementText = "";
-
- while (nLinesAfter--) {
- regexText += "\\n?";
- replacementText += "\n";
- }
- if (findExtraNewlines) {
- regexText = "\\n*";
- }
-
- this.after = this.after.replace(new re(regexText, ""), replacementText);
- }
- };
-
- // The markdown symbols - 4 spaces = code, > = blockquote, etc.
- command.prefixes = "(?:\\s{4,}|\\s*>|\\s*-\\s+|\\s*\\d+\\.|=|\\+|-|_|\\*|#|\\s*\\[[^\n]]+\\]:)";
-
- // Remove markdown symbols from the chunk selection.
- command.unwrap = function(chunk){
- var txt = new re("([^\\n])\\n(?!(\\n|" + command.prefixes + "))", "g");
- chunk.selection = chunk.selection.replace(txt, "$1 $2");
- };
-
- command.wrap = function(chunk, len){
- command.unwrap(chunk);
- var regex = new re("(.{1," + len + "})( +|$\\n?)", "gm");
-
- chunk.selection = chunk.selection.replace(regex, function(line, marked){
- if (new re("^" + command.prefixes, "").test(line)) {
- return line;
- }
- return marked + "\n";
- });
-
- chunk.selection = chunk.selection.replace(/\s+$/, "");
- };
-
- command.doBold = function(chunk, postProcessing){
- return command.doBorI(chunk, postProcessing, 2, "strong text");
- };
-
- command.doItalic = function(chunk, postProcessing){
- return command.doBorI(chunk, postProcessing, 1, "emphasized text");
- };
-
- // chunk: The selected region that will be enclosed with */**
- // nStars: 1 for italics, 2 for bold
- // insertText: If you just click the button without highlighting text, this gets inserted
- command.doBorI = function(chunk, postProcessing, nStars, insertText){
-
- // Get rid of whitespace and fixup newlines.
- chunk.trimWhitespace();
- chunk.selection = chunk.selection.replace(/\n{2,}/g, "\n");
-
- // Look for stars before and after. Is the chunk already marked up?
- chunk.before.search(/(\**$)/);
- var starsBefore = re.$1;
-
- chunk.after.search(/(^\**)/);
- var starsAfter = re.$1;
-
- var prevStars = Math.min(starsBefore.length, starsAfter.length);
-
- // Remove stars if we have to since the button acts as a toggle.
- if ((prevStars >= nStars) && (prevStars != 2 || nStars != 1)) {
- chunk.before = chunk.before.replace(re("[*]{" + nStars + "}$", ""), "");
- chunk.after = chunk.after.replace(re("^[*]{" + nStars + "}", ""), "");
- }
- else if (!chunk.selection && starsAfter) {
- // It's not really clear why this code is necessary. It just moves
- // some arbitrary stuff around.
- chunk.after = chunk.after.replace(/^([*_]*)/, "");
- chunk.before = chunk.before.replace(/(\s?)$/, "");
- var whitespace = re.$1;
- chunk.before = chunk.before + starsAfter + whitespace;
- }
- else {
-
- // In most cases, if you don't have any selected text and click the button
- // you'll get a selected, marked up region with the default text inserted.
- if (!chunk.selection && !starsAfter) {
- chunk.selection = insertText;
- }
-
- // Add the true markup.
- var markup = nStars <= 1 ? "*" : "**"; // shouldn't the test be = ?
- chunk.before = chunk.before + markup;
- chunk.after = markup + chunk.after;
- }
-
- return;
- };
-
- command.stripLinkDefs = function(text, defsToAdd){
-
- text = text.replace(/^[ ]{0,3}\[(\d+)\]:[ \t]*\n?[ \t]*<?(\S+?)>?[ \t]*\n?[ \t]*(?:(\n*)["(](.+?)[")][ \t]*)?(?:\n+|$)/gm,
- function(totalMatch, id, link, newlines, title){
- defsToAdd[id] = totalMatch.replace(/\s*$/, "");
- if (newlines) {
- // Strip the title and return that separately.
- defsToAdd[id] = totalMatch.replace(/["(](.+?)[")]$/, "");
- return newlines + title;
- }
- return "";
- });
-
- return text;
- };
-
- command.addLinkDef = function(chunk, linkDef){
-
- var refNumber = 0; // The current reference number
- var defsToAdd = {}; //
- // Start with a clean slate by removing all previous link definitions.
- chunk.before = command.stripLinkDefs(chunk.before, defsToAdd);
- chunk.selection = command.stripLinkDefs(chunk.selection, defsToAdd);
- chunk.after = command.stripLinkDefs(chunk.after, defsToAdd);
-
- var defs = "";
- var regex = /(\[(?:\[[^\]]*\]|[^\[\]])*\][ ]?(?:\n[ ]*)?\[)(\d+)(\])/g;
-
- var addDefNumber = function(def){
- refNumber++;
- def = def.replace(/^[ ]{0,3}\[(\d+)\]:/, " [" + refNumber + "]:");
- defs += "\n" + def;
- };
-
- var getLink = function(wholeMatch, link, id, end){
-
- if (defsToAdd[id]) {
- addDefNumber(defsToAdd[id]);
- return link + refNumber + end;
-
- }
- return wholeMatch;
- };
-
- chunk.before = chunk.before.replace(regex, getLink);
-
- if (linkDef) {
- addDefNumber(linkDef);
- }
- else {
- chunk.selection = chunk.selection.replace(regex, getLink);
- }
-
- var refOut = refNumber;
-
- chunk.after = chunk.after.replace(regex, getLink);
-
- if (chunk.after) {
- chunk.after = chunk.after.replace(/\n*$/, "");
- }
- if (!chunk.after) {
- chunk.selection = chunk.selection.replace(/\n*$/, "");
- }
-
- chunk.after += "\n\n" + defs;
-
- return refOut;
- };
-
- command.doLinkOrImage = function(chunk, postProcessing, isImage){
-
- chunk.trimWhitespace();
- chunk.findTags(/\s*!?\[/, /\][ ]?(?:\n[ ]*)?(\[.*?\])?/);
-
- if (chunk.endTag.length > 1) {
-
- chunk.startTag = chunk.startTag.replace(/!?\[/, "");
- chunk.endTag = "";
- command.addLinkDef(chunk, null);
-
- }
- else {
-
- if (/\n\n/.test(chunk.selection)) {
- command.addLinkDef(chunk, null);
- return;
- }
-
- // The function to be executed when you enter a link and press OK or Cancel.
- // Marks up the link and adds the ref.
- var makeLinkMarkdown = function(link){
-
- if (link !== null) {
-
- chunk.startTag = chunk.endTag = "";
- var linkDef = " [999]: " + link;
-
- var num = command.addLinkDef(chunk, linkDef);
- chunk.startTag = isImage ? "![" : "[";
- chunk.endTag = "][" + num + "]";
-
- if (!chunk.selection) {
- if (isImage) {
- chunk.selection = "alt text";
- }
- else {
- chunk.selection = "link text";
- }
- }
- }
- postProcessing();
- };
-
- if (isImage) {
- // add forth param to identify image window
- util.prompt(imageDialogText, imageDefaultText, makeLinkMarkdown, 1);
- }
- else {
- util.prompt(linkDialogText, linkDefaultText, makeLinkMarkdown);
- }
- return true;
- }
- };
-
- util.makeAPI = function(){
- wmd.wmd = {};
- wmd.wmd.editor = wmd.editor;
- wmd.wmd.previewManager = wmd.previewManager;
- };
-
- util.startEditor = function(){
-
- if (wmd.wmd_env.autostart === false) {
- util.makeAPI();
- return;
- }
-
- var edit; // The editor (buttons + input + outputs) - the main object.
- var previewMgr; // The preview manager.
-
- // Fired after the page has fully loaded.
- var loadListener = function(){
-
- wmd.panels = new wmd.PanelCollection();
-
- previewMgr = new wmd.previewManager();
- var previewRefreshCallback = previewMgr.refresh;
-
- edit = new wmd.editor(previewRefreshCallback);
-
- previewMgr.refresh(true);
-
- };
-
- util.addEvent(top, "load", loadListener);
- };
-
- wmd.previewManager = function(){
-
- var managerObj = this;
- var converter;
- var poller;
- var timeout;
- var elapsedTime;
- var oldInputText;
- var htmlOut;
- var maxDelay = 3000;
- var startType = "delayed"; // The other legal value is "manual"
-
- // Adds event listeners to elements and creates the input poller.
- var setupEvents = function(inputElem, listener){
-
- util.addEvent(inputElem, "input", listener);
- inputElem.onpaste = listener;
- inputElem.ondrop = listener;
-
- util.addEvent(inputElem, "keypress", listener);
- util.addEvent(inputElem, "keydown", listener);
- // previewPollInterval is set at the top of this file.
- poller = new wmd.inputPoller(listener, previewPollInterval);
- };
-
- var getDocScrollTop = function(){
-
- var result = 0;
-
- if (top.innerHeight) {
- result = top.pageYOffset;
- }
- else
- if (doc.documentElement && doc.documentElement.scrollTop) {
- result = doc.documentElement.scrollTop;
- }
- else
- if (doc.body) {
- result = doc.body.scrollTop;
- }
-
- return result;
- };
-
- var makePreviewHtml = function(){
-
- // If there are no registered preview and output panels
- // there is nothing to do.
- if (!wmd.panels.preview && !wmd.panels.output) {
- return;
- }
-
- var text = wmd.panels.input.value;
- if (text && text == oldInputText) {
- return; // Input text hasn't changed.
- }
- else {
- oldInputText = text;
- }
-
- var prevTime = new Date().getTime();
-
- if (!converter && wmd.showdown) {
- converter = new wmd.showdown.converter();
- }
-
- if (converter) {
- text = converter.makeHtml(text);
- }
-
- // Calculate the processing time of the HTML creation.
- // It's used as the delay time in the event listener.
- var currTime = new Date().getTime();
- elapsedTime = currTime - prevTime;
-
- pushPreviewHtml(text);
- htmlOut = text;
- };
-
- // setTimeout is already used. Used as an event listener.
- var applyTimeout = function(){
-
- if (timeout) {
- top.clearTimeout(timeout);
- timeout = undefined;
- }
-
- if (startType !== "manual") {
-
- var delay = 0;
-
- if (startType === "delayed") {
- delay = elapsedTime;
- }
-
- if (delay > maxDelay) {
- delay = maxDelay;
- }
- timeout = top.setTimeout(makePreviewHtml, delay);
- }
- };
-
- var getScaleFactor = function(panel){
- if (panel.scrollHeight <= panel.clientHeight) {
- return 1;
- }
- return panel.scrollTop / (panel.scrollHeight - panel.clientHeight);
- };
-
- var setPanelScrollTops = function(){
-
- if (wmd.panels.preview) {
- wmd.panels.preview.scrollTop = (wmd.panels.preview.scrollHeight - wmd.panels.preview.clientHeight) * getScaleFactor(wmd.panels.preview);
- }
-
- if (wmd.panels.output) {
- wmd.panels.output.scrollTop = (wmd.panels.output.scrollHeight - wmd.panels.output.clientHeight) * getScaleFactor(wmd.panels.output);
- }
- };
-
- this.refresh = function(requiresRefresh){
-
- if (requiresRefresh) {
- oldInputText = "";
- makePreviewHtml();
- }
- else {
- applyTimeout();
- }
- };
-
- this.processingTime = function(){
- return elapsedTime;
- };
-
- // The output HTML
- this.output = function(){
- return htmlOut;
- };
-
- // The mode can be "manual" or "delayed"
- this.setUpdateMode = function(mode){
- startType = mode;
- managerObj.refresh();
- };
-
- var isFirstTimeFilled = true;
-
- var pushPreviewHtml = function(text){
-
- var emptyTop = position.getTop(wmd.panels.input) - getDocScrollTop();
-
- // Send the encoded HTML to the output textarea/div.
- if (wmd.panels.output) {
- // The value property is only defined if the output is a textarea.
- if (wmd.panels.output.value !== undefined) {
- wmd.panels.output.value = text;
- wmd.panels.output.readOnly = true;
- }
- // Otherwise we are just replacing the text in a div.
- // Send the HTML wrapped in <pre><code>
- else {
- var newText = text.replace(/&/g, "&");
- newText = newText.replace(/</g, "<");
- wmd.panels.output.innerHTML = "<pre><code>" + newText + "</code></pre>";
- }
- }
-
- if (wmd.panels.preview) {
- wmd.panels.preview.innerHTML = text;
- }
-
- setPanelScrollTops();
-
- if (isFirstTimeFilled) {
- isFirstTimeFilled = false;
- return;
- }
-
- var fullTop = position.getTop(wmd.panels.input) - getDocScrollTop();
-
- if (global.isIE) {
- top.setTimeout(function(){
- top.scrollBy(0, fullTop - emptyTop);
- }, 0);
- }
- else {
- top.scrollBy(0, fullTop - emptyTop);
- }
- };
-
- var init = function(){
-
- setupEvents(wmd.panels.input, applyTimeout);
- makePreviewHtml();
-
- if (wmd.panels.preview) {
- wmd.panels.preview.scrollTop = 0;
- }
- if (wmd.panels.output) {
- wmd.panels.output.scrollTop = 0;
- }
- };
-
- this.destroy = function(){
- if (poller) {
- poller.destroy();
- }
- };
-
- init();
- };
-
- // When making a list, hitting shift-enter will put your cursor on the next line
- // at the current indent level.
- command.doAutoindent = function(chunk, postProcessing){
-
- chunk.before = chunk.before.replace(/(\n|^)[ ]{0,3}([*+-]|\d+[.])[ \t]*\n$/, "\n\n");
- chunk.before = chunk.before.replace(/(\n|^)[ ]{0,3}>[ \t]*\n$/, "\n\n");
- chunk.before = chunk.before.replace(/(\n|^)[ \t]+\n$/, "\n\n");
-
- if(/(\n|^)[ ]{0,3}([*+-]|\d+[.])[ \t]+.*\n$/.test(chunk.before)){
- if(command.doList){
- command.doList(chunk);
- }
- }
- if(/(\n|^)[ ]{0,3}>[ \t]+.*\n$/.test(chunk.before)){
- if(command.doBlockquote){
- command.doBlockquote(chunk);
- }
- }
- if(/(\n|^)(\t|[ ]{4,}).*\n$/.test(chunk.before)){
- if(command.doCode){
- command.doCode(chunk);
- }
- }
- };
-
- command.doBlockquote = function(chunk, postProcessing){
-
- chunk.selection = chunk.selection.replace(/^(\n*)([^\r]+?)(\n*)$/,
- function(totalMatch, newlinesBefore, text, newlinesAfter){
- chunk.before += newlinesBefore;
- chunk.after = newlinesAfter + chunk.after;
- return text;
- });
-
- chunk.before = chunk.before.replace(/(>[ \t]*)$/,
- function(totalMatch, blankLine){
- chunk.selection = blankLine + chunk.selection;
- return "";
- });
-
- chunk.selection = chunk.selection.replace(/^(\s|>)+$/ ,"");
- chunk.selection = chunk.selection || "Blockquote";
-
- if(chunk.before){
- chunk.before = chunk.before.replace(/\n?$/,"\n");
- }
- if(chunk.after){
- chunk.after = chunk.after.replace(/^\n?/,"\n");
- }
-
- chunk.before = chunk.before.replace(/(((\n|^)(\n[ \t]*)*>(.+\n)*.*)+(\n[ \t]*)*$)/,
- function(totalMatch){
- chunk.startTag = totalMatch;
- return "";
- });
-
- chunk.after = chunk.after.replace(/^(((\n|^)(\n[ \t]*)*>(.+\n)*.*)+(\n[ \t]*)*)/,
- function(totalMatch){
- chunk.endTag = totalMatch;
- return "";
- });
-
- var replaceBlanksInTags = function(useBracket){
-
- var replacement = useBracket ? "> " : "";
-
- if(chunk.startTag){
- chunk.startTag = chunk.startTag.replace(/\n((>|\s)*)\n$/,
- function(totalMatch, markdown){
- return "\n" + markdown.replace(/^[ ]{0,3}>?[ \t]*$/gm, replacement) + "\n";
- });
- }
- if(chunk.endTag){
- chunk.endTag = chunk.endTag.replace(/^\n((>|\s)*)\n/,
- function(totalMatch, markdown){
- return "\n" + markdown.replace(/^[ ]{0,3}>?[ \t]*$/gm, replacement) + "\n";
- });
- }
- };
-
- if(/^(?![ ]{0,3}>)/m.test(chunk.selection)){
- command.wrap(chunk, wmd.wmd_env.lineLength - 2);
- chunk.selection = chunk.selection.replace(/^/gm, "> ");
- replaceBlanksInTags(true);
- chunk.skipLines();
- }
- else{
- chunk.selection = chunk.selection.replace(/^[ ]{0,3}> ?/gm, "");
- command.unwrap(chunk);
- replaceBlanksInTags(false);
-
- if(!/^(\n|^)[ ]{0,3}>/.test(chunk.selection) && chunk.startTag){
- chunk.startTag = chunk.startTag.replace(/\n{0,2}$/, "\n\n");
- }
-
- if(!/(\n|^)[ ]{0,3}>.*$/.test(chunk.selection) && chunk.endTag){
- chunk.endTag=chunk.endTag.replace(/^\n{0,2}/, "\n\n");
- }
- }
-
- if(!/\n/.test(chunk.selection)){
- chunk.selection = chunk.selection.replace(/^(> *)/,
- function(wholeMatch, blanks){
- chunk.startTag += blanks;
- return "";
- });
- }
- };
-
- command.doCode = function(chunk, postProcessing){
-
- var hasTextBefore = /\S[ ]*$/.test(chunk.before);
- var hasTextAfter = /^[ ]*\S/.test(chunk.after);
-
- // Use 'four space' markdown if the selection is on its own
- // line or is multiline.
- if((!hasTextAfter && !hasTextBefore) || /\n/.test(chunk.selection)){
-
- chunk.before = chunk.before.replace(/[ ]{4}$/,
- function(totalMatch){
- chunk.selection = totalMatch + chunk.selection;
- return "";
- });
-
- var nLinesBack = 1;
- var nLinesForward = 1;
-
- if(/\n(\t|[ ]{4,}).*\n$/.test(chunk.before)){
- nLinesBack = 0;
- }
- if(/^\n(\t|[ ]{4,})/.test(chunk.after)){
- nLinesForward = 0;
- }
-
- chunk.skipLines(nLinesBack, nLinesForward);
-
- if(!chunk.selection){
- chunk.startTag = " ";
- chunk.selection = "enter code here";
- }
- else {
- if(/^[ ]{0,3}\S/m.test(chunk.selection)){
- chunk.selection = chunk.selection.replace(/^/gm, " ");
- }
- else{
- chunk.selection = chunk.selection.replace(/^[ ]{4}/gm, "");
- }
- }
- }
- else{
- // Use backticks (`) to delimit the code block.
-
- chunk.trimWhitespace();
- chunk.findTags(/`/, /`/);
-
- if(!chunk.startTag && !chunk.endTag){
- chunk.startTag = chunk.endTag="`";
- if(!chunk.selection){
- chunk.selection = "enter code here";
- }
- }
- else if(chunk.endTag && !chunk.startTag){
- chunk.before += chunk.endTag;
- chunk.endTag = "";
- }
- else{
- chunk.startTag = chunk.endTag="";
- }
- }
- };
-
- command.doList = function(chunk, postProcessing, isNumberedList){
-
- // These are identical except at the very beginning and end.
- // Should probably use the regex extension function to make this clearer.
- var previousItemsRegex = /(\n|^)(([ ]{0,3}([*+-]|\d+[.])[ \t]+.*)(\n.+|\n{2,}([*+-].*|\d+[.])[ \t]+.*|\n{2,}[ \t]+\S.*)*)\n*$/;
- var nextItemsRegex = /^\n*(([ ]{0,3}([*+-]|\d+[.])[ \t]+.*)(\n.+|\n{2,}([*+-].*|\d+[.])[ \t]+.*|\n{2,}[ \t]+\S.*)*)\n*/;
-
- // The default bullet is a dash but others are possible.
- // This has nothing to do with the particular HTML bullet,
- // it's just a markdown bullet.
- var bullet = "-";
-
- // The number in a numbered list.
- var num = 1;
-
- // Get the item prefix - e.g. " 1. " for a numbered list, " - " for a bulleted list.
- var getItemPrefix = function(){
- var prefix;
- if(isNumberedList){
- prefix = " " + num + ". ";
- num++;
- }
- else{
- prefix = " " + bullet + " ";
- }
- return prefix;
- };
-
- // Fixes the prefixes of the other list items.
- var getPrefixedItem = function(itemText){
-
- // The numbering flag is unset when called by autoindent.
- if(isNumberedList === undefined){
- isNumberedList = /^\s*\d/.test(itemText);
- }
-
- // Renumber/bullet the list element.
- itemText = itemText.replace(/^[ ]{0,3}([*+-]|\d+[.])\s/gm,
- function( _ ){
- return getItemPrefix();
- });
-
- return itemText;
- };
-
- chunk.findTags(/(\n|^)*[ ]{0,3}([*+-]|\d+[.])\s+/, null);
-
- if(chunk.before && !/\n$/.test(chunk.before) && !/^\n/.test(chunk.startTag)){
- chunk.before += chunk.startTag;
- chunk.startTag = "";
- }
-
- if(chunk.startTag){
-
- var hasDigits = /\d+[.]/.test(chunk.startTag);
- chunk.startTag = "";
- chunk.selection = chunk.selection.replace(/\n[ ]{4}/g, "\n");
- command.unwrap(chunk);
- chunk.skipLines();
-
- if(hasDigits){
- // Have to renumber the bullet points if this is a numbered list.
- chunk.after = chunk.after.replace(nextItemsRegex, getPrefixedItem);
- }
- if(isNumberedList == hasDigits){
- return;
- }
- }
-
- var nLinesUp = 1;
-
- chunk.before = chunk.before.replace(previousItemsRegex,
- function(itemText){
- if(/^\s*([*+-])/.test(itemText)){
- bullet = re.$1;
- }
- nLinesUp = /[^\n]\n\n[^\n]/.test(itemText) ? 1 : 0;
- return getPrefixedItem(itemText);
- });
-
- if(!chunk.selection){
- chunk.selection = "List item";
- }
-
- var prefix = getItemPrefix();
-
- var nLinesDown = 1;
-
- chunk.after = chunk.after.replace(nextItemsRegex,
- function(itemText){
- nLinesDown = /[^\n]\n\n[^\n]/.test(itemText) ? 1 : 0;
- return getPrefixedItem(itemText);
- });
-
- chunk.trimWhitespace(true);
- chunk.skipLines(nLinesUp, nLinesDown, true);
- chunk.startTag = prefix;
- var spaces = prefix.replace(/./g, " ");
- command.wrap(chunk, wmd.wmd_env.lineLength - spaces.length);
- chunk.selection = chunk.selection.replace(/\n/g, "\n" + spaces);
-
- };
-
- command.doHeading = function(chunk, postProcessing){
-
- // Remove leading/trailing whitespace and reduce internal spaces to single spaces.
- chunk.selection = chunk.selection.replace(/\s+/g, " ");
- chunk.selection = chunk.selection.replace(/(^\s+|\s+$)/g, "");
-
- // If we clicked the button with no selected text, we just
- // make a level 2 hash header around some default text.
- if(!chunk.selection){
- chunk.startTag = "## ";
- chunk.selection = "Heading";
- chunk.endTag = " ##";
- return;
- }
-
- var headerLevel = 0; // The existing header level of the selected text.
-
- // Remove any existing hash heading markdown and save the header level.
- chunk.findTags(/#+[ ]*/, /[ ]*#+/);
- if(/#+/.test(chunk.startTag)){
- headerLevel = re.lastMatch.length;
- }
- chunk.startTag = chunk.endTag = "";
-
- // Try to get the current header level by looking for - and = in the line
- // below the selection.
- chunk.findTags(null, /\s?(-+|=+)/);
- if(/=+/.test(chunk.endTag)){
- headerLevel = 1;
- }
- if(/-+/.test(chunk.endTag)){
- headerLevel = 2;
- }
-
- // Skip to the next line so we can create the header markdown.
- chunk.startTag = chunk.endTag = "";
- chunk.skipLines(1, 1);
-
- // We make a level 2 header if there is no current header.
- // If there is a header level, we substract one from the header level.
- // If it's already a level 1 header, it's removed.
- var headerLevelToCreate = headerLevel == 0 ? 2 : headerLevel - 1;
-
- if(headerLevelToCreate > 0){
-
- // The button only creates level 1 and 2 underline headers.
- // Why not have it iterate over hash header levels? Wouldn't that be easier and cleaner?
- var headerChar = headerLevelToCreate >= 2 ? "-" : "=";
- var len = chunk.selection.length;
- if(len > wmd.wmd_env.lineLength){
- len = wmd.wmd_env.lineLength;
- }
- chunk.endTag = "\n";
- while(len--){
- chunk.endTag += headerChar;
- }
- }
- };
-
- command.doHorizontalRule = function(chunk, postProcessing){
- chunk.startTag = "----------\n";
- chunk.selection = "";
- chunk.skipLines(2, 1, true);
- }
-};
-
-
-Attacklab.wmd_env = {};
-Attacklab.account_options = {};
-Attacklab.wmd_defaults = {version:1, output:"Markdown", lineLength:40, delayLoad:false};
-
-if(!Attacklab.wmd)
-{
- Attacklab.wmd = function()
- {
- Attacklab.loadEnv = function()
- {
- var mergeEnv = function(env)
- {
- if(!env)
- {
- return;
- }
-
- for(var key in env)
- {
- Attacklab.wmd_env[key] = env[key];
- }
- };
-
- mergeEnv(Attacklab.wmd_defaults);
- mergeEnv(Attacklab.account_options);
- mergeEnv(top["wmd_options"]);
- Attacklab.full = true;
-
- var defaultButtons = "bold italic link blockquote code image ol ul heading hr";
- Attacklab.wmd_env.buttons = Attacklab.wmd_env.buttons || defaultButtons;
- };
- Attacklab.loadEnv();
-
- };
-
- Attacklab.wmd();
- Attacklab.wmdBase();
- Attacklab.Util.startEditor();
-};
-
+++ /dev/null
-#admin_form {
- border-spacing: 10px;
-}
-
-#admin_form input[type="text"], #admin_form input[type="submit"], #admin_form textarea {
- line-height: 22px;
- font-size: 140%;
- font-family: sans-serif;
- border: 1px solid #999;
- color: black;
-}
-
-#admin_form input[type="text"], #admin_form input[type="submit"] {
- height: 28px;
-}
-
-#admin_form input[type="text"], #admin_form textarea {
- width: 550px;
-}
-
-#admin_form th {
- text-align: left;
- vertical-align: top;
-}
-
-#admin_form td {
- color: gray;
-}
-
-#admin_page_description {
- color: gray;
- padding-bottom: 20px;
-}
\ No newline at end of file
+++ /dev/null
-#bigicon_providers, #smallicon_providers {
- display: block;
- padding: 0px;
- width:600px;
- margin:0px 0px 5px 0px;
-}
-
-.provider_logo {
- display: inline-block;
- padding: 4px;
- border: 1px solid #DDD;
- text-align: center;
- vertical-align: middle;
-}
-
-.provider_logo.big {
- height: 40px;
- width: 90px;
-}
-
-.provider_logo.small {
- height: 32px;
- width: 32px;
-}
-
-.provider_logo.selected {
- outline: 2px solid #FFF8C6;
-}
-
-.provider_logo .provider_url {
- display: none;
-}
-
-.signin_form input[type="text"], .signin_form input[type="password"], .signin_form input[type="submit"] {
- height: 28px;
- line-height: 22px;
- font-size: 140%;
- border: 1px solid #999;
-}
-
-.signin_form .icon_input {
- padding-left: 20px;
-}
-
-.or_label {
- margin-top: 20px;
- margin-bottom: 10px;
-}
\ No newline at end of file
+++ /dev/null
-/*
-Document : default
-Created on : Dec 9, 2008, 8:48:40 PM
-Author : Mike
-Description:
-Style sheet for cnprog.com
-All rights reserved. 2008 CNPROG.COM
-*/
-
-@import url(media/style/jquery.autocomplete.css);
-@import url(media/style/openid.css);
-@import url(media/style/prettify.css);
-
-html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, form, label, table, caption, tbody, tfoot, thead, tr, th, td
-{
- margin: 0;
- padding: 0;
- border: 0;
- font-size: 100%;
- vertical-align: baseline;
- background: transparent;
-}
-body{
- font-family: "segoe ui",Helvetica,"Microsoft YaHei",ËÎÌå,Tahoma,Verdana,MingLiu,PMingLiu,Arial,sans-serif;
- font-size: 80%;
-
- margin:0;
- padding:0;
- text-align:center;
- line-height: 1;
-}
-blockquote, q
-{
- quotes: none;
-}
-blockquote:before, blockquote:after, q:before, q:after
-{
- content: '';
- content: none;
-}
-table
-{
- border-collapse: collapse;
- border-spacing: 0;
-}
-
-input, select, button, textarea
-{
- border: 1px solid #999;
- font-size:100%;
- font-family:"segoe ui",Helvetica,"Microsoft YaHei",ËÎÌå,Tahoma,Verdana,MingLiu,PMingLiu,Arial,sans-serif;
-}
-
-input
-{
- /*
- margin: 5px 0px 5px 0px;*/
- padding:3px;
-
-}
-
-pre
-{
- font-family: Consolas, Monaco, Liberation Mono, Lucida Console, Monospace;
- font-size:100%;
- margin-bottom: 10px;
- overflow: auto;
- width: 580px;
- background-color: #F5F5F5;
- padding-left:5px;
- padding-top:5px;
- padding-bottom: 20px !ie7;
-}
-
-code{
- font-family: Consolas, Monaco, Liberation Mono, Lucida Console, Monospace;
- font-size:100%;
-
-}
-
-blockquote
-{
- margin-bottom: 10px;
- margin-right: 15px;
- padding: 10px 0px 1px 10px;
- background-color: #F5F5F5;
-}
-
-b, strong
-{
- font-weight: bold;
-}
-
-i, em
-{
- font-style: italic;
-}
-
-ul
-{
- list-style: disc;
- margin-left: 30px;
- margin-bottom: 1em;
-}
-
-p
-{
- clear: both;
- margin-bottom: 1em;
-}
-
-ol
-{
- list-style: decimal;
- margin-left: 30px;
- margin-bottom: 1em;
-}
-
-a {color:#07c;text-decoration: none;}
-a:visited{color:#3E6D8E;text-decoration: none;}
-a:hover{text-decoration: underline;}
-a:active{text-decoration: none;}
-
-h1 {
- font-family:Trebuchet MS,Helvetica,sans-serif;
- font-size: 160%;
-}
-h2 {
- font-family:Trebuchet MS,Helvetica,sans-serif;
- font-size:140%;
- font-weight:bold;
- margin-bottom:7px;
-}
-h3 {display:block;font-size:120%;font-family:Trebuchet MS,"segoe ui",Helvetica,"Microsoft YaHei",ËÎÌå,Tahoma,Verdana,MingLiu,PMingLiu,Arial,sans-serif;font-weight:bold;}
-h3 a:visited{
- color:#86B0E1;
-}
-h4 {display:block;font-size:90%; font-family:Verdana;color:#ccc;}
-
-#top{
- width:100%;
- border-bottom:solid 3px #ccc;
- background-color:#eee;
- margin:0px;
-}
-
-#container{
- margin: 0px auto;
- width:950px;
- display:block;
- text-align: left;
-}
-
-#header{
- width:100%;
- padding:3px 0 10px 0;
-}
-
-#header-links{
-
-}
-
-#header-links a{
- color:darkred;
- font-weight:400;
- font-size:100%;
- /*letter-spacing:1px;*/
-
-}
-
-#header-links a:hover{
- text-decoration:none;
-}
-
-
-#content{
- margin-top:5px;
-}
-
-#main{
- float:left;
- width:670px;
-}
-
-#container{
- width:950px;
-}
-
-#main-bar{
- border-bottom: 1px solid #666;
- height: 34px;
- width: 100%;
- clear:both;
- margin-bottom:5px;
-}
-
-#main-bar h3{
- float: left;
- font-size: 140%;
- font-weight:700;
- /*letter-spacing:3px;*/
- margin-top:8px;
- padding:5px 0 0 3px ;
- height:20px;
- width:200px;
- color:#333;
-}
-
-#question-title{
- float:left;
- border-bottom: 1px solid #666;
- width: 98%;
- clear:both;
- padding:13px 0px 5px 0;
- margin-bottom:5px;
-
-}
-
-#question-title h3{
- font-size: 130%;
- font-weight:bold;
- line-height:25px;
-}
-
-#question-title a{
- color:#333;
-}
-
-#main-body{
- float:left;
- width:100%;
-}
-
-#main-bar .golden{
- background:url(../../images/bg_title_golden.gif) no-repeat;
-}
-
-#main-bar .pink{
- background:url(../../images/bg_title_red.gif) no-repeat;
-}
-
-#main-bar .orange{
- background:url(../../images/bg_title_orange.gif) no-repeat;
-}
-
-#main-bar .green{
- background:url(../../images/bg_title_green.gif) no-repeat;
-}
-
-#tab{
- float:right;
- position:relative;
- display:block;
- font-weight:bold;
-}
-
-#tab a
-{
- background: #eee;
- border: 1px solid #eee;
- color: #777;
- display: block;
- float: left;
- font-size: 90%;
- height: 24px;
- line-height: 22px;
- margin: 8px 4px 0 0;
- padding: 0 11px 0 11px;
- text-decoration: none;
-}
-
-#tab a:hover
-{
- background: #fff;
- border: 1px solid #777;
- border-bottom-color: #fff;
- line-height: 20px;
- margin-top: 9px;
-}
-
-#tab a.youarehere
-{
- background: #fff;
- color:#333;
- border: 1px solid #777;
- border-bottom-color: #fff;
- font-size: 100%;
- height: 30px;
- line-height: 28px;
- margin-top: 3px;
- padding: 0px 11px 0px 11px;
-}
-
-#sidebar{
- float:right;
- width:260px;
-}
-
-#footer{
- background:#777777 none repeat scroll 0 0;
- border-top:7px solid #000000;
- clear:both;
- margin-top:30px;
- overflow:hidden;
- padding:15px;
- text-align:center;
-}
-
-#footer a
-{
- color: White;
-}
-
-#askform{
- padding:5px;
- line-height:20px;
-}
-#askform .title-desc{
- color:#999;
- font-size:90%;
-}
-
-#askform #description{
- padding:20px 0 20px 0;
-}
-
-#askform .submit{
- padding:5px 10px 5px 10px;
- font-size:120%;
- font-weight:bold;
- width:120px;
- /*letter-spacing:1px;*/
- background-color:#D4D0C8;
-}
-.notify
-{
- position: fixed;
- top: 0px;
- left: 0px;
- width: 100%;
- z-index: 100;
- padding: 7px 0 5px 0;
- text-align: center;
- font-size: 130%;
- font-weight: Bold;
- color: #444;
- background-color: #F4A83D;
-}
-
-.notify span
-{
- float: left;
- width: 95%;
- text-align: center;
-}
-
-.close-notify
-{
- float: right;
- margin-right: 20px;
- color: #735005;
- text-decoration: none;
- background-color: #FAD163;
- border: 2px #735005 solid;
- padding-left: 3px;
- padding-right: 3px;
- cursor:pointer;
-}
-.small{
- font-size:90%;
- color:#777;
-}
-.big{
- font-size:120%;
- font-weight:600;
-
-}
-
-.paragraph{
- line-height:20px;
- margin-bottom:10px;
-}
-
-.paragraph-extra{
- line-height:30px;
- margin-bottom:10px;
-}
-
-.darkred{
- color:darkred;
-}
-
-.yellowbg{
- background-color:yellow;
-}
-
-.header-table{
- width:100%;
- /*solve template header space problem*/
- margin-top:-12px;
-}
-
-.header-table a{
- font-weight:bold;
-}
-
-.link-separator{
- color:#ccc;
- padding:3px;
-}
-
-.action-link-separator{
- color:#ccc;
-}
-
-.nav
-{
- font-size: 120%;
-}
-
-.nav ul
-{
- margin: 0;
-}
-
-.nav li
-{
- background: #777;
- display: block;
- float: left;
- margin-right: 7px;
-}
-
-.nav li.youarehere
-{
- background: #f90;
-}
-
-.nav a
-{
- color: #fff;
- display: block;
- font-weight: bold;
- padding: 6px 15px 6px 15px;
- text-decoration: none;
-}
-
-.nav li.youarehere a
-{
- color: white;
-}
-
-.nav li:hover
-{
- background-color:#ff9900;
-}
-
-.header-notification{
- font-size:85%;
- color:red;
-}
-
-.highlight-box{
- /*letter-spacing:1px;*/
- color:#735005;
-}
-
-.highlight-box p{
- margin:5px 0 0px 0;
-}
-
-.highlight-box a{
- color:#735005;
- font-size:90%;
- font-weight:bold;
-}
-
-.yellow-box{
- background-color:#FFFFCC;
- border:1px dotted #D8D2A9;
- margin-bottom:20px;
- line-height:20px;
- padding:10px 10px 5px;
-
-}
-
-.yellow-box ul{
- margin-left:0px;
-}
-
-.yellow-box h3{
- font-size:120%;
- padding-bottom:5px;
- margin-bottom:10px;
- border-bottom:1px dotted #D8D2A9;
-}
-
-.gray-box{
- background-color:#eee;
- border:1px dotted #D8D2A9;
- margin-bottom:20px;
- line-height:20px;
- padding:10px 10px 5px;
- overflow:hidden;
-}
-
-.gray-box ul{
- margin-left:0px;
-}
-
-.gray-box h3{
- font-size:120%;
- padding-bottom:5px;
- margin-bottom:10px;
- border-bottom:1px dotted #D8D2A9;
-}
-
-.question-item{
- width:100%;
- float:left;
- margin:5px 0 10px 0;
- border-bottom:1px dotted #D8D2A9;
-}
-
-.boxes{
- float:left;
- text-align:center;
- color:#666;
-}
-
-.boxes-cell{
- padding-right:5px;
- vertical-align:top;
-}
-
-.questions-summary-container{
- float:left;
- width:580px;
-
-}
-.questions-boxes-container{
- float:left;
-}
-.questions-boxes{
- float:left;
- width: 70px;
- text-align:center;
- color:#666;
-
-}
-.questions-vote-number{
- font-size:200%;
- font-weight:bold;
- font-family:Arial;
-}
-.questions-answer-number{
- font-size:140%;
- font-weight:bold;
- font-family:Arial;
-}
-.questions-answerbox{
- padding:5px;
-}
-
-.questions-votebox{
- padding:5px;
-}
-.questions-viewbox{
- padding:5px;
-}
-.qustions-summary{
- line-height:20px;
- margin-bottom:5px;
-}
-.question-body{
- min-height:100px;
-}
-.question-body IMG{
- max-width:600px;
-}
-.questions-mark{
- float:right;
- text-align:left;
- font-size:90%;
-
- line-height:20px;
- width:160px;
-}
-
-.questions-boxicon{
- width:15px;
- vertical-align:top;
-}
-.questions-count{
- font-family:arial;
- font-size:350%;
- font-weight:bolder;
- margin:15px 0 15px 0;
- color:#777;
-}
-#questions-answerbox-cell{
- padding:5px;
-
-}
-
-.vote{
- background-color:#eee;
-}
-
-.box-number{
- font-size:160%;
- font-weight:bold;
- font-family:Arial;
-}
-
-.box-unit{
- padding:3px;
- font-size:90%;
-}
-
-.answer{
- border-bottom:1px dotted #666666;
- padding-bottom:20px;
- padding-top:20px;
- width: 100%;
- margin-bottom:10px;
-}
-.answer-body{
- min-height:80px;
-}
-
-.answer-body IMG{
- max-width:600px;
-}
-
-.accepted-answer{
- background-color:#E2FCE2;
- border-bottom-color:#9BD59B;
-}
-
-.accepted-answer .comments-link{
- background-color:#D9F5D9;
-}
-
-.accepted-answer .comments-container{
- background-color:#D9F5D9;
-}
-
-.answered
-{
- background: #75845C;
- color: white;
-}
-
-.answered-accepted
-{
- background: #75845C;
- color: #E1E818;
-}
-
-.answered-by-owner
-{
- background: #E0EAF1;
-}
-
-.answered-by-owner .comments-link
-{
- background-color:#D6E4EE;
-}
-
-.answered-by-owner .comments-container
-{
- background-color:#D6E4EE;
-}
-
-.answered-accepted strong
-{
- color: #E1E818;
-}
-
-.unanswered
-{
- background: #9A4444;
- color: white;
-}
-
-.view{
-
-}
-
-.subtitle{
- padding:15px 0 10px 0;
-}
-
-.qustion-title{
- font-size:100%;
- padding:0px;
- line-height:20px;
- margin-bottom:5px;
-}
-
-.question-tag{
- float:left;
- padding-bottom:3px;
- width:250px;
-}
-
-.post-tag
-{
- color: #3E6D8E;
- background-color: #E0EAF1;
- border-bottom: 1px solid #3E6D8E;
- border-right: 1px solid #7F9FB6;
- margin: 2px 3px 2px 0;
- padding: 2px 4px 2px 4px;
- text-decoration: none;
- height:20px;
- font-family:Microsoft Yahei,ËÎÌå,Tahoma;
- font-size: 90%;
- line-height: 2.2;
- white-space:nowrap;
- vertical-align:baseline;
-}
-
-.post-tag:hover
-{
- background-color: #3E6D8E;
- color: #E0EAF1;
- border-bottom: 1px solid #37607D;
- border-right: 1px solid #37607D;
- text-decoration: none;
-}
-
-.highlight-tag{
- background-color: #3E6D8E;
- color: #fff;
- font-weight:bold;
- border-bottom: 1px solid #3E6D8E;
- border-right: 1px solid #7F9FB6;
- margin: 2px 6px 2px 0;
- padding: 3px 4px 3px 4px;
- text-decoration: none;
- font-size: 90%;
-}
-
-.question-started{
- font-size:90%;
- padding-top:10px;
- float:right;
- padding-bottom:3px;
-
-}
-
-.updatedtime{
- font-weight:bold;
- color:#999;
-}
-
-.badge
-{
- color: #fff;
- background-color: #333;
- border: 1px solid #333;
- margin: 0 3px 3px 0;
- padding: 4px 8px 4px 3px;
- color: white !important;
- text-decoration: none;
- line-height: 1.9;
-}
-
-.badge:hover
-{
- border: 1px solid #555;
- background-color: #555;
- text-decoration: none;
-}
-
-.badge-item{
- margin-bottom:10px;
-}
-
-.badge1
-{
- margin-left:3px;
- padding-right:2px;
- font-size: 120%;
- color: #FFCC00;
-}
-
-.badge2
-{
- margin-left:3px;
- padding-right:2px;
- font-size: 120%;
- color: #C0C0C0;
-}
-
-.badge3
-{
- margin-left:3px;
- padding-right:2px;
- font-size: 120%;
- color: #CC9966;
-}
-
-.badgecount
-{
- color: #808185;
-}
-
-.reputation-score{
- font-family:arial;
- font-weight: bold;
- color: #333;
- font-size: 120%;
- margin-right:2px;
-}
-
-#recent-tags .post-tag
-{
- background-color: #eee;
- border: none;
- margin: 0;
- font-size: 100%;
- color: black !important;
-}
-
-#recent-tags .post-tag:hover
-{
- background-color: #777;
- color: White !important;
- border: none;
- margin: 0;
- text-decoration: none;
-}
-
-#related-tags{
- line-height:30px;
-}
-
-.list-item{
- list-style:inside square
-
-}
-.list-item li{
- margin-bottom:5px;
-}
-
-.list-item dt{
- line-height:20px;
-}
-
-.list-item dd{
- line-height:20px;
- margin-bottom:10px;
-}
-
-#editor{
- font-size:100%;
- min-height:200px;
- line-height: 18px;
- width:595px;
-}
-
-.wmd-preview{
- margin-top:10px;
- padding:6px;
- width:590px;
- background-color:#F5F5F5;
- min-height:20px;
-}
-
-/*adjustment for editor preview*/
-.wmd-preview pre{
- background-color:#E7F1F8;
-
-}
-
-.wmd-preview blockquote
-{
- background-color: #eee;
-}
-
-.wmd-preview IMG{
- max-width:600px;
-}
-.preview-toggle{
- font-size:90%;
- font-weight:600;
- margin-bottom:-10px;
- width:600px;
- color:#aaa;
- /*letter-spacing:1px;*/
-
-}
-
-.preview-toggle span:hover{
- cursor:pointer;
-}
-
-.edit-content-html{
- border-top:1px dotted #D8D2A9;
- border-bottom:1px dotted #D8D2A9;
- margin:5px 0 5px 0;
-}
-
-/* 2 textarea resizer styles */
-div.grippie {
- background:#EEEEEE url(../../images/grippie.png) no-repeat scroll center 2px;
- border-color:#DDDDDD;
- border-style:solid;
- border-width:0pt 1px 1px;
- cursor:s-resize;
- height:9px;
- overflow:hidden;
- width:600px;
-}
-.resizable-textarea textarea {
- display:block;
- margin-bottom:0pt;
- width:95%;
- height: 20%;
-}
-
-.openid-input{
- background:url(../../images/openid.gif) no-repeat;
- padding-left:15px;
- cursor:pointer;
-}
-
-.openid-login-input{
- background-position:center left;
- background:url(../../images/openid.gif) no-repeat 0% 50%;
- padding:5px 5px 5px 15px;
- cursor:pointer;
- font-family:Trebuchet MS;
- font-weight:300;
- font-size:150%;
- width:500px;
-}
-
-.openid-login-submit{
- padding:6px;
- /*padding:4px;*/
- cursor:pointer;
- font-weight:bold;
- font-size:120%;
- background-color:#D4D0C8;
-}
-
-.openid-samples{
-
-}
-
-.openid-samples .list, .list li{
- font-family:Trebuchet MS,"segoe ui",Helvetica,"Microsoft YaHei",ËÎÌå,Tahoma,Verdana,MingLiu,PMingLiu,Arial,sans-serif;
- list-style:none !important;
- margin-left:-30px !important;
- line-height:20px !important;
-}
-
-.darkred{
- color:darkred;
-}
-
-.gray{
- color:gray;
-}
-
-.message{
- padding:5px;
- font-weight:bold;
- background-color:#eee;
- margin:10px 0 10px 0;
-}
-
-.warning{
- color:red;
-}
-
-.vote-buttons{
- float:left;
- text-align:center;
- border:solid 0px #ccc;
-}
-
-.vote-buttons img{
- cursor:pointer;
-}
-
-.item-right{
- float:left;
-}
-
-.vote-number{
- font-family:Arial;
- padding:0px 0 3px 0;
- font-size:220%;
- font-weight:bold;
- color:#777;
-}
-.favorite-number{
- font-size:100%;
- font-family:Arial;
- margin-top:-8px;
- font-weight:bold;
- color:#808185
-}
-
-.my-favorite-number{
- color:#D4A849;
-}
-
-.tag-number{
- font-size:120%;
- font-family:Arial;
- font-weight:bold;
-}
-
-#question-tags{
- margin:5px 0 5px 0;
-}
-
-.question-tag-extra{
- float:left;
- padding-bottom:3px;
- width:100%;
-}
-
-.question-mark{
- background-color:#E0EAF1;
- text-align:left;
- font-size:90%;
- padding:5px;
- overflow:hidden;
-}
-
-.question-edit{
- text-align:left;
- font-size:90%;
-
- overflow:hidden;
-}
-
-.question-status{
- margin-top:10px;
- padding: 20px;
- background-color:#eee;
- text-align:center;
-}
-
-.answer-mark{
- text-align:left;
- font-size:90%;
- padding:5px;
-}
-
-.wiki-category{
- margin-left:5px;
- color:#999;
- font-size:90%;
-}
-
-.offensive-flag a{
- color:#777;
- font-size:90%;
- padding:3px;
- cursor:pointer;
-}
-
-.offensive-flag a:hover{
- background-color:#777;
- text-decoration:none;
- color:#fff;
-}
-
-.linksopt a{
- color:#777;
- font-size:90%;
- padding:3px;
- cursor:pointer;
-}
-
-.linksopt a:hover{
- background-color:#777;
- text-decoration:none;
- color:#fff;
-}
-
-.action-link a{
- color:#777;
- font-size:90%;
- padding:3px;
- cursor:pointer;
-}
-
-.action-link a:hover{
- background-color:#777;
- text-decoration:none;
- color:#fff;
-}
-
-.dot-line{
- border-bottom:1px dotted #D8D2A9;
- width:670px; /*IE*/
- /*
- width:100% !important;
- */
- margin-bottom:20px;
-}
-
-.line{
- border-bottom:1px solid #777;
- width:650px; /*IE*/
- /*
- width:100% !important;
- */
- margin-bottom:20px
-}
-
-.taglist-td{
- width:190px;
- line-height:26px;
-}
-
-.list-table{
- margin-left:15px;
-}
-
-.list-td{
- width:185px;
-
-}
-
-.submit{
- cursor:pointer;
- #padding-bottom:0px;
- #padding-top:0px
- background-color:#D4D0C8;
-}
-
-form .error{
- color:darkred;
-}
-
-form .errorlist li{
- color: red;
-}
-
-.vote-notification
-{
- z-index: 1;
- cursor: pointer;
- display: none;
- position: absolute;
- padding: 15px;
- color: White;
- background-color: #AE0000;
-}
-
-.vote-notification a
-{
- color: White;
- text-decoration:underline;
-}
-
-.center-container{
- width:950px;
-}
-
-#revisions{
- width:950px;
-}
-
-.revision{
- margin:10px 0 10px 0;
- width:100%;
-}
-
-.revision .header{
- background-color:#eee;
- padding:5px;
- cursor:pointer;
-}
-
-.revision .author{
- background-color:#E0EAF1;
-}
-
-.revision .summary{
- padding: 5px 0 10px 0;
-}
-
-.revision .summary span{
- background-color:yellow;
- display:inline;
-}
-.revision h1{
- font-size:130%;
- font-weight:600;
- padding:15px 0 15px 0;
-}
-
-.revision-mark{
- width:200px;
- text-align:left;
- font-size:90%;
- overflow:hidden;
-}
-
-.revision-number{
- font-size:300%;
- font-weight:bold;
- font-family:arial;
-}
-
-.revision .body{
- padding-left:10px;
- margin-bottom:50px;
-}
-.revision .answerbody{
- padding:10px 0 5px 10px;
-}
-
-/* Revision pages */
-del { color: #FF5F5F; }
-del .post-tag{
-color: #FF5F5F;
-};
-ins { background-color: #97ff97;}
-ins .post-tag{
-background-color: #97ff97;
-};
-
-/** PAGINATOR **/
-.paginator {
- padding:5px 0 10px 0;
- font:normal .8em arial;
-}
-
-.paginator .prev-na,
-.paginator .next-na {
- padding:.3em;
- font:bold .875em arial;
-}
-
-.paginator .prev-na,
-.paginator .next-na {
- border:1px solid #ccc;
- background-color:#f9f9f9;
- color:#aaa;
- font-weight:normal;
-}
-
-.paginator .prev a, .paginator .prev a:visited,
-.paginator .next a, .paginator .next a:visited {
- border:1px solid #fff;
- background-color:#fff;
- color:#777;
- padding:.3em;
- font:bold 100% arial;
-}
-
-.paginator .prev, .paginator .prev-na { margin-right:.5em; }
-.paginator .next, .paginator .next-na { margin-left:.5em; }
-
-.paginator .page a, .paginator .page a:visited, .paginator .curr {
- padding:.25em;
- font:normal .875em verdana;
- border:1px solid #ccc;
- background-color:#fff;
- margin:0em .25em;
- color:#777;
-}
-
-.paginator .curr {
- background-color:#777;
- color:#fff;
- border:1px solid #777;
- font-weight:bold;
- font-size:1em;
-}
-
-.paginator .page a:hover,
-.paginator .curr a:hover,
-.paginator .prev a:hover,
-.paginator .next a:hover {
- color:#fff;
- background-color:#777;
- border:1px solid #777;
- text-decoration:none;
-}
-
-.paginator .text{
- color:#777;
- padding:.3em;
- font:bold 100% arial;
-}
-
-.paginator-container{
- float:right;
- padding:10px 0 10px 0;
-}
-
-.paginator-container-left{
- padding:5px 0 10px 0;
-}
-
-.user-info {
- clear:both;
- height:45px;
-}
-
-.user-info .user-action-time {
- margin-bottom:4px;
- margin-top:2px;
-}
-
-.user-info .user-details {
- float:left;
- margin-left:5px;
- overflow:hidden;
- white-space:nowrap;
- width:138px;
-}
-.user-details {
- color:#888888;
- line-height:17px;
-}
-
-table.user-details td {
- color:Black;
- padding:4px 0;
-}
-
-.user-info .user-gravatar32 {
- float:left;
- width:32px;
-}
-
-#mainbar-full {
- width:950px;
-}
-
-#subheader {
- border-bottom:1px solid #666666;
- clear:both;
- height:34px;
- width:100%;
-}
-
-#tabs {
- float:right;
- font-weight:bold;
- position:relative;
-}
-
-.summaryinfo {
- color:#808185;
- text-align:center;
-}
-
-.summarycount {
- font-family:arial;
- color:#808185;
- font-size:350%;
- font-weight:bold;
- text-align:center;
-}
-.summarysubcount {
- font-family:arial;
- color:#808185;
- font-size:250%;
- font-weight:bold;
- text-align:center;
-}
-
-
-#user-about-me {
- background-color:#EEEEEE;
- height:200px;
- line-height:20px;
- margin:10px;
- overflow:auto;
- padding:10px;
- width:90%;
-}
-
-.favorites-count-off {
- color:#919191;
- float:left;
- margin-top:13px;
- text-align:center;
-}
-
-.favorites-count {
- color:#D4A849;
- float:left;
- margin-top:13px;
- text-align:center;
-}
-
-.question-summary {
- border-bottom:1px dotted #999999;
- float:left;
- overflow:hidden;
- padding:11px 0;
- width:670px;
-}
-
-.user-stats-table .question-summary {
- width:800px;
-}
-
-.narrow .stats {
- background:transparent none repeat scroll 0 0;
- float:left;
- height:48px;
- margin:0 0 0 7px;
- padding:0;
- width:auto;
-}
-
-.narrow .votes {
- background:#EEEEEE none repeat scroll 0 0;
- float:left;
- height:38px;
- margin:0 3px 0 0;
- padding:5px;
- width:38px;
-}
-
-.narrow .views {
- float:left;
- height:38px;
- margin:0 7px 0 0;
- padding:5px 0 5px 4px;
- width:40px;
-}
-
-.narrow .status {
- float:left;
- height:38px;
- margin:0 3px 0 0;
- padding:5px;
- width:48px;
-}
-
-.narrow .vote-count-post {
- font-size:100%;
- margin:0;
-}
-
-div.votebox {
- text-align:center;
- vertical-align:middle;
-}
-
-div.votebox span {
- color:#808185;
- display:block;
- font-weight:bold;
-}
-.vote-count-post {
- display:block;
- font-size:240%;
-}
-
-.answered-accepted {
- background:#75845C none repeat scroll 0 0;
- color:#E1E818;
-}
-
-.status {
- margin-top:-3px;
- padding:4px 0;
- text-align:center;
-}
-
-.views {
- color:#999999;
- padding-top:4px;
- text-align:center;
-}
-
-.user-stats-table .summary {
- width:600px;
- line-height:22px;
-}
-
-.user-stats-table .summary h3{
- margin:0px;
- padding:0px;
-}
-
-div.tags {
- float:left;
- line-height:18px;
-}
-
-div.started {
- color:#999999;
- float:right;
- line-height:18px;
- width:185px;
-}
-
-.narrow div.started {
- line-height:inherit;
- padding-top:4px;
- white-space:nowrap;
- width:auto;
-}
-
-.relativetime {
- font-weight:bold;
- text-decoration:none;
-}
-
-div.started a {
- font-weight:bold;
-}
-
-div.started .reputation-score {
- margin-left:1px;
-}
-
-.answer-summary {
- clear:both;
- padding:3px;
-}
-
-.answer-votes {
- background-color:#EEEEEE;
- color:#555555;
- float:left;
- font-size:110%;
- font-weight:bold;
- height:15px;
- padding:4px 4px 5px;
- text-align:center;
- text-decoration:none;
- width:20px;
-}
-
-.answered-accepted {
- background:#75845C none repeat scroll 0 0;
- color:#E1E818;
-}
-
-.answer-link {
- color:#555555;
- float:left;
- margin-top:5px;
- padding-left:10px;
- width:700px;
-}
-
-.answer-link a {
- font-weight:bold;
-}
-
-.deleted{
- background:#F4E7E7 none repeat scroll 0 0;
-}
-
-#mainbar-footer {
- clear:both;
- width:100%;
-}
-
-#feed-link {
- float:right;
- text-align:right;
-}
-
-#feed-link-image {
- float:left;
- margin-left:12px;
- margin-right:5px;
-}
-
-#feed-link-text {
- float:left;
-}
-
-.revision-comment {
- background-color:#FFFE9B;
- color:#333333;
- line-height:1.4;
- padding:3px;
-}
-
-.accept-answer-link {
- color:#508850 !important;
- font-weight:bold;
-}
-
-.accept-answer-link:hover {
- background-color:#508850 !important;
- color:#E1E818 !important;
- text-decoration:none;
-}
-
-div.comments {
- line-height:150%;
- padding:10px 0;
-}
-
-div.post-comments{
- width:585px;
- clear:both;
- float:left;
-}
-
-form.post-comments textarea {
- height:6em;
- margin-bottom:4px;
-}
-
-form.post-comments input {
- margin-left:10px;
- margin-top:1px;
- vertical-align:top;
- width:100px;
-}
-
-span.text-counter {
- margin-right:20px;
-}
-
-span.form-error {
- color:#990000;
- font-size:90%;
- font-weight:normal;
- margin-left:5px;
-}
-
-div.comments-container, div.comments-container-accepted, div.comments-container-owner, div.comments-container-deleted {
- display:none;
- margin-top:-1px;
- padding:0 5px 5px;
-}
-
-div.comments-container, a.comments-link {
- background-color:#EEEEEE;
-}
-
-.post-comments a {
- color:#888888;
- padding:0 3px 2px;
- font-size:90%;
-}
-
-a.comments-link, a.comments-link-accepted, a.comments-link-owner, a.comments-link-deleted {
- color:black;
- padding:2px;
- cursor:pointer;
-}
-
-.post-comments a:hover {
- background-color:#777777;
- color:white;
- text-decoration:none;
-}
-
-a.comment-user, a.comment-user:hover {
- background-color:inherit;
- color:#0077CC;
- padding:0;
-}
-
-a.comment-user:hover {
- text-decoration:underline;
-}
-
-.user-action{
-
-}
-.user-action-1{
- font-weight:bold;
- color:#333;
-}
-.user-action-2{
- font-weight:bold;
- color:#75845C;
-}
-.user-action-3{
- color:#333;
-}
-.user-action-4{
- color:#333;
-}
-.user-action-5{
- color:darkred;
-}
-.user-action-6{
- color:darkred;
-}
-.user-action-7{
- color:#333;
-}
-.user-action-8{
- padding:3px;
- font-weight:bold;
- background-color:#75845C;
- color:#E1E818;
-}
-
-.revision-summary{
- background-color:#FFFE9B;
- padding:2px;
-}
-.question-title-link a{
- font-weight:bold;
- color:#0077CC;
-}
-.answer-title-link a{
- color:#333;
-}
-
-.post-type-1 a {
- font-weight:bold;
- color:#0077CC;
-}
-.post-type-3 a {
- font-weight:bold;
- color:#0077CC;
-}
-.post-type-5 a {
- font-weight:bold;
- color:#0077CC;
-}
-.post-type-2 a{
- color:#333;
-}
-.post-type-4 a{
- color:#333;
-}
-.post-type-6 a{
- color:#333;
-}
-.post-type-8 a{
- color:#333;
-}
-
-/* openid styles */
-.form-row{line-height:25px;}
-.submit-row{line-height:30px;padding-top:10px;}
-.errors{line-height:20px;color:red;}
-.error{color:red;}
-.error-list li{padding:5px;}
-.login{margin-bottom:10px;}
-.fieldset{border:solid 1px #777;margin-top:10px;padding:10px;}
+++ /dev/null
-.ac_results {
- padding: 0px;
- border: 1px solid black;
- background-color: white;
- overflow: hidden;
- z-index: 99999;
- text-align:left;
-}
-
-.ac_results ul {
- width: 100%;
- list-style-position: outside;
- list-style: none;
- padding: 0;
- margin: 0;
-}
-
-.ac_results li {
- margin: 0px;
- padding: 2px 5px;
- cursor: default;
- display: block;
- /*
- if width will be 100% horizontal scrollbar will apear
- when scroll mode will be used
- */
- /*width: 100%;*/
- font: menu;
- font-size: 12px;
- /*
- it is very important, if line-height not setted or setted
- in relative units scroll will be broken in firefox
- */
- line-height: 16px;
- overflow: hidden;
-}
-
-.ac_loading {
- background: white url(../../images/indicator.gif) right center no-repeat;
-}
-
-.ac_odd {
- background-color: #E7F1F8;
-}
-
-.ac_over {
- background-color: #0A246A;
- color: white;
-}
+++ /dev/null
-#openid_form {
- width: 470px;
-}
- #openid_form legend {
- font-weight: bold;
- }
-#openid_choice {
- display: none;
-}
-#openid_input_area {
- clear: both;
- padding: 10px;
-}
-#openid_btns, #openid_btns br {
- clear: both;
-}
- #openid_highlight {
- padding: 3px;
- background-color: #FFFCC9;
- float: left;
- }
- .openid_large_btn {
- width: 100px;
- height: 60px;
- border: 1px solid #DDD;
- margin: 3px;
- float: left;
- }
- .openid_small_btn {
- width: 24px;
- height: 24px;
- border: 1px solid #DDD;
- margin: 3px;
- float: left;
- }
- a.openid_large_btn:focus {
- outline: none;
- }
- a.openid_large_btn:focus
- {
- -moz-outline-style: none;
- }
- .openid_selected {
- border: 4px solid #DDD;
- }
+++ /dev/null
-/* Pretty printing styles. Used with prettify.js. */
-
-.str { color: #080; }
-.kwd { color: #008; }
-.com { color: #800; }
-.typ { color: #606; }
-.lit { color: #066; }
-.pun { color: #660; }
-.pln { color: #000; }
-.tag { color: #008; }
-.atn { color: #606; }
-.atv { color: #080; }
-.dec { color: #606; }
-pre.prettyprint { padding: 3px; border: 0px solid #888; }
-
-@media print {
- .str { color: #060; }
- .kwd { color: #006; font-weight: bold; }
- .com { color: #600; font-style: italic; }
- .typ { color: #404; font-weight: bold; }
- .lit { color: #044; }
- .pun { color: #440; }
- .pln { color: #000; }
- .tag { color: #006; font-weight: bold; }
- .atn { color: #404; }
- .atv { color: #060; }
-}
+++ /dev/null
-@import "jquery.autocomplete.css";
-
-body {
- background: none repeat scroll 0 0 #FFFFFF;
- color: #000000;
- font-family: sans-serif;
- font-size: 12px;
- line-height: 150%;
- margin: 0;
- padding: 0;
-}
-
-div {
- margin: 0 auto;
- padding: 0;
-}
-
-h1, h2, h3, h4, h5, h6, ul, li, dl, dt, dd, form, img, p {
- border: medium none;
- margin: 0;
- padding: 0;
-}
-
-label {
- vertical-align: middle;
-}
-
-hr {
- border-color: #CCCCCE -moz-use-text-color -moz-use-text-color;
- border-right: medium none;
- border-style: dashed none none;
- border-width: 1px medium medium;
-}
-
-input, select {
- font-family: Trebuchet MS, "segoe ui", Helvetica, "Microsoft YaHei", å ® ‹ ä ½ “, Tahoma, Verdana, MingLiu, PMingLiu, Arial, sans-serif;
- vertical-align: middle;
-}
-
-p {
- font-size: 13px;
- line-height: 140%;
- margin-bottom: 13px;
-}
-
-a {
- color: #3060A8;
- text-decoration: none;
-}
-
-.badges a {
- color: #763333;
- text-decoration: underline;
-}
-
-a:hover {
- text-decoration: underline;
-}
-
-.block {
- height: auto;
- width: 960px;
-}
-
-.fleft {
- float: left;
-}
-
-.fright {
- float: right;
-}
-
-.tleft {
- text-align: left;
-}
-
-.tcenter {
- text-align: center;
-}
-
-.tright {
- text-align: right;
-}
-
-.dis {
- display: block;
-}
-
-.inline {
- display: inline;
-}
-
-.none {
- display: none;
-}
-
-.red {
- color: #CC0000;
-}
-
-.b {
- font-weight: bold;
-}
-
-.f10 {
- font-size: 10px;
-}
-
-.f11 {
- font-size: 11px;
-}
-
-.f12 {
- font-size: 12px;
-}
-
-.f13 {
- font-size: 13px;
-}
-
-.f14 {
- font-size: 14px;
-}
-
-.white {
- color: #FFFFFF;
-}
-
-.u {
- text-decoration: underline;
-}
-
-.spacer1 {
- clear: both;
- height: 6px;
- line-height: 6px;
- visibility: hidden;
-}
-
-.spacer3 {
- clear: both;
- height: 30px;
- line-height: 30px;
- visibility: hidden;
-}
-
-h1 {
- font-size: 160%;
- padding: 5px 0;
-}
-
-h2 {
- font-size: 140%;
- padding: 3px 0;
-}
-
-h3 {
- font-size: 120%;
- padding: 3px 0;
-}
-
-ul {
- list-style: disc outside none;
- margin-bottom: 1em;
- margin-left: 20px;
- padding-left: 0;
-}
-
-ol {
- list-style: decimal outside none;
- margin-bottom: 1em;
- margin-left: 30px;
- padding-left: 0;
-}
-
-td ul {
- vertical-align: middle;
-}
-
-li input {
- margin: 3px 3px 4px;
-}
-
-pre {
- background-color: #F5F5F5;
- font-family: Consolas, Monaco, Liberation Mono, Lucida Console, Monospace;
- font-size: 100%;
- margin-bottom: 10px;
- overflow: auto;
- padding-left: 5px;
- padding-top: 5px;
- width: 580px;
-}
-
-code {
- font-family: Consolas, Monaco, Liberation Mono, Lucida Console, Monospace;
- font-size: 100%;
-}
-
-blockquote {
- background-color: #F5F5F5;
- margin-bottom: 10px;
- margin-right: 15px;
- padding: 10px 0 1px 10px;
-}
-
-#wrapper {
- margin: auto;
- padding: 0;
- width: 990px;
-}
-
-#roof {
- background: none repeat scroll 0 0 #FFFFFF;
- margin-top: 0;
- position: relative;
-}
-
-#room {
- background-color: #FFFFFF;
- border-bottom: 1px solid #777777;
- padding: 10px 0;
-}
-
-#CALeft {
- float: left;
- position: relative;
- width: 740px;
-}
-
-#CARight {
- float: right;
- width: 240px;
-}
-
-#CAFull {
- float: left;
- padding: 0 5px;
- width: 950px;
-}
-
-#ground {
- background: none repeat scroll 0 0 #BDCCED;
- border-top: 1px solid #000000;
- padding-bottom: 0;
- padding-top: 6px;
- text-align: center;
- width: 100%;
-}
-
-#top {
- background-color: #FFFFFF;
- height: 20px;
- padding: 3px;
- position: absolute;
- right: 0;
- text-align: right;
- top: 0;
- width: 500px;
-}
-
-#top a {
- color: #333333;
- font-size: 12px;
- height: 35px;
- margin-left: 20px;
- text-align: right;
- text-decoration: underline;
-}
-
-#logo {
- padding: 5px 0 0;
-}
-
-#navBar {
- display: block;
- position: relative;
- width: 990px;
-}
-
-#navBar .nav {
- margin: 20px 0 0 16px;
-}
-
-#navBar .nav a {
- background-color: #E5EBF8;
- border-color: #888888 #888888 -moz-use-text-color;
- border-style: solid solid none;
- border-width: 1px 1px medium;
- color: #333333;
- display: block;
- float: left;
- font-size: 14px;
- font-weight: 400;
- height: 25px;
- line-height: 30px;
- margin-left: 10px;
- padding: 0 12px 3px;
- text-decoration: none;
-}
-
-#navBar .nav a:hover {
- text-decoration: underline;
-}
-
-#navBar .nav a.on {
- background: none repeat scroll 0 0 #356FCB;
- border: 1px solid #356FCB;
- color: #FFFFFF;
- font-weight: 600;
- height: 24px;
- line-height: 28px;
- text-decoration: none;
-}
-
-#navBar .nav a.special {
- color: #B02B2C;
- font-size: 14px;
- font-weight: bold;
- text-decoration: none;
-}
-
-#navBar .nav a.special:hover {
- text-decoration: underline;
-}
-
-#navBar .nav div.focus {
- float: right;
- padding-right: 0;
-}
-
-#searchBar {
- background-color: #B6C4E2;
- border-color: #EEEEEC #A9ACA5 #BABDB6 #EEEEEC;
- border-style: solid;
- border-width: 1px;
- padding: 4px 0 0;
- width: 988px;
-}
-
-#searchBar .content {
-}
-
-#searchBar .searchInput {
- font-size: 13px;
- height: 18px;
- width: 400px;
-}
-
-#searchBar .searchBtn {
- font-size: 14px;
- height: 26px;
- width: 80px;
-}
-
-#searchBar .options {
- color: #333333;
- font-size: 120%;
- padding: 3px 0;
-}
-
-#searchBar .options input {
- margin: 0 3px 0 15px;
-}
-
-#searchBar .options input:hover {
- cursor: pointer;
-}
-
-#listA {
- background-color: #FFFFFF;
- float: left;
- padding: 0 0;
- width: 100%;
-}
-
-#listA .qstA {
- background: none repeat scroll 0 0 white;
- border-top: 1px dashed #CCCCCE;
- padding: 3px 5px 5px 10px;
- position: relative;
-}
-
-#listA .qstA thumb {
- float: left;
-}
-
-#listA .qstA h2 {
- font-size: 14px;
- font-weight: 800;
- margin: 8px auto;
- padding: 0;
-}
-
-#listA .qstA h2 a {
- font-size: 15px;
-}
-
-#listA .qstA .stat {
- bottom: 5px;
- float: right;
- font-size: 12px;
- position: absolute;
- right: 0;
-}
-
-#listA .qstA .stat span {
- margin-right: 5px;
-}
-
-#listA .qstA .stat td {
- min-width: 40px;
- text-align: center;
-}
-
-#listA .qstA .stat .num {
- color: #A40000;
- font-family: sans-serif;
- font-size: 17px;
- font-weight: 800;
- margin: 0;
-}
-
-#listA .qstA table {
- border-spacing: 0;
-}
-
-#listA .qstA table td {
- padding: 0;
- text-align: center;
- width: 60px;
-}
-
-#listA .qstA .stat .unit {
- color: #777777;
- margin: 0;
-}
-
-#listA .qstA .from {
- color: #777777;
- font-size: 13px;
- margin-top: 5px;
-}
-
-#listA .qstA .from .score {
- color: #555555;
- font-family: sans-serif;
-}
-
-#listA .qstA .date {
- color: #777777;
- margin-left: 10px;
-}
-
-#listA .qstA .wiki {
- color: #763333;
- font-size: 12px;
-}
-
-#listA .qstA .from a {
-}
-
-#listA .qstA .from img {
- vertical-align: middle;
-}
-
-#listA .qstA .author {
- font-weight: 400;
-}
-
-#listA .qstA .author a {
- color: #444444;
-}
-
-#listA .qstA .summary {
- margin-right: 5px;
-}
-
-.short-summary {
- border-top: 1px dotted #CCCCCE;
- float: left;
- overflow: hidden;
- padding: 3px 0px 5px 0;
- position: relative;
- width: 738px;
-}
-
-.short-summary h2 a {
- color: #2A5594;
- font-family: "Trebuchet MS", "segoe ui", arial, sans-serif;
- font-size: 17px;
-}
-
-.short-summary .userinfo {
- color: #666666;
- float: right;
- margin-top: 8px;
-}
-
-.userinfo a, a.userinfo {
- color: #3060A8;
-}
-
-.short-summary .counts {
- float: left;
- margin-right: 0px;
- margin-top: 4px;
- padding-right: 2px;
-}
-
-.short-summary .counts .item-count {
- font-size: 17px;
- font-weight: bold;
-}
-
-.short-summary .votes, .short-summary .status, .short-summary .views {
- -moz-border-radius: 5px 5px 5px 5px;
- border-bottom: 1px solid #CCCCCC;
- border-right: 1px solid #CCCCCC;
- float: left;
- font-size: 11px;
- height: 42px;
- margin: 0 6px 0 0px;
- padding: 8px 2px 0;
- text-align: center;
- width: 46px;
-}
-
-.short-summary .favorites {
- width: 24px;
- float: left;
- text-align: center;
-}
-
-.short-summary .votes, .short-summary .views {
- color: #666666;
-}
-
-#question-table {
- margin-bottom: 10px;
-}
-
-.evenMore {
- font-size: 14px;
- font-weight: 800;
-}
-
-.questions-count {
- color: #A40000;
- font-family: sans-serif;
- font-size: 32px;
- font-weight: 600;
- margin-top: 3px;
- padding: 0 0 5px 0;
-}
-
-.boxA {
- background: none repeat scroll 0 0 #888A85;
- margin-bottom: 8px;
- padding: 6px;
-}
-
-.boxA h3 {
- color: #FFFFFF;
- font-size: 13px;
- font-weight: 800;
- margin: 0 0 4px;
- padding: 0;
-}
-
-.boxA .body {
- background: none repeat scroll 0 0 #FFFFFF;
- border: 1px solid #999999;
- font-size: 13px;
- padding: 8px;
-}
-
-.boxA .more {
- font-weight: 800;
- padding: 2px;
- text-align: right;
-}
-
-.boxB {
- background: none repeat scroll 0 0 #F9F7ED;
- border: 1px solid #AAAAAA;
- margin-bottom: 8px;
- padding: 6px;
-}
-
-.boxB h3 {
- background: url("../images/dot-g.gif") no-repeat scroll left center transparent;
- color: #000000;
- font-size: 13px;
- font-weight: 800;
- margin: 0 0 4px;
- padding: 0 0 0 15px;
-}
-
-.boxB .body {
- background: none repeat scroll 0 0 #FFFFFF;
- border: 1px solid #AAAAAA;
- font-size: 13px;
- line-height: 160%;
- padding: 8px;
-}
-
-.boxB .more {
- font-weight: 800;
- padding: 1px;
- text-align: right;
-}
-
-.boxC {
- background: none repeat scroll 0 0 #E5EBF8;
- border-color: #EEEEEC #A9ACA5 #BABDB6 #EEEEEC;
- border-style: solid;
- border-width: 1px;
- margin-bottom: 8px;
- padding: 10px;
-}
-
-.boxC p {
- margin-bottom: 8px;
-}
-
-.boxC p.nomargin {
- margin: 0;
-}
-
-.boxC p.info-box-follow-up-links {
- margin: 0;
- text-align: right;
-}
-
-.pager {
- float: left;
- margin-bottom: 16px;
- margin-top: 10px;
-}
-
-.pagesize {
- float: right;
- margin-bottom: 16px;
- margin-top: 10px;
-}
-
-.paginator {
- font: 12px sans-serif;
- padding: 5px 0 10px;
-}
-
-.paginator .prev-na, .paginator .next-na {
- font: bold 0.875em sans-serif;
- padding: 0.3em;
-}
-
-.paginator .prev-na, .paginator .next-na {
- background-color: #F9F9F9;
- border: 1px solid #CCCCCC;
- color: #AAAAAA;
- font-weight: normal;
-}
-
-.paginator .prev a, .paginator .prev a:visited, .paginator .next a, .paginator .next a:visited {
- background-color: #FFFFFF;
- border: 1px solid #FFFFFF;
- color: #777777;
- font: bold 100% sans-serif;
- padding: 2px 4px 3px;
-}
-
-.paginator .prev, .paginator .prev-na {
- margin-right: 0.5em;
-}
-
-.paginator .next, .paginator .next-na {
- margin-left: 0.5em;
-}
-
-.paginator .page a, .paginator .page a:visited, .paginator .curr {
- background-color: #FFFFFF;
- border: 1px solid #CCCCCC;
- color: #777777;
- font: 0.875em verdana;
- margin: 0 0.25em;
- padding: 0.25em;
-}
-
-.paginator .curr {
- background-color: #777777;
- border: 1px solid #777777;
- color: #FFFFFF;
- font-weight: bold;
-}
-
-.paginator .page a:hover, .paginator .curr a:hover, .paginator .prev a:hover, .paginator .next a:hover {
- background-color: #777777;
- border: 1px solid #777777;
- color: #FFFFFF;
- text-decoration: none;
-}
-
-.paginator .text {
- color: #777777;
- font: bold 100% sans-serif;
- padding: 0.3em;
-}
-
-.paginator-container {
- float: right;
- padding: 10px 0;
-}
-
-.paginator-container-left {
- padding: 5px 0 10px;
-}
-
-.tags {
- display: block;
- font-family: sans-serif;
- line-height: 200%;
- margin-top: 5px;
-}
-
-.tags a, span.tag {
- background-color: #EEEEEE;
- border-bottom: 1px solid #CCCCCC;
- border-right: 1px solid #CCCCCC;
- color: #777777;
- font-size: 11px;
- font-weight: normal;
- padding: 1px 8px;
- text-decoration: none;
- white-space: nowrap;
-}
-
-.tags a:hover {
- background-color: #356FCB;
- color: #FFFFFF;
-}
-
-.tagsbox {
- line-height: 200%;
-}
-
-.tagsbox a {
- background-color: #EEEEEE;
- border-color: #EEEEEE #CCCCCC #CCCCCC #777777;
- border-left: 3px solid #777777;
- border-style: solid;
- border-width: 1px 1px 1px 3px;
- color: #333333;
- font-size: 13px;
- font-weight: normal;
- padding: 1px 8px;
- text-decoration: none;
-}
-
-.tagsbox a:hover {
- background-color: #FFFFFF;
- color: #333333;
-}
-
-.tag-number {
- font-family: sans-serif;
- font-weight: 700;
-}
-
-.marked-tags {
- margin-bottom: 5px;
- margin-top: 0;
-}
-
-.deletable-tag {
- margin-right: 3px;
- white-space: nowrap;
-}
-
-a.medal {
- background: none repeat scroll 0 0 #FFFFCD;
- border-color: #EEEEEE #CCCCCC #CCCCCC #EEEEEE;
- border-left: 1px solid #EEEEEE;
- border-style: solid;
- border-width: 1px;
- color: #333333;
- font-size: 14px;
- font-weight: bold;
- line-height: 250%;
- padding: 4px 12px 4px 6px;
- text-decoration: none;
-}
-
-a.medal:hover {
- background: url("../images/medala_on.gif") no-repeat scroll 0 0 transparent;
- border-color: #E7E296 #D1CA3D #D1CA3D #E7E296;
- border-left: 1px solid #E7E296;
- border-style: solid;
- border-width: 1px;
- color: #333333;
- text-decoration: none;
-}
-
-.tabBar {
- background-color: #FFFFFF;
- border-bottom: 1px solid white;
- clear: both;
- height: 30px;
- margin-bottom: 3px;
- width: 100%;
-}
-
-.tabsA {
- background-color: #FFFFFF;
- display: block;
- float: right;
- font-weight: bold;
- height: 20px;
- position: relative;
-}
-
-.tabsB {
- background-color: #FFFFFF;
- display: block;
- float: left;
- font-weight: bold;
- height: 20px;
- position: relative;
-}
-
-.tabsA a {
- background: none repeat scroll 0 0 #EEEEEE;
- border-bottom: 1px solid #CCCCCC;
- border-right: 1px solid #CCCCCC;
- color: #888A85;
- display: block;
- float: left;
- height: 20px;
- line-height: 22px;
- margin: 5px 4px 0 0;
- padding: 0 11px;
- text-decoration: none;
-}
-
-.tabsA a.on, .tabsA a:hover, .tabsB a.on, .tabsB a:hover {
- background: none repeat scroll 0 0 #FFFFFF;
- color: #A40000;
-}
-
-.tabsA a:hover, .tabsB a:hover {
- background: none repeat scroll 0 0 #356FCB;
- color: #FFFFFF;
-}
-
-.tabsB a {
- background: none repeat scroll 0 0 #EEEEEE;
- border: 1px solid #EEEEEE;
- color: #777777;
- display: block;
- float: left;
- height: 22px;
- line-height: 28px;
- margin: 5px 0 0 4px;
- padding: 0 11px;
- text-decoration: none;
-}
-
-.headlineA {
- border-bottom: 1px solid #777777;
- font-size: 13px;
- font-weight: 800;
- height: 30px;
- margin-bottom: 12px;
- padding-bottom: 2px;
- text-align: right;
-}
-
-.headQuestions {
- background: url("../images/dot-list.gif") no-repeat scroll left center transparent;
- border-bottom: 0 solid #777777;
- float: left;
- font-size: 15px;
- font-weight: 700;
- height: 23px;
- line-height: 23px;
- margin: 5px 0 0 5px;
- padding: 0 6px 0 15px;
-}
-
-.headAnswers {
- background: url("../images/ico_answers.gif") no-repeat scroll left 2px transparent;
- float: left;
- font-size: 18px;
- font-weight: 800;
- padding: 3px 3px 3px 24px;
-}
-
-.headTags {
- background: url("../images/ico_tags.gif") no-repeat scroll 0 0 transparent;
- float: left;
- font-size: 18px;
- font-weight: 800;
- padding: 3px 3px 3px 24px;
-}
-
-.headUsers {
- background: url("../images/dot-list.gif") no-repeat scroll left center transparent;
- border-bottom: 0 solid #777777;
- float: left;
- font-size: 15px;
- font-weight: 700;
- height: 23px;
- line-height: 23px;
- margin: 5px 0 0 5px;
- padding: 0 6px 0 15px;
-}
-
-.headMedals {
- background: url("../images/dot-list.gif") no-repeat scroll left center transparent;
- border-bottom: 0 solid #777777;
- float: left;
- font-size: 15px;
- font-weight: 700;
- height: 23px;
- line-height: 23px;
- margin: 5px 0 0 5px;
- padding: 0 6px 0 15px;
-}
-
-.headLogin {
- background: url("../images/ico_login.gif") no-repeat scroll 0 0 transparent;
- float: left;
- font-size: 15px;
- font-weight: 800;
- padding: 3px 3px 3px 24px;
-}
-
-.headNormal {
- border-bottom: 1px solid #777777;
- font-size: 15px;
- font-weight: bold;
- margin-bottom: 12px;
- padding: 3px;
- text-align: left;
-}
-
-.headUser {
- border-bottom: 1px solid #777777;
- font-size: 20px;
- font-weight: 800;
- margin-bottom: 12px;
- padding: 5px;
- text-align: left;
-}
-
-#feeds {
- margin: 10px 0;
-}
-
-#feeds a {
- background: url("../images/feed-icon-small.png") no-repeat scroll 0 50% transparent;
- font-size: 13px;
- font-weight: 700;
- padding-left: 18px;
-}
-
-#question {
- margin-bottom: 30px;
-}
-
-#question h1 {
- background: none repeat scroll 0 0 #CCCCCC;
- font-size: 15px;
- padding: 6px 8px;
-}
-
-#question .body {
- background: none repeat scroll 0 0 #F7F7F7;
- padding: 20px 10px;
-}
-
-.starter {
- background: none repeat scroll 0 0 #E0EAF1;
- padding: 10px;
-}
-
-.vote {
- color: #666666;
- font-size: 20px;
- font-weight: 800;
-}
-
-.questions-related {
- font-weight: 700;
- word-wrap: break-word;
-}
-
-.questions-related p {
- font-size: 100%;
- line-height: 20px;
- margin-bottom: 10px;
-}
-
-.question-status {
- background-color: #F5F5F5;
- margin-top: 10px;
- padding: 20px;
- text-align: center;
-}
-
-.question-status h3 {
- font-size: 125%;
-}
-
-.question-body {
- font-size: 13px;
- line-height: 20px;
- min-height: 100px;
-}
-
-.question-body img {
- max-width: 600px;
-}
-
-.question-mark {
- overflow: hidden;
- padding: 5px;
- text-align: left;
-}
-
-.question-edit {
- overflow: hidden;
- text-align: left;
-}
-
-.vote-buttons {
- float: left;
- text-align: center;
-}
-
-.vote-buttons img {
- cursor: pointer;
-}
-
-.vote-notification {
- background-color: darkred;
- color: White;
- cursor: pointer;
- display: none;
- padding: 15px;
- position: absolute;
- text-align: center;
- z-index: 1;
-}
-
-.vote-notification a {
- color: White;
- text-decoration: underline;
-}
-
-.offensive-flag a {
- color: #777777;
- cursor: pointer;
- padding: 3px;
-}
-
-.offensive-flag a:hover {
- background-color: #777777;
- color: #FFFFFF;
- text-decoration: none;
-}
-
-.linksopt a {
- color: #777777;
- cursor: pointer;
- padding: 3px;
-}
-
-.linksopt a:hover {
- background-color: #777777;
- color: #FFFFFF;
- text-decoration: none;
-}
-
-.wiki-category {
- color: #999999;
- font-size: 90%;
- margin-left: 5px;
-}
-
-div.comments {
- line-height: 150%;
- padding: 10px 0;
-}
-
-div.post-comments {
- background: url("../images/gray-up-arrow-h18px.png") no-repeat scroll 0 0 transparent;
- clear: both;
- margin: 3px 0 10px;
- padding-left: 12px;
- width: 100%;
-}
-
-form.post-comments textarea {
- height: 6em;
- margin-bottom: 4px;
-}
-
-form.post-comments input {
- margin-left: 10px;
- margin-top: 1px;
- vertical-align: top;
- width: 100px;
-}
-
-span.form-error {
- color: #990000;
- font-weight: normal;
- margin-left: 5px;
-}
-
-p.form-item {
- margin: 0;
-}
-
-div.comments-container, div.comments-container-accepted, div.comments-container-owner, div.comments-container-deleted {
- padding: 0;
-}
-
-.post-comments a {
- color: #888888;
- padding: 0 3px 2px;
-}
-
-#answers {
-}
-
-.answer {
- border-bottom: 1px solid #CCCCCE;
- padding-top: 10px;
- width: 100%;
-}
-
-.answer-body {
- font-size: 13px;
- line-height: 20px;
- min-height: 80px;
-}
-
-.answer-body img {
- max-width: 600px;
-}
-
-.accepted-answer {
- background-color: #EBFFE6;
- border-bottom-color: #9BD59B;
-}
-
-.accepted-answer .comments-link {
- background-color: #CCFFBF;
-}
-
-.accepted-answer .comments-container {
- background-color: #CCFFBF;
-}
-
-.answered {
- background: none repeat scroll 0 0 #E5EBF8;
- color: #314362;
-}
-
-.answered-accepted {
- background: none repeat scroll 0 0 #E6F8DD;
- color: #3A6231;
-}
-
-.unanswered {
- background: none repeat scroll 0 0 #F3E3E1;
- color: #6B2B28;
-}
-
-.answered-by-owner {
- background: none repeat scroll 0 0 #E9E9FF;
-}
-
-.answered-by-owner .comments-link {
- background-color: #E6ECFF;
-}
-
-.answered-by-owner .comments-container {
- background-color: #E6ECFF;
-}
-
-.answered-accepted strong {
- color: #E1E818;
-}
-
-.answer-img-accept:hover {
- background: url("../images/vote-accepted-on.png") repeat scroll 0 0 transparent;
-}
-
-.deleted {
- background: none repeat scroll 0 0 #F4E7E7;
-}
-
-.tagsList {
- list-style-type: none;
- margin: 0;
- min-height: 360px;
- padding: 0;
-}
-
-.tagsList li {
- float: left;
- width: 235px;
-}
-
-.badge-list {
- list-style-type: none;
- margin: 0;
-}
-
-.badge-list a {
- color: #3060A8;
-}
-
-.badge-list a.medal {
- color: #333333;
-}
-
-.list-item {
- margin-left: 15px;
-}
-
-.list-item li {
- font-size: 13px;
- line-height: 20px;
- list-style-type: disc;
- margin-bottom: 10px;
-}
-
-.form-row {
- line-height: 25px;
-}
-
-table.form-as-table {
- margin-top: 5px;
-}
-
-table.form-as-table ul {
- display: inline;
- list-style-type: none;
-}
-
-table.form-as-table li {
- display: inline;
-}
-
-table.form-as-table th {
- font-weight: normal;
- text-align: left;
-}
-
-table.form-as-table pre {
- display: inline;
-}
-
-table.check-table td {
- padding-right: 50px;
-}
-
-.submit-row {
- clear: both;
- display: block;
- line-height: 30px;
- padding-top: 10px;
-}
-
-.errors {
- color: red;
- line-height: 20px;
-}
-
-.error {
- color: darkred;
- font-size: 10px;
- margin: 0;
-}
-
-.error-list li {
- padding: 5px;
-}
-
-.fieldset {
- border: medium none;
- margin-top: 10px;
- padding: 10px;
-}
-
-.openid-input {
- background: url("../images/openid.gif") no-repeat scroll 0 0 transparent;
- cursor: pointer;
- padding-left: 15px;
-}
-
-.openid-login-input {
- background: url("../images/openid.gif") no-repeat scroll 0 50% transparent;
- cursor: pointer;
- font-family: Trebuchet MS;
- font-size: 150%;
- font-weight: 300;
- padding: 5px 5px 5px 15px;
- width: 500px;
-}
-
-.openid-login-submit {
- border: 1px solid #777777;
- cursor: pointer;
- font-size: 120%;
- font-weight: bold;
- height: 40px;
- line-height: 40px;
- width: 80px;
-}
-
-.openid-samples {
-}
-
-.openid-samples .list, .list li {
- font-family: Trebuchet MS, "segoe ui", Helvetica, "Microsoft YaHei", å ® ‹ ä ½ “, Tahoma, Verdana, MingLiu, PMingLiu, Arial, sans-serif;
- line-height: 20px !important;
- list-style: none outside none !important;
- margin-left: -30px !important;
-}
-
-span.form-error {
- color: #990000;
- font-size: 90%;
- font-weight: normal;
- margin-left: 5px;
-}
-
-.title-desc {
- color: #666666;
- font-size: 90%;
-}
-
-#editor {
- font-size: 100%;
- line-height: 18px;
- min-height: 200px;
- width: 100%;
-}
-
-.wmd-preview {
- background-color: #F5F5F5;
- margin-top: 10px;
- min-height: 20px;
- padding: 6px;
- width: 100%;
-}
-
-.wmd-preview pre {
- background-color: #E7F1F8;
-}
-
-.wmd-preview blockquote {
- background-color: #EEEEEE;
-}
-
-.wmd-preview img {
- max-width: 600px;
-}
-
-.preview-toggle {
- color: #AAAAAA;
- font-weight: 600;
- text-align: left;
- width: 100%;
-}
-
-.preview-toggle span:hover {
- cursor: pointer;
-}
-
-.edit-content-html {
- border-bottom: 1px dotted #D8D2A9;
- border-top: 1px dotted #D8D2A9;
- margin: 5px 0;
-}
-
-#revisions {
- width: 950px;
-}
-
-.revision {
- font-size: 13px;
- margin: 10px 0;
- width: 100%;
-}
-
-.revision .header {
- background-color: #EEEEEE;
- cursor: pointer;
- padding: 5px;
-}
-
-.revision .author {
- background-color: #E9E9FF;
-}
-
-.revision .summary {
- padding: 5px 0 10px;
-}
-
-.revision .summary span {
- background-color: yellow;
- display: inline;
- padding-left: 3px;
- padding-right: 3px;
-}
-
-.revision h1 {
- font-size: 130%;
- font-weight: 600;
- padding: 15px 0;
-}
-
-.revision-mark {
- display: inline-block;
- font-size: 90%;
- overflow: hidden;
- text-align: left;
- width: 200px;
-}
-
-.revision-number {
- font-family: sans-serif;
- font-size: 300%;
- font-weight: bold;
-}
-
-.revision .body {
- margin-bottom: 50px;
- padding-left: 10px;
-}
-
-.revision .answerbody {
- padding: 10px 0 5px 10px;
-}
-
-del {
- color: #FF5F5F;
-}
-
-del .post-tag {
- color: #FF5F5F;
-}
-
-ins {
- background-color: #97FF97;
-}
-
-ins .post-tag {
- background-color: #97FF97;
-}
-
-.count {
- color: #777777;
- font-family: Arial;
- font-size: 200%;
- font-weight: 700;
-}
-
-.scoreNumber {
- color: #777777;
- font-family: Arial;
- font-size: 35px;
- font-weight: 800;
- line-height: 40px;
-}
-
-.user-details {
- font-size: 13px;
-}
-
-.user-about {
- background-color: #EEEEEE;
- height: 200px;
- line-height: 20px;
- overflow: auto;
- padding: 10px;
- width: 90%;
-}
-
-.user-edit-link {
- background: url("../images/edit.png") no-repeat scroll 0 0 transparent;
- padding-left: 20px;
-}
-
-.favorites-count-off {
- color: #919191;
- float: left;
- margin: 10px 0 0;
- padding: 3px;
- text-align: center;
-}
-
-.favorites-count {
- color: #D4A849;
- float: left;
- margin: 10px 0 0;
- padding: 3px;
- text-align: center;
-}
-
-.favorites-empty {
- float: left;
- height: 45px;
- width: 32px;
-}
-
-.question-summary {
- border-bottom: 1px dotted #999999;
- float: left;
- overflow: hidden;
- padding: 11px 0;
- width: 670px;
-}
-
-.user-info-table {
- margin-bottom: 10px;
-}
-
-.user-stats-table .question-summary {
- width: 800px;
-}
-
-.narrow .stats {
- background: none repeat scroll 0 0 transparent;
- float: left;
- font-family: Arial;
- height: 48px;
- margin: 0 0 0 7px;
- padding: 0;
- width: auto;
-}
-
-.stats div {
- font-size: 11px;
- text-align: center;
-}
-
-.narrow .votes {
- -moz-border-radius: 5px 5px 5px 5px;
- background: none repeat scroll 0 0 #EEEEEE;
- float: left;
- height: 42px;
- margin: 0 3px 0 0;
- padding: 5px;
- text-align: center;
- width: 46px;
-}
-
-.narrow .summary {
- display: inline-block;
- width: 600px;
-}
-
-.narrow .summary h3 {
- margin: 0;
- padding: 0;
-}
-
-.narrow .views {
- -moz-border-radius: 5px 5px 5px 5px;
- float: left;
- height: 42px;
- margin: 0 7px 0 0;
- padding: 5px;
- text-align: center;
- width: 46px;
-}
-
-.narrow .status {
- -moz-border-radius: 5px 5px 5px 5px;
- float: left;
- height: 42px;
- margin: 0 3px 0 0;
- padding: 5px;
- text-align: center;
- width: 46px;
-}
-
-.narrow .vote-count-post {
- color: #555555;
- display: block;
- font-size: 190%;
- font-weight: 800;
- line-height: 20px;
- margin: 0;
-}
-
-.narrow .answer-count-post {
- display: block;
- font-size: 190%;
- font-weight: 800;
- margin: 0;
-}
-
-.narrow .views-count-post {
- display: block;
- font-size: 190%;
- font-weight: 800;
- margin: 0;
-}
-
-div.started {
- color: #999999;
- float: right;
- line-height: 18px;
-}
-
-.narrow div.started {
- line-height: inherit;
- padding-top: 4px;
- white-space: nowrap;
- width: auto;
-}
-
-.relativetime {
- text-decoration: none;
-}
-
-div.started a {
- font-weight: bold;
-}
-
-div.started .reputation-score {
- margin-left: 1px;
-}
-
-.narrow .tags {
- float: left;
-}
-
-.answer-summary {
- clear: both;
- display: block;
- padding: 3px;
-}
-
-.answer-votes {
- background-color: #EEEEEE;
- color: #555555;
- float: left;
- font-family: Arial;
- font-size: 110%;
- font-weight: bold;
- height: 15px;
- margin-right: 10px;
- padding: 4px 4px 5px;
- text-align: center;
- text-decoration: none;
- width: 20px;
-}
-
-.vote-count {
- color: #777777;
- font-family: Arial;
- font-size: 160%;
- font-weight: 700;
-}
-
-.user-action {
-}
-
-.user-action-1 {
- color: #333333;
- font-weight: bold;
-}
-
-.user-action-2 {
- color: #CCCCCC;
- font-weight: bold;
-}
-
-.user-action-3 {
- color: #333333;
-}
-
-.user-action-4 {
- color: #333333;
-}
-
-.user-action-5 {
- color: darkred;
-}
-
-.user-action-6 {
- color: darkred;
-}
-
-.user-action-7 {
- color: #333333;
-}
-
-.user-action-8 {
- background-color: #CCCCCC;
- color: #763333;
- font-weight: bold;
- padding: 3px;
-}
-
-.revision-summary {
- background-color: #FFFE9B;
- padding: 2px;
-}
-
-.question-title-link a {
- color: #0077CC;
- font-weight: bold;
-}
-
-.answer-title-link a {
- color: #333333;
-}
-
-.post-type-1 a {
- font-weight: bold;
-}
-
-.post-type-3 a {
- font-weight: bold;
-}
-
-.post-type-5 a {
- font-weight: bold;
-}
-
-.post-type-2 a {
- color: #333333;
-}
-
-.post-type-4 a {
- color: #333333;
-}
-
-.post-type-6 a {
- color: #333333;
-}
-
-.post-type-8 a {
- color: #333333;
-}
-
-.bookInfo {
- float: left;
- padding: 5px;
- width: 940px;
-}
-
-.bookCover {
- float: left;
- width: 200px;
-}
-
-.bookCover img {
- border: 1px solid #CCCCCC;
- max-width: 200px;
-}
-
-.bookSummary {
- float: left;
- font-size: 13px;
-}
-
-.blogRss {
- background-color: #EEEEEE;
- float: right;
- height: 240px;
- margin: 0 10px 0 0;
- padding: 5px;
- width: 460px;
-}
-
-.bookQuestions {
- margin-bottom: 10px;
-}
-
-.bookFeed {
- float: right;
-}
-
-.bookAsk {
- float: right;
- margin: -30px 10px 0 0;
- padding: 3px 5px;
-}
-
-.bookAsk a {
- background-color: #EC7000;
- color: #FFFFFF;
- font-size: 15px;
- font-weight: bold;
- padding: 3px 6px;
- text-decoration: none;
-}
-
-.bookAsk a:hover {
- text-decoration: underline;
-}
-
-.hilite {
- background-color: #FFFF00;
-}
-
-.hilite1 {
- background-color: #FFFF00;
-}
-
-.hilite2 {
- background-color: #FF00FF;
-}
-
-.hilite3 {
- background-color: #00FFFF;
-}
-
-.userStatus {
- color: #FFFFFF;
- float: right;
- margin-left: 12px;
-}
-
-.userStatus a {
- color: #FFFFFF;
-}
-
-.gold, .badge1 {
- color: #FFCC00;
-}
-
-.silver, .badge2 {
- color: #CCCCCC;
-}
-
-.bronze, .badge3 {
- color: #CC9933;
-}
-
-.score {
- color: #333333;
- font-size: 110%;
- font-weight: bold;
-}
-
-.footerLinks {
- color: #3060A8;
- font-size: 13px;
-}
-
-.footerLinks a {
- color: #3060A8;
- font-size: 13px;
-}
-
-.subSearch {
- margin-bottom: 12px;
- padding: 4px;
-}
-
-a.comment {
- background: none repeat scroll 0 0 #EEEEEE;
- color: #993300;
- padding: 4px;
-}
-
-a.permLink {
- padding: 2px;
-}
-
-a.offensive {
- color: #999999;
-}
-
-ul.bulleta li {
- background: url("../images/bullet_green.gif") no-repeat scroll 0 2px transparent;
- margin-bottom: 4px;
- padding-left: 16px;
-}
-
-.user {
- line-height: 140%;
- padding: 5px;
- width: 170px;
-}
-
-.user ul {
- list-style-type: none;
- margin: 0;
-}
-
-.user .thumb {
- clear: both;
- display: inline;
- float: left;
- margin-right: 4px;
-}
-
-.yellowbg {
- background: none repeat scroll 0 0 yellow;
-}
-
-.message {
- background-color: #EEEEEE;
- border: 1px solid #AAAAAA;
- margin: 10px 0;
- padding: 5px;
-}
-
-.message h1 {
- font-size: 15px;
- padding-top: 0;
-}
-
-.message p {
- margin-bottom: 0;
-}
-
-p.space-above {
- margin-top: 10px;
-}
-
-.warning {
- color: red;
-}
-
-.darkred {
- color: darkred;
-}
-
-.submit {
- background-color: #D4D0C8;
- border: 1px solid #777777;
- cursor: pointer;
- font-size: 120%;
- font-weight: bold;
- height: 40px;
- padding-bottom: 4px;
-}
-
-.submit:hover {
- text-decoration: underline;
-}
-
-.ask-body {
- padding-right: 10px;
-}
-
-.thousand {
- color: orange;
-}
-
-.notify {
- background-color: #F4A83D;
- color: #444444;
- font-weight: bold;
- left: 0;
- padding: 0;
- position: fixed;
- text-align: center;
- top: 0;
- width: 100%;
- z-index: 100;
-}
-
-.notify p {
- font-size: 16px;
- margin-bottom: 5px;
- margin-top: 5px;
-}
-
-#close-notify {
- background-color: #FAD163;
- border: 2px solid #735005;
- color: #735005;
- cursor: pointer;
- font-size: 14px;
- line-height: 18px;
- padding: 0 3px;
- position: absolute;
- right: 5px;
- text-decoration: none;
- top: 5px;
-}
-
-#close-notify:hover {
- text-decoration: none;
-}
-
-.big {
- font-size: 15px;
-}
-
-.bigger {
- font-size: 14px;
-}
-
-.strong {
- font-weight: bold;
-}
-
-.orange {
- color: #D64000;
- font-weight: bold;
-}
-
-.grey {
- color: #808080;
-}
-
-.about div {
- border-top: 1px dashed #AAAAAA;
- padding: 10px 5px;
-}
-
-.about div.first {
- border-top: medium none;
- padding-top: 0;
-}
-
-.about p {
- margin-bottom: 10px;
-}
-
-.about a {
- color: #D64000;
- text-decoration: underline;
-}
-
-.about h3 {
- font-size: 15px;
- font-weight: 700;
- line-height: 30px;
- padding-top: 0;
-}
-
-.highlight {
- background-color: #FFF8C6;
-}
-
-.nomargin {
- margin: 0;
-}
-
-.margin-bottom {
- margin-bottom: 10px;
-}
-
-.margin-top {
- margin-top: 10px;
-}
-
-.inline-block {
- display: inline-block;
-}
-
-.action-status {
- border: medium none;
- font-size: 12px;
- line-height: 10px;
- margin: 0;
- padding: 0;
- text-align: center;
-}
-
-.action-status span {
- -moz-border-radius: 5px 5px 5px 5px;
- background-color: #FFF380;
- font-weight: normal;
- padding: 3px 5px;
-}
-
-.tight {
- margin: 0;
- padding: 0;
-}
-
-.list-table td {
- vertical-align: top;
-}
-
-.delete-icon {
- padding-left: 3px;
- vertical-align: middle;
-}
-
-table.form-as-table .errorlist {
- color: darkred;
- display: block;
- font-size: 10px;
- margin: 0;
- padding: 0 0 0 5px;
- text-align: left;
-}
-
-table.form-as-table input {
- display: inline;
- margin-left: 4px;
-}
-
-table.form-as-table th {
- padding-bottom: 4px;
- vertical-align: bottom;
-}
-
-.form-row-vertical {
- display: block;
- margin-top: 8px;
-}
-
-.form-row-vertical label {
- display: block;
- margin-bottom: 3px;
-}
-
-.text-align-right {
- text-align: center;
-}
-
-ul.form-horizontal-rows {
- list-style: none outside none;
- margin: 0;
-}
-
-ul.form-horizontal-rows li {
- height: 40px;
- position: relative;
-}
-
-ul.form-horizontal-rows label {
- display: inline-block;
-}
-
-ul.form-horizontal-rows ul.errorlist {
- color: darkred;
- font-size: 10px;
- left: 180px;
- line-height: 10px;
- list-style: none outside none;
- margin: 0;
- position: absolute;
- text-align: left;
- top: 2px;
-}
-
-ul.form-horizontal-rows ul.errorlist li {
- height: 10px;
-}
-
-ul.form-horizontal-rows label {
- bottom: 6px;
- font-size: 12px;
- left: 0;
- line-height: 12px;
- margin: 0;
- position: absolute;
-}
-
-ul.form-horizontal-rows li input {
- bottom: 0;
- left: 180px;
- margin: 0;
- position: absolute;
-}
-
-#emailpw-form li input {
- left: 170px;
-}
-
-#emailpw-form ul.errorlist {
- left: 170px;
-}
-
-#changepw-form li input {
- left: 150px;
-}
-
-#changepw-form ul.errorlist {
- left: 150px;
-}
-
-.narrow .summary {
- float: left;
-}
-
-.narrow .summary .question-title {
- font-size: 120%;
- font-weight: bold;
-}
-
-.user-profile-tool-links {
- font-weight: bold;
- padding-bottom: 10px;
-}
-
-.post-controls {
- float: left;
- font-size: 11px;
- line-height: 12px;
- margin-bottom: 5px;
- min-width: 200px;
-}
-
-#question-controls .tags {
- margin: 0 0 3px;
-}
-
-.post-update-info-container {
- float: right;
- min-width: 190px;
-}
-
-.post-update-info {
- display: inline-block;
- float: right;
- margin-bottom: 5px;
- width: 190px;
-}
-
-.post-update-info p {
- font-size: 11px;
- line-height: 15px;
- margin: 0 0 4px;
- padding: 0;
-}
-
-.post-update-info img {
- float: left;
- margin: 4px 8px 0 0;
- width: 32px;
-}
-
-.comments-container {
- clear: both;
-}
-
-.admin {
- background-color: #FFF380;
- border: 1px solid darkred;
- padding: 0 5px;
-}
-
-.admin p {
- margin-bottom: 3px;
-}
-
-.admin #action_status {
- font-weight: bold;
- text-align: center;
-}
-
-#tagSelector {
- padding-bottom: 2px;
-}
-
-#hideIgnoredTagsControl {
- margin: 5px 0 0;
-}
-
-#hideIgnoredTagsCb {
- margin: 0 2px 0 1px;
-}
-
-#recaptcha_widget_div {
- clear: both;
- float: left;
- width: 318px;
-}
-
-p.signup_p {
- margin: 20px 0 0;
-}
-
-.simple-subscribe-options ul {
- list-style: none outside none;
- margin: 0;
-}
-
-a.sidebar_button {
- background: none repeat scroll 0 0 #EEEEEE;
- color: black;
- cursor: pointer;
- font-size: 11px;
- padding: 3px;
-}
-
-a.sidebar_button:hover {
- background-color: #777777;
- color: white;
- text-decoration: none;
-}
-
-a.post-vote, .favorite-mark, a.accept-answer, span.post_vote {
- display: block;
- height: 24px;
- position: relative;
- width: 24px;
-}
-
-a.post-vote.up {
- background: url("/m/default/media/images/vote-arrow-up.png") no-repeat scroll center center transparent;
-}
-
-a.post-vote.up.on, a.post-vote.up:hover, span.post_vote.up {
- background: url("/m/default/media/images/vote-arrow-up-on.png") no-repeat scroll center center transparent;
-}
-
-a.post-vote.down {
- background: url("/m/default/media/images/vote-arrow-down.png") no-repeat scroll center center transparent;
-}
-
-a.post-vote.down.on, a.post-vote.down:hover, span.post_vote.down {
- background: url("/m/default/media/images/vote-arrow-down-on.png") no-repeat scroll center center transparent;
-}
-
-a.accept-answer {
- background: url("/m/default/media/images/vote-accepted.png") no-repeat scroll center center transparent;
-}
-
-a.accept-answer.on, a.accept-answer:hover {
- background: url("/m/default/media/images/vote-accepted-on.png") no-repeat scroll center center transparent;
-}
-
-.post-score {
- color: #777777;
- font-family: Arial;
- font-size: 140%;
- font-weight: bold;
- padding: 0 0 3px;
-}
-
-.favorite-mark {
- background: url("/m/default/media/images/vote-favorite-off.png") no-repeat scroll center center transparent;
-}
-
-.favorite-mark.on, a.favorite-mark:hover {
- background: url("/m/default/media/images/vote-favorite-on.png") no-repeat scroll center center transparent;
-}
-
-.favorite-count {
- color: #777777;
- font-family: Arial;
- font-size: 100%;
- font-weight: bold;
- padding: 0;
-}
-
-.comment {
- border-top: 1px dotted #CCCCCE;
- margin: 0;
- width: 100%;
-}
-
-.comment.not_top_scorer {
- display: none;
-}
-
-.comment-score {
- color: #777777;
- font-family: Arial;
- font-size: 16px;
- font-weight: bold;
- padding-top: 3px;
- vertical-align: top;
- width: 22px;
-}
-
-.comment-text {
- color: #444444;
- font-size: 11px;
- margin: 0 0 0 22px;
- padding: 0;
-}
-
-.comment-info {
- font-size: 11px;
- margin: 0;
- text-align: right;
-}
-
-a.comment-like, a.comment-delete, a.comment-edit {
- float: right;
- height: 18px;
- margin-left: 2px;
- position: relative;
- width: 18px;
-}
-
-a.comment-like {
- background: url("/m/default/media/images/comment-like.png") no-repeat scroll center center transparent;
-}
-
-a.comment-like:hover, a.comment-like.on {
- background: url("/m/default/media/images/comment-like-on.png") no-repeat scroll center center transparent;
-}
-
-a.comment-delete {
- background: url("/m/default/media/images/comment-delete.png") no-repeat scroll center center transparent;
-}
-
-a.comment-delete:hover {
- background: url("/m/default/media/images/comment-delete-hover.png") no-repeat scroll center center transparent;
-}
-
-a.comment-edit {
- background: url("/m/default/media/images/comment-edit.png") no-repeat scroll center center transparent;
-}
-
-a.comment-edit:hover {
- background: url("/m/default/media/images/comment-edit-hover.png") no-repeat scroll center center transparent;
-}
-
-.comment-form-container {
- display: none;
- padding-top: 12px;
-}
-
-.comment-form-widgets-container input {
- vertical-align: top;
-}
-
-.comment-form-widgets-container textarea {
- height: 6em;
- width: 80%;
-}
-
-span.comment-chars-left {
- font-size: 11px;
- margin-right: 20px;
-}
-
-span.comment-chars-left.warn {
- color: red;
-}
-
-div.comment-tools {
- border-top: 1px dotted #CCCCCE;
- padding-top: 12px;
- text-align: right;
-}
-
-div.comment-tools .comments-showing {
- color: #777777;
- font-size: 11px;
-}
-
-div.comment-tools a {
- background: none repeat scroll 0 0 #EEEEEE;
- color: black;
- cursor: pointer;
- font-size: 11px;
- padding: 3px;
-}
-
-div.comment-tools a:hover {
- background-color: #777777;
- color: white;
- text-decoration: none;
-}
-
-.action-link a {
- color: #777777;
- cursor: pointer;
- padding: 3px;
-}
-
-.action-link a.ajax-command:hover {
- background-color: #777777;
- color: #FFFFFF;
- text-decoration: none;
-}
-
-.action-link-separator {
- color: #CCCCCC;
-}
+++ /dev/null
-{% extends "base_content.html" %}
-<!-- template 404.html -->
-{% load i18n %}
-{% block title %}{% spaceless %}404 Error{% endspaceless %}{% endblock %}
-{% block forestyle%}
- <style type="text/css">
- form input { margin-right: 5px; }
- </style>
-{% endblock %}
-{% block forejs %}
- <script type="text/javascript">
- $().ready(function(){
- $("#linkPrevious").bind("click", back=function(){history.go(-1);})
- });
-
- </script>
-{% endblock %}
-{% block content %}
-<div id="main-bar" class="headNormal">
- 404 Not Found
-</div>
-<div id="main-body" class="">
- <div style="padding:5px 0px 10px 0;line-height:25px;">
- <h3>{% trans "Sorry, could not find the page you requested." %}</h3>
- <div style="margin-top:5px">
- {% trans "This might have happened for the following reasons:" %}<br/>
- <ul>
- <li>{% trans "this question or answer has been deleted;" %}</li>
- <li>{% trans "url has error - please check it;" %}</li>
- <li>{% trans "the page you tried to visit is protected or you don't have sufficient points, see" %} <a href="{% url faq %}"> faq</a>;</li>
- <li>{% trans "if you believe this error 404 should not have occured, please" %}
- <a href="{{feedback_site_url}}" target="_blank">{% trans "report this problem" %}</a></li>
- </u>
- </div>
- <script type="text/javascript">
- var GOOG_FIXURL_LANG = '{{settings.LANGUAGE_CODE}}';
- var GOOG_FIXURL_SITE = '{{site_url}}';
- </script>
- <script type="text/javascript" src="http://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js"></script>
- <ul>
- <li><a href="#" id="linkPrevious">{% trans "back to previous page" %} »</li>
- <li><a href="{% url questions %}">{% trans "see all questions" %} »</a></li>
- <li><a href="{% url tags %}">{% trans "see all tags" %} »</a></li>
- </u>
- </div>
-
-</div>
-{% endblock %}
-<!-- end template 404.html -->
+++ /dev/null
-{% extends "base_content.html" %}
-<!-- template 500.html -->
-{% load i18n %}
-{% block title %}{% spaceless %}500 Error{% endspaceless %}{% endblock %}
-{% block forejs %}
- <script type="text/javascript">
- $().ready(function(){
- $("#linkPrevious").bind("click", back=function(){history.go(-1);})
- });
-
- </script>
-{% endblock %}
-{% block content %}
-<div id="main-bar" class="">
- <h3>
- 500 Server Error
- </h3>
-
-</div>
-<div id="main-body" class="headNormal">
- <div style="padding:5px 0px 10px 0;line-height:25px">
- <h3>{% trans "sorry, system error" %}</h3>
- <br/>
- {% trans "system error log is recorded, error will be fixed as soon as possible" %}<br/>
- {% trans "please report the error to the site administrators if you wish" %}
- <ul>
- <li><a href="#" id="linkPrevious">{% trans "back to previous page" %}</li>
- <li><a href="{% url questions %}">{% trans "see latest questions" %}</a></li>
- <li><a href="{% url tags %}">{% trans "see tags" %}</a></li>
- </u>
- </div>
-
-</div>
-{% endblock %}
-<!-- end template 500.html -->
+++ /dev/null
-{% load i18n %}\r
-{% load humanize %}\r
-{% load extra_filters %}\r
-{% load extra_tags %}\r
-\r
-<div id="listA">\r
- {% for question in questions.object_list %}\r
- <div class="short-summary">\r
- <div class="counts">\r
- <div class="votes">\r
- <div class="item-count">{{question.score|intcomma}}</div>\r
- <div>{% trans "votes" %}</div>\r
- </div >\r
- <div {% if question.answer_accepted %}title="{% trans "this answer has been accepted to be correct" %}"{% endif %} class="status {% if question.answer_accepted %}answered-accepted{% endif %} {% ifequal question.answer_count 0 %}unanswered{% endifequal %}{% ifnotequal question.answer_count 0 %}answered{% endifnotequal %}">\r
- <div class="item-count">{{question.answer_count|intcomma}}</div>\r
- <div>{% trans "answers" %}</div>\r
- </div>\r
- <div class="views">\r
- <div class="item-count">{{question.view_count|cnprog_intword|safe}}</div>\r
- <div>{% trans "views" %}</div>\r
- </div>\r
- </div>\r
-\r
- <h2><a title="{{question.summary}}" href="{{ question.get_absolute_url }}">{{question.title}}</a></h2>\r
- <div class="userinfo">\r
- <span class="relativetime" title="{{question.last_activity_at}}">{% diff_date question.last_activity_at %}</span>\r
- {% if question.last_activity_by %}\r
- <a href="/users/{{ question.last_activity_by.id }}/{{ question.last_activity_by.username|slugify }}/">{{ question.last_activity_by }}</a> {% get_score_badge question.last_activity_by %}\r
- {% endif %}\r
- </div>\r
-\r
- <div class="tags">\r
- {% for tag in question.tagname_list %}\r
- <a href="{% url tag_questions tag|urlencode %}" title="{% trans "see questions tagged" %} '{{ tag }}' {% trans "using tags" %}" rel="tag">{{ tag }}</a>\r
- {% endfor %}\r
- </div>\r
- </div>\r
- {% endfor %}\r
-</div>
\ No newline at end of file
+++ /dev/null
-{% extends "base_content.html" %}
-<!-- template about.html -->
-{% load i18n %}
-{% block title %}{% spaceless %}{% trans "About" %}{% endspaceless %}{% endblock %}
-
-{% block content %}
-<div class="headNormal">
-{% trans "About" %}
-</div>
-<div class="content">
-{{ text|safe }}
-</div>
-{% endblock %}
-<!-- end template about.html -->
+++ /dev/null
-{% extends "base_content.html" %}
-<!-- settings.html -->
-{% load i18n %}
-{% block title %}{% spaceless %}{% trans "Account functions" %}{% endspaceless %}{% endblock %}
-{% block head %}
-<style type="text/css" media="screen">
- h4 {font-size:12pt;}
- dt, dd { padding:0 0 0.35em 0; }
- dt { float: left; width: 21ex; }
- dd { margin-left: 23ex; }
-
- #settings-options, #settings-intro { padding: 4em 1.5em;}
- #settings-options { min-height: 300px; border-left: 1px solid #333;}
-
- #settings-options h5 { font-weight: bold;}
-</style>
-{% endblock %}
-
-{% block content %}
-<div id="main-bar">
- <h3><strong>{{ request.user.username }} {% trans "Profile" %}</strong></h3>
-</div>
-<div id="settings-options">
- {% if msg %}
- <p class="error">{{ msg }}</p>
- {% endif %}
-
- <dl class="list-item">
- <dt>» <a href="{% url user_changepw %}">{% trans "Change password" %}</a></dt>
- <dd>{% trans "Give your account a new password." %}</dd>
- {% comment %}
- <dt>» <a href="{% url user_changeemail %}">{% trans "Change email " %}</a></dt>
- <dd>{% trans "Add or update the email address associated with your account." %}</dd>
-
- <dt>» <a href="{% url user_changeopenid %}">{% trans "Change OpenID" %}</a></dt>
- <dd>{% trans "Change openid associated to your account" %}</dd>
-
-
- <dt>» <a href="{% url user_delete %}">{% trans "Delete account" %}</a></dt>
- <dd>{% trans "Erase your username and all your data from website" %}</dd>
- {% endcomment %}
- </dl>
-</div>
-{% endblock %}
-<!-- end settings.html -->
+++ /dev/null
-{% extends "base.html" %}
-<!-- template answer_edit.html -->
-{% load i18n %}
-{% load extra_tags %}
-{% block title %}{% spaceless %}{% trans "Edit answer" %}{% endspaceless %}{% endblock %}
-{% block forejs %}
- <script type='text/javascript' src='{% media "/media/js/wmd/showdown.js" %}'></script>
- <script type='text/javascript' src='{% media "/media/js/wmd/wmd.js" %}'></script>
- <link rel="stylesheet" type="text/css" href="{% media "/media/js/wmd/wmd.css" %}" />
- <script type="text/javascript">
-
- $().ready(function(){
- $("#nav_questions").attr('className',"on");
- $('#editor').TextAreaResizer();
-
- //toggle preview of editor
- var display = true;
- var txt = "{% trans "hide preview" %}";
- $('#pre-collapse').text(txt);
- $('#pre-collapse').bind('click', function(){
- txt = display ? "{% trans "show preview" %}" : "{% trans "hide preview" %}";
- display = !display;
- $('#previewer').toggle();
- $('#pre-collapse').text(txt);
- });
-
-
- $('#id_revision').unbind().change(function(){
- $("#select_revision").click();
- });
-
-
- });
- </script>
-{% endblock %}
-
-{% block content %}
-<div id="main-bar" class="headNormal">
- {% trans "Edit answer" %} [<a href="{{ answer.question.get_absolute_url }}#{{ answer.id }}">{% trans "back" %}</a>]
-</div>
-<div id="main-body" class="ask-body">
- <div id="askform">
- <form id="fmedit" action="{% url edit_answer answer.id %}" method="post" >
- <label for="id_revision" ><strong>{% trans "revision" %}:</strong></label> <br/>
- {% if revision_form.revision.errors %}{{ revision_form.revision.errors.as_ul }}{% endif %}
- <div>
- {{ revision_form.revision }} <input type="submit" style="display:none" id="select_revision" name="select_revision" value="{% trans "select revision" %}">
- </div>
- <div class="form-item">
- <div id="wmd-button-bar" class="wmd-panel"></div>
- {{ form.text }}
- <span class="form-error"></span>
- <div class="preview-toggle"><span id="pre-collapse"
- title="{% trans "Toggle the real time Markdown editor preview" %}">{% trans "toggle preview" %}</span></div>
- <div id="previewer" class="wmd-preview"></div>
- </div>
-
- <strong>{{ form.summary.label_tag }}</strong> <br/>
- {{ form.summary }} {{ form.summary.errors }}
- <div class="title-desc">
- {{ form.summary.help_text }}
- </div>
- <input type="submit" value="{% trans "Save edit" %}" class="submit" />
- <input type="button" value="{% trans "Cancel" %}" class="submit" onclick="history.back(-1);" />
- </form>
- </div>
-</div>
-{% endblock %}
-
-{% block sidebar %}
-{% include "answer_edit_tips.html" %}
-{% endblock %}
-
-{% block endjs %}
-{% endblock %}
-<!-- end template answer_edit.html -->
+++ /dev/null
-<!-- template answer_edit_tips.html -->
-{% load i18n %}
-<div class="boxC">
- <p class="subtitle darkred">{% trans "answer tips" %}</p>
- <div>
- <ul class="list-item">
- <li> <b>{% trans "please make your answer relevant to this community" %}</b>
- </li>
- <li>
- {% trans "try to give an answer, rather than engage into a discussion" %}
- </li>
- <li>
- {% trans "please try to provide details" %}
- </li>
- <li>
- {% trans "be clear and concise" %}
- </li>
- </ul>
- <p class='info-box-follow-up-links'>
- <a href="{% url faq %}" target="_blank" title="{% trans "see frequently asked questions" %}">faq »</a>
- </p>
- </div>
-</div>
-
-<div class="boxC">
- <p class="subtitle">{% trans "Markdown tips" %}</p>
- <ul class="list-item">
- <li>
- {% trans "*italic* or __italic__" %}
- </li>
- <li>
- {% trans "**bold** or __bold__" %}
- </li>
- <li>
- <b>{% trans "link" %}</b>:[{% trans "text" %}](http://url.com/ "{% trans "title" %}")
-
- </li>
- <li>
- <b>{% trans "image" %}</b>:![alt {% trans "text" %}](/path/img.jpg "{% trans "title" %}")
-
- </li>
- <li>
- {% trans "numbered list:" %}
- 1. Foo
- 2. Bar
- </li>
- <li>
- {% trans "basic HTML tags are also supported" %}
- </li>
- </ul>
- <p class='info-box-follow-up-links'>
- <a href="http://en.wikipedia.org/wiki/Markdown" target="_blank">{% trans "learn more about Markdown" %} »</a>
- </p>
-</div>
-<!-- end template answer_edit_tips.html -->
+++ /dev/null
-{% extends "base.html" %}
-<!-- template ask.html -->
-{% load i18n %}
-{% load extra_tags %}
-{% block title %}{% spaceless %}{% trans "Ask a question" %}{% endspaceless %}{% endblock %}
-{% block forejs %}
- <script type='text/javascript' src='{% media "/media/js/wmd/showdown.js" %}'></script>
- <script type='text/javascript' src='{% media "/media/js/wmd/wmd.js" %}'></script>
- <link rel="stylesheet" type="text/css" href="{% media "/media/js/wmd/wmd.css" %}" />
- <script type="text/javascript">
- $().ready(function(){
- //set current module button style
- $("#nav_ask").attr('className',"on");
- $('#editor').TextAreaResizer();
-
- //toggle preview of editor
- //todo remove copy-paste
- var display = true;
- var txt = "[{% trans "hide preview" %}]";
- $('#pre-collapse').text(txt);
- $('#pre-collapse').bind('click', function(){
- txt = display ? "[{% trans "show preview" %}]" : "[{% trans "hide preview" %}]";
- display = !display;
- $('#previewer').toggle();
- $('#pre-collapse').text(txt);
- });
-
- //Tags autocomplete action
- var tags = {{ tags|safe }};
- $("#id_tags").autocomplete(tags, {
- minChars: 1,
- matchContains: true,
- max: 20,
- multiple: true,
- multipleSeparator: " ",
- formatItem: function(row, i, max) {
- return row.n + " ("+ row.c +")";
- },
- formatResult: function(row, i, max){
- return row.n;
- }
-
- });
-
- });
- </script>
-{% endblock %}
-
-{% block content %}
-<div id="main-bar" class="headNormal">
- {% trans "Ask a question" %}
-</div>
-<div id="main-body" class="ask-body">
- <div id="askform">
- <form id="fmask" action="" method="post" >
- {% if not request.user.is_authenticated %}
- <div class="message">
- <p>{% trans "login to post question info" %}</p>
- </div>
- {% else %}
- {% ifequal settings.EMAIL_VALIDATION 'on' %}
- {% if not request.user.email_isvalid %}
- <div class="message">
- {% blocktrans with request.user.email as email %}must have valid {{email}} to post,
- see {{email_validation_faq_url}}
- {% endblocktrans %}
- </div>
- {% endif %}
- {% endifequal %}
- {% endif %}
- <div class="form-item">
- <label for="id_title" ><strong>{{ form.title.label_tag }}:</strong></label> <span class="form-error"></span><br/>
- {{ form.title }} {{ form.title.errors }}
- <div class="title-desc">
- {{ form.title.help_text }}
- </div>
- </div>
-
- <div class="form-item">
- <div id="wmd-button-bar" class="wmd-panel"></div>
- {{ form.text }}
-
- <div class="preview-toggle">
- <table width="100%">
- <tr>
- <td>
- <span id="pre-collapse" title="{% trans "Toggle the real time Markdown editor preview" %}">{% trans "toggle preview" %}</span>
- </td>
- {% if settings.WIKI_ON %}
- <td class="tright">
- {{ form.wiki }} <span class="help_text" title="{{form.wiki.help_text}}">{{ form.wiki.label_tag }} </span>
- </td>
- {% endif %}
- </tr>
-
- </table>
- </div>
- <div id="previewer" class="wmd-preview"></div>
- <span class="form-error"></span>
- </div>
- <div class="form-item">
- <strong>{{ form.tags.label_tag }}:</strong> {% trans "(required)" %} <span class="form-error"></span><br/>
- {{ form.tags }} {{ form.tags.errors }}
- </div>
- <p class="title-desc">
- {{ form.tags.help_text }}
- </p>
- {% if not request.user.is_authenticated %}
- <input name="ask" type="submit" value="{% trans "Login/signup to post your question" %}" class="submit" />
- {% else %}
- <input name="ask" type="submit" value="{% trans "Ask your question" %}" class="submit" />
- {% endif %}
- </form>
- </div>
-</div>
-{% endblock %}
-
-{% block sidebar %}
-{% include "question_edit_tips.html" %}
-{% endblock %}
-
-{% block endjs %}
-{% endblock %}
-<!-- end template ask.html -->
+++ /dev/null
-{% extends "base.html" %}
-<!-- changepw.html -->
-{% load i18n %}
-{% block head %}{% endblock %}
-{% block title %}{% spaceless %}{% trans "Authentication settings" %}{% endspaceless %}{% endblock %}
-{% block content %}
-<div class="headNormal">{% trans "Authentication settings" %}</div>
-{% if auth_keys %}
- <p class="message">{% blocktrans %}These are the external authentication providers currently associated with your account.{% endblocktrans %}</p>
- <div>
- {% for key in auth_keys %}
- <p>{{ key.name }} (<a href="{% url user_remove_external_provider id=key.id %}">{% trans "remove" %}</a>)</p>
- {% endfor %}
- </div>
-{% endif %}
-{% if not auth_keys %}
- <p class="message">{% blocktrans %}You currently have no external authentication provider associated with your account.{% endblocktrans %}</p>
-{% endif %}
-<input type="button" class="submit" value="{% trans "Add new provider" %}" onclick="window.location='{% url user_add_external_provider %}'" />
-{% if has_password %}
- <p class="message">{% blocktrans %}This is where you can change your password. Make sure you remember it!{% endblocktrans %}</p>
-{% endif %}
-{% if not has_password %}
- <p class="message">{% blocktrans %}You can set up a password for your account, so you can login using standard username and password!{% endblocktrans %}</p>
-{% endif %}
-<div class="aligned">
- <form action="" method="post" accept-charset="utf-8">
- <ul id="changepw-form" class="form-horizontal-rows">
- {{form.as_ul}}
- </ul>
- <div class="submit-row"><input type="submit" class="submit" value="{% if has_password %}{% trans "Change password" %}{% endif %}{% if not has_password %}{% trans "Create password" %}{% endif %}" /></div>
- </form>
- </div>
-{% endblock %}
-<!-- end changepw.html -->
+++ /dev/null
-{% extends "base_content.html" %}
-<!-- complete.html -->
-{% load i18n %}
-{% block head %}{% endblock %}
-{% block title %}{% spaceless %}{% trans "Connect your OpenID with this site" %}{% endspaceless %}{% endblock %}
-{% block content %}
- <div id="main-bar" class="headNormal">
- {% trans "Connect your OpenID with your account on this site" %}
- </div>
- <div id="completetxt" >
- <div class="message">
- <b>{% trans "You are here for the first time with " %}{{ provider }}</b>
- {% trans "Please create your screen name and save your email address. Saved email address will let you subscribe for the updates on the most interesting questions and will be used to create and retrieve your unique avatar image. " %}
- </div>
- <p style="display:none">{% trans "This account already exists, please use another." %}</p>
- </div>
-
- {% if form1.errors %}
- <ul class="errorlist">
- {% if form1.non_field_errors %}
- {% for error in form1.non_field_errors %}
- <li>{{error}}</li>
- {% endfor %}
- {% endif %}
- </ul>
- {% endif %}
- {% comment %}
- {% if form2.errors %}<!--form2 is dysfunctional so commented out -->
- <div class="errors">
- <span class="big">{% trans "Sorry, looks like we have some errors:" %}</span><br/>
- <ul class="error-list">
- {% if form2.username.errors %}
- <li><span class="error">{{ form2.username.errors|join:", " }}</span></li>
- {% endif %}
- {% if form2.password.errors %}
- <li><span class="error">{{ form2.password.errors|join:", " }}</span></li>
- {% endif %}
- </ul>
- </div>
- {% endif %}
- {% endcomment %}
-
- <div class="login">
- <form name="fregister" action="" method="POST">
- {{ form1.next }}
- <div class="form-row-vertical">
- <label for="id_username">{% trans "Screen name label" %}</label>
- {% if form1.username.errors %}
- <p class="error">{{ form1.username.errors|join:", " }}</p>
- {% endif %}
- {{ form1.username }}
- </div>
- <div class="form-row-vertical margin-bottom">
- <label for="id_email">{% trans "Email address label" %}</label>
- {% if form1.email.errors %}
- <p class="error">{{ form1.email.errors|join:", " }}</p>
- {% endif %}
- {{ form1.email }}
- </div>
- <p>{% trans "receive updates motivational blurb" %}</p>
- <div class='simple-subscribe-options'>
- {{email_feeds_form.subscribe}}
- {% if email_feeds_form.errors %}
- <p class="error">{% trans "please select one of the options above" %}</p>
- {% endif %}
- </div>
- <p class='space-above'>{% trans "Tag filter tool will be your right panel, once you log in." %}</p>
- <div class="submit-row"><input type="submit" class="submit" name="bnewaccount" value="{% trans "create account" %}"/></div>
- </form>
- </div>
- {% comment %}<!-- this form associates openID with an existing password-protected account, not yet functional -->
- {% if form2 %}
- <div class="login" style="display:none">
- <form name="fverify" action="{% url user_register %}" method="POST">
- {{ form2.next }}
- <fieldset style="padding:10px">
- <legend class="big">{% trans "Existing account" %}</legend>
- <div class="form-row"><label for="id_username">{% trans "user name" %}</label><br/>{{ form2.username }}</div>
- <div class="form-row"><label for="id_passwordl">{% trans "password" %}</label><br/>{{ form2.password }}</div>
- <p><span class='big strong'>(Optional) receive updates by email</span> - only sent when there are any.</p>
- <div class='simple-subscribe-options'>
- {{email_feeds_form.subscribe}}
- </div>
- <!--todo double check translation from chinese 确认 = "Register" -->
- <div class="submit-row">
- <input type="submit" class="submit" name="bverify" value="{% trans "Register" %}"/>
- <a href="{% url user_sendpw %}">{% trans "Forgot your password?" %}</a>
- </div>
- </fieldset>
- </form>
- </div>
- {% endif %}
- {% endcomment %}
-{% endblock %}
-<!-- end complete.html -->
+++ /dev/null
-{% extends "email_base.html" %}\r
-{% load i18n %}\r
-{% load extra_tags %}\r
-\r
-{% block content %}\r
- <p>{% trans "Greetings from the Q&A forum" %},</p>\r
-\r
- <p>{% trans "To make use of the Forum, please follow the link below:" %}</p>\r
-\r
- <a href="{% fullurl auth_validate_email user=user.id,code=validation_code %}">{% fullurl auth_validate_email user=user.id,code=validation_code %}</a>\r
-\r
- <p>{% trans "Following the link above will help us verify your email address." %}</p>\r
-\r
- <p>{% blocktrans %}If you beleive that this message was sent in mistake -\r
- no further action is needed. Just ingore this email, we apologize\r
- for any inconvenience{% endblocktrans %}</p>\r
-\r
- <p>{% blocktrans %}Sincerely,<br />\r
- Forum Administrator{% endblocktrans %}</p>\r
-{% endblock %}\r
+++ /dev/null
-{% extends "base.html" %}\r
-\r
-{% load i18n %}\r
-{% load extra_tags %}\r
-\r
-{% block forejs %}\r
- <link rel="stylesheet" type="text/css" media="screen" href="{% media "/media/style/auth.css" %}"/>\r
- {% for provider in all_providers %}\r
- {% for location in provider.extra_css %}\r
- <link rel="stylesheet" type="text/css" media="screen" href="{{ location }}"/>\r
- {% endfor %}\r
- {% endfor %}\r
-{% endblock %}\r
-\r
-{% block content %}\r
- {% for provider in all_providers %}\r
- {% if provider.pre_code %}\r
- {{ provider.pre_code|safe }}\r
- {% endif %}\r
- {% endfor %}\r
- <div class="headNormal">\r
- {% trans "User login" %}\r
- </div>\r
- {% if msg %}\r
- <p class="warning">{{ msg }}</p>\r
- {% endif %}\r
- {% for provider in top_stackitem_providers %}\r
- <form class="signin_form" method="POST" action="{% url auth_provider_signin provider=provider.id %}">\r
- {% include provider.stack_item_template %}\r
- <input type="hidden" class="validate_email" name="validate_email" value="yes" />\r
- </form>\r
- {% endfor %}\r
- {% if top_stackitem_providers %}\r
- <h3 class="or_label">{% trans 'Or...' %}</h3>\r
- {% endif %}\r
- <div style="width:600px;float:left;margin-bottom:5px;">\r
- {% trans "Click to sign in through any of these services." %}\r
- </div>\r
- {% if request.user.is_anonymous %}\r
- <div style="width:600px;float:left;margin-bottom:5px;">\r
- <input type="checkbox" checked="checked" id="validate_email" />\r
- {% trans "Take the oppurtunity to validate my email next to the external provider I choose." %}\r
- </div>\r
- {% endif %}\r
- <div id="bigicon_providers">\r
- {% for provider in bigicon_providers %}\r
- <div class="provider_logo big" name="{{ provider.id }}">\r
- {% ifequal provider.type "DIRECT" %}\r
- <a class="provider_direct" href="{% url auth_provider_signin provider=provider.id %}">\r
- <img src="{% media provider.icon %}" />\r
- </a>\r
- {% endifequal %}\r
- {% ifequal provider.type "CUSTOM" %}\r
- {% include provider.code_template %}\r
- {% endifequal %}\r
- {% ifequal provider.type "SIMPLE_FORM" %}\r
- <img alt="{{ provider.simple_form_context.your_what }}" class="simple_form_provider" src="{% media provider.icon %}" />\r
- {% endifequal %}\r
- </div>\r
- {% endfor %}\r
- </div>\r
- <div id="smallicon_providers">\r
- {% for provider in smallicon_providers %}\r
- <div class="provider_logo small" name="{{ provider.id }}">\r
- {% ifequal provider.type "DIRECT" %}\r
- <a class="provider_direct" href="{% url auth_provider_signin provider=provider.id %}">\r
- <img src="{% media provider.icon %}" />\r
- </a>\r
- {% endifequal %}\r
- {% ifequal provider.type "CUSTOM" %}\r
- {% include provider.code_template %}\r
- {% endifequal %}\r
- {% ifequal provider.type "SIMPLE_FORM" %}\r
- <img alt="{{ provider.simple_form_context.your_what }}" class="simple_form_provider" src="{% media provider.icon %}" />\r
- {% endifequal %}\r
- </div>\r
- {% endfor %}\r
- </div>\r
- <form name="signin_form" id="signin_form" class="signin_form" method="POST" action="">\r
- <div id="signin_form_slot"></div>\r
- <input type="hidden" class="validate_email" name="validate_email" value="yes" />\r
- </form>\r
- {% for provider in stackitem_providers %}\r
- <h3 class="or_label">{% trans 'Or...' %}</h3>\r
- <form class="signin_form" method="POST" action="{% url auth_provider_signin provider=provider.id %}">\r
- {% include provider.stack_item_template %}\r
- <input type="hidden" class="validate_email" name="validate_email" value="yes" />\r
- </form>\r
- {% endfor %}\r
- <h3 class="or_label">{% trans 'Or...' %}</h3>\r
- <fieldset>\r
- {% trans 'Click' %} <a href="{% url auth_request_tempsignin %}">here</a> {% trans "if you're having troubles signing in." %}\r
- </fieldset>\r
- <script type="text/html" id="simple_form_template">\r
- <fieldset id="slot_form">\r
- <p id="provider_name_slot">{% trans 'Enter your ' %}%%YOUR_WHAT%%</p>\r
- <div><p><span></span>\r
- <input id="input_field" type="text" name="input_field" /><span></span>\r
- <input id="ssignin" name="ssignin" type="submit" value="Login" />\r
- </p></div>\r
- <input type="hidden" class="validate_email" name="validate_email" value="yes" />\r
- </fieldset>\r
- </script>\r
- <script type="text/javascript">\r
- $(function() {\r
- var signin_url = "{% url auth_provider_signin provider='PROVIDER' %}";\r
-\r
- function set_validate_email() {\r
- var validate = $('#validate_email').attr('checked') ? 'yes' : 'no';\r
- $('.validate_email').attr('value', validate);\r
-\r
- $('.provider_direct').each(function() {\r
- var current_url = $(this).attr('href');\r
- if (!/\?validate_email\=(yes|no)$/.test(current_url)) {\r
- current_url += ('?validate_email=' + validate);\r
- } else {\r
- current_url = current_url.replace(/(yes|no)$/, validate);\r
- }\r
-\r
- $(this).attr('href', current_url);\r
- })\r
- }\r
-\r
- $('#validate_email').change(set_validate_email);\r
-\r
- function set_form_action(el) {\r
- var provider = el.parents('.provider_logo').attr('name');\r
- $('#signin_form').attr('action', signin_url.replace('PROVIDER', provider));\r
- }\r
-\r
- $('.provider_logo').click(function() {\r
- $('.provider_logo').removeClass('selected');\r
- $(this).addClass('selected');\r
- });\r
-\r
- $('.simple_form_provider').click(function() {\r
- $('#signin_form_slot').html('');\r
- var new_html = $('#simple_form_template').html()\r
- .replace('%%YOUR_WHAT%%', $(this).attr('alt'));\r
- $('#signin_form_slot').html(new_html);\r
- set_form_action($(this));\r
- set_validate_email();\r
- })\r
-\r
- set_validate_email();\r
- });\r
- </script>\r
-{% endblock %}\r
-\r
-{% block sidebar %}\r
-<div class="boxC">\r
- <h3 class="subtitle">{% trans "Why use OpenID?" %}</h3>\r
- <ul class="list-item">\r
- <li>\r
- {% trans "with openid it is easier" %}\r
- </li>\r
- <li>\r
- {% trans "reuse openid" %}\r
- </li>\r
- <li>\r
- {% trans "openid is widely adopted" %}\r
- </li>\r
- <li>\r
- {% trans "openid is supported open standard" %}\r
- </li>\r
-\r
- </ul>\r
- <p class="info-box-follow-up-links">\r
- <a href="http://openid.net/what/" target="_blank">{% trans "Find out more" %} </a><br/>\r
- <a href="http://openid.net/get/" target="_blank">{% trans "Get OpenID" %} </a>\r
- </p>\r
-</div>\r
-{% endblock%}
\ No newline at end of file
+++ /dev/null
-{% extends "base_content.html" %}
-<!--signup.html-->
-{% load i18n %}
-{% block title %}{% spaceless %}{% trans "Signup" %}{% endspaceless %}{% endblock %}
-
-{% block content %}
-<div class="headNormal">
- {% trans "Create login name and password" %}
-</div>
-<p class="message">{% trans "Traditional signup info" %}</p>
-<form action="" method="post" accept-charset="utf-8">
- <ul class="form-horizontal-rows">
- <li><label for="usename_id">{{form.username.label}}</label>{{form.username}}{{form.username.errors}}</li>
- <li><label for="email_id">{{form.email.label}}</label>{{form.email}}{{form.email.errors}}</li>
- <li><label for="password1_id">{{form.password1.label}}</label>{{form.password1}}{{form.password1.errors}}</li>
- <li><label for="password2_id">{{form.password2.label}}</label>{{form.password2}}{{form.password2.errors}}</li>
- </ul>
- <p class="margin-top">{% trans "receive updates motivational blurb" %}</p>
- <div class='simple-subscribe-options'>
- {{ email_feeds_form.subscribe }}
- {% if email_feeds_form.errors %}
- <p class="error">{% trans "please select one of the options above" %}</p>
- {% endif %}
- </div>
- <div>
- {% for field in form.anti_spam_fields %}
- <div>{{ field }}</div>
- <p class="error">{{ field.errors }}</p>
- {% endfor %}
- </div>
- <div class="submit-row"><input type="submit" class="submit" value="{% trans "Create Account" %}" />
- <strong>{% trans "or" %}
- <a href="{% url auth_signin %}">{% trans "return to login page" %}</a></strong></div>
-</form>
-{% endblock %}
-<!--end signup.html-->
+++ /dev/null
-{% extends "email_base.html" %}\r
-{% load i18n %}\r
-{% load extra_tags %}\r
-\r
-{% block content %}\r
- <p>{% trans "Greetings from the Q&A forum" %},</p>\r
-\r
- <p>{% trans "You're seeing this because someone requested a temporary login link" %}</p>\r
-\r
- <a href="{% fullurl auth_tempsignin user=user.id,code=temp_login_code %}">{% fullurl auth_tempsignin user=user.id,code=temp_login_code %}</a>\r
-\r
- <p>{% trans "Following the link above will give you access to your account." %}</p>\r
-\r
- <p>{% blocktrans %}If you beleive that this message was sent in mistake -\r
- no further action is needed. Just ingore this email, we apologize\r
- for any inconvenience{% endblocktrans %}</p>\r
-\r
- <p>{% blocktrans %}Sincerely,<br />\r
- Forum Administrator{% endblocktrans %}</p>\r
-{% endblock %}\r
+++ /dev/null
-{% extends "base.html" %}\r
-\r
-{% load i18n %}\r
-{% block head %}{% endblock %}\r
-{% block title %}{% spaceless %}{% trans "Request temporary login key" %}{% endspaceless %}{% endblock %}\r
-{% block content %}\r
-<div class="headNormal">{% trans "Account: request temporary login key" %}</div>\r
-<p class="message">{% blocktrans %}\r
- If you're experiencing problems accessing your account, or if you forgot your password,\r
- here you can request a temporary login key. Fill out your account email and we'll send you a temporary access link that\r
- will enable you to access your account. This token is valid only once and for a limited period of time.\r
- {% endblocktrans %}</p>\r
-<div class="aligned">\r
- {% if form.errors %}\r
- <ul class="errorlist">\r
- {% for error in form.errors %}\r
- <li>{{ error }}</li>\r
- {% endfor %}\r
- </ul>\r
- {% endif %}\r
- <form action="" method="post" accept-charset="utf-8">\r
- <ul id="changepw-form" class="form-horizontal-rows">\r
- {{form.as_ul}}\r
- </ul>\r
- <div class="submit-row"><input type="submit" class="submit" value="{% trans "Send link" %}" /></div>\r
- </form>\r
- </div>\r
-{% endblock %}
\ No newline at end of file
+++ /dev/null
-{% extends "base_content.html" %}
-<!-- template badge.html -->
-{% load i18n %}
-{% load extra_tags %}
-{% load humanize %}
-{% block title %}{% spaceless %}{{ badge.name }} - {% trans "Badge" %}{% endspaceless %}{% endblock %}
-{% block forejs %}
- <script type="text/javascript">
- $().ready(function(){
- $("#nav_badges").attr('className',"on");
- });
-
- </script>
-{% endblock %}
-{% block content %}
-<div id="main-bar" class="headNormal">
- {% trans "Badge" %}
-</div>
-<div id="main-body" style="width:100%;margin-bottom:20px">
- <p>
- <a href="{{badge.get_absolute_url}}" title="{{ badge.get_type_display }} : {{ badge.description }}" class="medal"><span class="badge{{ badge.type }}">●</span> {{ badge.name }}</a> {{ badge.description }}
- </p>
- <div>
- {% if badge.awarded_count %}
- <p style="float:left"><span class="count">{{ awards|length|intcomma }}</span>
- <strong>{% trans "The users have been awarded with badges:" %}</strong></p>
- {% endif %}
- </div>
- <div id="award-list" style="clear:both;margin-left:20px;line-height:25px;">
- {% for award in awards %}
- <p style="width:180px;float:left"><a href="{% url users %}{{ award.id }}/{{ award.name }}">{{ award.name }}</a> {% get_score_badge_by_details award.rep award.gold award.silver award.bronze %}</p>
- {% endfor %}
- </div>
-
-</div>
-{% endblock %}
-<!-- end template badge.html -->
+++ /dev/null
-{% extends "base.html" %}
-<!-- template badges.html -->
-{% load extra_tags %}
-{% load humanize %}
-{% load i18n %}
-{% block title %}{% spaceless %}{% trans "Badges summary" %}{% endspaceless %}{% endblock %}
-{% block forejs %}
- <script type="text/javascript">
- $().ready(function(){
- $("#nav_badges").attr('className',"on");
- });
-
- </script>
-{% endblock %}
-{% block content %}
-<div class="headlineA">
- <span class="headMedals">{% trans "Badges" %}</span>
-</div>
-<div class="badges" id="main-body" style="width:100%">
- <p>
- {% trans "Community gives you awards for your questions, answers and votes." %}<br/>
- {% blocktrans %}Below is the list of available badges and number
- of times each type of badge has been awarded. Give us feedback at {{feedback_faq_url}}.
- {% endblocktrans %}
- </p>
- <div id="medalList">
- {% for badge in badges %}
- <div style="clear:both;line-height:30px">
- <div style="float:left;min-width:30px;text-align:right;height:30px">
- {% for a in mybadges %}
- {% ifequal a.badge_id badge.id %}
- <span style="font-size:175%; padding-right:5px; color:#5B9058;">✔</span>
- {% endifequal %}
- {% endfor %}
- </div>
- <div style="float:left;width:230px;">
- <a href="{{badge.get_absolute_url}}" title="{{ badge.get_type_display }} : {{ badge.description }}" class="medal"><span class="badge{{ badge.type }}">●</span> {{ badge.name }}</a><strong> × {{ badge.awarded_count|intcomma }}</strong>
- </div>
- <p style="float:left;margin-top:8px;">
- {{ badge.description }}
- </p>
- </div>
- {% endfor %}
- </div>
-</div>
-{% endblock %}
-{% block sidebar %}
-
-<div class="boxC">
- <h3>{% trans "Community badges" %}</h3>
- <div class="body">
- <p>
- <a style="cursor:default;" title="gold badge: the highest honor and is very rare" class="medal"><span class="badge1">●</span> {% trans "gold" %}</a>
- </p>
- <p>
- {% trans "gold badge description" %}
- </p>
- <p>
- <a style="cursor:default;"
- title="silver badge: occasionally awarded for the very high quality contributions"
- class="medal"><span class="badge2">●</span> {% trans "silver" %}</a>
- </p>
- <p>
- {% trans "silver badge description" %}
- </p>
- <p>
- <a style="cursor:default;" title="{% trans "bronze badge: often given as a special honor" %}" class="medal">
- <span class="badge3">●</span> {% trans "bronze" %}</a>
- </p>
- <p>
- {% trans "bronze badge description" %}
- </p>
- </div>
-</div>
-{% endblock %}
-<!-- end template badges.html -->
+++ /dev/null
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<!-- template base.html -->
-{% load extra_filters %}
-{% load extra_tags %}
-{% load i18n %}
-<html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>{% block title %}{% endblock %} - {{ settings.APP_TITLE }}</title>
- {% spaceless %}
- {% block meta %}{% endblock %}
- {% endspaceless %}
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- {% if settings.GOOGLE_SITEMAP_CODE %}
- <meta name="google-site-verification" content="{{settings.GOOGLE_SITEMAP_CODE}}" />
- {% endif %}
- <link rel="shortcut icon" href="{{ settings.APP_FAVICON }}" />
- <link href="{% media "/media/style/style.css" %}" rel="stylesheet" type="text/css" />
- <script src="http://www.google.com/jsapi" type="text/javascript"></script>
- <script type="text/javascript">google.load("jquery", "1.4.2");</script>
- <script type="text/javascript">
- /* <![CDATA[ */
- var i18nLang = '{{settings.LANGUAGE_CODE}}';
- var scriptUrl = '/{{settings.FORUM_SCRIPT_ALIAS}}'
- var osqaSkin = '{{settings.OSQA_SKIN}}';
- /* ]] */
- </script>
- <script type='text/javascript' src='{% media "/media/js/osqa.main.min.js" %}'></script>
- {% if user_messages %}
- <style type="text/css">
- body { margin-top:2.4em; }
- </style>
- <script type="text/javascript">
- $(document).ready(function() {
- $('#validate_email_alert').click(function(){notify.close(true)})
- notify.show();
- });
- </script>
- {% endif %}
-
- {% block forejs %}
- {% endblock %}
- </head>
- <body>
- <div class="notify" style="display:none">
- {% autoescape off %}
- {% if user_messages %}
- {% for message in user_messages %}
- <p class="darkred">{{ message }}</p>
- {% endfor %}
- {% endif %}
- {% endautoescape %}
- <a id="close-notify" onclick="notify.close(true)">×</a>
- </div>
- {% include "header.html" %}
- <div id="wrapper">
- <div id="room">
- <div id="CALeft">
- {% block content%}
- {% endblock%}
-
- </div>
- <div id="CARight">
- {% block sidebar%}
- {% endblock%}
-
- </div>
- <div id="tail" style="clear:both;">
- {% block tail %}
- {% endblock %}
- </div>
- </div>
- <div class="spacer3"></div>
- </div>
- {% include "footer.html" %}
- {% block endjs %}
- {% endblock %}
- </body>
-</html>
-<!-- end template base.html -->
+++ /dev/null
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<!-- base_content.html -->
-{% load i18n %}
-{% load extra_tags %}
-<html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>{% block title %}{% endblock %} - {{ settings.APP_TITLE }}</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- {% if settings.GOOGLE_SITEMAP_CODE %}
- <meta name="google-site-verification" content="{{ settings.GOOGLE_SITEMAP_CODE }}" />
- {% endif %}
- <link rel="shortcut icon" href="{{ settings.APP_FAVICON }}" />
- <link href="{% media "/media/style/style.css" %}" rel="stylesheet" type="text/css" />
- {% spaceless %}
- {% block forestyle %}{% endblock %}
- {% endspaceless %}
- <script src="http://www.google.com/jsapi" type="text/javascript"></script>
- <script type="text/javascript">google.load("jquery", "1.4.2");</script>
- <script type="text/javascript">
- /* <![CDATA[ */
- var i18nLang = '{{settings.LANGUAGE_CODE}}';
- var scriptUrl = '/{{settings.FORUM_SCRIPT_ALIAS}}'
- var osqaSkin = '{{settings.OSQA_SKIN}}';
- /* ]] */
- </script>
- <script type='text/javascript' src='{% media "/media/js/osqa.main.min.js" %}'></script>
- {% if user_messages %}
- <style type="text/css">
- body { margin-top:2.4em; }
- </style>
- <script type="text/javascript">
- $(document).ready(function() {
- var element = $('#validate_email_alert')
- element.click(function(){notify.close(true);setTimeout(function(){},1000)})
- notify.show();
- });
- </script>
- {% endif %}
-
- {% block forejs %}
- {% endblock %}
- </head>
- <body>
- <div class="notify" style="display:none">
- {% autoescape off %}
- {% if user_messages %}
- {% for message in user_messages %}
- <p class="darkred">{{ message }}</p>
- {% endfor %}
- {% endif %}
- {% endautoescape %}
- <a id="close-notify" onclick="notify.close(true)">×</a>
- </div>
- {% include "header.html" %}
- <div id="wrapper">
- <div id="room">
- <div id="CAFull">
- {% block content%}
- {% endblock%}
-
- </div>
- <div id="tail" style="clear:both;">
- {% block tail %}
- {% endblock %}
- </div>
- </div>
- <div class="spacer3"></div>
- </div>
- {% include "footer.html" %}
- {% block endjs %}
- {% endblock %}
- </body>
-</html>
-<!-- end template base_content.html -->
+++ /dev/null
-{% extends "base_content.html" %}
-<!-- template book.html -->
-{% load i18n %}
-{% load extra_tags %}
-{% load extra_filters %}
-{% load humanize %}
-{% block title %}{% spaceless %}{{ book.title }}-{% trans "reading channel" %}{% endspaceless %}{% endblock %}
-{% block forejs %}
- <script type="text/javascript">
- $().ready(function(){
- $("#nav_books").attr('className',"on");
- //$("#nav_ask").hide();
- });
-
- </script>
-{% endblock %}
-{% block content %}
- <div class="headNormal"><a href="{{ book.get_absolute_url }}">《{{ book.title }}》</a></div>
- <div class="bookInfo">
- <div class="bookCover">
- <img src="{{ book.cover_img }}" >
- </div>
- <div class="bookSummary">
- <table>
- <tr>
- <td>{% trans "[author]" %}</td>
- <td><b><a href="{% url user book.user.id %}" rel="nofollow" >{{ book.author }}</a></b></td>
- </tr>
- <tr>
- <td>{% trans "[publisher]" %}</td>
- <td>{{ book.publication }}</td>
- </tr>
- <tr>
- <td>{% trans "[publication date]" %}</td>
- <td>{{ book.published_at|date:"Y-m" }}</td>
- </tr>
- <tr>
- <td>{% trans "[price]" %}</td>
- <td>{{ book.price }} {% trans "currency unit" %}</td>
- </tr>
- <tr>
- <td>{% trans "[pages]" %}</td>
- <td>{{ book.pages }} {% trans "pages abbreviation" %}</td>
- </tr>
- <tr>
- <td>{% trans "[tags]" %}</td>
- <td>{{ book.tagnames }}</td>
- </tr>
- <tr>
- <td> </td>
- <td> </td>
- </tr>
- {% if author_info.blog_url %}
- <tr>
- <td></td>
- <td><a href="{{ author_info.blog_url }}" rel="nofollow" >{% trans "author blog" %} »</a></td>
- </tr>
-
- {% endif %}
- <tr>
- <td> </td>
- <td><a href="#" rel="nofollow">{% trans "book directory" %} »</a></td>
- </tr>
- <tr>
- <td> </td>
- <td><a href="#" rel="nofollow">{% trans "buy online" %} »</a></td>
- </tr>
- </table>
- </div>
- <div class="blogRss">
-
- </div>
- </div>
-
- <div class="bookQuestions">
-
- <div class="tabBar">
- <div class="tabsB">
- <a id="qa" class="on" title="{% trans "book technical Q&A %}" href="#">{% trans "reader questions" %}</a>
- </div>
- </div>
- <div class="bookAsk"><a href="{% url ask_book book.short_name %}">{% trans "ask the author" %}</div>
- <div class="user-stats-table">
- {% for question in questions.object_list %}
- {% if question.favourite_count %}
- {% if question.favorited_myself %}
- <div class="favorites-count">
- <img title="{% trans "this question was selected as favorite" %} {{question.favourite_count}} {% trans "number of times" %}" src="{% media "/media/images/vote-favorite-on.png" %}">
- <div><b>{{question.favourite_count|intcomma}}</b></div>
- </div>
- {% else %}
- <div class="favorites-count-off">
- <img title="{% trans "this question was selected as favorite" %} {{question.favourite_count}} {% trans "number of times" %}" src="{% media "/media/images/vote-favorite-off.png" %}">
- <div><b>{{question.favourite_count|intcomma}}</b></div>
- </div>
- {% endif %}
- {% else %}
- <div class="favorites-empty"> </div>
- {% endif %}
- <div id="question-summary-{{question.id}}" class="question-summary narrow">
- <a style="text-decoration: none;" href="{% url questions %}{{question.id}}/{{question.get_question_title}}">
- <div class="stats">
- <div class="votes">
- <div class="vote-count-post">{{question.score|intcomma}}</div>
- {% trans "votes" %}
-
- </div>
- <div title="{% if question.answer_accepted %}{% trans "the answer has been accepted to be correct" %}{% endif %}" class="status {% if question.answer_accepted %}answered-accepted{% endif %} {% ifequal question.answer_count 0 %}unanswered{% endifequal %}{% ifnotequal question.answer_count 0 %}answered{% endifnotequal %}">
- <div class="answer-count-post">{{question.answer_count|intcomma}}</div>
- {% trans "answer" %}
-
- </div>
- <div class="views">
- <div class="views-count-post">{{question.view_count|cnprog_intword|safe}}</div>
- {% trans "views" %}
- </div>
- </div>
- </a>
- <div class="bookQuestionItem">
- <h3>
- <a title="{{question.summary|collapse}}" href="{% url questions %}{{question.id}}/{{question.title}}">{{question.title}}</a>
- </h3>
- <div class="tags">
- {% for tag in question.tagname_list %}
- <a href="{% url tag_questions tag|urlencode %}" title="{% "see questions tagged with" %}'{{ tag }}'{% trans "using tags" %}" rel="tag">{{ tag }}</a>
- {% endfor %}
- </div>
- <div class="started">
- <span class="author"><a href="{{ question.last_activity_by.get_profile_url }}">{{ question.last_activity_by }}</a></span>
- <span class="score">{% get_score_badge question.last_activity_by %} </span>
- <span class="date" title="{{ question.last_activity_at }}">{% diff_date question.last_activity_at %}</span>
- </div>
- </div>
- </div>
- <br clear="both"/>
- {% endfor %}
- </div>
- </div>
-{% endblock %}
-{% block tail %}
- <div class="pager">
- {% cnprog_paginator context %}
-
- </div>
- <div class="bookFeed">
- <div id="feeds">
- <a href="{% media "/feeds/rss" %} " title="{% trans "subscribe to book RSS feed" %}">{% trans "subscribe to the questions feed" %}</a>
- </div>
- </div>
-
-{% endblock %}
-<!-- end template book.html -->
+++ /dev/null
-{% extends "base_content.html" %}
-<!-- template close.html -->
-{% load i18n %}
-{% load extra_tags %}
-{% load humanize %}
-{% block title %}{% spaceless %}{% trans "Close question" %}{% endspaceless %}{% endblock %}
-{% block forejs %}
- <script type="text/javascript">
- $().ready(function(){
- $('#btBack').bind('click', function(){ history.back(); });
- });
- </script>
-{% endblock %}
-{% block content %}
-<div id="main-bar" class="headNormal">
- {% trans "Close question" %}
-</div>
-<div id="main-body" style="width:100%;margin-bottom:10px">
- <p>{% trans "Close the question" %}: <a href="{{ question.get_absolute_url }}">
- <strong>{{ question.get_question_title }}</strong></a>
- </p>
-
- <form id="fmclose" action="{% url close question.id %}" method="post" >
- <p>
- <strong>{% trans "Reasons" %}:</strong> {{ form.reason }}
- </p>
- <div id="" style="padding-top:20px">
- <input type="submit" value="{% trans "OK to close" %}" class="submit" />
- <input id="btBack" type="button" class="submit" value="{% trans "Cancel" %}" />
-
- </div>
-
- </form>
-</div>
-{% endblock %}
-<!-- end template close.html -->
+++ /dev/null
-{% load i18n %}
-<table class='form-as-table'>
-{{email_feeds_form.as_table}}
-</table>
+++ /dev/null
-{% load extra_filters %}\r
-{% load extra_tags %}\r
-{% load i18n %}\r
-\r
-<html xmlns="http://www.w3.org/1999/xhtml">\r
- <head>\r
- <style type="text/css">\r
- body {\r
- background: #FFF;\r
- font-size: 12px;\r
- line-height: 150%;\r
- margin: 0;\r
- padding: 0;\r
- color: #000;\r
- font-family: sans-serif;\r
- }\r
-\r
- #wrapper {\r
- width: 600px;\r
- margin: auto;\r
- padding: 0;\r
- }\r
-\r
- a img {\r
- border: none;\r
- }\r
- </style>\r
- </head>\r
- <body>\r
- <a href="{% fullurl index %}">\r
- <img src="cid:logo" title="{% trans "home" %}" alt="{{settings.APP_TITLE}} logo"/>\r
- </a>\r
- <br />\r
- <p>{{ settings.APP_TITLE }}</p>\r
- <br /><br />\r
- <div id="wrapper">\r
- <div id="room">\r
- <div id="CALeft">\r
- {% block content%}\r
- {% endblock%}\r
- </div>\r
- </div>\r
- <div class="spacer3"></div>\r
- </div>\r
- </body>\r
-</html>
\ No newline at end of file
+++ /dev/null
-{% extends "base_content.html" %}
-<!-- template faq.html -->
-{% load extra_tags %}
-{% load humanize %}
-{% load i18n %}
-{% block title %}{% spaceless %}FAQ{% endspaceless %}{% endblock %}
-{% block forejs %}
-{% endblock %}
-{% block content %}
-<div class="headNormal">
- {% trans "Frequently Asked Questions " %}(FAQ)
-</div>
-<div id="main-body" class="about" style="width:100%">
-
- <div class="first">
- <h3 class="subtitle">{% trans "What kinds of questions can I ask here?" %}</h3>
- <p>{% trans "Most importanly - questions should be <strong>relevant</strong> to this community." %}
- {% trans "Before asking the question - please make sure to use search to see whether your question has alredy been answered."%}
- </p>
-
- <h3 class="subtitle">{% trans "What questions should I avoid asking?" %}</h3>
- <p>{% trans "Please avoid asking questions that are not relevant to this community, too subjective and argumentative." %}
- </p>
- </div>
-
- <div>
- <h3 class="subtitle">{% trans "What should I avoid in my answers?" %}</h3>
- <p>{{ settings.APP_TITLE }} {% trans "is a Q&A site, not a discussion group. Therefore - please avoid having discussions in your answers, comment facility allows some space for brief discussions." %}</p>
- </div>
-
- <div>
- <h3 class="subtitle">{% trans "Who moderates this community?" %}</h3>
- <p>{% trans "The short answer is: <strong>you</strong>." %}
- {% trans "This website is moderated by the users." %}
- {% trans "The reputation system allows users earn the authorization to perform a variety of moderation tasks." %}
- </p>
- </div>
-
- <div>
- <h3 class="subtitle">{% trans "How does reputation system work?" %}</h3>
- <p>{% trans "Rep system summary" %}</p>
- <p>{% blocktrans %}For example, if you ask an interesting question or give a helpful answer, your input will be upvoted. On the other hand if the answer is misleading - it will be downvoted. Each vote in favor will generate <strong>10</strong> points, each vote against will subtract <strong>2</strong> points. There is a limit of <strong>200</strong> points that can be accumulated per question or answer. The table below explains reputation point requirements for each type of moderation task.{% endblocktrans %}
- </p>
-
- <table style="font-family:arial;" cellspacing="3" cellpadding="3">
- <tr>
- <th width="40px" style="text-align:right"></th>
- <th width="300px"></th>
- </tr>
- <!--
- <tr>
- <td style="text-align:right;padding-right:5px"><strong>15</strong></td>
- <td>{% trans "upvote" %}</td>
- </tr>
- <tr>
- <td style="text-align:right;padding-right:5px"><strong>15</strong></td>
- <td>{% trans "use tags" %}</td>
- </tr>
- -->
- <tr>
- <td style="text-align:right;padding-right:5px"><strong>50</strong></td>
- <td>{% trans "add comments" %}</td>
- </tr>
- <tr>
- <td style="text-align:right;padding-right:5px"><strong>100</strong></td>
- <td>{% trans "downvote" %}</td>
- </tr><tr>
- <td style="text-align:right;padding-right:5px"><strong>250</strong></td>
- <td>{% trans "open and close own questions" %}</td>
- </tr>
- <tr>
- <td style="text-align:right;padding-right:5px"><strong>500</strong></td>
- <td>{% trans "retag questions" %}</td>
- </tr>
- {% if settings.WIKI_ON %}
- <tr>
- <td style="text-align:right;padding-right:5px"><strong>750</strong></td>
- <td>{% trans "edit community wiki questions" %}</td>
- </tr>
- {% endif %}
- <tr>
- <td style="text-align:right;padding-right:5px"><strong>2000</strong></td>
- <td>{% trans "edit any answer" %}</td>
- </tr>
- <tr>
- <td style="text-align:right;padding-right:5px"><strong>3000</strong></td>
- <td>{% trans "open any closed question" %}</td>
- </tr>
- <tr>
- <td style="text-align:right;padding-right:5px"><strong>5000</strong></td>
- <td>{% trans "delete any comment" %}</td>
- </tr>
- <tr>
- <td style="text-align:right;padding-right:5px"><strong>10000</strong></td>
- <td>{% trans "delete any questions and answers and perform other moderation tasks" %}</td>
- </tr>
-
- </table>
- </div>
- {% comment %}
- {% ifequal settings.EMAIL_VALIDATION 'on' %}
- <div>
- <a id='validate'></a><h3 class="subtitle">{% trans "how to validate email title" %}</h3>
- <!--special case here message must contain paragraphs-->
- {% blocktrans %}how to validate email info with {{send_email_key_url}} {{gravatar_faq_url}}{% endblocktrans %}
- </div>
- {% endifequal %}
- {% endcomment %}
- <div>
- <a id='gravatar'></a><h3 class="subtitle">{% trans "what is gravatar" %}</h3>
- <p>{% trans "gravatar faq info" %}</p>
- </div>
- <div>
- <h3 class="subtitle">{% trans "To register, do I need to create new password?" %}</h3>
- <p>{% trans "No, you don't have to. You can login through any service that supports OpenID, e.g. Google, Yahoo, AOL, etc." %}
- <strong><a href="{% url auth_signin %}">{% trans "Login now!" %}</a> »</strong>
- </p>
- </div>
-
- <div>
- <h3 class="subtitle">{% trans "Why other people can edit my questions/answers?" %}</h3>
- <p> {% trans "Goal of this site is..." %} {% trans "So questions and answers can be edited like wiki pages by experienced users of this site and this improves the overall quality of the knowledge base content." %}
- {% trans "If this approach is not for you, we respect your choice." %}
- </p>
- </div>
- <div>
- <h3 class="subtitle">{% trans "Still have questions?" %}</h3>
- <p>{% blocktrans %}Please ask your question at {{ask_question_url}}, help make our community better!{% endblocktrans %}
- <!--
- <a href="{% url tags %}faq" class="big">{{ settings.APP_TITLE }} {% trans "questions" %}</a>{% trans "." %}
- -->
- </p>
- </div>
-</div>
-<script type="text/javascript">
- //highlihts section if url has matching #anchor_name
- $(document).ready(function (){
- var hash = window.location.hash;
- if (hash.length > 1){
- $(hash).parent().addClass('highlight');
- window.location.hash = hash;
- }
- })
-</script>
-{% endblock %}
-<!-- end template faq.html -->
+++ /dev/null
-{% extends "base_content.html" %}
-<!-- template about.html -->
-{% load i18n %}
-{% load extra_tags %}
-{% load humanize %}
-{% block title %}{% spaceless %}{% trans "Feedback" %}{% endspaceless %}{% endblock %}
-{% block forejs %}
-{% endblock %}
-{% block content %}
-<div class="headNormal">
-{% trans "Give us your feedback!" %}
-</div>
-<div class="content">
- <form method="post" action="{% url feedback %}" accept-charset="utf-8">
- {% if user.is_authenticated %}
- <p class="message">
- {% blocktrans with user.username as user_name %}
- <span class='big strong'>Dear {{user_name}}</span>, we look forward to hearing your feedback.
- Please type and send us your message below.
- {% endblocktrans %}
- <p>
- {% else %}
- <p class="message">
- {% blocktrans %}
- <span class='big strong'>Dear visitor</span>, we look forward to hearing your feedback.
- Please type and send us your message below.
- {% endblocktrans %}
- </p>
- <div class="form-row"><label>{{form.name.label}}</label><br/>{{form.name}}</div>
- <div class="form-row">
- <label>{{form.email.label}}
- {% if form.errors.email %}
- <span class='red'>(please enter a valid email)</span>
- {% endif %}
- </label><br/>{{form.email}}
- </div>
- {% endif %}
- <div class="form-row">
- <label>{{form.message.label}}
- {% if form.errors.message %}
- <span class="red">{% trans "(this field is required)" %}</span>
- </label>
- {% endif %}
- <br/>
- {{form.message}}
- </div>
- {{form.next}}
- <div class="submit-row">
- <input type="submit" class="submit" value="{% trans "Send Feedback" %}"/>
- <input type="submit" class="submit" name="cancel" value="{% trans "Cancel" %}"/>
- </div>
- </form>
-</div>
-{% endblock %}
-<!-- end template about.html -->
+++ /dev/null
-{% load i18n %}
-{% spaceless %}
-{% blocktrans with settings.APP_TITLE|safe as site_title %}
-Hello, this is a {{site_title}} forum feedback message
-{% endblocktrans %}
-{% endspaceless %}
-
-{% spaceless %}
-{% trans "Sender is" %}
-{% if user.is_authenticated %}
- {{user.username|safe}} {% trans "email" %}:{{user.email|safe}}
-{% else %}
- {% if name %}{{name|safe}}{% else %}{% trans "anonymous" %}{% endif %}
- {% if email %}{% trans "email" %}:{{email|safe}}{% endif %}
-{% endif %}
- ip:{{request.META.REMOTE_ADDR}}
-{% endspaceless %}
-
-{% trans "Message body:" %} {{message|safe}}
+++ /dev/null
-{{ obj.html|safe }}
\ No newline at end of file
+++ /dev/null
-{{ obj.title }}
\ No newline at end of file
+++ /dev/null
-<!-- template footer.html -->
-{% load extra_tags %}
-{% load i18n %}
-<!-- 页面底部开始: -->
- <div id="ground">
- <div>
- <div class="footerLinks" >
- <a href="{% url about %}">{% trans "about" %}</a><span class="link-separator"> |</span>
- <a href="{% url faq %}">{% trans "faq" %}</a><span class="link-separator"> |</span>
- <a href="{% url privacy %}">{% trans "privacy policy" %}</a><span class="link-separator"> |</span>
- {% spaceless %}
- <a href=
- {% if settings.FEEDBACK_SITE_URL %}
- "{{settings.FEEDBACK_SITE_URL}}"
- target="_blank">
- {% else %}
- "{% url feedback %}?next={{request.path}}">
- {% endif %}
- {% trans "give feedback" %}
- </a>
- {% endspaceless %}
- </div>
- <p>
- <a href="http://osqa.net" target="_blank">
- powered by OSQA
- </a>
- </p>
- </div>
- <div id="licenseLogo">
- <a href="http://creativecommons.org/licenses/by/3.0/">
- <img src="{% media "/media/images/cc-wiki.png" %}" title="Creative Commons: Attribution - Share Alike" alt="cc-wiki" width="50" height="68" />
- </a>
- </div>
- </div>
- <!-- 页面底部结束: -->
- {% if settings.GOOGLE_ANALYTICS_KEY %}
- <script type="text/javascript">
- var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
- document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
- </script>
- <script type="text/javascript">
- try {
- var pageTracker = _gat._getTracker('{{ settings.GOOGLE_ANALYTICS_KEY }}');
- pageTracker._trackPageview();
- } catch(err) {}
- </script>
- {% endif %}
-<!-- end template footer.html -->
+++ /dev/null
-<!-- template header.html -->
-{% load extra_tags %}
-{% load i18n %}
- <div id="roof">
- <div id="navBar">
- <div id="top">
- {% if request.user.is_authenticated %}
- {% if request.user.is_superuser %}
- <a href="{% url admin_index %}">{% trans "administration" %}</a>
- {% endif %}
- <a href="{% url user_profile id=request.user.id,slug=request.user.username|slugify %}">{{ request.user.username }}</a> {% get_score_badge request.user %}
- <a href="{% url logout %}">{% trans "logout" %}</a>
- {% else %}
- <a href="{% url auth_signin %}">{% trans "login" %}</a>
- {% endif %}
- <a href="{% url about %}">{% trans "about" %}</a>
- <a href="{% url faq %}">{% trans "faq" %}</a>
- </div>
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="23%">
- <div id="logo">
- <a href="{% url index %}">
- <img src="{{ settings.APP_LOGO }}" title="{% trans "back to home page" %}" alt="{{settings.APP_TITLE}} logo"/>
- </a>
- </div>
- </td>
- <td width="77%" valign="bottom">
- <div class="nav">
- <a id="nav_questions"{% ifequal tab "questions" %} class="on"{% endifequal %} href="{% url questions %}" >{% trans "questions" %}</a>
- <a id="nav_tags"{% ifequal tab "tags" %} class="on"{% endifequal %} href="{% url tags %}">{% trans "tags" %}</a>
- <a id="nav_users"{% ifequal tab "users" %} class="on"{% endifequal %} href="{% url users %}">{% trans "users" %}</a>
- <a id="nav_badges"{% ifequal tab "badges" %} class="on"{% endifequal %} href="{% url badges %}">{% trans "badges" %}</a>
- <a id="nav_unanswered"{% ifequal tab "unanswered" %} class="on"{% endifequal %} href="{% url unanswered %}">{% trans "unanswered questions" %}</a>
- <div class="focus">
- <a id="nav_ask" href="{% url ask %}" class="special">{% trans "ask a question" %}</a>
- </div>
- </div>
-
- </td>
- </tr>
- </table>
- </div>
- <div id="searchBar">
- <table width="100%" border="0" cellpadding="0" cellspacing="0" class="content">
- <tr>
- <td align="center" valign="middle">
- <form action="{% url search %}" method="get">
- <div>
- <input type="text" class="searchInput" value="{{ keywords }}" name="q" id="keywords" />
- <input type="submit" name="Submit" value="{% trans "search" %}" class="searchBtn" />
- </div>
- <div class="options">
- <input id="type-question" type="radio" value="question" name="t"
- checked="checked" /><label for="type-question">{% trans "questions" %}</label>
- <input id="type-tag" type="radio" value="tag" name="t" /><label for="type-tag">{% trans "tags" %}</label>
- <input id="type-user" type="radio" value="user" name="t" /><label for="type-user">{% trans "users" %}</label>
- </div>
- </form>
- </td>
- </tr>
- </table>
- </div>
- </div>
-<!-- end template header.html -->
+++ /dev/null
-{% extends "questions.html" %}\r
-<!-- index.html -->\r
-{% load general_sidebar_tags %}\r
-{% load question_list_tags %}\r
-{% load cache %}\r
-\r
-{% block sidebar %}\r
-{% cache 60 index_sidebar settings.APP_URL %}\r
- {% question_list_count %}\r
- {% tag_selector %}\r
- {% recent_tags %}\r
- {% recent_awards %}\r
-{% endcache %}\r
-{% endblock %}\r
-<!-- index.html -->\r
-\r
+++ /dev/null
-{% extends "base_content.html" %}
-<!-- template logout.html -->
-{% load extra_tags %}
-{% load humanize %}
-{% load i18n %}
-{% block title %}{% spaceless %}{% trans "Logout" %}{% endspaceless %}{% endblock %}
-{% block forejs %}
- <script type="text/javascript">
- $().ready(function(){
- $('#btLogout').bind('click', function(){ window.location.href='{% url user_signout %}?next={{ next }}'; });
- });
- </script>
-{% endblock %}
-{% block content %}
-<div class="headNormal">
- {% trans "Logout" %}
-</div>
-<div id="main-body" style="width:100%">
- <p>{% trans "As a registered user you can login with your OpenID, log out of the site or permanently remove your account." %}</p>
- <input id="btLogout" type="button" class="submit" value="{% trans "Logout now" %}"><!-- style="width:150px">-->
-</div>
-{% endblock %}
-<!-- end logout.html -->
+++ /dev/null
-{% extends "base_content.html" %}
-{% load i18n %}
-{% block title %}{% spaceless %}{% trans "Please prove that you are a Human Being" %}{% endspaceless %}{% endblock %}
-{% block content %}
-{% comment %} this form is set up to be used in wizards {% endcomment %}
-<form name="notarobot" action="." method="POST">
- <div>
- {{form}}
- </div>
- <input type="submit" value="{% trans "I am a Human Being" %}" class="submit" style="float:left"/>
- <input type="hidden" name="{{ step_field }}" value="{{ step0 }}" />
- {{ previous_fields|safe }}
- </form>
-</form>
-{% endblock %}
+++ /dev/null
-{% extends "email_base.html" %}\r
-{% load i18n %}\r
-{% load extra_tags %}\r
-\r
-{% block content %}\r
- <p>{% trans "Hello" %} {% user_var username %},</p>\r
-\r
- <p>\r
- {% blocktrans with answer.accepted_by.username as accepter and answer.author.username as answer_author and settings.APP_SHORT_NAME as app_title and settings.APP_URL as app_url and question.get_absolute_url as question_url and question.title as question_title %}\r
- Just to let you know that {{ accepter }} has just accepted {{ answer_author }}'s answer on his question\r
- <a href="{{ app_url }}{{ question_url }}">{{ question_title }}</a>:\r
- {% endblocktrans %}\r
- </p>\r
-\r
- <p>{% blocktrans %}Sincerely,<br />\r
- Forum Administrator{% endblocktrans %}</p>\r
-{% endblock %}\r
+++ /dev/null
-{% extends "email_base.html" %}\r
-{% load i18n %}\r
-{% load humanize %}\r
-{% load extra_tags %}\r
-\r
-{% block content %}\r
- <p>{% trans "Hello" %} {{ user.username }},</p>\r
-\r
- <p>{% blocktrans with settings.APP_SHORT_NAME as app_title %}\r
- This is the {{ digest_type }} activity digest for {{ app_title }}\r
- {% endblocktrans %}</p>\r
-\r
- {% if new_users %}\r
- <h3>\r
- {% blocktrans with new_users|length as nusers_count and new_users|length|pluralize as nusers_count_pluralize and settings.APP_SHORT_NAME as app_title %}\r
- {{ nusers_count }} new user{{ nusers_count_pluralize }} joined the {{ app_title }} community:\r
- {% endblocktrans %}\r
- </h3>\r
- <ul>\r
- {% for nuser in new_users %}\r
- <li><a href="{{ settings.APP_URL }}{{ nuser.get_profile_url }}">{{ nuser.username }}</a></li> \r
- {% endfor %}\r
- </ul>\r
- {% endif %}\r
-\r
- {% if activity_in_subscriptions %}\r
- <h3>\r
- {% blocktrans with activity_in_subscriptions|length as question_count and activity_in_subscriptions|length|pluralize as question_count_pluralize %}\r
- {{ question_count }} of your subscriptions have updates:\r
- {% endblocktrans %}\r
- </h3>\r
- <ul>\r
- {% for record in activity_in_subscriptions %}\r
- <li>\r
- {% trans "On question " %}<a href="{{ settings.APP_URL }}{{ record.question.get_absolute_url }}">{{ question_title }}" %}</a> -\r
- {% if record.activity.answers %}\r
- {% blocktrans with record.activity.answers|length as answer_count and record.activity.answers|length|pluralize as answer_count_pluralize %}\r
- {{ answer_count }} new answer{{ answer_count_pluralize }}\r
- {% endblocktrans %},\r
- {% endif %}\r
- {% if record.activity.comments %}\r
- {% blocktrans with record.activity.comments|length as comment_count and record.activity.comments|length|pluralize as comment_count_pluralize %}\r
- {{ comment_count }} new comment{{ comment_count_pluralize }}\r
- {% endblocktrans %}\r
- {% if own_comments_only %}\r
- {% trans "on your own post(s)" %}\r
- {% endif %},\r
- {% endif %}\r
- {% if record.accepted %}\r
- {% trans "an answer was accepted" %}\r
- {% endif %}\r
- </li>\r
- {% endfor %}\r
- </ul>\r
- {% endif %}\r
-\r
- {% if new_questions %}\r
- <h3>\r
- {% blocktrans with new_questions|length as question_count and new_questions|length|pluralize as question_count_pluralize%}\r
- {{ question_count }} new question{{ question_count_pluralize }}\r
- {% endblocktrans %}\r
- {% if watched_tags_only %}\r
- {% trans "matching your interesting tags" %}\r
- {% endif %}\r
- {% trans "posted :" %}\r
- </h3>\r
- <ul>\r
- {% for question in new_questions %}\r
- <li>\r
- <a href="{{ settings.APP_URL }}{{ question.get_absolute_url }}">{{ question.title }}</a> -\r
- {% blocktrans with question.author.username as author_name and question.added_at|date:"D d M Y" as question_time %}\r
- Posted by {{ author_name }} in {{ question_time }}\r
- {% endblocktrans %}\r
- </li>\r
- {% endfor %}\r
- </ul>\r
- {% endif %}\r
-\r
-{% endblock %}
\ No newline at end of file
+++ /dev/null
-{% extends "email_base.html" %}\r
-{% load i18n %}\r
-{% load extra_tags %}\r
-\r
-{% block content %}\r
- <p>{% trans "Hello" %} {% user_var username %},</p>\r
-\r
- <p>\r
- {% blocktrans with answer.author.username as author_name and settings.APP_SHORT_NAME as app_title and settings.APP_URL as app_url and question.get_absolute_url as question_url and question.title as question_title %}\r
- {{ author_name }} has just posted a new answer on {{ app_title }} to the question\r
- <a href="{{ app_url }}{{ question_url }}">{{ question_title }}"</a>:\r
- {% endblocktrans %}\r
- </p>\r
-\r
- <blockquote>\r
- {{ answer.html|safe }}\r
- </blockquote>\r
-\r
- <p>\r
- {% blocktrans %}\r
- Don't forget to come over and cast your vote.\r
- {% endblocktrans %}\r
- </p>\r
-\r
- <p>{% blocktrans %}Sincerely,<br />\r
- Forum Administrator{% endblocktrans %}</p>\r
-{% endblock %}\r
+++ /dev/null
-{% extends "email_base.html" %}\r
-{% load i18n %}\r
-{% load extra_tags %}\r
-\r
-{% block content %}\r
- <p>{% trans "Hello" %} {% user_var username %},</p>\r
-\r
- <p>\r
- {% blocktrans with comment.user.username as author_name %}\r
- {{ author_name }} has just posted a comment on\r
- {% endblocktrans %}\r
-\r
- {% if post.question %}\r
- {% blocktrans with settings.APP_URL as app_url and post.author.username as poster_name and post.author.get_profile_url as poster_url%}\r
- the answer posted by <a href="{{ app_url }}{{ poster_url }}">{{ poster_name }}</a> to\r
- {% endblocktrans %}\r
- {% endif %}\r
-\r
- {% blocktrans with question.title as question_title and settings.APP_URL as app_url and question.get_absolute_url as question_url %}\r
- the question <a href="{{ app_url }}{{ question_url }}">{{ question_title }}</a>\r
- {% endblocktrans %}\r
- </p>\r
-\r
- <blockquote>\r
- {{ comment.comment }}\r
- </blockquote>\r
-\r
- {% blocktrans %}\r
- Don't forget to come over and cast your vote.\r
- {% endblocktrans %}\r
-\r
- <p>{% blocktrans %}Sincerely,<br />\r
- Forum Administrator{% endblocktrans %}</p>\r
-{% endblock %}\r
+++ /dev/null
-{% extends "email_base.html" %}\r
-{% load i18n %}\r
-{% load extra_tags %}\r
-\r
-{% block content %}\r
- <p>{% trans "Hello" %} {% user_var username %},</p>\r
-\r
- <p>\r
- {% blocktrans with newmember.username as newmember_name and settings.APP_SHORT_NAME as app_title and settings.APP_URL as app_url and newmember.get_profile_url as newmember_url %}\r
- {{ newmember_name }} has just joined {{ app_title }}. You can visit his profile using the following link: <br />\r
- <a href="{{ app_url }}{{ newmember_url }}">{{ newmember_name }} profile</a>\r
- {% endblocktrans %}\r
- </p>\r
-\r
- <p>{% blocktrans %}Sincerely,<br />\r
- Forum Administrator{% endblocktrans %}</p>\r
-{% endblock %}\r
+++ /dev/null
-{% extends "email_base.html" %}\r
-{% load i18n %}\r
-{% load extra_tags %}\r
-\r
-{% block content %}\r
- <p>{% trans "Hello" %} {% user_var username %},</p>\r
-\r
- <p>\r
- {% blocktrans with question.author.username as author_name and settings.APP_SHORT_NAME as app_title and settings.APP_URL as app_url and question.get_absolute_url as question_url and question.title as question_title and question.tagnames as question_tags %}\r
- {{ author_name }} has just posted a new question on {{ app_title }}, with title\r
- <a href="{{ app_url }}{{ question_url }}">{{ question_title }}</a> and tagged <em>{{ question_tags }}</em>:\r
- {% endblocktrans %}\r
- </p>\r
-\r
- <blockquote>\r
- {{ question.html|safe }}\r
- </blockquote>\r
-\r
- <p>\r
- {% blocktrans %}\r
- Don't forget to come over and cast your vote.\r
- {% endblocktrans %}\r
- </p>\r
-\r
- <p>{% blocktrans %}Sincerely,<br />\r
- Forum Administrator{% endblocktrans %}</p>\r
-{% endblock %}\r
+++ /dev/null
-{% extends "base.html" %}\r
-\r
-{% load i18n %}\r
-{% load extra_tags %}\r
-\r
-{% block forejs %}\r
- <link rel="stylesheet" type="text/css" media="screen" href="{% media "/media/style/admin.css" %}"/>\r
- {% block adminjs %}{% endblock %}\r
-{% endblock %}\r
-\r
-{% block content %}\r
- <div class="headNormal">\r
- {% trans "OSQA administration area" %} - {% block subtitle %}{% endblock %}\r
- </div>\r
- <div id="admin_page_description">\r
- {% block description %}{% endblock %}\r
- </div>\r
- <div>\r
- {% block admincontent %}\r
- {% endblock %}\r
- </div>\r
-{% endblock %}\r
-\r
-{% block sidebar %}\r
- <div class="boxC">\r
- <h3 class="subtitle">{% trans "Administration menu" %}</h3>\r
- <ul>\r
- {% for set in sets %}\r
- <li><a href="{% url admin_set set.name %}">{{ set.title }}</a></li>\r
- {% endfor %}\r
- </ul>\r
- </div>\r
-{% endblock %}\r
-\r
- \r
+++ /dev/null
-{% extends "osqaadmin/base.html" %}\r
-\r
-{% load i18n %}\r
-\r
-{% block adminjs %}\r
- \r
-{% endblock %}\r
-\r
-{% block subtitle %}\r
- {% trans "Dashboard" %}\r
-{% endblock %}\r
-{% block description %}\r
- {% trans "Welcome to the OSQA administration area." %}\r
-{% endblock %}\r
-\r
-{% block admincontent %}\r
- <table width="100%">\r
- <tr>\r
- <td width="50%" valign="top">\r
- <h3>{%trans "Site statistics" %}</h3>\r
- <table>\r
- <tr>\r
- <td>\r
- {{ statistics.total_questions }} {% trans "question" %}{{ statistics.total_questions|pluralize }} ({{ statistics.questions_last_24 }} {% trans "in the last 24 hours" %})\r
- </td>\r
- </tr>\r
- <tr>\r
- <td>\r
- {{ statistics.total_answers }} {% trans "answer" %}{{ statistics.total_answers|pluralize }} ({{ statistics.answers_last_24 }} {% trans "in the last 24 hours" %})\r
- </td>\r
- </tr>\r
- <tr>\r
- <td>\r
- {{ statistics.total_users }} {% trans "user" %}{{ statistics.total_users|pluralize }} ({{ statistics.users_last_24 }} {% trans "joined in the last 24 hours" %})\r
- </td>\r
- </tr>\r
- </table>\r
- </td>\r
- <td valign="top">\r
- <h3>{%trans "Site status" %}</h3>\r
- <table>\r
- <tr>\r
- <td>\r
- {% ifequal settings_pack "bootstrap" %}\r
- {% trans "Your site is running in bootstrap mode, click the button bellow to revert to defaults." %}<br />\r
- {% else %}\r
- {% ifequal settings_pack "default" %}\r
- {% trans "Your site is running in standard mode, click the button bellow to run in bootstrap mode." %}<br />\r
- {% else %}\r
- {% trans "Your site is running with some customized settings, click the buttons bellow to run with defaults or in bootstrap mode" %}\r
- {% endifequal %}\r
- {% endifequal %}\r
- {% ifnotequal settings_pack "default" %}\r
- <button onclick="if (window.confirm('{% trans "Are you sure you want to revert to the defaults?" %}')) window.location='{% url admin_go_defaults %}';">{% trans "revert to defaults" %}</button>\r
- {% endifnotequal %}\r
- {% ifnotequal settings_pack "bootstrap" %}\r
- <button onclick="if (window.confirm('{% trans "Are you sure you want to run bootstrap mode?" %}')) window.location='{% url admin_go_bootstrap %}';">{% trans "go bootstrap" %}</button>\r
- {% endifnotequal %}\r
- </td>\r
- </tr>\r
- </table>\r
- </td>\r
- </tr>\r
- <tr>\r
- <td colspan="2">\r
- <h3>{% trans "Recent activity" %}</h3>\r
- <table width="100%">\r
- {% for activity in recent_activity %}\r
- <tr>\r
- <td>\r
- {{ activity.user.get_profile_link }} {{ activity.type_as_string }} {% trans "on" %} <a href="{{ activity.question.get_absolute_url }}">{{ activity.question.title }}</a><br />\r
- <sub>{{ activity.active_at|date }}, {{ activity.active_at|time }}</sub>\r
- </td>\r
- </tr>\r
- {% endfor %}\r
- </table>\r
- </td>\r
- </tr>\r
- </table> \r
-{% endblock %}
\ No newline at end of file
+++ /dev/null
-{% extends "osqaadmin/base.html" %}\r
-\r
-{% load i18n %}\r
-{% load extra_tags %}\r
-\r
-{% block subtitle %}{{ form.set.title }}{% endblock %}\r
-{% block description %}{{ form.set.description }}{% endblock %}\r
-\r
-{% block admincontent %}\r
- <form action="" method="POST" enctype="multipart/form-data">\r
- <table id="admin_form">\r
- {{ form.as_table }}\r
- <tr>\r
- <th></th>\r
- <td>\r
- <input id="submit" name="submit" type="submit" value="Save" />\r
- </td>\r
- </tr>\r
- </table>\r
- </form>\r
-{% endblock %}
\ No newline at end of file
+++ /dev/null
-<!-- template pagesize.html -->
-{% spaceless %}
-{% load i18n %}
-{% if is_paginated %}
-<div class="paginator">
- <span class="text">{% trans "posts per page" %}</span>
- {% ifequal pagesize 10 %}
- <span class="curr">10</span>
- {% else %}
- <span class="page"><a href="{{base_url}}pagesize=10">10</a></span>
- {% endifequal %}
-
- {% ifequal pagesize 30 %}
- <span class="curr">30</span>
- {% else %}
- <span class="page"><a href="{{base_url}}pagesize=30">30</a></span>
- {% endifequal %}
-
- {% ifequal pagesize 50 %}
- <span class="curr">50</span>
- {% else %}
- <span class="page"><a href="{{base_url}}pagesize=50">50</a></span>
- {% endifequal %}
-</div>
-{% endif %}
-{% endspaceless %}
-<!-- end template pagesize.html -->
+++ /dev/null
-<!-- paginator.html -->
-{% spaceless %}
-{% load i18n %}
-{% if is_paginated %}
-<div class="paginator">
-{% if has_previous %}<span class="prev"><a href="{{base_url}}page={{ previous }}{{ extend_url }}" title="{% trans "previous" %}">
-« {% trans "previous" %}</a></span>{% endif %}
-{% if not in_leading_range %}
- {% for num in pages_outside_trailing_range %}
- <span class="page"><a href="{{base_url}}page={{ num }}{{ extend_url }}" >{{ num }}</a></span>
- {% endfor %}
- ...
-{% endif %}
-
-{% for num in page_numbers %}
- {% ifequal num page %}
- {% ifequal pages 1 %}
- {% else %}
- <span class="curr" title="{% trans "current page" %}">{{ num }}</span>
- {% endifequal %}
- {% else %}
- <span class="page"><a href="{{base_url}}page={{ num }}{{ extend_url }}" title="{% trans "page number " %}{{ num }}{% trans "number - make blank in english" %}">{{ num }}</a></span>
- {% endifequal %}
-{% endfor %}
-
-{% if not in_trailing_range %}
- ...
- {% for num in pages_outside_leading_range reversed %}
- <span class="page"><a href="{{base_url}}page={{ num }}{{ extend_url }}" title="{% trans "page number " %}{{ num }}{% trans "number - make blank in english" %}">{{ num }}</a></span>
- {% endfor %}
-{% endif %}
-
-{% if has_next %}<span class="next"><a href="{{base_url}}page={{ next }}{{ extend_url }}" title="{% trans "next page" %}">{% trans "next page" %} »</a></span>{% endif %}
-</div>
-{% endif %}
-
-{% endspaceless %}
-<!-- end paginator.html -->
+++ /dev/null
-{% load i18n %}
-{% load smart_if %}
-{% load extra_tags %}
-<div class='post-update-info'>
-{% ifequal contributor_type "original_author" %}
- {% if wiki %}
- <p>{% trans "community wiki" %}</p>
- <p>
- {% blocktrans count post.revisions.all|length as rev_count %}
- one revision
- {% plural %}
- {{rev_count}} revisions
- {% endblocktrans %}
- </p>
- <p>{{post.author.get_profile_link}}</p>
- {% else %}
- <p style="line-height:12px;">
- {% ifequal post_type "question" %}
- {% trans "asked" %}
- {% else %}
- {% ifequal post_type "answer" %}
- {% trans "answered" %}
- {% else %}
- {% trans "posted" %}
- {% endifequal %}
- {% endifequal %}
- {% ifequal post_type "revision" %}
- <strong>{% diff_date post.revised_at %}</strong>
- {% else %}
- <strong>{% diff_date post.added_at %}</strong>
- {% endifequal %}
- </p>
- {% gravatar post.author 32 %}
- <p>{{post.author.get_profile_link}}<br/>
- {% get_score_badge post.author %}</p>
- {% endif %}
-{% else %}
- {% if post.last_edited_at %}
- <p style="line-height:12px;">
- {% ifequal post_type 'question' %}
- <a href="{% url question_revisions post.id %}">
- {% else %}
- <a href="{% url answer_revisions post.id %}">
- {% endifequal %}
- {% trans "updated" %} <strong>{% diff_date post.last_edited_at %}</strong>
- </a>
- </p>
- {% if post.author != post.last_edited_by or wiki %}
- {% gravatar post.last_edited_by 32 %}
- <p style="float:left">{{post.last_edited_by.get_profile_link}}<br/>
- {% get_score_badge post.last_edited_by %}</p>
- {% endif %}
- {% endif %}
-{% endifequal %}
-</div>
+++ /dev/null
-{% extends "base_content.html" %}
-<!-- privacy.html -->
-{% load extra_tags %}
-{% load i18n %}
-{% load humanize %}
-{% block title %}{% spaceless %}{% trans "Privacy policy" %}{% endspaceless %}{% endblock %}
-{% block forejs %}
-{% endblock %}
-{% block content %}
-<div class="headNormal">
- {% trans "Privacy policy" %}
-</div>
-<div id="main-body" style="width:100%">
- <p>
- {% trans "general message about privacy" %}
- </p>
-
- <h3 class="subtitle">{% trans "Site Visitors" %}</h3>
- <p>
- {% trans "what technical information is collected about visitors" %}
- </p>
-
- <h3 class="subtitle">{% trans "Personal Information" %}</h3>
- <p>
- {% trans "details on personal information policies" %}
- </p>
-
- <h3 class="subtitle">{% trans "Other Services" %}</h3>
- <p>
- {% trans "details on sharing data with third parties" %}
- </p>
-
- <h3 class="subtitle">Cookies</h3>
- <p>
- {% trans "cookie policy details" %}
- </p>
- <h3 class="subtitle">{% trans "Policy Changes" %}</h3>
- <p>{% trans "how privacy policies can be changed" %}
- </p>
-</div>
-{% endblock %}
-<!-- end privacy.html -->
+++ /dev/null
-{% extends "base.html" %}\r
-<!-- question.html -->\r
-{% load question_page_tags %}\r
-{% load extra_tags %}\r
-{% load extra_filters %}\r
-{% load smart_if %}\r
-{% load humanize %}\r
-{% load i18n %}\r
-{% load cache %}\r
-{% block title %}{% spaceless %}{{ question.get_question_title }}{% endspaceless %}{% endblock %}\r
-{% block forejs %}\r
- <meta name="description" content="{{question.summary}}" />\r
- <meta name="keywords" content="{{question.tagname_meta_generator}}" />\r
- <link rel="canonical" href="{{settings.APP_URL}}{{question.get_absolute_url}}" />\r
- {% if not question.closed %}\r
- <script type='text/javascript' src='{% media "/media/js/wmd/showdown.js" %}'></script>\r
- <script type='text/javascript' src='{% media "/media/js/wmd/wmd.js" %}'></script>\r
- <link rel="stylesheet" type="text/css" href="{% media "/media/js/wmd/wmd.css" %}" />\r
- {% endif %}\r
-\r
- <script type="text/javascript">\r
- // define reputation needs for comments\r
- var repNeededForComments = 50;\r
- $().ready(function(){\r
- $("#nav_questions").attr('className',"on");\r
- var answer_sort_tab = "{{ tab_id }}";\r
- $("#" + answer_sort_tab).attr('className',"on");\r
-\r
- $('#editor').TextAreaResizer();\r
- });\r
- </script>\r
- <noscript>\r
- <style>\r
- .comment.not_top_scorer {\r
- display: block;\r
- }\r
- .comment-form-container {\r
- display: block;\r
- }\r
- .div.comment-tools {\r
- display: none;\r
- }\r
- </style>\r
- </noscript>\r
-{% endblock %}\r
- \r
-{% block content %}\r
-<div class="headNormal">\r
- <a href="{{ question.get_absolute_url }}">{{ question.get_question_title }}</a>\r
-</div>\r
-<div id="main-body" class="">\r
- <div id="askform">\r
- <table style="width:100%;" id="question-table" {% if question.deleted %}class="deleted"{%endif%}>\r
- <tr>\r
- <td style="width:30px;vertical-align:top">\r
- <div class="vote-buttons">\r
- {% vote_buttons question request.user %}\r
- {% favorite_mark question request.user %} \r
- </div>\r
- </td>\r
- <td>\r
- <div id="item-right">\r
- <div class="question-body">\r
- {{ question.html|safe }}\r
- </div>\r
- <div id="question-controls" class="post-controls">\r
- <div id="question-tags" class="tags">\r
- {% for tag in question.tagname_list %}\r
- <a href="{% url tag_questions tag|urlencode %}" class="post-tag"\r
- title="{% blocktrans with tag as tagname %}see questions tagged '{{ tagname }}'{% endblocktrans %}" rel="tag">{{ tag }}</a>\r
- {% endfor %}\r
- </div>\r
- {% post_controls question request.user %}\r
- </div>\r
- <div class="post-update-info-container">\r
- {% post_contributor_info question "original_author" %}\r
- {% post_contributor_info question "last_updater" %}\r
- </div>\r
- {% comments question request.user %}\r
- </div>\r
- \r
- </td>\r
- </tr>\r
- </table>\r
- {% if question.closed %}\r
- <div class="question-status" style="margin-bottom:15px">\r
- <h3>{% blocktrans with question.get_close_reason_display as close_reason %}The question has been closed for the following reason "{{ close_reason }}" by{% endblocktrans %} \r
- <a href="{{ question.closed_by.get_profile_url }}">{{ question.closed_by.username }}</a> \r
- {% blocktrans with question.closed_at as closed_at %}close date {{closed_at}}{% endblocktrans %}</h3>\r
- </div>\r
- {% endif %}\r
- {% if answers %}\r
- <hr/>\r
- <div class="tabBar">\r
- <a name="sort-top"></a>\r
- <div class="headQuestions">\r
- {% blocktrans count answers|length as counter %}\r
- One Answer:\r
- {% plural %}\r
- {{counter}} Answers:\r
- {% endblocktrans %}\r
- </div>\r
- <div class="tabsA">\r
- <a id="oldest" href="{{ question.get_absolute_url }}?sort=oldest#sort-top"\r
- title="{% trans "oldest answers will be shown first" %}">{% trans "oldest answers" %}</a>\r
- <a id="latest" href="{{ question.get_absolute_url }}?sort=latest#sort-top"\r
- title="{% trans "newest answers will be shown first" %}">{% trans "newest answers" %}</a>\r
- <a id="votes" href="{{ question.get_absolute_url }}?sort=votes#sort-top" \r
- title="{% trans "most voted answers will be shown first" %}">{% trans "popular answers" %}</a> \r
- </div>\r
- </div>\r
- {% cnprog_paginator context %}\r
- \r
- {% for answer in answers %}\r
- <a name="{{ answer.id }}"></a>\r
- <div id="answer-container-{{ answer.id }}" class="answer {% if answer.accepted %}accepted-answer{% endif %} {% ifequal answer.author_id question.author_id %} answered-by-owner{% endifequal %} {% if answer.deleted %}deleted{% endif %}">\r
- <table style="width:100%;">\r
- <tr>\r
- <td style="width:30px;vertical-align:top">\r
- <div class="vote-buttons">\r
- {% vote_buttons answer request.user %}\r
- {% accept_button answer request.user %}\r
- </div>\r
- </td>\r
- <td>\r
- <div class="item-right">\r
- <div class="answer-body">\r
- {{ answer.html|safe }}\r
- </div>\r
- <div class="answer-controls post-controls">\r
- {% post_controls answer request.user %}\r
- </div>\r
- <div class="post-update-info-container">\r
- {% post_contributor_info answer "original_author" %}\r
- {% post_contributor_info answer "last_updater" %}\r
- </div>\r
- {% comments answer request.user %}\r
- </div>\r
- </td>\r
- </tr>\r
- </table>\r
- </div>\r
- {% endfor %}\r
- <div class="paginator-container-left">\r
- {% cnprog_paginator context %}\r
- </div>\r
- {% endif %}\r
- <form id="fmanswer" action="{% url answer question.id %}" method="post">\r
- <div style="clear:both">\r
- </div>\r
- \r
- {% if not question.closed %}\r
- <div style="padding:10px 0 0 0;">\r
- {% spaceless %}\r
- <div class="headNormal">\r
- {% if answers %}\r
- {% trans "Your answer" %}\r
- {% else %}\r
- {% trans "Be the first one to answer this question!" %}\r
- {% endif %}\r
- </div>\r
- {% endspaceless %}\r
- </div>\r
- {% if not request.user.is_authenticated %}\r
- <div class="message">{% trans "you can answer anonymously and then login" %}</div>\r
- {% else %}\r
- <p class="message">\r
- {% ifequal request.user question.author %}\r
- {% trans "answer your own question only to give an answer" %}\r
- {% else %}\r
- {% trans "please only give an answer, no discussions" %}\r
- {% endifequal %}\r
- </p>\r
- {% endif %}\r
-\r
- <div id="description" class="" >\r
- <div id="wmd-button-bar" class="wmd-panel"></div>\r
- {{ answer.text }}\r
- <div class="preview-toggle">\r
- <table width="100%">\r
- <tr>\r
- <td>\r
- <span id="pre-collapse" \r
- title="{% trans "Toggle the real time Markdown editor preview" %}">\r
- {% trans "toggle preview" %}\r
- </span>\r
- </td>\r
- {% if settings.WIKI_ON %}\r
- <td style="text-align:right;">\r
- {{ answer.wiki }} \r
- <span style="font-weight:normal;cursor:help" \r
- title="{{answer.wiki.help_text}}">\r
- {{ answer.wiki.label_tag }} \r
- </span>\r
- </td>\r
- {% endif %}\r
- </tr>\r
- \r
- </table> \r
- </div>\r
- <div id="previewer" class="wmd-preview"></div>\r
- {{ answer.text.errors }}\r
- </div>\r
- <p><span class="form-error"></span></p>\r
- <input type="submit" \r
- {% if user.is_anonymous %}\r
- value="{% trans "Login/Signup to Post Your Answer" %}" \r
- {% else %}\r
- {% if user == question.author %}\r
- value="{% trans "Answer Your Own Question" %}" \r
- {% else %}\r
- value="{% trans "Answer the question" %}" \r
- {% endif %}\r
- {% endif %}\r
- class="submit" style="float:left"/>\r
- {% endif %}\r
- </form>\r
- </div>\r
-</div>\r
-{% endblock %}\r
-\r
-{% block sidebar %}\r
-<div class="boxC" id="subscription_box">\r
- {% include "subscription_status.html" %}\r
-</div>\r
-{% cache 60 questions_tags settings.APP_URL question.id %}\r
-<div class="boxC">\r
- <p>\r
- {% trans "Question tags" %}:\r
- </p>\r
- <p class="tags" >\r
- {% for tag in tags %}\r
- <a href="{% url tag_questions tag.name|urlencode %}" \r
- title="{% trans "see questions tagged"%}'{{tag.name}}'{% trans "using tags" %}" \r
- rel="tag">{{ tag.name }}</a> <span class="tag-number">×{{ tag.used_count|intcomma }}</span><br/>\r
- {% endfor %}\r
- </p>\r
- <p>\r
- {% trans "question asked" %}: <strong title="{{ question.added_at }}">{% diff_date question.added_at %}</strong>\r
- </p>\r
- <p> \r
- {% trans "question was seen" %}: <strong>{{ question.view_count|intcomma }} {% trans "times" %}</strong>\r
- </p>\r
- <p> \r
- {% trans "last updated" %}: <strong title="{{ question.last_activity_at }}">{% diff_date question.last_activity_at %}</strong>\r
- </p>\r
-</div>\r
-{% endcache %}\r
-<div class="boxC">\r
- <h3 class="subtitle">{% trans "Related questions" %}</h3>\r
- <div class="questions-related">\r
-\r
- {% for question in similar_questions %}\r
- <p>\r
- <a href="{{ question.get_absolute_url }}">{{ question.get_question_title }}</a>\r
- </p>\r
- {% endfor %}\r
-\r
- </div>\r
-</div>\r
-\r
-{% endblock %}\r
-\r
-{% block endjs %}\r
-{% endblock %}\r
-<!-- end question.html -->\r
+++ /dev/null
-{% load i18n %}\r
-\r
-{% if can_accept %}\r
- <a id="accept-answer-{{ answer.id }}" class="ajax-command accept-answer{% if answer.accepted %} on{% endif %}"\r
- title="{% if answer.accepted %}{% blocktrans with answer.accepted_by.username as who %}{{ who }} has selected this answer as the correct answer{% endblocktrans %}{% else %}{% trans "mark this answer as the accepted answer" %}{% endif %}"\r
- href="{% url accept_answer id=answer.id %}" rel="nofollow"> </a>\r
-{% endif %}
\ No newline at end of file
+++ /dev/null
-{% load extra_tags %}\r
-{% load i18n %}\r
-\r
-<div class="comments-container" id="comments-container-{{ post_type }}-{{ post.id }}">\r
- {% for comment in comments %}\r
- <table class="comment{% if not comment.top_scorer %} not_top_scorer{% endif %}" id="comment-{{comment.id}}">\r
- <tr>\r
- <td rowspan="2" class="comment-score" id="comment-{{ comment.id }}-score">\r
- {% if comment.score %}{{ comment.score }}{% endif %}\r
- </td>\r
- <td class="comment-text" id="comment-{{comment.id}}-text">\r
- {{ comment.comment }}\r
- </td>\r
- </tr>\r
- <tr>\r
- <td class="comment-info" id="comment-{{comment.id}}-info">\r
- <a class="comment-user userinfo" href="{{comment.user.get_profile_url}}">{{comment.user}}</a>\r
- <span class="comment-age">({% diff_date comment.added_at %})</span>\r
- {% if comment.can_like %}\r
- <a id="comment-{{ comment.id }}-like" href="{% url like_comment id=comment.id %}"\r
- title="{% trans "I like this comment (click again to cancel)" %}" class="ajax-command comment-like{% if comment.likes %} on{% endif %}"\r
- rel="nofollow"> </a>\r
- {% endif %}\r
- {% if comment.can_edit %}\r
- <a id="comment-{{ comment.id }}-edit" href="#" title="{% trans "Edit comment" %}"\r
- class="comment-edit" rel="nofollow"> </a>\r
- {% endif %}\r
- {% if comment.can_delete %}\r
- <a id="comment-{{ comment.id }}-delete" href="{% url delete_comment id=comment.id %}" title="{% trans "Delete comment" %}"\r
- class="ajax-command comment-delete" rel="nofollow"> </a>\r
- {% endif %}\r
- </td>\r
- </tr>\r
- </table>\r
- {% endfor %}\r
-</div>\r
-<div id="comment-tools-{{ post_type }}-{{ post.id }}" class="comment-tools">\r
- <img src="/m/default/media/images/gray-up-arrow-h18px.png" />\r
- {% ifnotequal showing total %}\r
- <span class="comments-showing">\r
- {% blocktrans %}showing {{ showing }} of {{ total }}{% endblocktrans %}\r
- </span>\r
- <a href="#" class="show-all-comments-link">{% trans "show all" %}</a>\r
- {% endifnotequal %}\r
- {% if can_comment %}\r
- <a href="#" class="add-comment-link">{% trans "add new comment" %}</a>\r
- {% endif %}\r
-</div>\r
-{% if can_comment %}\r
-<div id="comment-{{ post_type }}-{{ post.id }}-form-container" class="comment-form-container">\r
- <form id="comment-{{ post_type }}-{{ post.id }}-form" method="post" action="{% url comment post_type=post_type,id=post.id %}">\r
- <div class="comment-form-widgets-container">\r
- <textarea name="comment"></textarea>\r
- <input type="submit" value="{% trans " add comment" %}" />\r
- </div>\r
- <span id="comment-{{ post_type }}-{{ post.id }}-chars-left" class="comment-chars-left">\r
- {% blocktrans %}\r
- have <span class="comments-char-left-count">{{ max_length }}</span> characters left\r
- {% endblocktrans %}\r
- </span>\r
- <script type="text/html" class="new-comment-skeleton" id="new-comment-skeleton-{{ post_type }}-{{ post.id }}">\r
- <table class="comment" id="comment-%ID%" style="display: none">\r
- <tr>\r
- <td rowspan="2" class="comment-score" id="comment-%ID%-score"></td>\r
- <td class="comment-text" id="comment-%ID%-text">%COMMENT%</td>\r
- </tr>\r
- <tr>\r
- <td class="comment-info" id="comment-%ID%-info">\r
- <a class="comment-user" href="%PROFILE_URL%">%USERNAME%</a>\r
- <span class="comment-age">({% trans "just now" %})</span>\r
- <a id="comment-%ID%-edit" href="#"\r
- class="comment-edit" rel="nofollow"> </a>\r
- <a id="comment-%ID%-delete" href="%DELETE_URL%"\r
- class="ajax-command comment-delete" rel="nofollow"> </a>\r
- </td>\r
- </tr>\r
- </table>\r
- </script>\r
- </form>\r
-</div>\r
-{% endif %}\r
-
\ No newline at end of file
+++ /dev/null
-{% load i18n %}\r
-\r
-<a id="favorite-mark" title="{% trans "mark/unmark this question as favorite (click again to cancel)" %}"\r
- class="ajax-command favorite-mark {% if favorited %} on{% endif %}"\r
- href="{% url mark_favorite id=question.id %}" rel="nofollow"> </a>\r
-<div id="favorite-count" class="favorite-count">\r
- {% if favorite_count %}{{ favorite_count }}{% endif %}\r
-</div>\r
+++ /dev/null
-{% spaceless %}\r
-{% for control in controls %}\r
- <span class="action-link">\r
- <a title="{{ control.title }}" {% if control.command %}class="ajax-command"{% endif %}\r
- href="{{ control.url }}">{{ control.text }}</a>\r
- </span>\r
- {% ifnotequal controls|last control %}\r
- <span class="action-link-separator">|</span>\r
- {% endifnotequal %}\r
-{% endfor %}\r
-{% endspaceless %}
\ No newline at end of file
+++ /dev/null
-{% load i18n %}\r
-\r
-<a id="{{ post_type }}-{{ post.id }}-upvote" title="{% trans "I like this post (click again to cancel)" %}"\r
- class="ajax-command post-vote up {% ifequal user_vote "up" %} on{% endifequal %}"\r
- href="{% url vote_post post_type=post_type,id=post.id,vote_type='up' %}" rel="nofollow"> </a>\r
-<div id="{{ post_type }}-{{ post.id }}-score" class="post-score"\r
- title="{% trans "current number of votes" %}">\r
- {{ post.score }}\r
-</div>\r
-<a id="{{ post_type }}-{{ post.id }}-downvote" title="{% trans "I dont like this post (click again to cancel)" %}"\r
- class="ajax-command post-vote down{% ifequal user_vote "down" %} on{% endifequal %}"\r
- href="{% url vote_post post_type=post_type,id=post.id,vote_type='down' %}" rel="nofollow"> </a>
\ No newline at end of file
+++ /dev/null
-{% extends "base.html" %}
-<!-- question_edit.html -->
-{% load i18n %}
-{% load extra_tags %}
-{% block title %}{% spaceless %}{% trans "Edit question" %}{% endspaceless %}{% endblock %}
-{% block forejs %}
- <script type='text/javascript' src='{% media "/media/js/wmd/showdown.js" %}'></script>
- <script type='text/javascript' src='{% media "/media/js/wmd/wmd.js" %}'></script>
- <link rel="stylesheet" type="text/css" href="{% media "/media/js/wmd/wmd.css" %}" />
- <script type="text/javascript">
- //todo move javascript out
- $().ready(function(){
- $("#nav_questions").attr('className',"on");
- $('#editor').TextAreaResizer();
-
-
- //toggle preview of editor
- var display = true;
- var txt = "[{% trans "hide preview" %}]";
- $('#pre-collapse').text(txt);
- $('#pre-collapse').bind('click', function(){
- txt = display ? "[{% trans "show preview" %}]" : "[{% trans "hide preview" %}]";
- display = !display;
- $('#previewer').toggle();
- $('#pre-collapse').text(txt);
- });
-
- //Tags autocomplete action
- var tags = {{ tags|safe }};
- $("#id_tags").autocomplete(tags, {
- matchContains: true,
- max: 20,
- multiple: true,
- multipleSeparator: " ",
- highlightItem: true,
- scroll: true,
- scrollHeight: 300,
- formatItem: function(row, i, max) {
- return row.n + " ("+ row.c +")";
- },
- formatResult: function(row, i, max){
- return row.n;
- }
-
- });
-
- $('#id_revision').unbind().change(function(){
- $("#select_revision").click();
- });
-
- });
- </script>
-{% endblock %}
-
-{% block content %}
-<div id="main-bar" class="headNormal">
- {% trans "Edit question" %} [<a href="{{ question.get_absolute_url }}">{% trans "back" %}</a>]
-</div>
-<div id="main-body" class="ask-body">
- <div id="askform">
- <form id="fmedit" action="{% url edit_question question.id %}" method="post" >
- <label for="id_revision" ><strong>{% trans "revision" %}:</strong></label> <br/>
- {% if revision_form.revision.errors %}{{ revision_form.revision.errors.as_ul }}{% endif %}
- <div style="vertical-align:middle">
- {{ revision_form.revision }} <input type="submit" style="display:none" id="select_revision" name="select_revision"
- value="{% trans "select revision"%}">
- </div>
- <div class="form-item">
- <label for="id_title" ><strong>{{ form.title.label_tag }}:</strong></label> <span class="form-error"></span><br/>
- {{ form.title }} {{ form.title.errors }}
- <div class="title-desc">
- {{ form.title.help_text }}
- </div>
- </div>
- <div class="form-item">
- <div id="wmd-button-bar" class="wmd-panel"></div>
- {{ form.text }}
- <span class="form-error"></span>
- <div class="preview-toggle">
- <table width="100%">
- <tr>
- <td>
- <span id="pre-collapse" title="{% trans "Toggle the real time Markdown editor preview" %}">{% trans "toggle preview" %}</span>
- </td>
- {% if settings.WIKI_ON %}
- <td style="text-align:right;">
- {{ form.wiki }} <span style="color:#000;cursor:help" title="{{form.wiki.help_text}}">{{ form.wiki.label_tag }} </span>
- </td>
- {% endif %}
- </tr>
-
- </table>
- </div>
- <div id="previewer" class="wmd-preview"></div>
- </div>
- <div class="form-item">
- <strong>{{ form.tags.label_tag }}:</strong> <span class="form-error"></span><br/>
- {{ form.tags }} {{ form.tags.errors }}
- <div class="title-desc">
- {{ form.tags.help_text }}
- </div>
- </div>
- <strong>{{ form.summary.label_tag }}</strong> <br/>
- {{ form.summary }} {{ form.summary.errors }}
- <div class="title-desc">
- {{ form.summary.help_text }}
- </div>
- <div class="error" ></div>
- <input type="submit" value="{% trans "Save edit" %}" class="submit" />
- <input type="button" value="{% trans "Cancel" %}" class="submit" onclick="history.back(-1);" />
- </form>
- </div>
-</div>
-{% endblock %}
-
-{% block sidebar %}
-{% include "question_edit_tips.html" %}
-{% endblock %}
-
-{% block endjs %}
-{% endblock %}
-<!-- end question_edit.html -->
+++ /dev/null
-<!-- question_edit_tips.html -->
-{% load i18n %}
-<div class="boxC">
- <p class="subtitle darkred">{% trans "question tips" %}</p>
- <div>
- <ul class="list-item">
- <li>
- <b>
- {% blocktrans with settings.APP_SHORT_NAME as app_title %}
- ask a question relevant to the {{ app_title }} community
- {% endblocktrans %}
- </b>
- </li>
- <li>
- {% trans "please try provide enough details" %}
- </li>
- <li>
- {% trans "be clear and concise" %}
- </li>
- </ul>
- <p class='info-box-follow-up-links'>
- <a href="{% url faq %}" target="_blank" title="{% trans "see frequently asked questions" %}">{% trans "faq" %} »</a>
- </p>
- </div>
-</div>
-
-<div class="boxC">
- <p class="subtitle">{% trans "Markdown tips" %}</p>
- <ul class="list-item">
- <li>
- {% trans "*italic* or __italic__" %}
- </li>
- <li>
- {% trans "**bold** or __bold__" %}
- </li>
- <li>
- <b>{% trans "link" %}</b>:[{% trans "text" %}](http://url.com/ "{% trans "title" %}")
-
- </li>
-
- <li>
- <b>{% trans "image" %}</b>:![alt {% trans "text" %}](/path/img.jpg "{% trans "title" %}")
-
- </li>
- <li>
- {% trans "numbered list:" %}
- 1. Foo
- 2. Bar
- </li>
- <li>
- {% trans "basic HTML tags are also supported" %}
- </li>
- </ul>
- <p class='info-box-follow-up-links'>
- <a href="http://en.wikipedia.org/wiki/Markdown" target="_blank">{% trans "learn more about Markdown" %} »</a>
- </p>
-</div>
-<!-- end question_edit_tips.html -->
+++ /dev/null
-{% load i18n %}\r
-{% load humanize %}\r
-\r
-<div class="boxC">\r
- <div class="questions-count">{{ questions_count }}</div>\r
- <p>{{ list_description }}</p>\r
- <p class="nomargin">\r
- {{ sort_description|safe }}\r
- </p>\r
-</div>
\ No newline at end of file
+++ /dev/null
-{% load i18n %}\r
-{% load humanize %}\r
-{% load extra_filters %}\r
-{% load extra_tags %}\r
-{% load user_tags %}\r
-\r
-<div class="short-summary">\r
- <div class="counts">\r
- <div class="votes">\r
- <div class="item-count">{{question.score|intcomma}}</div>\r
- <div>{% trans "votes" %}</div>\r
- </div>\r
- <div {% if question.answer_accepted %}title="{% trans "this answer has been accepted to be correct" %}"{% endif %} class="status {% if question.answer_accepted %}answered-accepted{% endif %} {% ifequal question.answer_count 0 %}unanswered{% endifequal %}{% ifnotequal question.answer_count 0 %}answered{% endifnotequal %}">\r
- <div class="item-count">{{question.answer_count|intcomma}}</div>\r
- <div>{% trans "answers" %}</div>\r
- </div>\r
- <div class="views">\r
- <div class="item-count">{{question.view_count|cnprog_intword|safe}}</div>\r
- <div>{% trans "views" %}</div>\r
- </div>\r
- </div>\r
-\r
- <h2><a title="{{question.summary}}" href="{{ question.get_absolute_url }}">{{question.title}}</a></h2>\r
- <div class="userinfo">\r
- <span class="relativetime" title="{{question.last_activity_at}}">{% diff_date question.last_activity_at %}</span>\r
- {% if question.last_activity_by %}\r
- {% user_signature_small_lite question.last_activity_by %}\r
- {% endif %}\r
- </div>\r
-\r
- <div class="tags">\r
- {% for tag in question.tagname_list %}\r
- <a href="{% url tag_questions tag|urlencode %}" title="{% trans "see questions tagged" %} '{{ tag }}' {% trans "using tags" %}" rel="tag">{{ tag }}</a>\r
- {% endfor %}\r
- </div>\r
-</div>
\ No newline at end of file
+++ /dev/null
-{% load i18n %}\r
-{% load humanize %}\r
-{% load extra_filters %}\r
-{% load extra_tags %}\r
-{% load user_tags %}\r
-\r
-<div class="short-summary">\r
- <div class="counts">\r
- <div class="favorites">\r
- <span class="favorite-mark{% if question.favourite_count %} on{% endif %}"></span>\r
- <div class="item-count">{{question.favourite_count|intcomma}}</div>\r
- </div>\r
- <div class="votes">\r
- <div class="item-count">{{question.score|intcomma}}</div>\r
- <div>{% trans "votes" %}</div>\r
- </div>\r
- <div {% if question.answer_accepted %}title="{% trans "this answer has been accepted to be correct" %}"{% endif %} class="status {% if question.answer_accepted %}answered-accepted{% endif %} {% ifequal question.answer_count 0 %}unanswered{% endifequal %}{% ifnotequal question.answer_count 0 %}answered{% endifnotequal %}">\r
- <div class="item-count">{{question.answer_count|intcomma}}</div>\r
- <div>{% trans "answers" %}</div>\r
- </div>\r
- <div class="views">\r
- <div class="item-count">{{question.view_count|cnprog_intword|safe}}</div>\r
- <div>{% trans "views" %}</div>\r
- </div>\r
- </div>\r
-\r
- <h2><a title="{{question.summary}}" href="{{ question.get_absolute_url }}">{{question.title}}</a></h2>\r
- <div class="userinfo">\r
- <span class="relativetime" title="{{question.last_activity_at}}">{% diff_date question.last_activity_at %}</span>\r
- {% if question.last_activity_by %}\r
- {% user_signature_small_full question.last_activity_by %}\r
- {% endif %}\r
- </div>\r
-\r
- <div class="tags">\r
- {% for tag in question.tagname_list %}\r
- <a href="{% url tag_questions tag|urlencode %}" title="{% trans "see questions tagged" %} '{{ tag }}' {% trans "using tags" %}" rel="tag">{{ tag }}</a>\r
- {% endfor %}\r
- </div>\r
-</div>
\ No newline at end of file
+++ /dev/null
-{% load i18n %}\r
-{% load humanize %}\r
-\r
-{% if tags %}\r
- <div class="boxC">\r
- <h3 class="subtitle">{% trans "Related tags" %}</h3>\r
- <div class="tags">\r
- {% for tag in tags %}\r
- <a rel="tag" title="{% blocktrans with tag.name as tag_name %}see questions tagged '{{ tag_name }}'{% endblocktrans %}" href="{% url tag_questions tag.name|urlencode %}">{{ tag.name }}</a>\r
- <span class="tag-number">× {{ tag.used_count|intcomma }}</span>\r
- <br />\r
- {% endfor %}\r
- </div>\r
- </div>\r
-{% endif %}
\ No newline at end of file
+++ /dev/null
-{% load i18n %}\r
-\r
-<div class="tabsA">\r
- <a id="latest" href="{{ base_url }}latest"{% ifequal current "latest" %} class="on"{% endifequal %} title="{% trans "most recently asked questions" %}">{% trans "newest" %}</a>\r
- <a id="active" href="{{ base_url }}active"{% ifequal current "active" %} class="on"{% endifequal %} title="{% trans "most recently updated questions" %}">{% trans "active" %}</a>\r
- <a id="hottest" href="{{ base_url }}hottest"{% ifequal current "hottest" %} class="on"{% endifequal %} title="{% trans "hottest questions" %}">{% trans "hottest" %}</a>\r
- <a id="mostvoted" href="{{ base_url }}mostvoted"{% ifequal current "mostvoted" %} class="on"{% endifequal %} title="{% trans "most voted questions" %}">{% trans "most voted" %}</a>\r
-</div>
\ No newline at end of file
+++ /dev/null
-{% load i18n %}
-{% load extra_tags %}
-
-{% if user_authenticated %}
-<div id="tagSelector" class="boxC">
- <h3 class="subtitle">{% trans "Interesting tags" %}</h3>
- <div class="tags interesting marked-tags">
- {% for tag_name in interesting_tag_names %}
- {% spaceless %}
- <span class="deletable-tag" id="interesting-tag-{{tag_name}}">
- <a rel="tag"
- title="{% blocktrans with tag as tagname %}see questions tagged '{{ tag_name }}'{% endblocktrans %}"
- href="{% url tag_questions tag_name|urlencode %}">{{tag_name}}</a>
- <img class="delete-icon"
- src="{% media "/media/images/close-small-dark.png" %}"
- title="{% blocktrans %}remove '{{tag_name}}' from the list of interesting tags{% endblocktrans %}"/>
- </span>
- {% endspaceless %}
- {% endfor %}
- </div>
- <input id="interestingTagInput" autocomplete="off" type="text"/>
- <input id="interestingTagAdd" type="submit" value="{% trans "Add" %}"/>
- <h3 class="subtitle">{% trans "Ignored tags" %}</h3>
- <div class="tags ignored marked-tags">
- {% for tag_name in ignored_tag_names %}
- {% spaceless %}
- <span class="deletable-tag" id="ignored-tag-{{tag_name}}">
- <a rel="tag"
- title="{% blocktrans with tag as tagname %}see questions tagged '{{ tag_name }}'{% endblocktrans %}"
- href="{% url tag_questions tag_name|urlencode %}">{{tag_name}}</a>
- <img class="delete-icon"
- src="{% media "/media/images/close-small-dark.png" %}"
- title="{% blocktrans %}remove '{{tag_name}}' from the list of ignored tags{% endblocktrans %}"/>
- </span>
- {% endspaceless %}
- {% endfor %}
- </div>
- <input id="ignoredTagInput" autocomplete="off" type="text"/>
- <input id="ignoredTagAdd" type="submit" value="{% trans "Add" %}"/>
- <p id="hideIgnoredTagsControl">
- <input id="hideIgnoredTagsCb" type="checkbox" {% if request.user.hide_ignored_questions %}checked="checked"{% endif %} />
- <label id="hideIgnoredTagsLabel" for="hideIgnoredTagsCb">{% trans "keep ignored questions hidden" %}</label>
- <p>
-</div>
-{% endif %}
+++ /dev/null
-{% load i18n %}\r
-\r
-<div class="headQuestions">\r
- {% if searchtag %}\r
- {% trans "Found by tags" %}\r
- {% else %}\r
- {% if searchtitle %}\r
- {% if settings.USE_SPHINX_SEARCH %}\r
- {% trans "Search results" %}\r
- {% else %}\r
- {% trans "Found by title" %}\r
- {% endif %}\r
- {% else %}\r
- {% if is_unanswered %}\r
- {% trans "Unanswered questions" %}\r
- {% else %}\r
- {% trans "All questions" %}\r
- {% endif %}\r
- {% endif %}\r
- {% endif %}\r
-</div>
\ No newline at end of file
+++ /dev/null
-{% extends "base.html" %}
-<!-- question_retag.html -->
-{% load extra_tags %}
-{% load i18n %}
-{% block title %}{% spaceless %}{% trans "Change tags" %}{% endspaceless %}{% endblock %}
-{% block forejs %}
- <script type="text/javascript">
-
- $().ready(function(){
- $("#nav_questions").attr('className',"on");
- //Tags autocomplete action
- var tags = {{ tags|safe }};
- $("#id_tags").autocomplete(tags, {
- minChars: 1,
- matchContains: true,
- max: 20,
- multiple: true,
- multipleSeparator: " ",
- formatItem: function(row, i, max) {
- return row.n + " ("+ row.c +")";
- },
- formatResult: function(row, i, max){
- return row.n;
- }
-
- });
-
- $("#fmretag").validate({
- rules: {
- tags: {
- required: true,
- maxength: 105
- }
- },
- messages: {
- tags: {
- required: "{% trans "tags are required" %}",
- maxlength: "{% trans "up to 5 tags, less than 20 characters each" %}
- }
- }
-
- });
-
- });
- </script>
-{% endblock %}
-
-{% block content %}
-<div id="main-bar" class="headNormal">
- {% trans "Change tags" %} [<a href="{{ question.get_absolute_url }}">{% trans "back" %}</a>]
-</div>
-<div id="main-body" class="ask-body">
- <div id="askform">
- <form id="fmretag" action="{% url edit_question question.id %}" method="post" >
- <h3>
- {{ question.get_question_title }}
- </h3>
- <div id="description" class="edit-content-html">
- {{ question.html|safe }}
- </div>
-
-
- <div class="form-item">
- <strong>{{ form.tags.label_tag }}:</strong> <span class="form-error"></span><br/>
- {{ form.tags }} {{ form.tags.errors }}
- <div class="title-desc">
- {{ form.tags.help_text }}
- </div>
- </div>
- <div class="error" ></div>
- <input type="submit" value="{% trans "Save edit" %}" class="submit" />
- <input type="button" value="{% trans "Cancel" %}" class="submit" onclick="history.back(-1);" />
- </form>
- </div>
-</div>
-{% endblock %}
-
-{% block sidebar %}
-<div class="boxC">
- <p class="subtitle">{% trans "Why use and modify tags?" %}</p>
- <ul class="list-item">
- <li>
- {% trans "tags help us keep Questions organized" %}
- </li>
- {% comment %}
- <li>
- 修改完整问题需要用户的积分达到一定条件(比如:积分 >= 3000分,自己发布的问题除外),而用户积分达到比较低的时候,就可以修改问题的标签(比如:积分 >= 500, 这里指所有问题的标签)。
- </li>
- {% endcomment %}
- <li>
- {% trans "tag editors receive special awards from the community" %}
- </li>
- </ul>
- <p class='info-box-follow-up-links'>
- <a href="{% url faq %}">faq »</a>
- </p>
-</div>
-
-{% endblock %}
-
-{% block endjs %}
-{% endblock %}
-<!-- end question_retag.html -->
+++ /dev/null
- <div class="qstA">
- <h2>
- <a href="{{ question.get_absolute_url }}">{{ question.get_question_title }}</a>
- </h2>
- <div class="stat">
- <table>
- <tr>
- <td><span class="num">{{ question.answer_count|intcomma }}</span> </td>
- <td><span class="num">{{ question.score|intcomma }}</span> </td>
- <td><span class="num">{{ question.view_count|cnprog_intword|safe }}</span> </td>
- </tr>
- <tr>
- <td><span class="unit">{% trans "answers" %}</span></td>
- <td><span class="unit">{% trans "votes" %}</span></td>
- <td><span class="unit">{% trans "views" %}</span></td>
- </tr>
- </table>
- </div>
-
- <div class="summary">
- {{ question.summary }}...
- </div>
-
- {% ifequal tab_id 'active'%}
- {% if question.wiki and settings.WIKI_ON %}
- <span class="from wiki">{% trans "community wiki" %}</span>
- <span class="date" title="{{ question.added_at }}">{% diff_date question.added_at %}</span>
- {% else %}
- <div class="from">
- {% comment %}{% gravatar question.last_activity_by 24 %}{% endcomment %}
- <span class="author"><a href="{{ question.last_activity_by.get_profile_url }}">{{ question.last_activity_by }}</a></span>
- <span class="score">{% get_score_badge question.last_activity_by %} </span>
- <span class="date" title="{{ question.last_activity_at }}">{% diff_date question.last_activity_at %}</span>
- </div>
- {% endif %}
- {% else %}
- {% if question.wiki and settings.WIKI_ON %}
- <span class="from wiki">{% trans "community wiki" %}</span>
- <span class="date" title="{{ question.added_at }}">{% diff_date question.added_at %}</span>
- {% else %}
- <div class="from">
- {% comment %}{% gravatar question.author 24 %}{% endcomment %}
- <span class="author"><a href="{{ question.author.get_profile_url }}">{{ question.author }}</a></span>
- <span class="score">{% get_score_badge question.author %} </span>
- <span class="date" title="{{ question.added_at }}">{% diff_date question.added_at %}</span>
- </div>
- {% endif %}
- {% endifequal %}
-
- <div class="tags">
- {% for tag in question.tagname_list %}
- <a href="{% url tag_questions tag|urlencode %}" title="{% trans "see questions tagged" %}'{{ tag }}'{% trans "using tags" %}" rel="tag">{{ tag }}</a>
- {% endfor %}
- </div>
- </div>
+++ /dev/null
-{% extends "base.html" %}\r
-<!-- questions.html -->\r
-{% load question_list_tags %}\r
-{% load i18n %}\r
-{% load extra_tags %}\r
-\r
-{% block title %}{% spaceless %}{% trans "Questions" %}{% endspaceless %}{% endblock %}\r
-{% block forejs %}\r
- <script type="text/javascript">\r
- var tags = {{ tags_autocomplete|safe }};\r
- $().ready(function(){\r
- var tab_id = "{{ tab_id }}";\r
- $("#"+tab_id).attr('className',"on");\r
- var on_tab = {% if is_unanswered %}'#nav_unanswered'{% else %}'#nav_questions'{% endif %};\r
- $(on_tab).attr('className','on');\r
- Hilite.exact = false;\r
- Hilite.elementid = "listA";\r
- Hilite.debug_referrer = location.href;\r
- });\r
- </script>\r
-{% endblock %}\r
-{% block content %}\r
-<div class="tabBar">\r
- {% question_list_title %}\r
- {% question_sort_tabs sort_context %}\r
-</div>\r
-<div id="listA">\r
-{% for question in questions %}\r
- {% question_list_item question %}\r
-{% endfor %}\r
-</div>\r
-{% endblock %}\r
-\r
-{% block tail %}\r
- <div class="pager">{% cnprog_paginator pagination_context %}</div>\r
- <div class="pagesize">{% cnprog_pagesize pagination_context %}</div>\r
-{% endblock %}\r
-\r
-{% block sidebar %}\r
- {% question_list_count %}\r
- {% tag_selector %}\r
- {% question_list_related_tags questions %}\r
-{% endblock %}\r
-<!-- end questions.html -->\r
+++ /dev/null
-{% extends "base_content.html" %}
-<!-- reopen.html -->
-{% load extra_tags %}
-{% load i18n %}
-{% load humanize %}
-{% block title %}{% spaceless %}{% trans "Reopen question" %}{% endspaceless %}{% endblock %}
-{% block forejs %}
- <script type="text/javascript">
- $().ready(function(){
- $('#btBack').bind('click', function(){ history.back(); });
- });
- </script>
-{% endblock %}
-{% block content %}
-<div id="main-bar" class="headNormal">
- {% trans "Reopen question" %}
-</div>
-<div id="main-body" style="width:100%">
- <p>{% trans "Open the previously closed question" %}: <a href="{{ question.get_absolute_url }}"><span class="big">{{ question.get_question_title }}</span></a>
-
- </p>
- <p><strong>{% trans "The question was closed for the following reason " %}"{{ question.get_close_reason_display }}"{% trans "reason - leave blank in english" %} <a href="{{ question.closed_by.get_profile_url }}">{{ question.closed_by.username }}</a> {% trans "on "%} {% diff_date question.closed_at %}<font class="darkred">{% trans "date closed" %}</font>
- </strong>
- </p>
-
- <form id="fmclose" action="{% url reopen question.id %}" method="post" >
-
- <div id="" style="padding:20px 0 20px 0">
- <input type="submit" value="{% trans "Reopen this question" %}" class="submit" />
- <input id="btBack" type="button" value="{% trans "Cancel" %}" class="submit" />
-
- </div>
-
- </form>
-</div>
-{% endblock %}
-<!-- end reopen.html -->
+++ /dev/null
-{% extends "base_content.html" %}
-<!-- revisions_answer.html -->
-{% load i18n %}
-{% load extra_tags %}
-{% load extra_filters %}
-{% load humanize %}
-{% block title %}{% spaceless %}{% trans "Revision history" %}{% endspaceless %}{% endblock %}
-{% block forejs %}
- <script type="text/javascript">
- //todo - take this out into .js file
- $().ready(function(){
- $("#nav_questions").attr('className',"on");
- $('div.revision div[id^=rev-header-]').bind('click', function(){
- var revId = this.id.substr(11);
- toggleRev(revId);
-
- });
- lanai.highlightSyntax();
- });
-
- function toggleRev(id) {
- var arrow = $("#rev-arrow-" + id);
- var visible = arrow.attr("src").indexOf("hide") > -1;
-
- var path = $.i18n._('/') + "media/images/expander-arrow-" +
- (visible ? "show" : "hide") + ".gif" + "?v={{settings.RESOURCE_REVISION}}";
- arrow.attr("src", path);
- $("#rev-body-" + id).slideToggle("fast");
- }
-
- </script>
-{% endblock %}
-
-{% block content %}
-<div id="main-bar" class="headNormal">
- {% trans "Revision history" %} [<a href="{{ post.get_absolute_url }}">{% trans "back" %}</a>]
-</div>
-<div id="main-body" class="">
- <div id="revisions">
- {% for revision in revisions %}
- <div class="revision">
- <div id="rev-header-{{ revision.revision }}" class="header {% ifequal post.author_id revision.author_id %}author{% endifequal %}">
- <div class="header-controls">
- <table width="100%">
- <tr>
- <td width="20" style="vertical-align:middle"><img id="rev-arrow-{{ revision.revision }}"
- src="{% media "/media/images/expander-arrow-show.gif" %}"
- alt="{% trans "click to hide/show revision" %}"/>
- </td>
- <td width="30px" style="vertical-align:middle"><span class="revision-number" title="{% trans "revision" %} {{ revision.revision }}">{{ revision.revision }}</span></td>
- <td width="200px" style="vertical-align:middle">
- {% if revision.summary %}
- <div class="summary"><span>{{ revision.summary }}</span></div>
- {% endif %}
- {% if request.user|can_edit_post:post %}
- <a href="{% url edit_answer post.id %}?revision={{ revision.revision }}">{% trans "edit" %}</a>
- {% endif %}
-
- </td>
- <td align="right">
- <div class="revision-mark" >
- {% post_contributor_info revision %}
- </div>
- </td>
- </tr>
-
- </table>
- </div>
- </div>
- <div id="rev-body-{{ revision.revision }}" class="answerbody">
- {{ revision.diff|safe }}
- </div>
- </div>
- {% endfor %}
- </div>
-</div>
-{% endblock %}
-
-{% block endjs %}
-{% endblock %}
-<!-- end revisions_answer.html -->
+++ /dev/null
-{% extends "base_content.html" %}
-<!-- revisions_question.html -->
-<!--somehow very similar to revisions_answer.html-->
-{% load extra_tags %}
-{% load i18n %}
-{% load extra_filters %}
-{% load humanize %}
-{% block title %}{% spaceless %}{% trans "Revision history" %}{% endspaceless %}{% endblock %}
-{% block forejs %}
- <script type="text/javascript">
- //todo - take this out into .js file
- $().ready(function(){
- $("#nav_questions").attr('className',"on");
- $('div.revision div[id^=rev-header-]').bind('click', function(){
- var revId = this.id.substr(11);
- toggleRev(revId);
-
- });
- lanai.highlightSyntax();
- });
-
- function toggleRev(id) {
- var arrow = $("#rev-arrow-" + id);
- var visible = arrow.attr("src").indexOf("hide") > -1;
-
- var path = $.i18n._('/') + "media/images/expander-arrow-" +
- (visible ? "show" : "hide") + ".gif" + "?v={{settings.RESOURCE_REVISION}}";
- arrow.attr("src", path);
- $("#rev-body-" + id).slideToggle("fast");
- }
- </script>
-{% endblock %}
-
-{% block content %}
-<div id="main-bar" class="headNormal">
- {% trans "Revision history" %}[<a href="{{ post.get_absolute_url }}">{% trans "back" %}</a>]
-</div>
-<div id="main-body" class="">
- <div id="revisions">
- {% for revision in revisions %}
- <div class="revision">
- <div id="rev-header-{{ revision.revision }}" class="header {% ifequal post.author_id revision.author_id %}author{% endifequal %}">
- <div class="header-controls">
- <table width="100%">
- <tr>
- <td width="20" style="vertical-align:middle"><img id="rev-arrow-{{ revision.revision }}"
- src="{% media "/media/images/expander-arrow-show.gif" %}"
- alt="{% trans "click to hide/show revision" %}"/>
- </td>
- <td width="30px" style="vertical-align:middle"><span class="revision-number" title="{% trans "revision" %} {{ revision.revision }}">{{ revision.revision }}</span></td>
- <td width="200px" style="vertical-align:middle">
- {% if revision.summary %}
- <div class="summary"><span>{{ revision.summary }}</span></div>
- {% endif %}
- {% if request.user|can_edit_post:post %}
- <a href="{% url edit_question post.id %}?revision={{ revision.revision }}">{% trans "edit" %}</a>
- {% endif %}
-
- </td>
- <td align="right">
- <div class="revision-mark" >
- {% post_contributor_info revision %}
- </div>
- </td>
- </tr>
-
- </table>
- </div>
- </div>
- <div id="rev-body-{{ revision.revision }}" class="diff body">
- {{ revision.diff|safe }}
- </div>
- </div>
- {% endfor %}
- </div>
-</div>
-{% endblock %}
-
-{% block endjs %}
-{% endblock %}
-<!-- end revisions_question.html -->
+++ /dev/null
-{% load i18n %}\r
-\r
-<div class="boxC">\r
- <h3>{% trans "Recent awards" %}</h3>\r
- <div class="body">\r
- <ul class="badge-list">\r
- {% for award in awards %}\r
- <li>\r
- <a href="{% url badges %}{{award.badge_id}}/{{award.badge_name}}" title="{{ award.badge_description }}" class="medal">\r
- <span class="badge{{ award.badge_type }}">●</span> {{ award.badge_name }}</a>\r
- <a href="/users/{{ award.user_id }}/{{ award.user_name|slugify }}/">{{ award.user_name }}</a>\r
- </li>\r
- {% endfor %}\r
- </ul>\r
- <div class="more"><a href="{% url badges %}">{% trans "all awards" %} </a> </div>\r
- </div>\r
-</div>
\ No newline at end of file
+++ /dev/null
-{% load i18n %}\r
-\r
-<div class="boxC">\r
- <h3>{% trans "Recent tags" %}</h3>\r
- <div class="body">\r
- <div class="tags">\r
- {% for tag in tags %}\r
- <a rel="tag"\r
- title="{% blocktrans with tag.name as tagname %}see questions tagged '{{tagname}}'{% endblocktrans %}" href="{% url tag_questions tag.name|urlencode %}">{{ tag.name }}</a>\r
- {% endfor %}\r
- </div>\r
- <div class="more"><a href="{% url tags %}">{% trans "popular tags" %} </a> </div>\r
- </div>\r
-</div>
\ No newline at end of file
+++ /dev/null
-{% load i18n %}\r
-\r
-<h3 class="subtitle">{% trans "Subscription" %}:</h3>\r
-{% if request.user.is_authenticated %}\r
- <div class="subscription-status">\r
- {% if subscription %}\r
- {% if subscription.auto_subscription %}\r
- <p>{% trans "You were automatically subscribed to this question." %}</p>\r
- {% else %}\r
- <p>{% trans "You are subscribed to this question." %}</p>\r
- {% endif %}\r
- {% else %}\r
- <p>{% trans "You are not subscribed to this question." %}</p>\r
- {% endif %}\r
- </div>\r
- <p><a class="ajax-command sidebar_button subscription_switch" href="{% url subscribe id=question.id %}">\r
- {% if subscription %}\r
- {% trans "unsubscribe me" %}\r
- {% else %}\r
- {% trans "subscribe me" %}\r
- {% endif %}\r
- </a></p>\r
- <p>\r
- {% blocktrans with request.user.get_profile_url as profile_url %}\r
- (you can adjust your notification settings on your <a href="{{ profile_url }}?sort=email_subscriptions">profile</a>)\r
- {% endblocktrans %}\r
- </p>\r
-{% else %}\r
- <p>{% trans "Once you sign in you will be able to subscribe for any updates here" %}</p>\r
-{% endif %}\r
+++ /dev/null
-{% load i18n %}
-{% load extra_tags %}
-<div id="tagSelector" class="boxC">
- <h3 class="subtitle">{% trans "Interesting tags" %}</h3>
- <div class="tags interesting marked-tags">
- {% for tag_name in interesting_tag_names %}
- {% spaceless %}
- <span class="deletable-tag" id="interesting-tag-{{tag_name}}">
- <a rel="tag"
- title="{% blocktrans with tag as tagname %}see questions tagged '{{ tag_name }}'{% endblocktrans %}"
- href="{% url tag_questions tag_name|urlencode %}">{{tag_name}}</a>
- <img class="delete-icon"
- src="{% media "/media/images/close-small-dark.png" %}"
- title="{% blocktrans %}remove '{{tag_name}}' from the list of interesting tags{% endblocktrans %}"/>
- </span>
- {% endspaceless %}
- {% endfor %}
- </div>
- <input id="interestingTagInput" autocomplete="off" type="text"/>
- <input id="interestingTagAdd" type="submit" value="{% trans "Add" %}"/>
- <h3 class="subtitle">{% trans "Ignored tags" %}</h3>
- <div class="tags ignored marked-tags">
- {% for tag_name in ignored_tag_names %}
- {% spaceless %}
- <span class="deletable-tag" id="ignored-tag-{{tag_name}}">
- <a rel="tag"
- title="{% blocktrans with tag as tagname %}see questions tagged '{{ tag_name }}'{% endblocktrans %}"
- href="{% url tag_questions tag_name|urlencode %}">{{tag_name}}</a>
- <img class="delete-icon"
- src="{% media "/media/images/close-small-dark.png" %}"
- title="{% blocktrans %}remove '{{tag_name}}' from the list of ignored tags{% endblocktrans %}"/>
- </span>
- {% endspaceless %}
- {% endfor %}
- </div>
- <input id="ignoredTagInput" autocomplete="off" type="text"/>
- <input id="ignoredTagAdd" type="submit" value="{% trans "Add" %}"/>
- <p id="hideIgnoredTagsControl">
- <input id="hideIgnoredTagsCb" type="checkbox" {% if request.user.hide_ignored_questions %}checked="checked"{% endif %} />
- <label id="hideIgnoredTagsLabel" for="hideIgnoredTagsCb">{% trans "keep ignored questions hidden" %}</label>
- <p>
-</div>
+++ /dev/null
-{% extends "base_content.html" %}
-<!-- tags.html -->
-{% load i18n %}
-{% load extra_tags %}
-{% load humanize %}
-{% block title %}{% spaceless %}{% trans "Tag list" %}{% endspaceless %}{% endblock %}
-{% block forejs %}
- <script type="text/javascript">
- /*<![CDATA[*/
- $().ready(function(){
- $("#nav_tags").attr('className',"on");
- $("#ipSearchTag").focus();
-
- var orderby = "{{ tab_id }}";
- if(orderby != "used" && orderby != "name")
- orderby = "used";
- $("#sort_" + orderby).attr('className',"on");
- $("#type-tag").attr('checked',true);
-
- Hilite.exact = false;
- Hilite.elementid = "searchtags";
- Hilite.debug_referrer = location.href;
- });
- /*]]>*/
- </script>
-{% endblock %}
-{% block content %}
-<!-- Tabs -->
-<div class="tabBar">
- <div class="headQuestions">{% trans "Tag list" %}</div>
- <div class="tabsA">
- <a id="sort_name" href="{% url tags %}?sort=name" class="off" title="{% trans "sorted alphabetically" %}">{% trans "by name" %}</a>
- <a id="sort_used" href="{% url tags %}?sort=used" class="off" title="{% trans "sorted by frequency of tag use" %}">{% trans "by popularity" %}</a>
- </div>
-</div>
-<div id="searchtags">
-<p>
-{% if stag %}
- {% trans "All tags matching query" %} '<span class="darkred"><strong>{{ stag }}</strong></span>' {% trans "all tags - make this empty in english" %}:
-{% endif %}
-{% if not tags.object_list %}
- <span>{% trans "Nothing found" %}</span>
-{% endif %}
-</p>
-{% if tags.object_list %}
-<ul class="tagsList tags">
-{% for tag in tags.object_list %}
- <li>
- <a href="{% url tag_questions tag|urlencode %}" title="{% trans "see questions tagged" %}'{{ tag }}'{% trans "using tags" %}" rel="tag">
- {{ tag }}
- </a>
- <span class="tag-number">× {{ tag.used_count|intcomma }}</span>
- <br/>
-
- </li>
-{% endfor %}
-</ul>
-{% endif %}
-</div>
-
-{% endblock %}
-{% block tail %}
-<div class="pager">
- {% cnprog_paginator context %}
-</div>
-{% endblock %}
-<!-- end tags.html -->
+++ /dev/null
-{% extends "base_content.html" %}
-<!-- user.html -->
-{% load extra_tags %}
-{% load extra_filters %}
-{% load humanize %}
-{% block title %}{% spaceless %}{{ page_title }}{% endspaceless %}{% endblock %}
-{% block forestyle%}
- <style type="text/css">
- .history-table td { padding: 5px; }
- .user-stats-table { margin-left:50px; }
- </style>
-{% endblock %}
-{% block forejs %}
- {% if request.user.is_superuser %}
- <script type='text/javascript' src='{% media "/media/js/jquery.form.js" %}'></script>
- {% endif %}
- <script type="text/javascript">
- var viewUserID = {{view_user.id}};
- $().ready(function(){
- {% ifequal view_user request.user%}
- $("#nav_profile").attr('className',"on");
- {% else %}
- $("#nav_users").attr('className',"on");
- {% endifequal %}
- });
-
- $(document).ready( function(){
- var options = {
- success: function(a,b){$('.admin #action_status').html($.i18n._('changes saved'));},
- dataType:'json',
- timeout:5000,
- url: scriptUrl + $.i18n._('moderate-user/') + viewUserID + '/'
- };
- var form = $('.admin #moderate_user_form').ajaxForm(options);
- var box = $('.admin input#id_is_approved').click(function(){
- $('.admin #action_status').html($.i18n._('sending data...'));
- form.ajaxSubmit(options);
- });
- });
- </script>
- {% block userjs %}
- {% endblock %}
-{% endblock %}
-{% block content %}
- <div id="mainbar-full">
- {% include "user_info.html" %}
- {% include "user_tabs.html" %}
- {% block usercontent %}
- {% endblock %}
- {%comment%}{% include "user_footer.html" %}{%endcomment%}
- </div>
-{% endblock %}<!-- end user.html -->
+++ /dev/null
-{% extends "base_content.html" %}\r
-<!-- user_edit.html -->\r
-{% load extra_tags %}\r
-{% load humanize %}\r
-{% load i18n %}\r
-{% block title %}{% spaceless %}{% trans "Edit user profile" %}{% endspaceless %}{% endblock %}\r
-{% block forejs %}\r
- <script type="text/javascript">\r
- $().ready(function(){\r
- $("#nav_profile").attr('className',"on");\r
- $("#cancel").bind('click', function(){history.go(-1);})\r
- }); \r
- </script>\r
- {% block userjs %}\r
- {% endblock %}\r
-{% endblock %}\r
-{% block content %}\r
-<div id="main-bar" class="headNormal">\r
- {{ request.user.username }} - {% trans "edit profile" %}\r
-</div>\r
-<div id="main-body" style="width:100%;padding-top:10px">\r
- <form name="" action="{% url edit_user request.user.id %}" method="post">\r
- <div id="left" style="float:left;width:180px">\r
- {% if request.user.email %}\r
- {% gravatar request.user 128 %}\r
- {% else %}\r
- <img src="{% media "/media/images/nophoto.png" %}">\r
- {% endif %}\r
- <div style="padding:20px 0 0 20px;font-weight:bold;font-size:150%">\r
- <a href="http://www.gravatar.com/" target="_blank" \r
- title="gravatar {% trans "image associated with your email address" %}">{% blocktrans %}avatar, see {{gravatar_faq_url}}{% endblocktrans %}</a>\r
- </div>\r
- </div>\r
- \r
- <div id="askform" style="float:right;width:750px;text-align:left;">\r
- <h2>{% trans "Registered user" %}</h2>\r
- <table class="user-details">\r
- <tr>\r
- <th width="100px"></th>\r
- <th></th>\r
- </tr>\r
- <tr style="height:35px">\r
- <td>{% trans "Screen Name" %}:</td>\r
- <td>{{ request.user.username }} <span class="form-error"></span> {{ form.username.errors }} </td>\r
- </tr>\r
- \r
- <tr style="height:35px">\r
- <td>{{ form.email.label_tag }}:</td>\r
- <td>{{ form.email }} <span class="form-error"></span> {{ form.email.errors }} </td>\r
- </tr>\r
- <tr style="height:35px">\r
- <td></td>\r
- <td class="title-desc">{{ form.email.help_text }}</td>\r
- </tr>\r
- <tr style="height:35px">\r
- <td>{{ form.realname.label_tag }}:</td>\r
- <td>{{ form.realname }} <span class="form-error"></span> {{ form.realname.errors }} </td>\r
- </tr>\r
- <tr style="height:35px">\r
- <td>{{ form.website.label_tag }}:</td>\r
- <td>{{ form.website }} <span class="form-error"></span> {{ form.website.errors }} </td>\r
- </tr>\r
- <tr style="height:35px">\r
- <td>{{ form.city.label_tag }}:</td>\r
- <td>{{ form.city }} <span class="form-error"></span> {{ form.city.errors }} </td>\r
- </tr>\r
- <tr style="height:35px">\r
- <td>{{ form.birthday.label_tag }}:</td>\r
- <td>{{ form.birthday }} <span class="form-error"></span> {{ form.birthday.errors }} </td>\r
- </tr>\r
- <tr style="height:35px">\r
- <td></td>\r
- <td class="title-desc">{{ form.birthday.help_text }}</td>\r
- </tr>\r
- <tr style="height:10px">\r
- <td colspan="2">\r
- </td>\r
- </tr>\r
- <tr>\r
- <td style="vertical-align:top">{{ form.about.label_tag }}:</td>\r
- <td>{{ form.about }} <span class="form-error"></span> {{ form.about.errors }} </td>\r
- </tr>\r
- \r
- </table>\r
- <div style="margin:30px 0 60px 0">\r
- <input type="submit" value="{% trans "Update" %}" class="submit" >\r
- <input id="cancel" type="button" value="{% trans "Cancel" %}" class="submit" >\r
- \r
- </div>\r
- </div>\r
- </form>\r
- \r
-</div>\r
-{% endblock %}\r
-<!-- end user_edit.html -->\r
+++ /dev/null
-{% extends "user.html" %}
-<!-- user_email_subscriptions.html -->
-{% load i18n %}
-{% load extra_tags %}
-{% load humanize %}
-
-{% block usercontent %}
- <h2>{% trans "Email subscription settings" %}</h2>
- <p class="message">{% trans "email subscription settings info" %}</p>
- <div class='inline-block'>
- {% if action_status %}
- <p class="action-status"><span>{{action_status}}</span></p>
- {% endif %}
- <form method="POST">
- {% include "edit_user_email_feeds_form.html" %}
- <table class='form-as-table'>
- {{tag_filter_selection_form}}
- </table>
- <div class="submit-row text-align-right">
- <input type="submit" class="submit" name="save" value="{% trans "Update" %}"/>
- <input type="submit" class="submit" name="stop_email" value="{% trans "Stop sending email" %}"/>
- </div>
- </form>
- </div>
-{% endblock %}
-<!-- end user_email_subscriptions.html -->
+++ /dev/null
-{% extends "user.html" %}
-<!-- user_favorites.html -->
-{% load extra_tags %}
-{% load humanize %}
-{% block usercontent %}
- {% include "users_questions.html" %}
-{% endblock %}
-<!-- end user_favorites.html -->
+++ /dev/null
-<!-- user_footer.html -->
-<div id="mainbar-footer">
-
-</div><!-- end user_footer.html -->
+++ /dev/null
-<!-- user_info.html -->
-{% load extra_tags %}
-{% load extra_filters %}
-{% load humanize %}
-{% load smart_if %}
-{% load i18n %}
-<div id="subheader" class="headUser">
- {{view_user.username}}
-</div>
-<table class="user-info-table">
- <tr>
- <td width="180" style="vertical-align:middle;text-align:center;">
- <table width="100%">
- <tr>
- <td>
- {% gravatar view_user 128 %}
- </td>
- </tr>
- <tr>
- <td align="center">
- <div class="scoreNumber">{{view_user.reputation|intcomma}}</div>
- <p><b style="color:#777;">{% trans "reputation" %}</b></p>
- </td>
- </tr>
- </table>
- </td>
- <td width="360" style="vertical-align: top;">
- <table class="user-details">
- {% if view_user != request.user and request.user.is_superuser %}
- <tr>
- <td class="admin" align="left" colspan="2">
- <h3>{% trans "Moderate this user" %}</h3>
- <form id="moderate_user_form" method="post">
- {{moderate_user_form.as_p}}
- </form>
- <p id="action_status"></p>
- </td>
- </tr>
- {% endif %}
- {% ifequal request.user view_user %}
- <tr>
- <td class="user-profile-tool-links" align="left" colspan="2">
- {% joinitems using ' | ' %}
- <span class="user-edit-link"><a href="{% url users %}{{ view_user.id }}/{% trans "edit/" %}">{% trans "update profile" %}</a></span>
- {% separator %}
- <a href="{% url user_authsettings %}">authentication settings</a>
- {% endjoinitems %}
- </td>
- </tr>
- {% endifequal %}
- <tr>
- <th colspan="2" align="left"><h3>{% trans "Registered user" %}</h3></th>
- </tr>
- {% if view_user.real_name %}
- <tr>
- <td>{% trans "real name" %}</td>
- <td><b>{{view_user.real_name}}</b></td>
- </tr>
- {% endif %}
- <tr>
- <td>{% trans "member for" %}</td>
- <td><strong>{% diff_date view_user.date_joined %}</strong></td>
- </tr>
- {% if view_user.last_seen %}
- <tr>
- <td>{% trans "last seen" %}</td>
- <td><strong title="{{ view_user.last_seen }}">{% diff_date view_user.last_seen %}</strong></td>
- </tr>
- {% endif %}
- {% if view_user.website %}
- <tr>
- <td>{% trans "user website" %}</td>
- <td><a rel="nofollow" target="_blank" href="{{view_user.website}}">{{view_user.website}}</a></td>
- </tr>
- {% endif %}
- {% if view_user.location %}
- <tr>
- <td>{% trans "location" %}</td>
- <td>{{view_user.location}}</td>
- </tr>
- {% endif %}
- {% if view_user.date_of_birth%}
- <tr>
- <!--todo - redo this with blocktrans -->
- <td>{% trans "age" %}</td>
- <td>{% get_age view_user.date_of_birth %} {% trans "age unit" %}</td>
- </tr>
- {% endif %}
- <!--
- {% if votes_today_left %}
- <tr>
- <td>{% trans "todays unused votes" %}</td>
- <td><strong class="darkred">{{ votes_today_left }}</strong> {% trans "votes left" %}</td>
- </tr>
- {% endif %}
- -->
- </table>
- </td>
- <td width="380">
- <div class="user-about">
- {% if view_user.about %}
- {{view_user.about|safe|linebreaks}}
- {% endif %}
- </div>
- </td>
- </tr>
-</table>
-<!-- end user_info.html -->
+++ /dev/null
-{% extends "user.html" %}
-<!-- user_recent.html -->
-{% load extra_tags %}
-{% load humanize %}
-{% block usercontent %}
- <div style="padding-top:5px;font-size:13px;">
- {% for act in activities %}
- <div style="clear:both;line-height:20px" >
- <div style="width:180px;float:left">{% diff_date act.time 3 %}</div>
- <div style="width:150px;float:left">
- <span class="user-action-{{ act.type_id }}">{{ act.type }}</span>
- </div>
- <div style="float:left;overflow:hidden;">
- {% ifequal act.type_id 7 %}
- <a href="{{act.badge.get_absolute_url}}" title="{{ act.badge.get_type_display }} : {{ act.badge.description }}" class="medal"><span class="badge{{ act.badge.type }}">●</span> {{ act.badge.name }}</a>
- {% else %}
- <span class="post-type-{{ act.type_id }}"><a href="{{ act.title_link }}">{{ act.title }}</a></span>
- {% if act.summary %}<span class="revision-summary">{{ act.summary }}</span>{% endif %}
- {% endifequal %}
- <div style="height:5px"></div>
- </div>
- </div>
- {% endfor %}
- </div>
-{% endblock %}
-<!-- end user_recent.html -->
+++ /dev/null
-{% extends "user.html" %}
-<!-- user_reputation.html -->
-{% load extra_tags %}
-{% load extra_filters %}
-{% load humanize %}
-{% block userjs %}
- <script type='text/javascript' src='{% media "/media/js/excanvas.min.js" %}'></script>
- <script type='text/javascript' src='{% media "/media/js/jquery.flot.min.js" %}'></script>
-
- <script type="text/javascript">
- $().ready(function(){
- var d = {{ graph_data }};
- var placeholder = $("#diagram");
-
- var plot = $.plot(placeholder, [d], {
- xaxis: { mode: "time" },
- points: { show: true },
- lines: { show: true }
- });
- });
-
- </script>
-{% endblock %}
-{% block usercontent %}
- <div style="padding:5px;font-size:13px;">
- <div id="diagram" style="width:550px;height:250px;float:left">
-
- </div>
- <div style="float:right; width:385px; height:300px; overflow-y:auto;word-wrap:break-word;" >
- {% for rep in reputation %}
- <p style="clear:both">
- <div style="float:left;text-align:right;font-family:arial;font-weight:bold;background:#eee;padding:2px 10px 2px 10px;margin-right:5px">
- <div style="float:left;width:20px;color:green;padding-right:5px">{{ rep.positive }}</div>
- <div style="float:left;width:20px;color:red">{{ rep.negative }}</div>
-
- </div>
- <a href="{{ rep.question.get_absolute_url }}">{{ rep.question.title }}</a> <span class="small">({{ rep.reputed_at }})</span>
- </p>
- {% endfor %}
- </div>
- </div>
-{% endblock %}<!-- end user_reputation.html -->
+++ /dev/null
-{% extends "user.html" %}
-<!-- user_responses.html -->
-{% load extra_tags %}
-{% load humanize %}
-
-{% block usercontent %}
- <div style="padding-top:5px;font-size:13px;">
- {% for response in responses %}
- <div style="clear:both;line-height:18px">
- <div style="width:150px;float:left">{% diff_date response.time 3 %}</div>
- <div style="width:100px;float:left"><a href="{{ response.userlink }}">{{ response.username }}</a></div>
- <div style="float:left;overflow:hidden;width:680px">
- <strong {% ifequal response.type "question_answered" %}class="user-action-2"{% endifequal %}{% ifequal response.type "answer_accepted" %}class="user-action-8"{% endifequal %}>{{ response.type }}</strong>:
- <a href="{{ response.titlelink }}">{{ response.title }}</a><br/>
- {{ response.content|safe }}
- <div style="height:10px"></div>
- </div>
-
- </div>
- {% endfor %}
- </div>
-{% endblock %}
-<!-- end user_responses.html -->
+++ /dev/null
-{% extends "user.html" %}
-<!-- user_stats.html -->
-{% load i18n %}
-{% load extra_tags %}
-{% load extra_filters %}
-{% load humanize %}
-{% load question_list_tags %}
- {% block usercontent %}
-
- <a name="questions"></a>
- {% spaceless %}
- <h2>
- {% blocktrans count questions|length as counter %}
- <span class="count">1</span> Question
- {% plural %}
- <span class="count">{{counter}}</span> Questions
- {% endblocktrans %}
- </h2>
- {% endspaceless %}
- <div class="user-stats-table">
- {% for question in questions %}
- {% question_list_item_extended question %}
- {% endfor %}
- </div>
- <br clear="all"/>
- <a name="answers"></a>
- {% spaceless %}
- <h2>
- {% blocktrans count answered_questions|length as counter %}
- <span class="count">1</span> Answer
- {% plural %}
- <span class="count">{{counter}}</span> Answers
- {% endblocktrans %}
- </h2>
- {% endspaceless %}
- <div class="user-stats-table">
- {% for answered_question in answered_questions %}
- <div class="answer-summary">
- <a title="{{answered_question.summary|collapse}}"
- href="{{ answered_question.get_absolute_url }}#{{answered_question.answer_id}}">
- <span class="answer-votes {% if answered_question.accepted %}answered-accepted{% endif %}"
- title="{% blocktrans with answered_question.vote_count as vote_count %}the answer has been voted for {{ vote_count }} times{% endblocktrans %} {% if answered_question.accepted %}{% trans "this answer has been selected as correct" %}{%endif%}">
- {{ answered_question.vote_count }}
- </span>
- </a>
- <div class="answer-link">
- {% spaceless %}
- <a href="{{ answered_question.get_absolute_url }}#{{answered_question.answer_id}}">{{answered_question.title}}</a>
- {% endspaceless %}
- {% if answered_question.comment_count %}
- <span>
- {% blocktrans count answered_question.comment_count as comment_count %}
- (one comment)
- {% plural %}
- the answer has been commented {{comment_count}} times
- {% endblocktrans %}
- </span>
- {% endif %}
- </div>
- </div>
- {% endfor %}
- </div>
- <br/>
- <a name="votes"></a>
- {% spaceless %}
- <h2>
- {% blocktrans count total_votes as cnt %}
- <span class="count">1</span> Vote
- {% plural %}
- <span class="count">{{cnt}}</span> Votes
- {% endblocktrans %}
- </h2>
- {% endspaceless %}
- <div class="user-stats-table">
- <table>
- <tr>
- <td width="60">
- <img style="cursor: default;" src="{% media "/media/images/vote-arrow-up-on.png" %}" alt="{% trans "thumb up" %}" />
- <span title="{% trans "user has voted up this many times" %}" class="vote-count">{{up_votes}}</span>
-
- </td>
- <td width="60">
- <img style="cursor: default;" src="{% media "/media/images/vote-arrow-down-on.png" %}" alt="{% trans "thumb down" %}" />
- <span title="{% trans "user voted down this many times" %}" class="vote-count">{{down_votes}}</span>
-
- </td>
- </tr>
- </table>
- </div>
- <a name="tags"></a>
- {% spaceless %}
- <h2>
- {% blocktrans count user_tags|length as counter %}
- <span class="count">1</span> Tag
- {% plural %}
- <span class="count">{{counter}}</span> Tags
- {% endblocktrans %}
- </h2>
- {% endspaceless %}
- <div class="user-stats-table">
- <table class="tags">
- <tr>
- <td width="180" valign="top">
- {% for tag in user_tags%}
- <a rel="tag"
- title="{% blocktrans with tag.name as tag_name %}see other questions with {{view_user}}'s contributions tagged '{{ tag_name }}' {% endblocktrans %}"
- href="{% url tag_questions tag|urlencode %}?user={{view_user.username}}">{{tag.name}}</a>
- <span class="tag-number">× {{ tag.user_tag_usage_count|intcomma }}</span><br/>
- {% if forloop.counter|divisibleby:"10" %}
- </td>
- <td width="180" valign="top">
- {% endif %}
- {% endfor %}
- </td>
- </tr>
- </table>
- </div>
- <a name="badges"></a>
- {% spaceless %}
- <h2>
- {% blocktrans count total_awards as counter %}
- <span class="count">1</span> Badge
- {% plural %}
- <span class="count">{{counter}}</span> Badges
- {% endblocktrans %}
- </h2>
- {% endspaceless %}
- <div class="user-stats-table">
- <table>
- <tr>
- <td width="180" style="line-height:35px">
- {% for award in awards %}
- <a href="{% url badges %}{{award.id}}/{{award.name}}" title="{{ award.description }}" class="medal"><span class="badge{{ award.type }}">●</span> {{ award.name }}</a><span class="tag-number"> × {{ award.count|intcomma }}</span><br/>
- {% if forloop.counter|divisibleby:"6" %}
- </td>
- <td width="180" style="line-height:35px">
- {% endif %}
- {% endfor %}
- </td>
- </tr>
- </table>
- </div>
-{% endblock %}
-<!-- end user_stats.html -->
+++ /dev/null
-{% extends "user.html" %}\r
-<!-- user_subscriptions.html -->\r
-{% load i18n %}\r
-{% load extra_tags %}\r
-{% load humanize %}\r
-\r
-{% block usercontent %}\r
- <h2>{% trans "Notifications and subscription settings" %}</h2>\r
- <p class="message">\r
- {% blocktrans %}\r
- Here you can decide which types of notifications you wish to receive, and it's frequency.<br />\r
- {% endblocktrans %}\r
- {% if notificatons_on %}\r
- {% blocktrans %}\r
- Currently you have notifications enabled. You can always stop all notifications without loosing your settings and restart them afterwards.<br />\r
- {% endblocktrans %}\r
- {% else %}\r
- {% blocktrans %}\r
- Currently you have notifications disabled. You can enable them clicking on the <strong>Start notifications</strong> button bellow.<br />\r
- {% endblocktrans %}\r
- {% endif %}\r
- </p>\r
- <div class='inline-block'>\r
- <form method="POST">\r
- <table class="form-as-table">\r
- <tr>\r
- <td colspan="2">\r
- <strong>{% trans "Notify me when:" %}</strong>\r
- </td>\r
- </tr>\r
- <tr>\r
- <td>{% trans "A new member joins" %}</td>\r
- <td>{{ form.member_joins }}</td>\r
- </tr>\r
- <tr>\r
- <td>{% trans "A new question is posted" %}</td>\r
- <td>{{ form.new_question }}</td>\r
- </tr>\r
- <tr>\r
- <td>{% trans "A new question matching my interesting tags is posted" %}</td>\r
- <td>{{ form.new_question_watched_tags }}</td>\r
- </tr>\r
- <tr>\r
- <td>{% trans "There's an update on one of my subscriptions" %}</td>\r
- <td >{{ form.subscribed_questions }}</td>\r
- </tr>\r
- </table>\r
- <p> </p>\r
- <table class="form-as-table check-table">\r
- <tr>\r
- <td colspan="3">\r
- <strong>{% trans "Auto subscribe me to:" %}</strong>\r
- </td>\r
- </tr>\r
- <tr>\r
- <td>\r
- {{ form.questions_asked }}{% trans "Questions I ask" %}\r
- </td>\r
- <td>\r
- {{ form.questions_answered }}{% trans "Questions I answer" %}\r
- </td>\r
- <td>\r
- {{ form.questions_commented }}{% trans "Questions I comment" %}\r
- </td>\r
- </tr>\r
- <tr> \r
- <td>\r
- {{ form.questions_viewed }}{% trans "Questions I view" %}\r
- </td>\r
- <td>\r
- {{ form.all_questions_watched_tags }}{% trans "All questions matching my interesting tags" %}\r
- </td>\r
- <td>\r
- {{ form.all_questions }}{% trans "All questions" %}\r
- </td>\r
- </tr>\r
- </table>\r
- <p> </p>\r
- <table class="form-as-table check-table">\r
- <tr>\r
- <td colspan="2">\r
- <strong>{% trans "On my subscriptions, notify me when:" %}</strong>\r
- </td>\r
- </tr>\r
- <tr>\r
- <td>\r
- {{ form.notify_answers }}{% trans "An answer is posted" %}\r
- </td>\r
- <td>\r
- {{ form.notify_comments_own_post }}{% trans "A comment on one of my posts is posted" %}\r
- </td>\r
- </tr>\r
- <tr>\r
- <td>\r
- {{ form.notify_comments }}{% trans "A comment is posted" %}\r
- </td>\r
- <td>\r
- {{ form.notify_accepted }}{% trans "An answer is accepted" %}\r
- </td>\r
- </tr>\r
- </table>\r
- <p> </p>\r
- <table class="form-as-table check-table">\r
- <tr>\r
- <td>\r
- <strong>{% trans "More:" %}</strong>\r
- </td>\r
- </tr>\r
- <tr>\r
- <td>\r
- {{ form.notify_reply_to_comments }}{% trans "Notify me when someone replys to one of my comments on any post using the <pre>@username</pre> notation" %}\r
- </td>\r
- </tr>\r
- </table>\r
- <div class="submit-row">\r
- <input type="submit" class="submit" name="save" value="{% trans "Update" %}"/>\r
- {% if notificatons_on %}\r
- <input type="submit" class="submit" name="notswitch" value="{% trans "Stop notifications" %}"/>\r
- {% else %}\r
- <input type="submit" class="submit" name="notswitch" value="{% trans "Start notifications" %}"/> \r
- {% endif %}\r
- </div>\r
- </form>\r
- </div>\r
-{% endblock %}\r
-<!-- end user_subscriptions.html -->\r
+++ /dev/null
-<!-- user_tabs.html -->
-{% load extra_filters %}
-{% load i18n %}
-<div class="tabBar">
- <div class="tabsA">
- <a id="stats" {% ifequal tab_name "stats" %}class="on"{% endifequal %}
- title="{% trans "User profile" %}" href="/users/{{ view_user.id }}/{{ view_user.username|slugify }}/?sort=stats">{% trans "overview" %}</a>
- <a id="recent" {% ifequal tab_name "recent" %}class="on"{% endifequal %}
- title="{% trans "recent activity" %}" href="/users/{{ view_user.id }}/{{ view_user.username|slugify }}?sort=recent">{% trans "recent activity" %}</a>
- {% ifequal request.user view_user %}
- <a id="responses" {% ifequal tab_name "responses" %}class="on"{% endifequal %}
- title="{% trans "comments and answers to others questions" %}"
- href="/users/{{ view_user.id }}/{{ view_user.username|slugify }}?sort=responses">{% trans "responses" %}</a>
- {% endifequal %}
- <a id="reputation" {% ifequal tab_name "reputation" %}class="on"{% endifequal %}
- title="{% trans "graph of user reputation" %}"
- href="/users/{{ view_user.id }}/{{ view_user.username|slugify }}?sort=reputation">{% trans "reputation history" %}</a>
- {% ifequal request.user view_user %}
- <a id="votes" {% ifequal tab_name "votes" %}class="on"{% endifequal %}
- title="{% trans "user vote record" %}" href="/users/{{ view_user.id }}/{{ view_user.username|slugify }}?sort=votes">{% trans "casted votes" %}</a>
- {% endifequal %}
- <a id="favorites" {% ifequal tab_name "favorites" %}class="on"{% endifequal %}
- title="{% trans "questions that user selected as his/her favorite" %}"
- href="/users/{{ view_user.id }}/{{ view_user.username|slugify }}?sort=favorites">{% trans "favorites" %}</a>
- {% ifequal request.user view_user %}
- <a id="email_subscriptions" {% ifequal tab_name "subscriptions" %}class="on"{% endifequal %}
- title="{% trans "email subscription settings" %}"
- href="/users/{{ view_user.id }}/{{ view_user.username|slugify }}?sort=subscriptions">{% trans "subscriptions" %}</a>
- {% endifequal %}
- </div>
-</div>
-<!-- end user_tabs.html -->
+++ /dev/null
-{% extends "user.html" %}
-<!-- user_votes.html -->
-{% load extra_tags %}
-{% load extra_filters %}
-{% load humanize %}
-{% load i18n %}
-
-{% block usercontent %}
- <div style="padding-top:5px;font-size:13px;">
- {% for vote in votes %}
- <div style="clear:both;line-height:20px" >
- <div style="width:150px;float:left">{% diff_date vote.voted_at 3 %}</div>
- <div style="width:30px;float:left">
- {% ifequal vote.vote 1 %}
- <img src="{% media "/media/images/vote-arrow-up-on.png" %}" title="{% trans "upvote" %}">
- {% else %}
- <img src="{% media "/media/images/vote-arrow-down-on.png" %}" title="{% trans "downvote" %}">
- {% endifequal %}
- </div>
- <div style="float:left;overflow:hidden;width:750px">
- {% ifequal vote.answer_id 0 %}
- <span class="question-title-link"><a href="{{ vote.get_absolute_url }}">{{ vote.title }}</a></span>
- {% else %}
- <span class="answer-title-link" ><a href="{{ vote.get_absolute_url }}#{{ vote.answer_id }}">{{ vote.title }}</a></span>
- {% endifequal %}
- <div style="height:5px"></div>
- </div>
- </div>
- {% endfor %}
- </div>
-{% endblock %}
-<!-- end user_votes.html -->
+++ /dev/null
-{% extends "base_content.html" %}
-<!-- users.html -->
-{% load extra_tags %}
-{% load humanize %}
-{% load i18n %}
-{% block title %}{% spaceless %}{% trans "Users" %}{% endspaceless %}{% endblock %}
-{% block forejs %}
- <script type="text/javascript">
- //todo move javascript out
- $().ready(function(){
- $("#nav_users").attr('className',"on");
- $("#type-user").attr('checked',true);
- var orderby = "{{ tab_id }}";
- $("#sort_" + orderby).attr('className',"on");
-
- Hilite.exact = false;
- Hilite.elementid = "main-body";
- Hilite.debug_referrer = location.href;
- });
- </script>
-{% endblock %}
-{% block content %}
-<div class="tabBar">
- <div class="headUsers">{% trans "Users" %}</div>
- <div class="tabsA">
- <a id="sort_reputation" href="{% url users %}?sort=reputation" class="off" title="{% trans "reputation" %}">{% trans "reputation" %}</a>
- <a id="sort_newest" href="{% url users %}?sort=newest" class="off" title="{% trans "recent" %}">{% trans "recent" %}</a>
- <a id="sort_last" href="{% url users %}?sort=last" class="off" title="{% trans "oldest" %}">{% trans "oldest" %}</a>
- <a id="sort_user" href="{% url users %}?sort=user" class="off" title="{% trans "by username" %}">{% trans "by username" %}</a>
- </div>
-</div>
-<div id="main-body" style="width:100%">
- <p>
- {% if suser %}
- {% blocktrans %}users matching query {{suser}}:{% endblocktrans %}
- {% endif %}
-
- {% if not users.object_list %}
- <span>{% trans "Nothing found." %}</span>
- {% endif %}
- </p>
- <div class="userList">
- <table class="list-table">
- <tr>
- <td class="list-td">
- {% for user in users.object_list %}
-
- <div class="user">
- <ul>
- <li class="thumb"><a href="/users/{{ user.id }}/{{ user.username|slugify }}/">{% gravatar user 32 %}</a></li>
- <li><a href="/users/{{ user.id }}/{{ user.username|slugify }}/">{{user.username}}</a></li>
- <li>{% get_score_badge user %}</li>
- </ul>
- </div>
-
- {% if forloop.counter|divisibleby:"7" %}
- </td>
- <td>
- {% endif %}
-
- {% endfor %}
- </td>
- </tr>
- </table>
- </div>
-</div>
-{% endblock %}
-{% block tail %}
-<div class="pager">
- {% cnprog_paginator context %}
-</div>
-{% endblock %}
-<!-- end users.html -->
+++ /dev/null
-{% load i18n %}\r
-\r
-{% spaceless %}\r
- {% include "users/info_small_lite.html" %}\r
- {% if gold %}\r
- <span title="{{ gold }} {% trans "badges" %}">\r
- <span class="badge1">●</span>\r
- <span class="badgecount">{{ gold }}</span>\r
- </span>\r
- {% endif %}\r
- {% if silver %}\r
- <span title="{{ silver }} {% trans "badges" %}">\r
- <span class="silver">●</span>\r
- <span class="badgecount">{{ silver }}</span>\r
- </span>\r
- {% endif %}\r
- {% if bronze %}\r
- <span title="{{ bronze }} {% trans "badges" %}">\r
- <span class="bronze">●</span>\r
- <span class="badgecount">{{ bronze }}</span>\r
- </span>\r
- {% endif %}\r
-{% endspaceless %}
\ No newline at end of file
+++ /dev/null
-{% load i18n %}\r
-\r
-{% spaceless %}\r
- <a href="{{ url }}">{{ name }}</a> \r
- <span class="score" title="{{ reputation }} {% trans "reputation" %}">{{ reputation }}</span>\r
-{% endspaceless %}
\ No newline at end of file
+++ /dev/null
-<!-- users_questions.html -->
-{% load extra_tags %}
-{% load extra_filters %}
-{% load humanize %}
-{% load i18n %}
-<div class="user-stats-table">
- {% for question in questions %}
- {% if question.favourite_count %}
- {% if question.favorited_myself %}
- <div class="favorites-count">
- <img title="{% trans "this questions was selected as favorite" %} {{question.favourite_count}} {% trans "number of times" %}"
- alt="{% trans "thumb-up on" %}"
- src="{% media "/media/images/vote-favorite-on.png" %}"/>
- <div><b>{{question.favourite_count|intcomma}}</b></div>
- </div>
- {% else %}
- <div class="favorites-count-off">
- <img title="{% trans "this question was selected as favorite" %}{{question.favourite_count}} {% trans "number of times" %}"
- alt="{% trans "thumb-up off" %}"
- src="{% media "/media/images/vote-favorite-off.png" %}"/>
- <div><b>{{question.favourite_count|intcomma}}</b></div>
- </div>
- {% endif %}
- {% else %}
- <div class="favorites-empty"> </div>
- {% endif %}
- <div id="question-summary-{{question.id}}" class="question-summary narrow">
- <a style="text-decoration: none;" href="{{ question.get_absolute_url }}">
- <div class="stats">
- <div class="votes">
- <span class="vote-count-post">{{question.vote_count|intcomma}}</span>
- {% trans "votes" %}
- </div >
- <div title="{% if question.answer_accepted %}{% trans "this answer has been accepted to be correct" %}{% endif %}" class="status {% if question.answer_accepted %}answered-accepted{% endif %} {% ifequal question.answer_count 0 %}unanswered{% endifequal %}{% ifnotequal question.answer_count 0 %}answered{% endifnotequal %}">
- <span class="answer-count-post">{{question.answer_count|intcomma}}</span>
- {% trans "answers" %}
- </div>
- <div class="views">
- <span class="views-count-post">{{question.view_count|cnprog_intword|safe}}</span>
- {% trans "views" %}
- </div>
- </div>
- </a>
- <div class="summary">
- <div class="question-title">
- <a title="{{question.summary}}" href="{{ question.get_absolute_url }}">{{question.title}}</a>
- </div>
- <div class="tags">
- {% convert2tagname_list question %}
- {% for tag in question.tagnames %}
- <!--todo - move trans below to blocktrans -->
- <a href="{% url tag_questions tag|urlencode %}" title="{% trans "see questions tagged" %} '{{ tag }}' {% trans "using tags" %}" rel="tag">{{ tag }}</a>
- {% endfor %}
- </div>
- <div class="started">
- <span class="relativetime" title="{{question.last_activity_at}}">{% diff_date question.last_activity_at %}</span>
- {% if question.la_username %}
- <a href="{% url users %}{{question.la_user_id}}/{{question.la_username}}">{{question.la_username}}</a> {% get_score_badge_by_details question.la_user_reputation question.la_user_gold question.la_user_silver question.la_user_bronze%}
- {% endif %}
- </div>
- </div>
- </div>
- <br clear="all"/>
- {% endfor %}
-</div>
-<!-- end users_questions.html -->
+++ /dev/null
-import forum.activity
-import forum.reputation
-import forum.badges
-import forum.subscriptions
-
-from forum.modules import get_modules_script
-
-get_modules_script('settings')
\ No newline at end of file
+++ /dev/null
-import os\r
-import re\r
-import datetime\r
-from forum.models import User, Question, Comment, QuestionSubscription, SubscriptionSettings, Answer\r
-from forum.models.user import activity_record\r
-from forum.utils.mail import send_email\r
-from forum.views.readers import question_view\r
-from django.utils.translation import ugettext as _\r
-from django.conf import settings\r
-from django.db.models import Q, F\r
-from django.db.models.signals import post_save\r
-from django.contrib.contenttypes.models import ContentType\r
-import const\r
-\r
-def create_subscription_if_not_exists(question, user):\r
- try:\r
- subscription = QuestionSubscription.objects.get(question=question, user=user)\r
- except:\r
- subscription = QuestionSubscription(question=question, user=user)\r
- subscription.save()\r
-\r
-def apply_default_filters(queryset, excluded_id):\r
- return queryset.values('email', 'username').exclude(id=excluded_id)\r
-\r
-def create_recipients_dict(usr_list):\r
- return [(s['username'], s['email'], {'username': s['username']}) for s in usr_list]\r
-\r
-def question_posted(sender, instance, **kwargs):\r
- question = instance.content_object\r
-\r
- subscribers = User.objects.values('email', 'username').filter(\r
- Q(subscription_settings__enable_notifications=True, subscription_settings__new_question='i') |\r
- (Q(subscription_settings__new_question_watched_tags='i') &\r
- Q(marked_tags__name__in=question.tagnames.split(' ')) &\r
- Q(tag_selections__reason='good'))\r
- ).exclude(id=question.author.id).distinct()\r
-\r
- recipients = create_recipients_dict(subscribers)\r
-\r
- send_email(settings.EMAIL_SUBJECT_PREFIX + _("New question on %(app_name)s") % dict(app_name=settings.APP_SHORT_NAME),\r
- recipients, "notifications/newquestion.html", {\r
- 'question': question,\r
- })\r
-\r
- if question.author.subscription_settings.questions_asked:\r
- subscription = QuestionSubscription(question=question, user=question.author)\r
- subscription.save()\r
-\r
- new_subscribers = User.objects.filter(\r
- Q(subscription_settings__all_questions=True) |\r
- Q(subscription_settings__all_questions_watched_tags=True,\r
- marked_tags__name__in=question.tagnames.split(' '),\r
- tag_selections__reason='good'))\r
-\r
- for user in new_subscribers:\r
- create_subscription_if_not_exists(question, user)\r
-\r
-activity_record.connect(question_posted, sender=const.TYPE_ACTIVITY_ASK_QUESTION, weak=False)\r
-\r
-\r
-def answer_posted(sender, instance, **kwargs):\r
- answer = instance.content_object\r
- question = answer.question\r
-\r
- subscribers = question.subscribers.values('email', 'username').filter(\r
- subscription_settings__enable_notifications=True,\r
- subscription_settings__notify_answers=True,\r
- subscription_settings__subscribed_questions='i'\r
- ).exclude(id=answer.author.id).distinct()\r
- recipients = create_recipients_dict(subscribers)\r
-\r
- send_email(settings.EMAIL_SUBJECT_PREFIX + _("New answer to '%(question_title)s'") % dict(question_title=question.title),\r
- recipients, "notifications/newanswer.html", {\r
- 'question': question,\r
- 'answer': answer\r
- })\r
-\r
- if answer.author.subscription_settings.questions_answered:\r
- create_subscription_if_not_exists(question, answer.author)\r
-\r
-activity_record.connect(answer_posted, sender=const.TYPE_ACTIVITY_ANSWER, weak=False)\r
-\r
-\r
-def comment_posted(sender, instance, **kwargs):\r
- comment = instance.content_object\r
- post = comment.content_object\r
-\r
- if post.__class__ == Question:\r
- question = post\r
- else:\r
- question = post.question\r
-\r
- subscribers = question.subscribers.values('email', 'username')\r
-\r
- q_filter = Q(subscription_settings__notify_comments=True) | Q(subscription_settings__notify_comments_own_post=True, id=post.author.id)\r
-\r
- inreply = re.search('@\w+', comment.comment)\r
- if inreply is not None:\r
- q_filter = q_filter | Q(subscription_settings__notify_reply_to_comments=True,\r
- username__istartswith=inreply.group(0)[1:],\r
- comments__object_id=post.id,\r
- comments__content_type=ContentType.objects.get_for_model(post.__class__)\r
- )\r
-\r
- subscribers = subscribers.filter(\r
- q_filter, subscription_settings__subscribed_questions='i', subscription_settings__enable_notifications=True \r
- ).exclude(id=comment.user.id).distinct()\r
-\r
- recipients = create_recipients_dict(subscribers)\r
-\r
- send_email(settings.EMAIL_SUBJECT_PREFIX + _("New comment on %(question_title)s") % dict(question_title=question.title),\r
- recipients, "notifications/newcomment.html", {\r
- 'comment': comment,\r
- 'post': post,\r
- 'question': question,\r
- })\r
-\r
- if comment.user.subscription_settings.questions_commented:\r
- create_subscription_if_not_exists(question, comment.user)\r
-\r
-activity_record.connect(comment_posted, sender=const.TYPE_ACTIVITY_COMMENT_QUESTION, weak=False)\r
-activity_record.connect(comment_posted, sender=const.TYPE_ACTIVITY_COMMENT_ANSWER, weak=False)\r
-\r
-\r
-def answer_accepted(instance, created, **kwargs):\r
- if not created and 'accepted' in instance.get_dirty_fields() and instance.accepted:\r
- question = instance.question\r
-\r
- subscribers = question.subscribers.values('email', 'username').filter(\r
- subscription_settings__enable_notifications=True,\r
- subscription_settings__notify_accepted=True,\r
- subscription_settings__subscribed_questions='i'\r
- ).exclude(id=instance.accepted_by.id).distinct()\r
- recipients = create_recipients_dict(subscribers)\r
-\r
- send_email(settings.EMAIL_SUBJECT_PREFIX + _("An answer to '%(question_title)s' was accepted") % dict(question_title=question.title),\r
- recipients, "notifications/answeraccepted.html", {\r
- 'question': question,\r
- 'answer': instance\r
- })\r
-\r
-post_save.connect(answer_accepted, sender=Answer)\r
-\r
-\r
-def member_joined(sender, instance, created, **kwargs):\r
- if not created:\r
- return\r
- \r
- subscribers = User.objects.values('email', 'username').filter(\r
- subscription_settings__enable_notifications=True,\r
- subscription_settings__member_joins='i'\r
- ).exclude(id=instance.id).distinct()\r
-\r
- recipients = create_recipients_dict(subscribers)\r
-\r
- send_email(settings.EMAIL_SUBJECT_PREFIX + _("%(username)s is a new member on %(app_name)s") % dict(username=instance.username, app_name=settings.APP_SHORT_NAME),\r
- recipients, "notifications/newmember.html", {\r
- 'newmember': instance,\r
- })\r
-\r
- sub_settings = SubscriptionSettings(user=instance)\r
- sub_settings.save()\r
-\r
-post_save.connect(member_joined, sender=User, weak=False)\r
-\r
-def question_viewed(instance, user, **kwargs):\r
- if not user.is_authenticated():\r
- return\r
- \r
- try:\r
- subscription = QuestionSubscription.objects.get(question=instance, user=user)\r
- subscription.last_view = datetime.datetime.now()\r
- subscription.save()\r
- except:\r
- if user.subscription_settings.questions_viewed:\r
- subscription = QuestionSubscription(question=instance, user=user)\r
- subscription.save()\r
-\r
-question_view.connect(question_viewed)\r
-\r
-#todo: this stuff goes temporarily here\r
-from forum.models import Award, Answer\r
-\r
-def notify_award_message(instance, created, **kwargs):\r
- if created:\r
- user = instance.user\r
-\r
- msg = (u"Congratulations, you have received a badge '%s'. " \\r
- + u"Check out <a href=\"%s\">your profile</a>.") \\r
- % (instance.badge.name, user.get_profile_url())\r
-\r
- user.message_set.create(message=msg)\r
-\r
-post_save.connect(notify_award_message, sender=Award)\r
-\r
-#todo: translate this\r
-record_answer_event_re = re.compile("You have received (a|\d+) .*new response.*")\r
-def record_answer_event(instance, created, **kwargs):\r
- if created:\r
- q_author = instance.question.author\r
- found_match = False\r
- #print 'going through %d messages' % q_author.message_set.all().count()\r
- for m in q_author.message_set.all():\r
- #print m.message\r
- match = record_answer_event_re.search(m.message)\r
- if match:\r
- found_match = True\r
- try:\r
- cnt = int(match.group(1))\r
- except:\r
- cnt = 1\r
- m.message = u"You have received %d <a href=\"%s?sort=responses\">new responses</a>."\\r
- % (cnt+1, q_author.get_profile_url())\r
-\r
- m.save()\r
- break\r
- if not found_match:\r
- msg = u"You have received a <a href=\"%s?sort=responses\">new response</a>."\\r
- % q_author.get_profile_url()\r
-\r
- q_author.message_set.create(message=msg)\r
-\r
-post_save.connect(record_answer_event, sender=Answer)
\ No newline at end of file
+++ /dev/null
-from django import template
-import logging
-
-register = template.Library()
-
-@template.defaultfilters.stringfilter
-@register.filter
-def collapse(input):
- return ' '.join(input.split())
-
-
-@register.filter
-def can_edit_post(user, post):
- return user.can_edit_post(post)
-
-
-@register.filter
-def cnprog_intword(number):
- try:
- if 1000 <= number < 10000:
- string = str(number)[0:1]
- return "<span class=""thousand"">%sk</span>" % string
- else:
- return number
- except:
- return number
+++ /dev/null
-import time
-import os
-import posixpath
-import datetime
-import math
-import re
-import logging
-from django import template
-from django.utils.encoding import smart_unicode
-from django.utils.safestring import mark_safe
-from forum.const import *
-from forum.models import Question, Answer, QuestionRevision, AnswerRevision
-from django.utils.translation import ugettext as _
-from django.utils.translation import ungettext
-from django.utils import simplejson
-from django.conf import settings
-from django.template.defaulttags import url as default_url
-from forum import skins
-
-register = template.Library()
-
-GRAVATAR_TEMPLATE = ('<img class="gravatar" width="%(size)s" height="%(size)s" '
- 'src="http://www.gravatar.com/avatar/%(gravatar_hash)s'
- '?s=%(size)s&d=identicon&r=PG" '
- 'alt="%(username)s\'s gravatar image" />')
-
-@register.simple_tag
-def gravatar(user, size):
- """
- Creates an ``<img>`` for a user's Gravatar with a given size.
-
- This tag can accept a User object, or a dict containing the
- appropriate values.
- """
- try:
- gravatar = user['gravatar']
- username = user['username']
- except (TypeError, AttributeError, KeyError):
- gravatar = user.gravatar
- username = user.username
- return mark_safe(GRAVATAR_TEMPLATE % {
- 'size': size,
- 'gravatar_hash': gravatar,
- 'username': template.defaultfilters.urlencode(username),
- })
-
-MAX_FONTSIZE = 18
-MIN_FONTSIZE = 12
-@register.simple_tag
-def tag_font_size(max_size, min_size, current_size):
- """
- do a logarithmic mapping calcuation for a proper size for tagging cloud
- Algorithm from http://blogs.dekoh.com/dev/2007/10/29/choosing-a-good-font-size-variation-algorithm-for-your-tag-cloud/
- """
- #avoid invalid calculation
- if current_size == 0:
- current_size = 1
- try:
- weight = (math.log10(current_size) - math.log10(min_size)) / (math.log10(max_size) - math.log10(min_size))
- except:
- weight = 0
- return MIN_FONTSIZE + round((MAX_FONTSIZE - MIN_FONTSIZE) * weight)
-
-
-LEADING_PAGE_RANGE_DISPLAYED = TRAILING_PAGE_RANGE_DISPLAYED = 5
-LEADING_PAGE_RANGE = TRAILING_PAGE_RANGE = 4
-NUM_PAGES_OUTSIDE_RANGE = 1
-ADJACENT_PAGES = 2
-@register.inclusion_tag("paginator.html")
-def cnprog_paginator(context):
- """
- custom paginator tag
- Inspired from http://blog.localkinegrinds.com/2007/09/06/digg-style-pagination-in-django/
- """
- if (context["is_paginated"]):
- " Initialize variables "
- in_leading_range = in_trailing_range = False
- pages_outside_leading_range = pages_outside_trailing_range = range(0)
-
- if (context["pages"] <= LEADING_PAGE_RANGE_DISPLAYED):
- in_leading_range = in_trailing_range = True
- page_numbers = [n for n in range(1, context["pages"] + 1) if n > 0 and n <= context["pages"]]
- elif (context["page"] <= LEADING_PAGE_RANGE):
- in_leading_range = True
- page_numbers = [n for n in range(1, LEADING_PAGE_RANGE_DISPLAYED + 1) if n > 0 and n <= context["pages"]]
- pages_outside_leading_range = [n + context["pages"] for n in range(0, -NUM_PAGES_OUTSIDE_RANGE, -1)]
- elif (context["page"] > context["pages"] - TRAILING_PAGE_RANGE):
- in_trailing_range = True
- page_numbers = [n for n in range(context["pages"] - TRAILING_PAGE_RANGE_DISPLAYED + 1, context["pages"] + 1) if n > 0 and n <= context["pages"]]
- pages_outside_trailing_range = [n + 1 for n in range(0, NUM_PAGES_OUTSIDE_RANGE)]
- else:
- page_numbers = [n for n in range(context["page"] - ADJACENT_PAGES, context["page"] + ADJACENT_PAGES + 1) if n > 0 and n <= context["pages"]]
- pages_outside_leading_range = [n + context["pages"] for n in range(0, -NUM_PAGES_OUTSIDE_RANGE, -1)]
- pages_outside_trailing_range = [n + 1 for n in range(0, NUM_PAGES_OUTSIDE_RANGE)]
-
- extend_url = context.get('extend_url', '')
- return {
- "base_url": context["base_url"],
- "is_paginated": context["is_paginated"],
- "previous": context["previous"],
- "has_previous": context["has_previous"],
- "next": context["next"],
- "has_next": context["has_next"],
- "page": context["page"],
- "pages": context["pages"],
- "page_numbers": page_numbers,
- "in_leading_range" : in_leading_range,
- "in_trailing_range" : in_trailing_range,
- "pages_outside_leading_range": pages_outside_leading_range,
- "pages_outside_trailing_range": pages_outside_trailing_range,
- "extend_url" : extend_url
- }
-
-@register.inclusion_tag("pagesize.html")
-def cnprog_pagesize(context):
- """
- display the pagesize selection boxes for paginator
- """
- if (context["is_paginated"]):
- return {
- "base_url": context["base_url"],
- "pagesize" : context["pagesize"],
- "is_paginated": context["is_paginated"]
- }
-
-@register.inclusion_tag("post_contributor_info.html")
-def post_contributor_info(post,contributor_type='original_author'):
- """contributor_type: original_author|last_updater
- """
- if isinstance(post,Question):
- post_type = 'question'
- elif isinstance(post,Answer):
- post_type = 'answer'
- elif isinstance(post,AnswerRevision) or isinstance(post,QuestionRevision):
- post_type = 'revision'
- return {
- 'post':post,
- 'post_type':post_type,
- 'wiki_on':settings.WIKI_ON,
- 'contributor_type':contributor_type
- }
-
-@register.simple_tag
-def get_score_badge(user):
- BADGE_TEMPLATE = '<span class="score" title="%(reputation)s %(reputationword)s">%(reputation)s</span>'
- if user.gold > 0 :
- BADGE_TEMPLATE = '%s%s' % (BADGE_TEMPLATE, '<span title="%(gold)s %(badgesword)s">'
- '<span class="badge1">●</span>'
- '<span class="badgecount">%(gold)s</span>'
- '</span>')
- if user.silver > 0:
- BADGE_TEMPLATE = '%s%s' % (BADGE_TEMPLATE, '<span title="%(silver)s %(badgesword)s">'
- '<span class="silver">●</span>'
- '<span class="badgecount">%(silver)s</span>'
- '</span>')
- if user.bronze > 0:
- BADGE_TEMPLATE = '%s%s' % (BADGE_TEMPLATE, '<span title="%(bronze)s %(badgesword)s">'
- '<span class="bronze">●</span>'
- '<span class="badgecount">%(bronze)s</span>'
- '</span>')
- BADGE_TEMPLATE = smart_unicode(BADGE_TEMPLATE, encoding='utf-8', strings_only=False, errors='strict')
- return mark_safe(BADGE_TEMPLATE % {
- 'reputation' : user.reputation,
- 'gold' : user.gold,
- 'silver' : user.silver,
- 'bronze' : user.bronze,
- 'badgesword' : _('badges'),
- 'reputationword' : _('reputation points'),
- })
-
-@register.simple_tag
-def get_score_badge_by_details(rep, gold, silver, bronze):
- BADGE_TEMPLATE = '<span class="reputation-score" title="%(reputation)s %(repword)s">%(reputation)s</span>'
- if gold > 0 :
- BADGE_TEMPLATE = '%s%s' % (BADGE_TEMPLATE, '<span title="%(gold)s %(badgeword)s">'
- '<span class="badge1">●</span>'
- '<span class="badgecount">%(gold)s</span>'
- '</span>')
- if silver > 0:
- BADGE_TEMPLATE = '%s%s' % (BADGE_TEMPLATE, '<span title="%(silver)s %(badgeword)s">'
- '<span class="badge2">●</span>'
- '<span class="badgecount">%(silver)s</span>'
- '</span>')
- if bronze > 0:
- BADGE_TEMPLATE = '%s%s' % (BADGE_TEMPLATE, '<span title="%(bronze)s %(badgeword)s">'
- '<span class="badge3">●</span>'
- '<span class="badgecount">%(bronze)s</span>'
- '</span>')
- BADGE_TEMPLATE = smart_unicode(BADGE_TEMPLATE, encoding='utf-8', strings_only=False, errors='strict')
- return mark_safe(BADGE_TEMPLATE % {
- 'reputation' : rep,
- 'gold' : gold,
- 'silver' : silver,
- 'bronze' : bronze,
- 'repword' : _('reputation points'),
- 'badgeword' : _('badges'),
- })
-
-@register.simple_tag
-def get_age(birthday):
- current_time = datetime.datetime(*time.localtime()[0:6])
- year = birthday.year
- month = birthday.month
- day = birthday.day
- diff = current_time - datetime.datetime(year,month,day,0,0,0)
- return diff.days / 365
-
-@register.simple_tag
-def get_total_count(up_count, down_count):
- return up_count + down_count
-
-@register.simple_tag
-def format_number(value):
- strValue = str(value)
- if len(strValue) <= 3:
- return strValue
- result = ''
- first = ''
- pattern = re.compile('(-?\d+)(\d{3})')
- m = re.match(pattern, strValue)
- while m != None:
- first = m.group(1)
- second = m.group(2)
- result = ',' + second + result
- strValue = first + ',' + second
- m = re.match(pattern, strValue)
- return first + result
-
-@register.simple_tag
-def convert2tagname_list(question):
- question['tagnames'] = [name for name in question['tagnames'].split(u' ')]
- return ''
-
-@register.simple_tag
-def diff_date(date, limen=2):
- now = datetime.datetime.now()#datetime(*time.localtime()[0:6])#???
- diff = now - date
- days = diff.days
- hours = int(diff.seconds/3600)
- minutes = int(diff.seconds/60)
-
- if days > 2:
- if date.year == now.year:
- return date.strftime("%b %d at %H:%M")
- else:
- return date.strftime("%b %d '%y at %H:%M")
- elif days == 2:
- return _('2 days ago')
- elif days == 1:
- return _('yesterday')
- elif minutes >= 60:
- return ungettext('%(hr)d hour ago','%(hr)d hours ago',hours) % {'hr':hours}
- else:
- return ungettext('%(min)d min ago','%(min)d mins ago',minutes) % {'min':minutes}
-
-@register.simple_tag
-def get_latest_changed_timestamp():
- try:
- from time import localtime, strftime
- from os import path
- root = settings.SITE_SRC_ROOT
- dir = (
- root,
- '%s/forum' % root,
- '%s/templates' % root,
- )
- stamp = (path.getmtime(d) for d in dir)
- latest = max(stamp)
- timestr = strftime("%H:%M %b-%d-%Y %Z", localtime(latest))
- except:
- timestr = ''
- return timestr
-
-@register.simple_tag
-def media(url):
- url = skins.find_media_source(url)
- if url:
- url = '///' + settings.FORUM_SCRIPT_ALIAS + '/m/' + url
- return posixpath.normpath(url) + '?v=%d' % settings.RESOURCE_REVISION
-
-class ItemSeparatorNode(template.Node):
- def __init__(self,separator):
- sep = separator.strip()
- if sep[0] == sep[-1] and sep[0] in ('\'','"'):
- sep = sep[1:-1]
- else:
- raise template.TemplateSyntaxError('separator in joinitems tag must be quoted')
- self.content = sep
- def render(self,context):
- return self.content
-
-class JoinItemListNode(template.Node):
- def __init__(self,separator=ItemSeparatorNode("''"), items=()):
- self.separator = separator
- self.items = items
- def render(self,context):
- out = []
- empty_re = re.compile(r'^\s*$')
- for item in self.items:
- bit = item.render(context)
- if not empty_re.search(bit):
- out.append(bit)
- return self.separator.render(context).join(out)
-
-@register.tag(name="joinitems")
-def joinitems(parser,token):
- try:
- tagname,junk,sep_token = token.split_contents()
- except ValueError:
- raise template.TemplateSyntaxError("joinitems tag requires 'using \"separator html\"' parameters")
- if junk == 'using':
- sep_node = ItemSeparatorNode(sep_token)
- else:
- raise template.TemplateSyntaxError("joinitems tag requires 'using \"separator html\"' parameters")
- nodelist = []
- while True:
- nodelist.append(parser.parse(('separator','endjoinitems')))
- next = parser.next_token()
- if next.contents == 'endjoinitems':
- break
-
- return JoinItemListNode(separator=sep_node,items=nodelist)
-
-class BlockMediaUrlNode(template.Node):
- def __init__(self,nodelist):
- self.items = nodelist
- def render(self,context):
- prefix = '///' + settings.FORUM_SCRIPT_ALIAS + 'm/'
- url = ''
- if self.items:
- url += '/'
- for item in self.items:
- url += item.render(context)
-
- url = skins.find_media_source(url)
- url = prefix + url
- out = posixpath.normpath(url) + '?v=%d' % settings.RESOURCE_REVISION
- return out.replace(' ','')
-
-@register.tag(name='blockmedia')
-def blockmedia(parser,token):
- try:
- tagname = token.split_contents()
- except ValueError:
- raise template.TemplateSyntaxError("blockmedia tag does not use arguments")
- nodelist = []
- while True:
- nodelist.append(parser.parse(('endblockmedia')))
- next = parser.next_token()
- if next.contents == 'endblockmedia':
- break
- return BlockMediaUrlNode(nodelist)
-
-class FullUrlNode(template.Node):
- def __init__(self, default_node):
- self.default_node = default_node
-
- def render(self, context):
- domain = settings.APP_URL
- #protocol = getattr(settings, "PROTOCOL", "http")
- path = self.default_node.render(context)
- return "%s%s" % (domain, path)
-
-@register.tag(name='fullurl')
-def fullurl(parser, token):
- default_node = default_url(parser, token)
- return FullUrlNode(default_node)
-
-@register.simple_tag
-def fullmedia(url):
- domain = settings.APP_URL
- #protocol = getattr(settings, "PROTOCOL", "http")
- path = media(url)
- return "%s%s" % (domain, path)
-
-class UserVarNode(template.Node):
- def __init__(self, tokens):
- self.tokens = tokens
-
- def render(self, context):
- return "{{ %s }}" % self.tokens
-
-@register.tag(name='user_var')
-def user_var(parser, token):
- tokens = " ".join(token.split_contents()[1:])
- return UserVarNode(tokens)
-
-
-class VariablesNode(template.Node):
- def __init__(self, nodelist, var_name):
- self.nodelist = nodelist
- self.var_name = var_name
-
- def render(self, context):
- source = self.nodelist.render(context)
- context[self.var_name] = simplejson.loads(source)
- return ''
-
-@register.tag(name='var')
-def do_variables(parser, token):
- try:
- tag_name, arg = token.contents.split(None, 1)
- except ValueError:
- msg = '"%s" tag requires arguments' % token.contents.split()[0]
- raise template.TemplateSyntaxError(msg)
- m = re.search(r'as (\w+)', arg)
- if m:
- var_name, = m.groups()
- else:
- msg = '"%s" tag had invalid arguments' % tag_name
- raise template.TemplateSyntaxError(msg)
-
- nodelist = parser.parse(('endvar',))
- parser.delete_first_token()
- return VariablesNode(nodelist, var_name)
+++ /dev/null
-from django import template\r
-from forum.models import Tag, Award\r
-\r
-#todo: move to settings\r
-RECENT_TAGS_SIZE = 25\r
-RECENT_AWARD_SIZE = 15\r
-\r
-register = template.Library()\r
-\r
-@register.inclusion_tag('sidebar/recent_tags.html')\r
-def recent_tags():\r
- return {'tags': Tag.active.order_by('-id')[:RECENT_TAGS_SIZE]}\r
-\r
-@register.inclusion_tag('sidebar/recent_awards.html')\r
-def recent_awards():\r
- return {'awards': Award.objects.get_recent_awards()[:RECENT_AWARD_SIZE]}
\ No newline at end of file
+++ /dev/null
-from django import template\r
-from django.utils.translation import ugettext as _\r
-from django.utils.safestring import mark_safe\r
-from forum.models import Tag, MarkedTag\r
-\r
-register = template.Library()\r
-\r
-@register.inclusion_tag('question_list/item.html')\r
-def question_list_item(question):\r
- return {'question': question}\r
-\r
-@register.inclusion_tag('question_list/item_extended.html')\r
-def question_list_item_extended(question):\r
- return {'question': question}\r
-\r
-@register.inclusion_tag('question_list/sort_tabs.html')\r
-def question_sort_tabs(sort_context):\r
- return sort_context\r
-\r
-@register.inclusion_tag('question_list/related_tags.html')\r
-def question_list_related_tags(questions):\r
- if len(questions):\r
- return {'tags': Tag.objects.filter(questions__id__in=[q.id for q in questions]).distinct()}\r
- else:\r
- return {'tags': False}\r
-\r
-@register.inclusion_tag('question_list/tag_selector.html', takes_context=True)\r
-def tag_selector(context):\r
- request = context['request']\r
-\r
- if request.user.is_authenticated():\r
- pt = MarkedTag.objects.filter(user=request.user)\r
- return {\r
- "interesting_tag_names": pt.filter(reason='good').values_list('tag__name', flat=True),\r
- 'ignored_tag_names': pt.filter(reason='bad').values_list('tag__name', flat=True),\r
- 'user_authenticated': True,\r
- }\r
- else:\r
- return {'user_authenticated': False}\r
-\r
-@register.inclusion_tag('question_list/count.html', takes_context=True)\r
-def question_list_count(context):\r
- context['sort_description'] = mark_safe({\r
- 'latest': _('<strong>Newest</strong> questions are shown first. '),\r
- 'active': _('Questions are sorted by the <strong>time of last update</strong>.'),\r
- 'hottest': _('Questions sorted by <strong>number of responses</strong>.'),\r
- 'mostvoted': _('Questions are sorted by the <strong>number of votes</strong>.')\r
- }.get(context['request'].utils.sort_method('latest'), ''))\r
-\r
- return context\r
-\r
-@register.inclusion_tag('question_list/title.html', takes_context=True)\r
-def question_list_title(context):\r
- return context
\ No newline at end of file
+++ /dev/null
-from datetime import datetime, timedelta\r
-\r
-from forum.models import Question, FavoriteQuestion, LikedComment\r
-from django.utils.translation import ugettext as _\r
-from django.core.urlresolvers import reverse\r
-from django import template\r
-\r
-register = template.Library()\r
-\r
-@register.inclusion_tag('question/vote_buttons.html')\r
-def vote_buttons(post, user):\r
- context = {\r
- 'post': post,\r
- 'post_type': (post.__class__ is Question) and 'question' or 'answer',\r
- 'user_vote': 'none'\r
- }\r
-\r
- if user.is_authenticated():\r
- try:\r
- vote = post.votes.get(user=user)\r
- context['user_vote'] = vote.is_upvote() and 'up' or 'down'\r
- except:\r
- pass\r
-\r
- return context\r
-\r
-@register.inclusion_tag('question/accept_button.html') \r
-def accept_button(answer, user):\r
- return {\r
- 'can_accept': user.is_authenticated() and user.can_accept_answer(answer),\r
- 'answer': answer,\r
- 'user': user\r
- }\r
-\r
-@register.inclusion_tag('question/favorite_mark.html')\r
-def favorite_mark(question, user):\r
- try:\r
- FavoriteQuestion.objects.get(question=question, user=user)\r
- favorited = True\r
- except:\r
- favorited = False\r
-\r
- favorite_count = question.favorited_by.count()\r
-\r
- return {'favorited': favorited, 'favorite_count': favorite_count, 'question': question}\r
-\r
-def post_control(text, url, command=False, title=""):\r
- return {'text': text, 'url': url, 'command': command, 'title': title}\r
-\r
-@register.inclusion_tag('question/post_controls.html')\r
-def post_controls(post, user):\r
- controls = []\r
-\r
- if user.is_authenticated():\r
- post_type = (post.__class__ is Question) and 'question' or 'answer'\r
-\r
- if post_type == "answer":\r
- controls.append(post_control(_('permanent link'), '#%d' % post.id, title=_("answer permanent link")))\r
-\r
- edit_url = reverse('edit_' + post_type, kwargs={'id': post.id})\r
- if user.can_edit_post(post):\r
- controls.append(post_control(_('edit'), edit_url))\r
- elif post_type == 'question' and user.can_retag_questions():\r
- controls.append(post_control(_('retag'), edit_url))\r
-\r
- if post_type == 'question':\r
- if post.closed and user.can_reopen_question(post):\r
- controls.append(post_control(_('reopen'), reverse('reopen', kwargs={'id': post.id})))\r
- elif not post.closed and user.can_close_question(post):\r
- controls.append(post_control(_('close'), reverse('close', kwargs={'id': post.id})))\r
-\r
- if user.can_flag_offensive(post):\r
- controls.append(post_control(_('flag'), reverse('flag_post', kwargs={'post_type': post_type, 'id': post.id}), \r
- command=True, title=_("report as offensive (i.e containing spam, advertising, malicious text, etc.)")))\r
-\r
- if user.can_delete_post(post):\r
- controls.append(post_control(_('delete'), reverse('delete_post', kwargs={'post_type': post_type, 'id': post.id}),\r
- command=True))\r
-\r
- return {'controls': controls}\r
-\r
-@register.inclusion_tag('question/comments.html')\r
-def comments(post, user):\r
- all_comments = post.comments.filter(deleted=False).order_by('added_at')\r
-\r
- if len(all_comments) <= 5:\r
- top_scorers = all_comments\r
- else:\r
- top_scorers = sorted(all_comments, lambda c1, c2: c2.score - c1.score)[0:5]\r
-\r
- comments = []\r
- showing = 0\r
- for c in all_comments:\r
- context = {\r
- 'can_delete': user.can_delete_comment(c),\r
- 'can_like': user.can_like_comment(c),\r
- 'can_edit': user.can_edit_comment(c)\r
- }\r
-\r
- if c in top_scorers or c.is_reply_to(user):\r
- context['top_scorer'] = True\r
- showing += 1\r
- \r
- if context['can_like']:\r
- try:\r
- LikedComment.active.get(comment=c, user=user)\r
- context['likes'] = True\r
- except:\r
- context['likes'] = False\r
-\r
- context['user'] = c.user\r
- context.update(dict(c.__dict__))\r
- comments.append(context)\r
-\r
- return {\r
- 'comments': comments,\r
- 'post': post,\r
- 'post_type': (post.__class__ is Question) and 'question' or 'answer',\r
- 'can_comment': user.can_comment(post),\r
- 'max_length': 300,\r
- 'showing': showing,\r
- 'total': len(all_comments),\r
- }
\ No newline at end of file
+++ /dev/null
-"""
-A smarter {% if %} tag for django templates.
-
-While retaining current Django functionality, it also handles equality,
-greater than and less than operators. Some common case examples::
-
- {% if articles|length >= 5 %}...{% endif %}
- {% if "ifnotequal tag" != "beautiful" %}...{% endif %}
-"""
-import unittest
-from django import template
-
-
-register = template.Library()
-
-
-#==============================================================================
-# Calculation objects
-#==============================================================================
-
-class BaseCalc(object):
- def __init__(self, var1, var2=None, negate=False):
- self.var1 = var1
- self.var2 = var2
- self.negate = negate
-
- def resolve(self, context):
- try:
- var1, var2 = self.resolve_vars(context)
- outcome = self.calculate(var1, var2)
- except:
- outcome = False
- if self.negate:
- return not outcome
- return outcome
-
- def resolve_vars(self, context):
- var2 = self.var2 and self.var2.resolve(context)
- return self.var1.resolve(context), var2
-
- def calculate(self, var1, var2):
- raise NotImplementedError()
-
-
-class Or(BaseCalc):
- def calculate(self, var1, var2):
- return var1 or var2
-
-
-class And(BaseCalc):
- def calculate(self, var1, var2):
- return var1 and var2
-
-
-class Equals(BaseCalc):
- def calculate(self, var1, var2):
- return var1 == var2
-
-
-class Greater(BaseCalc):
- def calculate(self, var1, var2):
- return var1 > var2
-
-
-class GreaterOrEqual(BaseCalc):
- def calculate(self, var1, var2):
- return var1 >= var2
-
-
-class In(BaseCalc):
- def calculate(self, var1, var2):
- return var1 in var2
-
-
-#==============================================================================
-# Tests
-#==============================================================================
-
-class TestVar(object):
- """
- A basic self-resolvable object similar to a Django template variable. Used
- to assist with tests.
- """
- def __init__(self, value):
- self.value = value
-
- def resolve(self, context):
- return self.value
-
-
-class SmartIfTests(unittest.TestCase):
- def setUp(self):
- self.true = TestVar(True)
- self.false = TestVar(False)
- self.high = TestVar(9000)
- self.low = TestVar(1)
-
- def assertCalc(self, calc, context=None):
- """
- Test a calculation is True, also checking the inverse "negate" case.
- """
- context = context or {}
- self.assert_(calc.resolve(context))
- calc.negate = not calc.negate
- self.assertFalse(calc.resolve(context))
-
- def assertCalcFalse(self, calc, context=None):
- """
- Test a calculation is False, also checking the inverse "negate" case.
- """
- context = context or {}
- self.assertFalse(calc.resolve(context))
- calc.negate = not calc.negate
- self.assert_(calc.resolve(context))
-
- def test_or(self):
- self.assertCalc(Or(self.true))
- self.assertCalcFalse(Or(self.false))
- self.assertCalc(Or(self.true, self.true))
- self.assertCalc(Or(self.true, self.false))
- self.assertCalc(Or(self.false, self.true))
- self.assertCalcFalse(Or(self.false, self.false))
-
- def test_and(self):
- self.assertCalc(And(self.true, self.true))
- self.assertCalcFalse(And(self.true, self.false))
- self.assertCalcFalse(And(self.false, self.true))
- self.assertCalcFalse(And(self.false, self.false))
-
- def test_equals(self):
- self.assertCalc(Equals(self.low, self.low))
- self.assertCalcFalse(Equals(self.low, self.high))
-
- def test_greater(self):
- self.assertCalc(Greater(self.high, self.low))
- self.assertCalcFalse(Greater(self.low, self.low))
- self.assertCalcFalse(Greater(self.low, self.high))
-
- def test_greater_or_equal(self):
- self.assertCalc(GreaterOrEqual(self.high, self.low))
- self.assertCalc(GreaterOrEqual(self.low, self.low))
- self.assertCalcFalse(GreaterOrEqual(self.low, self.high))
-
- def test_in(self):
- list_ = TestVar([1,2,3])
- invalid_list = TestVar(None)
- self.assertCalc(In(self.low, list_))
- self.assertCalcFalse(In(self.low, invalid_list))
-
- def test_parse_bits(self):
- var = IfParser([True]).parse()
- self.assert_(var.resolve({}))
- var = IfParser([False]).parse()
- self.assertFalse(var.resolve({}))
-
- var = IfParser([False, 'or', True]).parse()
- self.assert_(var.resolve({}))
-
- var = IfParser([False, 'and', True]).parse()
- self.assertFalse(var.resolve({}))
-
- var = IfParser(['not', False, 'and', 'not', False]).parse()
- self.assert_(var.resolve({}))
-
- var = IfParser(['not', 'not', True]).parse()
- self.assert_(var.resolve({}))
-
- var = IfParser([1, '=', 1]).parse()
- self.assert_(var.resolve({}))
-
- var = IfParser([1, 'not', '=', 1]).parse()
- self.assertFalse(var.resolve({}))
-
- var = IfParser([1, 'not', 'not', '=', 1]).parse()
- self.assert_(var.resolve({}))
-
- var = IfParser([1, '!=', 1]).parse()
- self.assertFalse(var.resolve({}))
-
- var = IfParser([3, '>', 2]).parse()
- self.assert_(var.resolve({}))
-
- var = IfParser([1, '<', 2]).parse()
- self.assert_(var.resolve({}))
-
- var = IfParser([2, 'not', 'in', [2, 3]]).parse()
- self.assertFalse(var.resolve({}))
-
- var = IfParser([1, 'or', 1, '=', 2]).parse()
- self.assert_(var.resolve({}))
-
- def test_boolean(self):
- var = IfParser([True, 'and', True, 'and', True]).parse()
- self.assert_(var.resolve({}))
- var = IfParser([False, 'or', False, 'or', True]).parse()
- self.assert_(var.resolve({}))
- var = IfParser([True, 'and', False, 'or', True]).parse()
- self.assert_(var.resolve({}))
- var = IfParser([False, 'or', True, 'and', True]).parse()
- self.assert_(var.resolve({}))
-
- var = IfParser([True, 'and', True, 'and', False]).parse()
- self.assertFalse(var.resolve({}))
- var = IfParser([False, 'or', False, 'or', False]).parse()
- self.assertFalse(var.resolve({}))
- var = IfParser([False, 'or', True, 'and', False]).parse()
- self.assertFalse(var.resolve({}))
- var = IfParser([False, 'and', True, 'or', False]).parse()
- self.assertFalse(var.resolve({}))
-
- def test_invalid(self):
- self.assertRaises(ValueError, IfParser(['not']).parse)
- self.assertRaises(ValueError, IfParser(['==']).parse)
- self.assertRaises(ValueError, IfParser([1, 'in']).parse)
- self.assertRaises(ValueError, IfParser([1, '>', 'in']).parse)
- self.assertRaises(ValueError, IfParser([1, '==', 'not', 'not']).parse)
- self.assertRaises(ValueError, IfParser([1, 2]).parse)
-
-
-OPERATORS = {
- '=': (Equals, True),
- '==': (Equals, True),
- '!=': (Equals, False),
- '>': (Greater, True),
- '>=': (GreaterOrEqual, True),
- '<=': (Greater, False),
- '<': (GreaterOrEqual, False),
- 'or': (Or, True),
- 'and': (And, True),
- 'in': (In, True),
-}
-BOOL_OPERATORS = ('or', 'and')
-
-
-class IfParser(object):
- error_class = ValueError
-
- def __init__(self, tokens):
- self.tokens = tokens
-
- def _get_tokens(self):
- return self._tokens
-
- def _set_tokens(self, tokens):
- self._tokens = tokens
- self.len = len(tokens)
- self.pos = 0
-
- tokens = property(_get_tokens, _set_tokens)
-
- def parse(self):
- if self.at_end():
- raise self.error_class('No variables provided.')
- var1 = self.get_bool_var()
- while not self.at_end():
- op, negate = self.get_operator()
- var2 = self.get_bool_var()
- var1 = op(var1, var2, negate=negate)
- return var1
-
- def get_token(self, eof_message=None, lookahead=False):
- negate = True
- token = None
- pos = self.pos
- while token is None or token == 'not':
- if pos >= self.len:
- if eof_message is None:
- raise self.error_class()
- raise self.error_class(eof_message)
- token = self.tokens[pos]
- negate = not negate
- pos += 1
- if not lookahead:
- self.pos = pos
- return token, negate
-
- def at_end(self):
- return self.pos >= self.len
-
- def create_var(self, value):
- return TestVar(value)
-
- def get_bool_var(self):
- """
- Returns either a variable by itself or a non-boolean operation (such as
- ``x == 0`` or ``x < 0``).
-
- This is needed to keep correct precedence for boolean operations (i.e.
- ``x or x == 0`` should be ``x or (x == 0)``, not ``(x or x) == 0``).
- """
- var = self.get_var()
- if not self.at_end():
- op_token = self.get_token(lookahead=True)[0]
- if isinstance(op_token, basestring) and (op_token not in
- BOOL_OPERATORS):
- op, negate = self.get_operator()
- return op(var, self.get_var(), negate=negate)
- return var
-
- def get_var(self):
- token, negate = self.get_token('Reached end of statement, still '
- 'expecting a variable.')
- if isinstance(token, basestring) and token in OPERATORS:
- raise self.error_class('Expected variable, got operator (%s).' %
- token)
- var = self.create_var(token)
- if negate:
- return Or(var, negate=True)
- return var
-
- def get_operator(self):
- token, negate = self.get_token('Reached end of statement, still '
- 'expecting an operator.')
- if not isinstance(token, basestring) or token not in OPERATORS:
- raise self.error_class('%s is not a valid operator.' % token)
- if self.at_end():
- raise self.error_class('No variable provided after "%s".' % token)
- op, true = OPERATORS[token]
- if not true:
- negate = not negate
- return op, negate
-
-
-#==============================================================================
-# Actual templatetag code.
-#==============================================================================
-
-class TemplateIfParser(IfParser):
- error_class = template.TemplateSyntaxError
-
- def __init__(self, parser, *args, **kwargs):
- self.template_parser = parser
- return super(TemplateIfParser, self).__init__(*args, **kwargs)
-
- def create_var(self, value):
- return self.template_parser.compile_filter(value)
-
-
-class SmartIfNode(template.Node):
- def __init__(self, var, nodelist_true, nodelist_false=None):
- self.nodelist_true, self.nodelist_false = nodelist_true, nodelist_false
- self.var = var
-
- def render(self, context):
- if self.var.resolve(context):
- return self.nodelist_true.render(context)
- if self.nodelist_false:
- return self.nodelist_false.render(context)
- return ''
-
- def __repr__(self):
- return "<Smart If node>"
-
- def __iter__(self):
- for node in self.nodelist_true:
- yield node
- if self.nodelist_false:
- for node in self.nodelist_false:
- yield node
-
- def get_nodes_by_type(self, nodetype):
- nodes = []
- if isinstance(self, nodetype):
- nodes.append(self)
- nodes.extend(self.nodelist_true.get_nodes_by_type(nodetype))
- if self.nodelist_false:
- nodes.extend(self.nodelist_false.get_nodes_by_type(nodetype))
- return nodes
-
-
-@register.tag('if')
-def smart_if(parser, token):
- """
- A smarter {% if %} tag for django templates.
-
- While retaining current Django functionality, it also handles equality,
- greater than and less than operators. Some common case examples::
-
- {% if articles|length >= 5 %}...{% endif %}
- {% if "ifnotequal tag" != "beautiful" %}...{% endif %}
-
- Arguments and operators _must_ have a space between them, so
- ``{% if 1>2 %}`` is not a valid smart if tag.
-
- All supported operators are: ``or``, ``and``, ``in``, ``=`` (or ``==``),
- ``!=``, ``>``, ``>=``, ``<`` and ``<=``.
- """
- bits = token.split_contents()[1:]
- var = TemplateIfParser(parser, bits).parse()
- nodelist_true = parser.parse(('else', 'endif'))
- token = parser.next_token()
- if token.contents == 'else':
- nodelist_false = parser.parse(('endif',))
- parser.delete_first_token()
- else:
- nodelist_false = None
- return SmartIfNode(var, nodelist_true, nodelist_false)
-
-
-if __name__ == '__main__':
- unittest.main()
+++ /dev/null
-from django import template\r
-\r
-register = template.Library()\r
-\r
-\r
-@register.inclusion_tag('users/info_small_lite.html')\r
-def user_signature_small_lite(user):\r
- return {\r
- 'name': user.username,\r
- 'url': user.get_absolute_url(),\r
- 'reputation': user.reputation,\r
- }\r
-\r
-@register.inclusion_tag('users/info_small_full.html')\r
-def user_signature_small_full(user):\r
- return {\r
- 'name': user.username,\r
- 'url': user.get_absolute_url(),\r
- 'reputation': user.reputation,\r
- 'bronze': user.bronze,\r
- 'silver': user.silver,\r
- 'gold': user.gold\r
- }\r
- pass
\ No newline at end of file
+++ /dev/null
-This directory is to contain uploaded images and other files
-must be writable by the webserver
+++ /dev/null
-import startup
-
-import os.path
-from django.conf.urls.defaults import *
-from django.contrib import admin
-from forum import views as app
-from forum.feed import RssLastestQuestionsFeed
-from forum.sitemap import QuestionsSitemap
-from django.utils.translation import ugettext as _
-import logging
-
-admin.autodiscover()
-feeds = {
- 'rss': RssLastestQuestionsFeed
-}
-sitemaps = {
- 'questions': QuestionsSitemap
-}
-
-APP_PATH = os.path.dirname(__file__)
-urlpatterns = patterns('',
- url(r'^$', app.readers.index, name='index'),
- url(r'^sitemap.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps}, name='sitemap'),
- #(r'^favicon\.ico$', 'django.views.generic.simple.redirect_to', {'url': '/media/images/favicon.ico'}),
- #(r'^favicon\.gif$', 'django.views.generic.simple.redirect_to', {'url': '/media/images/favicon.gif'}),
- (r'^favicon\.ico$', app.meta.favicon),
- url(r'^m/(?P<path>.*)$', 'django.views.static.serve',
- {'document_root': os.path.join(APP_PATH,'skins').replace('\\','/')},
- name='osqa_media',
- ),
- url(r'^%s(?P<path>.*)$' % _('upfiles/'), 'django.views.static.serve',
- {'document_root': os.path.join(APP_PATH,'upfiles').replace('\\','/')},
- name='uploaded_file',
- ),
- #url(r'^%s/$' % _('signin/'), 'django_authopenid.views.signin', name='signin'),
- url(r'^%s$' % _('about/'), app.meta.about, name='about'),
- url(r'^%s$' % _('faq/'), app.meta.faq, name='faq'),
- url(r'^%s$' % _('privacy/'), app.meta.privacy, name='privacy'),
- url(r'^%s$' % _('logout/'), app.meta.logout, name='logout'),
- url(r'^%s(?P<id>\d+)/%s$' % (_('answers/'), _('edit/')), app.writers.edit_answer, name='edit_answer'),
- url(r'^%s(?P<id>\d+)/%s$' % (_('answers/'), _('revisions/')), app.readers.answer_revisions, name='answer_revisions'),
- url(r'^%s$' % _('questions/'), app.readers.questions, name='questions'),
- url(r'^%s%s$' % (_('questions/'), _('ask/')), app.writers.ask, name='ask'),
- url(r'^%s%s$' % (_('questions/'), _('unanswered/')), app.readers.unanswered, name='unanswered'),
- url(r'^%s(?P<id>\d+)/%s$' % (_('questions/'), _('edit/')), app.writers.edit_question, name='edit_question'),
- url(r'^%s(?P<id>\d+)/%s$' % (_('questions/'), _('close/')), app.commands.close, name='close'),
- url(r'^%s(?P<id>\d+)/%s$' % (_('questions/'), _('reopen/')), app.commands.reopen, name='reopen'),
- url(r'^%s(?P<id>\d+)/%s$' % (_('questions/'), _('answer/')), app.writers.answer, name='answer'),
-
- url(r'^%s(?P<post_type>[a-z]+)/(?P<id>\d+)/(?P<vote_type>[a-z]+)/' % _('vote/'), app.commands.vote_post, name='vote_post'),
- url(r'^%s(?P<id>\d+)/$' % _('like_comment/'), app.commands.like_comment, name="like_comment"),
- url(r'^%s(?P<post_type>[a-z]+)/(?P<id>\d+)/' % _('comment/'), app.commands.comment, name='comment'),
- url(r'^%s(?P<id>\d+)/$' % _('delete_comment/'), app.commands.delete_comment, name="delete_comment"),
- url(r'^%s(?P<id>\d+)/$' % _('accept_answer/'), app.commands.accept_answer, name="accept_answer"),
- url(r'^%s(?P<id>\d+)/$' % _('mark_favorite/'), app.commands.mark_favorite, name="mark_favorite"),
- url(r'^%s(?P<post_type>[a-z]+)/(?P<id>\d+)/' % _('flag/'), app.commands.flag_post, name='flag_post'),
- url(r'^%s(?P<post_type>[a-z]+)/(?P<id>\d+)/' % _('delete/'), app.commands.delete_post, name='delete_post'),
- url(r'^%s(?P<id>\d+)/$' % _('subscribe/'), app.commands.subscribe, name="subscribe"),
-
- url(r'^%s(?P<id>\d+)/%s$' % (_('questions/'), _('revisions/')), app.readers.question_revisions, name='question_revisions'),
- url(r'^%s$' % _('command/'), app.commands.ajax_command, name='call_ajax'),
-
- #place general question item in the end of other operations
- url(r'^%s(?P<id>\d+)/(?P<slug>[\w-]*)$' % _('question/'), app.readers.question, name='question'),
- url(r'^%s$' % _('tags/'), app.readers.tags, name='tags'),
- url(r'^%s(?P<tag>[^/]+)/$' % _('tags/'), app.readers.tag, name='tag_questions'),
-
- url(r'^%s%s(?P<tag>[^/]+)/$' % (_('mark-tag/'),_('interesting/')), app.commands.mark_tag, \
- kwargs={'reason':'good','action':'add'}, \
- name='mark_interesting_tag'),
-
- url(r'^%s%s(?P<tag>[^/]+)/$' % (_('mark-tag/'),_('ignored/')), app.commands.mark_tag, \
- kwargs={'reason':'bad','action':'add'}, \
- name='mark_ignored_tag'),
-
- url(r'^%s(?P<tag>[^/]+)/$' % _('unmark-tag/'), app.commands.mark_tag, \
- kwargs={'action':'remove'}, \
- name='mark_ignored_tag'),
-
-
-
- url(r'^%s$' % _('users/'),app.users.users, name='users'),
- url(r'^%s(?P<id>\d+)/$' % _('moderate-user/'), app.users.moderate_user, name='moderate_user'),
- url(r'^%s(?P<id>\d+)/%s$' % (_('users/'), _('edit/')), app.users.edit_user, name='edit_user'),
- url(r'^%s(?P<id>\d+)/(?P<slug>.+)/$' % _('users/'), app.users.user, name='user_profile'),
- url(r'^%s$' % _('badges/'),app.meta.badges, name='badges'),
- url(r'^%s(?P<id>\d+)//*' % _('badges/'), app.meta.badge, name='badge'),
- url(r'^%s%s$' % (_('messages/'), _('markread/')),app.commands.read_message, name='read_message'),
- # (r'^admin/doc/' % _('admin/doc'), include('django.contrib.admindocs.urls')),
- url(r'^%s(.*)' % _('nimda/'), admin.site.root, name='osqa_admin'),
- url(r'^feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': feeds}, name='feeds'),
- url(r'^%s$' % _('upload/'), app.writers.upload, name='upload'),
- url(r'^%s$' % _('search/'), app.readers.search, name='search'),
- url(r'^%s$' % _('feedback/'), app.meta.feedback, name='feedback'),
-
- (r'^i18n/', include('django.conf.urls.i18n')),
-
- url(r'^%s%s$' % (_('account/'), _('signin/')), app.auth.signin_page, name='auth_signin'),
- url(r'^%s%s$' % (_('account/'), _('signout/')), app.auth.signout, name='user_signout'),
- url(r'^%s%s(?P<action>\w+)/$' % (_('account/'), _('signin/')), app.auth.signin_page, name='auth_action_signin'),
- url(r'^%s(?P<provider>\w+)/%s$' % (_('account/'), _('signin/')), app.auth.prepare_provider_signin, name='auth_provider_signin'),
- url(r'^%s(?P<provider>\w+)/%s$' % (_('account/'), _('done/')), app.auth.process_provider_signin, name='auth_provider_done'),
- url(r'^%s%s$' % (_('account/'), _('register/')), app.auth.external_register, name='auth_external_register'),
- url(r'^%s%s(?P<user>\d+)/(?P<code>.+)/$' % (_('account/'), _('validate/')), app.auth.validate_email, name="auth_validate_email"),
- url(r'^%s%s$' % (_('account/'), _('tempsignin/')), app.auth.request_temp_login, name="auth_request_tempsignin"),
- url(r'^%s%s(?P<user>\d+)/(?P<code>.+)/$' % (_('account/'), _('tempsignin/')), app.auth.temp_signin, name="auth_tempsignin"),
- url(r'^%s%s$' % (_('account/'), _('authsettings/')), app.auth.auth_settings, name='user_authsettings'),
- url(r'^%s%s(?P<id>\d+)/%s$' % (_('account/'), _('providers/'), _('remove/')), app.auth.remove_external_provider, name='user_remove_external_provider'),
- url(r'^%s%s%s$' % (_('account/'), _('providers/'), _('add/')), app.auth.signin_page, name='user_add_external_provider'),
-
-
- url(r'^%s$' % _('admin/'), app.admin.index, name="admin_index"),
- url(r'^%s%s$' % (_('admin/'), _('go_bootstrap/')), app.admin.go_bootstrap, name="admin_go_bootstrap"),
- url(r'^%s%s$' % (_('admin/'), _('go_defaults/')), app.admin.go_defaults, name="admin_go_defaults"),
- url(r'^%s(?P<set_name>\w+)/$' % _('admin/'), app.admin.settings_set, name="admin_set"),
-
- url(r'^feeds/rss/$', RssLastestQuestionsFeed, name="latest_questions_feed"),
-)
-
-from forum.modules import get_modules_script
-
-module_patterns = get_modules_script('urls')
-
-for pattern_file in module_patterns:
- pattern = getattr(pattern_file, 'urlpatterns', None)
- if pattern:
- urlpatterns += pattern
-
+++ /dev/null
-"""
-Lightweight session-based messaging system.
-
-Time-stamp: <2009-03-10 19:22:29 carljm __init__.py>
-
-"""
-VERSION = (0, 1, 'pre')
-
-def create_message (request, message):
- """
- Create a message in the current session.
-
- """
- assert hasattr(request, 'session'), "django-session-messages requires session middleware to be installed. Edit your MIDDLEWARE_CLASSES setting to insert 'django.contrib.sessions.middleware.SessionMiddleware'."
-
- try:
- request.session['messages'].append(message)
- except KeyError:
- request.session['messages'] = [message]
-
-def get_and_delete_messages (request, include_auth=False):
- """
- Get and delete all messages for current session.
-
- Optionally also fetches user messages from django.contrib.auth.
-
- """
- assert hasattr(request, 'session'), "django-session-messages requires session middleware to be installed. Edit your MIDDLEWARE_CLASSES setting to insert 'django.contrib.sessions.middleware.SessionMiddleware'."
-
- messages = request.session.pop('messages', [])
-
- if include_auth and request.user.is_authenticated():
- messages.extend(request.user.get_and_delete_messages())
-
- return messages
-
+++ /dev/null
-"""
-Context processor for lightweight session messages.
-
-Time-stamp: <2008-07-19 23:16:19 carljm context_processors.py>
-
-"""
-from django.utils.encoding import StrAndUnicode
-
-from forum.user_messages import get_and_delete_messages
-
-def user_messages (request):
- """
- Returns session messages for the current session.
-
- """
- messages = request.user.get_and_delete_messages()
- #if request.user.is_authenticated():
- #else:
- # messages = LazyMessages(request)
- #import inspect
- #print inspect.stack()[1]
- #print messages
- return { 'user_messages': messages }
-
-class LazyMessages (StrAndUnicode):
- """
- Lazy message container, so messages aren't actually retrieved from
- session and deleted until the template asks for them.
-
- """
- def __init__(self, request):
- self.request = request
-
- def __iter__(self):
- return iter(self.messages)
-
- def __len__(self):
- return len(self.messages)
-
- def __nonzero__(self):
- return bool(self.messages)
-
- def __unicode__(self):
- return unicode(self.messages)
-
- def __getitem__(self, *args, **kwargs):
- return self.messages.__getitem__(*args, **kwargs)
-
- def _get_messages(self):
- if hasattr(self, '_messages'):
- return self._messages
- self._messages = get_and_delete_messages(self.request)
- return self._messages
- messages = property(_get_messages)
-
+++ /dev/null
-"""Utilities for working with Django Models."""
-import itertools
-
-from django.contrib.contenttypes.models import ContentType
-
-from forum.utils.lists import flatten
-
-def fetch_model_dict(model, ids, fields=None):
- """
- Fetches a dict of model details for model instances with the given
- ids, keyed by their id.
-
- If a fields list is given, a dict of details will be retrieved for
- each model, otherwise complete model instances will be retrieved.
-
- Any fields list given shouldn't contain the primary key attribute for
- the model, as this can be determined from its Options.
- """
- if fields is None:
- return model._default_manager.in_bulk(ids)
- else:
- id_attr = model._meta.pk.attname
- return dict((obj[id_attr], obj) for obj
- in model._default_manager.filter(id__in=ids).values(
- *itertools.chain((id_attr,), fields)))
-
-def populate_foreign_key_caches(model, objects_to_populate, fields=None):
- """
- Populates caches for the given related Model in instances of objects
- which have a ForeignKey relationship to it, specified as a list of
- (object list, related attribute name list) two-tuples.
-
- If a list of field names is given, only the given fields will be
- looked up and related object caches will be populated with a dict of
- the specified fields. Otherwise, complete model instances will be
- retrieved.
- """
- # Get all related object ids for the appropriate fields
- related_object_ids = []
- for objects, attrs in objects_to_populate:
- related_object_ids.append(tuple(tuple(getattr(obj, '%s_id' % attr)
- for attr in attrs)
- for obj in objects))
- unique_ids = tuple(set(pk for pk in flatten(related_object_ids) if pk))
- related_objects = fetch_model_dict(model, unique_ids, fields)
-
- # Fill related object caches
- for (objects, attrs), related_ids in itertools.izip(objects_to_populate,
- related_object_ids):
- for obj, related_ids_for_obj in itertools.izip(objects,
- related_ids):
- for attr, related_object in itertools.izip(attrs, (related_objects.get(pk, None)
- for pk in related_ids_for_obj)):
- setattr(obj, '_%s_cache' % attr, related_object)
-
-def populate_content_object_caches(generic_related_objects, model_fields=None):
- """
- Retrieves ``ContentType`` and content objects for the given list of
- items which use a generic relation, grouping the retrieval of content
- objects by model to reduce the number of queries executed.
-
- This results in ``number_of_content_types + 1`` queries rather than
- the ``number_of_generic_reL_objects * 2`` queries you'd get by
- iterating over the list and accessing each item's object attribute.
-
- If a dict mapping model classes to field names is given, only the
- given fields will be looked up for each model specified and the
- object cache will be populated with a dict of the specified fields.
- Otherwise, complete model instances will be retrieved.
- """
- if model_fields is None:
- model_fields = {}
-
- # Group content object ids by their content type ids
- ids_by_content_type = {}
- for obj in generic_related_objects:
- ids_by_content_type.setdefault(obj.content_type_id,
- []).append(obj.object_id)
-
- # Retrieve content types and content objects in bulk
- content_types = ContentType.objects.in_bulk(ids_by_content_type.keys())
- for content_type_id, ids in ids_by_content_type.iteritems():
- model = content_types[content_type_id].model_class()
- objects[content_type_id] = fetch_model_dict(
- model, tuple(set(ids)), model_fields.get(model, None))
-
- # Set content types and content objects in the appropriate cache
- # attributes, so accessing the 'content_type' and 'object' attributes
- # on each object won't result in further database hits.
- for obj in generic_related_objects:
- obj._object_cache = objects[obj.content_type_id][obj.object_id]
- obj._content_type_cache = content_types[obj.content_type_id]
+++ /dev/null
-from django.http import HttpResponse, HttpResponseForbidden, Http404
-from django.utils import simplejson
-
-def ajax_login_required(view_func):
- def wrap(request,*args,**kwargs):
- if request.user.is_authenticated():
- return view_func(request,*args,**kwargs)
- else:
- json = simplejson.dumps({'login_required':True})
- return HttpResponseForbidden(json,mimetype='application/json')
- return wrap
-
-def ajax_method(view_func):
- def wrap(request,*args,**kwargs):
- if not request.is_ajax():
- raise Http404
- retval = view_func(request,*args,**kwargs)
- if isinstance(retval, HttpResponse):
- retval.mimetype = 'application/json'
- return retval
- else:
- json = simplejson.dumps(retval)
- return HttpResponse(json,mimetype='application/json')
- return wrap
-
+++ /dev/null
-#!/usr/bin/python2.2
-"""HTML Diff: http://www.aaronsw.com/2002/diff
-Rough code, badly documented. Send me comments and patches."""
-
-__author__ = 'Aaron Swartz <me@aaronsw.com>'
-__copyright__ = '(C) 2003 Aaron Swartz. GNU GPL 2.'
-__version__ = '0.22'
-
-import difflib, string
-
-def isTag(x): return x[0] == "<" and x[-1] == ">"
-
-def textDiff(a, b):
- """Takes in strings a and b and returns a human-readable HTML diff."""
-
- out = []
- a, b = html2list(a), html2list(b)
- s = difflib.SequenceMatcher(None, a, b)
- for e in s.get_opcodes():
- if e[0] == "replace":
- # @@ need to do something more complicated here
- # call textDiff but not for html, but for some html... ugh
- # gonna cop-out for now
- out.append('<del>'+''.join(a[e[1]:e[2]]) + '</del><ins>'+''.join(b[e[3]:e[4]])+"</ins>")
- elif e[0] == "delete":
- out.append('<del >'+ ''.join(a[e[1]:e[2]]) + "</del>")
- elif e[0] == "insert":
- out.append('<ins >'+''.join(b[e[3]:e[4]]) + "</ins>")
- elif e[0] == "equal":
- out.append(''.join(b[e[3]:e[4]]))
- else:
- raise "Um, something's broken. I didn't expect a '" + `e[0]` + "'."
- return ''.join(out)
-
-def html2list(x, b=0):
- mode = 'char'
- cur = ''
- out = []
- for c in x:
- if mode == 'tag':
- if c == '>':
- if b: cur += ']'
- else: cur += c
- out.append(cur); cur = ''; mode = 'char'
- else: cur += c
- elif mode == 'char':
- if c == '<':
- out.append(cur)
- if b: cur = '['
- else: cur = c
- mode = 'tag'
- elif c in string.whitespace: out.append(cur+c); cur = ''
- else: cur += c
- out.append(cur)
- return filter(lambda x: x is not '', out)
-
-if __name__ == '__main__':
- import sys
- try:
- a, b = sys.argv[1:3]
- except ValueError:
- print "htmldiff: highlight the differences between two html files"
- print "usage: " + sys.argv[0] + " a b"
- sys.exit(1)
- print textDiff(open(a).read(), open(b).read())
-
+++ /dev/null
-from django import forms
-import re
-from django.utils.translation import ugettext as _
-from django.utils.safestring import mark_safe
-from django.conf import settings
-from django.http import str_to_unicode
-from forum.models import User
-import urllib
-
-DEFAULT_NEXT = '/' + getattr(settings, 'FORUM_SCRIPT_ALIAS')
-def clean_next(next):
- if next is None:
- return DEFAULT_NEXT
- next = str_to_unicode(urllib.unquote(next), 'utf-8')
- next = next.strip()
- if next.startswith('/'):
- return next
- return DEFAULT_NEXT
-
-def get_next_url(request):
- return clean_next(request.REQUEST.get('next'))
-
-class StrippedNonEmptyCharField(forms.CharField):
- def clean(self,value):
- value = value.strip()
- if self.required and value == '':
- raise forms.ValidationError(_('this field is required'))
- return value
-
-class NextUrlField(forms.CharField):
- def __init__(self):
- super(NextUrlField,self).__init__(max_length = 255,widget = forms.HiddenInput(),required = False)
- def clean(self,value):
- return clean_next(value)
-
-login_form_widget_attrs = { 'class': 'required login' }
-username_re = re.compile(r'^[\w ]+$')
-
-class UserNameField(StrippedNonEmptyCharField):
- RESERVED_NAMES = (u'fuck', u'shit', u'ass', u'sex', u'add',
- u'edit', u'save', u'delete', u'manage', u'update', 'remove', 'new')
- def __init__(self,db_model=User, db_field='username', must_exist=False,skip_clean=False,label=_('choose a username'),**kw):
- self.must_exist = must_exist
- self.skip_clean = skip_clean
- self.db_model = db_model
- self.db_field = db_field
- error_messages={'required':_('user name is required'),
- 'taken':_('sorry, this name is taken, please choose another'),
- 'forbidden':_('sorry, this name is not allowed, please choose another'),
- 'missing':_('sorry, there is no user with this name'),
- 'multiple-taken':_('sorry, we have a serious error - user name is taken by several users'),
- 'invalid':_('user name can only consist of letters, empty space and underscore'),
- }
- if 'error_messages' in kw:
- error_messages.update(kw['error_messages'])
- del kw['error_messages']
- super(UserNameField,self).__init__(max_length=30,
- widget=forms.TextInput(attrs=login_form_widget_attrs),
- label=label,
- error_messages=error_messages,
- **kw
- )
-
- def clean(self,username):
- """ validate username """
- if self.skip_clean == True:
- return username
- if hasattr(self, 'user_instance') and isinstance(self.user_instance, User):
- if username == self.user_instance.username:
- return username
- try:
- username = super(UserNameField, self).clean(username)
- except forms.ValidationError:
- raise forms.ValidationError(self.error_messages['required'])
- if self.required and not username_re.search(username):
- raise forms.ValidationError(self.error_messages['invalid'])
- if username in self.RESERVED_NAMES:
- raise forms.ValidationError(self.error_messages['forbidden'])
- try:
- user = self.db_model.objects.get(
- **{'%s' % self.db_field : username}
- )
- if user:
- if self.must_exist:
- return username
- else:
- raise forms.ValidationError(self.error_messages['taken'])
- except self.db_model.DoesNotExist:
- if self.must_exist:
- raise forms.ValidationError(self.error_messages['missing'])
- else:
- return username
- except self.db_model.MultipleObjectsReturned:
- raise forms.ValidationError(self.error_messages['multiple-taken'])
-
-class UserEmailField(forms.EmailField):
- def __init__(self,skip_clean=False,**kw):
- self.skip_clean = skip_clean
- super(UserEmailField,self).__init__(widget=forms.TextInput(attrs=dict(login_form_widget_attrs,
- maxlength=200)), label=mark_safe(_('your email address')),
- error_messages={'required':_('email address is required'),
- 'invalid':_('please enter a valid email address'),
- 'taken':_('this email is already used by someone else, please choose another'),
- },
- **kw
- )
-
- def clean(self,email):
- """ validate if email exist in database
- from legacy register
- return: raise error if it exist """
- email = super(UserEmailField,self).clean(email.strip())
- if self.skip_clean:
- return email
- if settings.EMAIL_UNIQUE == True:
- try:
- user = User.objects.get(email = email)
- raise forms.ValidationError(self.error_messsages['taken'])
- except User.DoesNotExist:
- return email
- except User.MultipleObjectsReturned:
- raise forms.ValidationError(self.error_messages['taken'])
- else:
- return email
-
-class SetPasswordForm(forms.Form):
- password1 = forms.CharField(widget=forms.PasswordInput(attrs=login_form_widget_attrs),
- label=_('choose password'),
- error_messages={'required':_('password is required')},
- )
- password2 = forms.CharField(widget=forms.PasswordInput(attrs=login_form_widget_attrs),
- label=mark_safe(_('retype password')),
- error_messages={'required':_('please, retype your password'),
- 'nomatch':_('sorry, entered passwords did not match, please try again')},
- )
-
- def __init__(self, data=None, user=None, *args, **kwargs):
- super(SetPasswordForm, self).__init__(data, *args, **kwargs)
-
- def clean_password2(self):
- """
- Validates that the two password inputs match.
-
- """
- if 'password1' in self.cleaned_data:
- if self.cleaned_data['password1'] == self.cleaned_data['password2']:
- self.password = self.cleaned_data['password2']
- self.cleaned_data['password'] = self.cleaned_data['password2']
- return self.cleaned_data['password2']
- else:
- del self.cleaned_data['password2']
- raise forms.ValidationError(self.fields['password2'].error_messages['nomatch'])
- else:
- return self.cleaned_data['password2']
-
+++ /dev/null
-"""Utilities for working with HTML."""
-import html5lib
-from html5lib import sanitizer, serializer, tokenizer, treebuilders, treewalkers
-
-class HTMLSanitizerMixin(sanitizer.HTMLSanitizerMixin):
- acceptable_elements = ('a', 'abbr', 'acronym', 'address', 'b', 'big',
- 'blockquote', 'br', 'caption', 'center', 'cite', 'code', 'col',
- 'colgroup', 'dd', 'del', 'dfn', 'dir', 'div', 'dl', 'dt', 'em', 'font',
- 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'img', 'ins', 'kbd',
- 'li', 'ol', 'p', 'pre', 'q', 's', 'samp', 'small', 'span', 'strike',
- 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead',
- 'tr', 'tt', 'u', 'ul', 'var')
-
- acceptable_attributes = ('abbr', 'align', 'alt', 'axis', 'border',
- 'cellpadding', 'cellspacing', 'char', 'charoff', 'charset', 'cite',
- 'cols', 'colspan', 'datetime', 'dir', 'frame', 'headers', 'height',
- 'href', 'hreflang', 'hspace', 'lang', 'longdesc', 'name', 'nohref',
- 'noshade', 'nowrap', 'rel', 'rev', 'rows', 'rowspan', 'rules', 'scope',
- 'span', 'src', 'start', 'summary', 'title', 'type', 'valign', 'vspace',
- 'width')
-
- allowed_elements = acceptable_elements
- allowed_attributes = acceptable_attributes
- allowed_css_properties = ()
- allowed_css_keywords = ()
- allowed_svg_properties = ()
-
-class HTMLSanitizer(tokenizer.HTMLTokenizer, HTMLSanitizerMixin):
- def __init__(self, stream, encoding=None, parseMeta=True, useChardet=True,
- lowercaseElementName=True, lowercaseAttrName=True):
- tokenizer.HTMLTokenizer.__init__(self, stream, encoding, parseMeta,
- useChardet, lowercaseElementName,
- lowercaseAttrName)
-
- def __iter__(self):
- for token in tokenizer.HTMLTokenizer.__iter__(self):
- token = self.sanitize_token(token)
- if token:
- yield token
-
-def sanitize_html(html):
- """Sanitizes an HTML fragment."""
- p = html5lib.HTMLParser(tokenizer=HTMLSanitizer,
- tree=treebuilders.getTreeBuilder("dom"))
- dom_tree = p.parseFragment(html)
- walker = treewalkers.getTreeWalker("dom")
- stream = walker(dom_tree)
- s = serializer.HTMLSerializer(omit_optional_tags=False,
- quote_attr_values=True)
- output_generator = s.serialize(stream)
- return u''.join(output_generator)
+++ /dev/null
-# Copyright (c) 2001 Chris Withers\r
-#\r
-# This Software is released under the MIT License:\r
-# http://www.opensource.org/licenses/mit-license.html\r
-# See license.txt for more details.\r
-#\r
-# $Id: html2text.py,v 1.7 2002/12/17 16:56:17 fresh Exp $\r
-\r
-import sgmllib\r
-from string import lower, replace, split, join\r
-\r
-class HTML2Text(sgmllib.SGMLParser):\r
-\r
- from htmlentitydefs import entitydefs # replace entitydefs from sgmllib\r
-\r
- def __init__(self, ignore_tags=(), indent_width=4, page_width=80):\r
- sgmllib.SGMLParser.__init__(self)\r
- self.result = ""\r
- self.indent = 0\r
- self.ol_number = 0\r
- self.page_width=page_width\r
- self.inde_width=indent_width\r
- self.lines=[]\r
- self.line=[]\r
- self.ignore_tags = ignore_tags\r
-\r
- def add_text(self,text):\r
- # convert text into words\r
- words = split(replace(text,'\n',' '))\r
- self.line.extend(words)\r
-\r
- def add_break(self):\r
- self.lines.append((self.indent,self.line))\r
- self.line=[]\r
-\r
- def generate(self):\r
- # join lines with indents\r
- indent_width = self.inde_width\r
- page_width = self.page_width\r
- out_paras=[]\r
- for indent,line in self.lines+[(self.indent,self.line)]:\r
-\r
- i=indent*indent_width\r
- indent_string = i*' '\r
- line_width = page_width-i\r
-\r
- out_para=''\r
- out_line=[]\r
- len_out_line=0\r
- for word in line:\r
- len_word = len(word)\r
- if len_out_line+len_word<line_width:\r
- out_line.append(word)\r
- len_out_line = len_out_line + len_word\r
- else:\r
- out_para = out_para + indent_string + join(out_line, ' ') + '\n'\r
- out_line=[word]\r
- len_out_line=len_word\r
-\r
- out_para = out_para + indent_string + join(out_line, ' ')\r
- out_paras.append(out_para)\r
-\r
- self.result = join(out_paras,'\n\n')\r
-\r
-\r
- def mod_indent(self,i):\r
- self.indent = self.indent + i\r
- if self.indent < 0:\r
- self.indent = 0\r
-\r
- def handle_data(self, data):\r
- if data:\r
- self.add_text(data)\r
-\r
- def unknown_starttag(self, tag, attrs):\r
- """ Convert HTML to something meaningful in plain text """\r
- tag = lower(tag)\r
-\r
- if tag not in self.ignore_tags:\r
- if tag[0]=='h' or tag in ['br','pre','p','hr']:\r
- # insert a blank line\r
- self.add_break()\r
-\r
- elif tag =='img':\r
- # newline, text, newline\r
- src = ''\r
-\r
- for k, v in attrs:\r
- if lower(k) == 'src':\r
- src = v\r
-\r
- self.add_break()\r
- self.add_text('Image: ' + src)\r
-\r
- elif tag =='li':\r
- self.add_break()\r
- if self.ol_number:\r
- # num - text\r
- self.add_text(str(self.ol_number) + ' - ')\r
- self.ol_number = self.ol_number + 1\r
- else:\r
- # - text\r
- self.add_text('- ')\r
-\r
- elif tag in ['dd','dt']:\r
- self.add_break()\r
- # increase indent\r
- self.mod_indent(+1)\r
-\r
- elif tag in ['ul','dl','ol']:\r
- # blank line\r
- # increase indent\r
- self.mod_indent(+1)\r
- if tag=='ol':\r
- self.ol_number = 1\r
-\r
- def unknown_endtag(self, tag):\r
- """ Convert HTML to something meaningful in plain text """\r
- tag = lower(tag)\r
-\r
- if tag not in self.ignore_tags:\r
- if tag[0]=='h' or tag in ['pre']:\r
- # newline, text, newline\r
- self.add_break()\r
-\r
- elif tag =='li':\r
- self.add_break()\r
-\r
- elif tag in ['dd','dt']:\r
- self.add_break()\r
- # descrease indent\r
- self.mod_indent(-1)\r
-\r
- elif tag in ['ul','dl','ol']:\r
- # blank line\r
- self.add_break()\r
- # decrease indent\r
- self.mod_indent(-1)\r
- self.ol_number = 0\r
-\r
+++ /dev/null
-"""Utilities for working with lists and sequences."""
-
-def flatten(x):
- """
- Returns a single, flat list which contains all elements retrieved
- from the sequence and all recursively contained sub-sequences
- (iterables).
-
- Examples:
- >>> [1, 2, [3, 4], (5, 6)]
- [1, 2, [3, 4], (5, 6)]
-
- From http://kogs-www.informatik.uni-hamburg.de/~meine/python_tricks
- """
- result = []
- for el in x:
- if hasattr(el, '__iter__') and not isinstance(el, basestring):
- result.extend(flatten(el))
- else:
- result.append(el)
- return result
-
-def batch_size(items, size):
- """
- Retrieves items in batches of the given size.
-
- >>> l = range(1, 11)
- >>> batch_size(l, 3)
- [[1, 2, 3], [4, 5, 6], [7, 8, 9], [10]]
- >>> batch_size(l, 5)
- [[1, 2, 3, 4, 5], [6, 7, 8, 9, 10]]
- """
- return [items[i:i+size] for i in xrange(0, len(items), size)]
-
-def batches(items, number):
- """
- Retrieves items in the given number of batches.
-
- >>> l = range(1, 11)
- >>> batches(l, 1)
- [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]]
- >>> batches(l, 2)
- [[1, 2, 3, 4, 5], [6, 7, 8, 9, 10]]
- >>> batches(l, 3)
- [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10]]
- >>> batches(l, 4)
- [[1, 2, 3], [4, 5, 6], [7, 8, 9], [10]]
- >>> batches(l, 5)
- [[1, 2], [3, 4], [5, 6], [7, 8], [9, 10]]
-
- Initial batches will contain as many items as possible in cases where
- there are not enough items to be distributed evenly.
-
- >>> batches(l, 6)
- [[1, 2], [3, 4], [5, 6], [7, 8], [9], [10]]
- >>> batches(l, 7)
- [[1, 2], [3, 4], [5, 6], [7], [8], [9], [10]]
- >>> batches(l, 8)
- [[1, 2], [3, 4], [5], [6], [7], [8], [9], [10]]
- >>> batches(l, 9)
- [[1, 2], [3], [4], [5], [6], [7], [8], [9], [10]]
- >>> batches(l, 10)
- [[1], [2], [3], [4], [5], [6], [7], [8], [9], [10]]
-
- If there are more batches than items, empty batches will be appended
- to the batch list.
-
- >>> batches(l, 11)
- [[1], [2], [3], [4], [5], [6], [7], [8], [9], [10], []]
- >>> batches(l, 12)
- [[1], [2], [3], [4], [5], [6], [7], [8], [9], [10], [], []]
- """
- div, mod= divmod(len(items), number)
- if div > 1:
- if mod:
- div += 1
- return batch_size(items, div)
- else:
- if not div:
- return [[item] for item in items] + [[]] * (number - mod)
- elif div == 1 and not mod:
- return [[item] for item in items]
- else:
- # mod now tells you how many lists of 2 you can fit in
- return ([items[i*2:(i*2)+2] for i in xrange(0, mod)] +
- [[item] for item in items[mod*2:]])
+++ /dev/null
-import email\r
-import socket\r
-import os\r
-\r
-from email.MIMEMultipart import MIMEMultipart\r
-from email.MIMEText import MIMEText\r
-from email.MIMEImage import MIMEImage\r
-\r
-from django.core.mail import DNS_NAME\r
-from smtplib import SMTP\r
-import email.Charset\r
-from django.conf import settings\r
-from django.template import loader, Context, Template\r
-from forum.utils.html import sanitize_html\r
-from forum.context import application_settings\r
-from forum.utils.html2text import HTML2Text\r
-from threading import Thread\r
-\r
-def send_msg_list(msgs, sender=None):\r
- if len(msgs):\r
- connection = SMTP(str(settings.EMAIL_HOST), str(settings.EMAIL_PORT),\r
- local_hostname=DNS_NAME.get_fqdn())\r
-\r
- try:\r
- if (bool(settings.EMAIL_USE_TLS)):\r
- connection.ehlo()\r
- connection.starttls()\r
- connection.ehlo()\r
-\r
- if settings.EMAIL_HOST_USER and settings.EMAIL_HOST_PASSWORD:\r
- connection.login(str(settings.EMAIL_HOST_USER), str(settings.EMAIL_HOST_PASSWORD))\r
-\r
- if sender is None:\r
- sender = str(settings.DEFAULT_FROM_EMAIL)\r
-\r
- for email, msg in msgs:\r
- try:\r
- connection.sendmail(sender, [email], msg)\r
- except Exception, e:\r
- pass\r
- try:\r
- connection.quit()\r
- except socket.sslerror:\r
- connection.close()\r
- except Exception, e:\r
- pass\r
-\r
-def html2text(s, ignore_tags=(), indent_width=4, page_width=80):\r
- ignore_tags = [t.lower() for t in ignore_tags]\r
- parser = HTML2Text(ignore_tags, indent_width, page_width)\r
- parser.feed(s)\r
- parser.close()\r
- parser.generate()\r
- return parser.result\r
-\r
-def named(data):\r
- if isinstance(data, (tuple, list)) and len(data) == 2:\r
- return '%s <%s>' % data\r
-\r
- return str(data)\r
-\r
-def create_msg(subject, sender, recipient, html, text, images):\r
- msgRoot = MIMEMultipart('related')\r
- msgRoot['Subject'] = subject\r
- msgRoot['From'] = named(sender)\r
- msgRoot['To'] = named(recipient)\r
- msgRoot.preamble = 'This is a multi-part message from %s.' % str(settings.APP_SHORT_NAME)\r
-\r
- msgAlternative = MIMEMultipart('alternative')\r
- msgRoot.attach(msgAlternative)\r
-\r
- msgAlternative.attach(MIMEText(text, _charset='utf-8'))\r
- msgAlternative.attach(MIMEText(html, 'html', _charset='utf-8'))\r
-\r
- for img in images:\r
- try:\r
- fp = open(img[0], 'rb')\r
- msgImage = MIMEImage(fp.read())\r
- fp.close()\r
- msgImage.add_header('Content-ID', '<'+img[1]+'>')\r
- msgRoot.attach(msgImage)\r
- except:\r
- pass\r
-\r
- return msgRoot.as_string()\r
-\r
-def send_email(subject, recipients, template, context={}, sender=None, images=[], threaded=True):\r
- if sender is None:\r
- sender = (str(settings.APP_SHORT_NAME), str(settings.DEFAULT_FROM_EMAIL))\r
-\r
- images.append((os.path.join(str(settings.UPFILES_FOLDER), os.path.basename(str(settings.APP_LOGO))), 'logo'))\r
-\r
- context.update(application_settings(None))\r
- html_body = loader.get_template(template).render(Context(context))\r
- txt_body = html2text(html_body)\r
-\r
- if isinstance(recipients, str):\r
- recipients = [recipients]\r
-\r
- msgs = []\r
-\r
- for recipient in recipients:\r
- if isinstance(recipient, str):\r
- recipient_data = ('recipient', recipient)\r
- recipient_context = None\r
- elif isinstance(recipient, (list, tuple)) and len(recipient) == 2:\r
- name, email = recipient\r
- recipient_data = (name, email)\r
- recipient_context = None\r
- elif isinstance(recipient, (list, tuple)) and len(recipient) == 3:\r
- name, email, recipient_context = recipient\r
- recipient_data = (name, email)\r
- else:\r
- raise Exception('bad argument for recipients')\r
-\r
- if recipient_context is not None:\r
- recipient_context = Context(recipient_context)\r
- msg_html = Template(html_body).render(recipient_context)\r
- msg_txt = Template(txt_body).render(recipient_context)\r
- else:\r
- msg_html = html_body\r
- msg_txt = txt_body\r
-\r
- msg = create_msg(subject, sender, recipient_data, msg_html, msg_txt, images)\r
- msgs.append((email, msg))\r
-\r
- if threaded:\r
- thread = Thread(target=send_msg_list, args=[msgs])\r
- thread.setDaemon(True)\r
- thread.start()\r
- else:\r
- send_msg_list(msgs)
\ No newline at end of file
+++ /dev/null
-# odict.py
-# An Ordered Dictionary object
-# Copyright (C) 2005 Nicola Larosa, Michael Foord
-# E-mail: nico AT tekNico DOT net, fuzzyman AT voidspace DOT org DOT uk
-
-# This software is licensed under the terms of the BSD license.
-# http://www.voidspace.org.uk/python/license.shtml
-# Basically you're free to copy, modify, distribute and relicense it,
-# So long as you keep a copy of the license with it.
-
-# Documentation at http://www.voidspace.org.uk/python/odict.html
-# For information about bugfixes, updates and support, please join the
-# Pythonutils mailing list:
-# http://groups.google.com/group/pythonutils/
-# Comments, suggestions and bug reports welcome.
-
-"""A dict that keeps keys in insertion order"""
-from __future__ import generators
-
-__author__ = ('Nicola Larosa <nico-NoSp@m-tekNico.net>,'
- 'Michael Foord <fuzzyman AT voidspace DOT org DOT uk>')
-
-__docformat__ = "restructuredtext en"
-
-__revision__ = '$Id: odict.py 129 2005-09-12 18:15:28Z teknico $'
-
-__version__ = '0.2.2'
-
-__all__ = ['OrderedDict', 'SequenceOrderedDict']
-
-import sys
-INTP_VER = sys.version_info[:2]
-if INTP_VER < (2, 2):
- raise RuntimeError("Python v.2.2 or later required")
-
-import types, warnings
-
-class OrderedDict(dict):
- """
- A class of dictionary that keeps the insertion order of keys.
-
- All appropriate methods return keys, items, or values in an ordered way.
-
- All normal dictionary methods are available. Update and comparison is
- restricted to other OrderedDict objects.
-
- Various sequence methods are available, including the ability to explicitly
- mutate the key ordering.
-
- __contains__ tests:
-
- >>> d = OrderedDict(((1, 3),))
- >>> 1 in d
- 1
- >>> 4 in d
- 0
-
- __getitem__ tests:
-
- >>> OrderedDict(((1, 3), (3, 2), (2, 1)))[2]
- 1
- >>> OrderedDict(((1, 3), (3, 2), (2, 1)))[4]
- Traceback (most recent call last):
- KeyError: 4
-
- __len__ tests:
-
- >>> len(OrderedDict())
- 0
- >>> len(OrderedDict(((1, 3), (3, 2), (2, 1))))
- 3
-
- get tests:
-
- >>> d = OrderedDict(((1, 3), (3, 2), (2, 1)))
- >>> d.get(1)
- 3
- >>> d.get(4) is None
- 1
- >>> d.get(4, 5)
- 5
- >>> d
- OrderedDict([(1, 3), (3, 2), (2, 1)])
-
- has_key tests:
-
- >>> d = OrderedDict(((1, 3), (3, 2), (2, 1)))
- >>> d.has_key(1)
- 1
- >>> d.has_key(4)
- 0
- """
-
- def __init__(self, init_val=(), strict=False):
- """
- Create a new ordered dictionary. Cannot init from a normal dict,
- nor from kwargs, since items order is undefined in those cases.
-
- If the ``strict`` keyword argument is ``True`` (``False`` is the
- default) then when doing slice assignment - the ``OrderedDict`` you are
- assigning from *must not* contain any keys in the remaining dict.
-
- >>> OrderedDict()
- OrderedDict([])
- >>> OrderedDict({1: 1})
- Traceback (most recent call last):
- TypeError: undefined order, cannot get items from dict
- >>> OrderedDict({1: 1}.items())
- OrderedDict([(1, 1)])
- >>> d = OrderedDict(((1, 3), (3, 2), (2, 1)))
- >>> d
- OrderedDict([(1, 3), (3, 2), (2, 1)])
- >>> OrderedDict(d)
- OrderedDict([(1, 3), (3, 2), (2, 1)])
- """
- self.strict = strict
- dict.__init__(self)
- if isinstance(init_val, OrderedDict):
- self._sequence = init_val.keys()
- dict.update(self, init_val)
- elif isinstance(init_val, dict):
- # we lose compatibility with other ordered dict types this way
- raise TypeError('undefined order, cannot get items from dict')
- else:
- self._sequence = []
- self.update(init_val)
-
-### Special methods ###
-
- def __delitem__(self, key):
- """
- >>> d = OrderedDict(((1, 3), (3, 2), (2, 1)))
- >>> del d[3]
- >>> d
- OrderedDict([(1, 3), (2, 1)])
- >>> del d[3]
- Traceback (most recent call last):
- KeyError: 3
- >>> d[3] = 2
- >>> d
- OrderedDict([(1, 3), (2, 1), (3, 2)])
- >>> del d[0:1]
- >>> d
- OrderedDict([(2, 1), (3, 2)])
- """
- if isinstance(key, types.SliceType):
- # FIXME: efficiency?
- keys = self._sequence[key]
- for entry in keys:
- dict.__delitem__(self, entry)
- del self._sequence[key]
- else:
- # do the dict.__delitem__ *first* as it raises
- # the more appropriate error
- dict.__delitem__(self, key)
- self._sequence.remove(key)
-
- def __eq__(self, other):
- """
- >>> d = OrderedDict(((1, 3), (3, 2), (2, 1)))
- >>> d == OrderedDict(d)
- True
- >>> d == OrderedDict(((1, 3), (2, 1), (3, 2)))
- False
- >>> d == OrderedDict(((1, 0), (3, 2), (2, 1)))
- False
- >>> d == OrderedDict(((0, 3), (3, 2), (2, 1)))
- False
- >>> d == dict(d)
- False
- >>> d == False
- False
- """
- if isinstance(other, OrderedDict):
- # FIXME: efficiency?
- # Generate both item lists for each compare
- return (self.items() == other.items())
- else:
- return False
-
- def __lt__(self, other):
- """
- >>> d = OrderedDict(((1, 3), (3, 2), (2, 1)))
- >>> c = OrderedDict(((0, 3), (3, 2), (2, 1)))
- >>> c < d
- True
- >>> d < c
- False
- >>> d < dict(c)
- Traceback (most recent call last):
- TypeError: Can only compare with other OrderedDicts
- """
- if not isinstance(other, OrderedDict):
- raise TypeError('Can only compare with other OrderedDicts')
- # FIXME: efficiency?
- # Generate both item lists for each compare
- return (self.items() < other.items())
-
- def __le__(self, other):
- """
- >>> d = OrderedDict(((1, 3), (3, 2), (2, 1)))
- >>> c = OrderedDict(((0, 3), (3, 2), (2, 1)))
- >>> e = OrderedDict(d)
- >>> c <= d
- True
- >>> d <= c
- False
- >>> d <= dict(c)
- Traceback (most recent call last):
- TypeError: Can only compare with other OrderedDicts
- >>> d <= e
- True
- """
- if not isinstance(other, OrderedDict):
- raise TypeError('Can only compare with other OrderedDicts')
- # FIXME: efficiency?
- # Generate both item lists for each compare
- return (self.items() <= other.items())
-
- def __ne__(self, other):
- """
- >>> d = OrderedDict(((1, 3), (3, 2), (2, 1)))
- >>> d != OrderedDict(d)
- False
- >>> d != OrderedDict(((1, 3), (2, 1), (3, 2)))
- True
- >>> d != OrderedDict(((1, 0), (3, 2), (2, 1)))
- True
- >>> d == OrderedDict(((0, 3), (3, 2), (2, 1)))
- False
- >>> d != dict(d)
- True
- >>> d != False
- True
- """
- if isinstance(other, OrderedDict):
- # FIXME: efficiency?
- # Generate both item lists for each compare
- return not (self.items() == other.items())
- else:
- return True
-
- def __gt__(self, other):
- """
- >>> d = OrderedDict(((1, 3), (3, 2), (2, 1)))
- >>> c = OrderedDict(((0, 3), (3, 2), (2, 1)))
- >>> d > c
- True
- >>> c > d
- False
- >>> d > dict(c)
- Traceback (most recent call last):
- TypeError: Can only compare with other OrderedDicts
- """
- if not isinstance(other, OrderedDict):
- raise TypeError('Can only compare with other OrderedDicts')
- # FIXME: efficiency?
- # Generate both item lists for each compare
- return (self.items() > other.items())
-
- def __ge__(self, other):
- """
- >>> d = OrderedDict(((1, 3), (3, 2), (2, 1)))
- >>> c = OrderedDict(((0, 3), (3, 2), (2, 1)))
- >>> e = OrderedDict(d)
- >>> c >= d
- False
- >>> d >= c
- True
- >>> d >= dict(c)
- Traceback (most recent call last):
- TypeError: Can only compare with other OrderedDicts
- >>> e >= d
- True
- """
- if not isinstance(other, OrderedDict):
- raise TypeError('Can only compare with other OrderedDicts')
- # FIXME: efficiency?
- # Generate both item lists for each compare
- return (self.items() >= other.items())
-
- def __repr__(self):
- """
- Used for __repr__ and __str__
-
- >>> r1 = repr(OrderedDict((('a', 'b'), ('c', 'd'), ('e', 'f'))))
- >>> r1
- "OrderedDict([('a', 'b'), ('c', 'd'), ('e', 'f')])"
- >>> r2 = repr(OrderedDict((('a', 'b'), ('e', 'f'), ('c', 'd'))))
- >>> r2
- "OrderedDict([('a', 'b'), ('e', 'f'), ('c', 'd')])"
- >>> r1 == str(OrderedDict((('a', 'b'), ('c', 'd'), ('e', 'f'))))
- True
- >>> r2 == str(OrderedDict((('a', 'b'), ('e', 'f'), ('c', 'd'))))
- True
- """
- return '%s([%s])' % (self.__class__.__name__, ', '.join(
- ['(%r, %r)' % (key, self[key]) for key in self._sequence]))
-
- def __setitem__(self, key, val):
- """
- Allows slice assignment, so long as the slice is an OrderedDict
- >>> d = OrderedDict()
- >>> d['a'] = 'b'
- >>> d['b'] = 'a'
- >>> d[3] = 12
- >>> d
- OrderedDict([('a', 'b'), ('b', 'a'), (3, 12)])
- >>> d[:] = OrderedDict(((1, 2), (2, 3), (3, 4)))
- >>> d
- OrderedDict([(1, 2), (2, 3), (3, 4)])
- >>> d[::2] = OrderedDict(((7, 8), (9, 10)))
- >>> d
- OrderedDict([(7, 8), (2, 3), (9, 10)])
- >>> d = OrderedDict(((0, 1), (1, 2), (2, 3), (3, 4)))
- >>> d[1:3] = OrderedDict(((1, 2), (5, 6), (7, 8)))
- >>> d
- OrderedDict([(0, 1), (1, 2), (5, 6), (7, 8), (3, 4)])
- >>> d = OrderedDict(((0, 1), (1, 2), (2, 3), (3, 4)), strict=True)
- >>> d[1:3] = OrderedDict(((1, 2), (5, 6), (7, 8)))
- >>> d
- OrderedDict([(0, 1), (1, 2), (5, 6), (7, 8), (3, 4)])
-
- >>> a = OrderedDict(((0, 1), (1, 2), (2, 3)), strict=True)
- >>> a[3] = 4
- >>> a
- OrderedDict([(0, 1), (1, 2), (2, 3), (3, 4)])
- >>> a[::1] = OrderedDict([(0, 1), (1, 2), (2, 3), (3, 4)])
- >>> a
- OrderedDict([(0, 1), (1, 2), (2, 3), (3, 4)])
- >>> a[:2] = OrderedDict([(0, 1), (1, 2), (2, 3), (3, 4), (4, 5)])
- Traceback (most recent call last):
- ValueError: slice assignment must be from unique keys
- >>> a = OrderedDict(((0, 1), (1, 2), (2, 3)))
- >>> a[3] = 4
- >>> a
- OrderedDict([(0, 1), (1, 2), (2, 3), (3, 4)])
- >>> a[::1] = OrderedDict([(0, 1), (1, 2), (2, 3), (3, 4)])
- >>> a
- OrderedDict([(0, 1), (1, 2), (2, 3), (3, 4)])
- >>> a[:2] = OrderedDict([(0, 1), (1, 2), (2, 3), (3, 4)])
- >>> a
- OrderedDict([(0, 1), (1, 2), (2, 3), (3, 4)])
- >>> a[::-1] = OrderedDict([(0, 1), (1, 2), (2, 3), (3, 4)])
- >>> a
- OrderedDict([(3, 4), (2, 3), (1, 2), (0, 1)])
-
- >>> d = OrderedDict([(0, 1), (1, 2), (2, 3), (3, 4)])
- >>> d[:1] = 3
- Traceback (most recent call last):
- TypeError: slice assignment requires an OrderedDict
-
- >>> d = OrderedDict([(0, 1), (1, 2), (2, 3), (3, 4)])
- >>> d[:1] = OrderedDict([(9, 8)])
- >>> d
- OrderedDict([(9, 8), (1, 2), (2, 3), (3, 4)])
- """
- if isinstance(key, types.SliceType):
- if not isinstance(val, OrderedDict):
- # FIXME: allow a list of tuples?
- raise TypeError('slice assignment requires an OrderedDict')
- keys = self._sequence[key]
- # NOTE: Could use ``range(*key.indices(len(self._sequence)))``
- indexes = range(len(self._sequence))[key]
- if key.step is None:
- # NOTE: new slice may not be the same size as the one being
- # overwritten !
- # NOTE: What is the algorithm for an impossible slice?
- # e.g. d[5:3]
- pos = key.start or 0
- del self[key]
- newkeys = val.keys()
- for k in newkeys:
- if k in self:
- if self.strict:
- raise ValueError('slice assignment must be from '
- 'unique keys')
- else:
- # NOTE: This removes duplicate keys *first*
- # so start position might have changed?
- del self[k]
- self._sequence = (self._sequence[:pos] + newkeys +
- self._sequence[pos:])
- dict.update(self, val)
- else:
- # extended slice - length of new slice must be the same
- # as the one being replaced
- if len(keys) != len(val):
- raise ValueError('attempt to assign sequence of size %s '
- 'to extended slice of size %s' % (len(val), len(keys)))
- # FIXME: efficiency?
- del self[key]
- item_list = zip(indexes, val.items())
- # smallest indexes first - higher indexes not guaranteed to
- # exist
- item_list.sort()
- for pos, (newkey, newval) in item_list:
- if self.strict and newkey in self:
- raise ValueError('slice assignment must be from unique'
- ' keys')
- self.insert(pos, newkey, newval)
- else:
- if key not in self:
- self._sequence.append(key)
- dict.__setitem__(self, key, val)
-
- def __getitem__(self, key):
- """
- Allows slicing. Returns an OrderedDict if you slice.
- >>> b = OrderedDict([(7, 0), (6, 1), (5, 2), (4, 3), (3, 4), (2, 5), (1, 6)])
- >>> b[::-1]
- OrderedDict([(1, 6), (2, 5), (3, 4), (4, 3), (5, 2), (6, 1), (7, 0)])
- >>> b[2:5]
- OrderedDict([(5, 2), (4, 3), (3, 4)])
- >>> type(b[2:4])
- <class '__main__.OrderedDict'>
- """
- if isinstance(key, types.SliceType):
- # FIXME: does this raise the error we want?
- keys = self._sequence[key]
- # FIXME: efficiency?
- return OrderedDict([(entry, self[entry]) for entry in keys])
- else:
- return dict.__getitem__(self, key)
-
- __str__ = __repr__
-
- def __setattr__(self, name, value):
- """
- Implemented so that accesses to ``sequence`` raise a warning and are
- diverted to the new ``setkeys`` method.
- """
- if name == 'sequence':
- warnings.warn('Use of the sequence attribute is deprecated.'
- ' Use the keys method instead.', DeprecationWarning)
- # NOTE: doesn't return anything
- self.setkeys(value)
- else:
- # FIXME: do we want to allow arbitrary setting of attributes?
- # Or do we want to manage it?
- object.__setattr__(self, name, value)
-
- def __getattr__(self, name):
- """
- Implemented so that access to ``sequence`` raises a warning.
-
- >>> d = OrderedDict()
- >>> d.sequence
- []
- """
- if name == 'sequence':
- warnings.warn('Use of the sequence attribute is deprecated.'
- ' Use the keys method instead.', DeprecationWarning)
- # NOTE: Still (currently) returns a direct reference. Need to
- # because code that uses sequence will expect to be able to
- # mutate it in place.
- return self._sequence
- else:
- # raise the appropriate error
- raise AttributeError("OrderedDict has no '%s' attribute" % name)
-
- def __deepcopy__(self, memo):
- """
- To allow deepcopy to work with OrderedDict.
-
- >>> from copy import deepcopy
- >>> a = OrderedDict([(1, 1), (2, 2), (3, 3)])
- >>> a['test'] = {}
- >>> b = deepcopy(a)
- >>> b == a
- True
- >>> b is a
- False
- >>> a['test'] is b['test']
- False
- """
- from copy import deepcopy
- return self.__class__(deepcopy(self.items(), memo), self.strict)
-
-
-### Read-only methods ###
-
- def copy(self):
- """
- >>> OrderedDict(((1, 3), (3, 2), (2, 1))).copy()
- OrderedDict([(1, 3), (3, 2), (2, 1)])
- """
- return OrderedDict(self)
-
- def items(self):
- """
- ``items`` returns a list of tuples representing all the
- ``(key, value)`` pairs in the dictionary.
-
- >>> d = OrderedDict(((1, 3), (3, 2), (2, 1)))
- >>> d.items()
- [(1, 3), (3, 2), (2, 1)]
- >>> d.clear()
- >>> d.items()
- []
- """
- return zip(self._sequence, self.values())
-
- def keys(self):
- """
- Return a list of keys in the ``OrderedDict``.
-
- >>> d = OrderedDict(((1, 3), (3, 2), (2, 1)))
- >>> d.keys()
- [1, 3, 2]
- """
- return self._sequence[:]
-
- def values(self, values=None):
- """
- Return a list of all the values in the OrderedDict.
-
- Optionally you can pass in a list of values, which will replace the
- current list. The value list must be the same len as the OrderedDict.
-
- >>> d = OrderedDict(((1, 3), (3, 2), (2, 1)))
- >>> d.values()
- [3, 2, 1]
- """
- return [self[key] for key in self._sequence]
-
- def iteritems(self):
- """
- >>> ii = OrderedDict(((1, 3), (3, 2), (2, 1))).iteritems()
- >>> ii.next()
- (1, 3)
- >>> ii.next()
- (3, 2)
- >>> ii.next()
- (2, 1)
- >>> ii.next()
- Traceback (most recent call last):
- StopIteration
- """
- def make_iter(self=self):
- keys = self.iterkeys()
- while True:
- key = keys.next()
- yield (key, self[key])
- return make_iter()
-
- def iterkeys(self):
- """
- >>> ii = OrderedDict(((1, 3), (3, 2), (2, 1))).iterkeys()
- >>> ii.next()
- 1
- >>> ii.next()
- 3
- >>> ii.next()
- 2
- >>> ii.next()
- Traceback (most recent call last):
- StopIteration
- """
- return iter(self._sequence)
-
- __iter__ = iterkeys
-
- def itervalues(self):
- """
- >>> iv = OrderedDict(((1, 3), (3, 2), (2, 1))).itervalues()
- >>> iv.next()
- 3
- >>> iv.next()
- 2
- >>> iv.next()
- 1
- >>> iv.next()
- Traceback (most recent call last):
- StopIteration
- """
- def make_iter(self=self):
- keys = self.iterkeys()
- while True:
- yield self[keys.next()]
- return make_iter()
-
-### Read-write methods ###
-
- def clear(self):
- """
- >>> d = OrderedDict(((1, 3), (3, 2), (2, 1)))
- >>> d.clear()
- >>> d
- OrderedDict([])
- """
- dict.clear(self)
- self._sequence = []
-
- def pop(self, key, *args):
- """
- No dict.pop in Python 2.2, gotta reimplement it
-
- >>> d = OrderedDict(((1, 3), (3, 2), (2, 1)))
- >>> d.pop(3)
- 2
- >>> d
- OrderedDict([(1, 3), (2, 1)])
- >>> d.pop(4)
- Traceback (most recent call last):
- KeyError: 4
- >>> d.pop(4, 0)
- 0
- >>> d.pop(4, 0, 1)
- Traceback (most recent call last):
- TypeError: pop expected at most 2 arguments, got 3
- """
- if len(args) > 1:
- raise TypeError, ('pop expected at most 2 arguments, got %s' %
- (len(args) + 1))
- if key in self:
- val = self[key]
- del self[key]
- else:
- try:
- val = args[0]
- except IndexError:
- raise KeyError(key)
- return val
-
- def popitem(self, i=-1):
- """
- Delete and return an item specified by index, not a random one as in
- dict. The index is -1 by default (the last item).
-
- >>> d = OrderedDict(((1, 3), (3, 2), (2, 1)))
- >>> d.popitem()
- (2, 1)
- >>> d
- OrderedDict([(1, 3), (3, 2)])
- >>> d.popitem(0)
- (1, 3)
- >>> OrderedDict().popitem()
- Traceback (most recent call last):
- KeyError: 'popitem(): dictionary is empty'
- >>> d.popitem(2)
- Traceback (most recent call last):
- IndexError: popitem(): index 2 not valid
- """
- if not self._sequence:
- raise KeyError('popitem(): dictionary is empty')
- try:
- key = self._sequence[i]
- except IndexError:
- raise IndexError('popitem(): index %s not valid' % i)
- return (key, self.pop(key))
-
- def setdefault(self, key, defval = None):
- """
- >>> d = OrderedDict(((1, 3), (3, 2), (2, 1)))
- >>> d.setdefault(1)
- 3
- >>> d.setdefault(4) is None
- True
- >>> d
- OrderedDict([(1, 3), (3, 2), (2, 1), (4, None)])
- >>> d.setdefault(5, 0)
- 0
- >>> d
- OrderedDict([(1, 3), (3, 2), (2, 1), (4, None), (5, 0)])
- """
- if key in self:
- return self[key]
- else:
- self[key] = defval
- return defval
-
- def update(self, from_od):
- """
- Update from another OrderedDict or sequence of (key, value) pairs
-
- >>> d = OrderedDict(((1, 0), (0, 1)))
- >>> d.update(OrderedDict(((1, 3), (3, 2), (2, 1))))
- >>> d
- OrderedDict([(1, 3), (0, 1), (3, 2), (2, 1)])
- >>> d.update({4: 4})
- Traceback (most recent call last):
- TypeError: undefined order, cannot get items from dict
- >>> d.update((4, 4))
- Traceback (most recent call last):
- TypeError: cannot convert dictionary update sequence element "4" to a 2-item sequence
- """
- if isinstance(from_od, OrderedDict):
- for key, val in from_od.items():
- self[key] = val
- elif isinstance(from_od, dict):
- # we lose compatibility with other ordered dict types this way
- raise TypeError('undefined order, cannot get items from dict')
- else:
- # FIXME: efficiency?
- # sequence of 2-item sequences, or error
- for item in from_od:
- try:
- key, val = item
- except TypeError:
- raise TypeError('cannot convert dictionary update'
- ' sequence element "%s" to a 2-item sequence' % item)
- self[key] = val
-
- def rename(self, old_key, new_key):
- """
- Rename the key for a given value, without modifying sequence order.
-
- For the case where new_key already exists this raise an exception,
- since if new_key exists, it is ambiguous as to what happens to the
- associated values, and the position of new_key in the sequence.
-
- >>> od = OrderedDict()
- >>> od['a'] = 1
- >>> od['b'] = 2
- >>> od.items()
- [('a', 1), ('b', 2)]
- >>> od.rename('b', 'c')
- >>> od.items()
- [('a', 1), ('c', 2)]
- >>> od.rename('c', 'a')
- Traceback (most recent call last):
- ValueError: New key already exists: 'a'
- >>> od.rename('d', 'b')
- Traceback (most recent call last):
- KeyError: 'd'
- """
- if new_key == old_key:
- # no-op
- return
- if new_key in self:
- raise ValueError("New key already exists: %r" % new_key)
- # rename sequence entry
- value = self[old_key]
- old_idx = self._sequence.index(old_key)
- self._sequence[old_idx] = new_key
- # rename internal dict entry
- dict.__delitem__(self, old_key)
- dict.__setitem__(self, new_key, value)
-
- def setitems(self, items):
- """
- This method allows you to set the items in the dict.
-
- It takes a list of tuples - of the same sort returned by the ``items``
- method.
-
- >>> d = OrderedDict()
- >>> d.setitems(((3, 1), (2, 3), (1, 2)))
- >>> d
- OrderedDict([(3, 1), (2, 3), (1, 2)])
- """
- self.clear()
- # FIXME: this allows you to pass in an OrderedDict as well :-)
- self.update(items)
-
- def setkeys(self, keys):
- """
- ``setkeys`` all ows you to pass in a new list of keys which will
- replace the current set. This must contain the same set of keys, but
- need not be in the same order.
-
- If you pass in new keys that don't match, a ``KeyError`` will be
- raised.
-
- >>> d = OrderedDict(((1, 3), (3, 2), (2, 1)))
- >>> d.keys()
- [1, 3, 2]
- >>> d.setkeys((1, 2, 3))
- >>> d
- OrderedDict([(1, 3), (2, 1), (3, 2)])
- >>> d.setkeys(['a', 'b', 'c'])
- Traceback (most recent call last):
- KeyError: 'Keylist is not the same as current keylist.'
- """
- # FIXME: Efficiency? (use set for Python 2.4 :-)
- # NOTE: list(keys) rather than keys[:] because keys[:] returns
- # a tuple, if keys is a tuple.
- kcopy = list(keys)
- kcopy.sort()
- self._sequence.sort()
- if kcopy != self._sequence:
- raise KeyError('Keylist is not the same as current keylist.')
- # NOTE: This makes the _sequence attribute a new object, instead
- # of changing it in place.
- # FIXME: efficiency?
- self._sequence = list(keys)
-
- def setvalues(self, values):
- """
- You can pass in a list of values, which will replace the
- current list. The value list must be the same len as the OrderedDict.
-
- (Or a ``ValueError`` is raised.)
-
- >>> d = OrderedDict(((1, 3), (3, 2), (2, 1)))
- >>> d.setvalues((1, 2, 3))
- >>> d
- OrderedDict([(1, 1), (3, 2), (2, 3)])
- >>> d.setvalues([6])
- Traceback (most recent call last):
- ValueError: Value list is not the same length as the OrderedDict.
- """
- if len(values) != len(self):
- # FIXME: correct error to raise?
- raise ValueError('Value list is not the same length as the '
- 'OrderedDict.')
- self.update(zip(self, values))
-
-### Sequence Methods ###
-
- def index(self, key):
- """
- Return the position of the specified key in the OrderedDict.
-
- >>> d = OrderedDict(((1, 3), (3, 2), (2, 1)))
- >>> d.index(3)
- 1
- >>> d.index(4)
- Traceback (most recent call last):
- ValueError: list.index(x): x not in list
- """
- return self._sequence.index(key)
-
- def insert(self, index, key, value):
- """
- Takes ``index``, ``key``, and ``value`` as arguments.
-
- Sets ``key`` to ``value``, so that ``key`` is at position ``index`` in
- the OrderedDict.
-
- >>> d = OrderedDict(((1, 3), (3, 2), (2, 1)))
- >>> d.insert(0, 4, 0)
- >>> d
- OrderedDict([(4, 0), (1, 3), (3, 2), (2, 1)])
- >>> d.insert(0, 2, 1)
- >>> d
- OrderedDict([(2, 1), (4, 0), (1, 3), (3, 2)])
- >>> d.insert(8, 8, 1)
- >>> d
- OrderedDict([(2, 1), (4, 0), (1, 3), (3, 2), (8, 1)])
- """
- if key in self:
- # FIXME: efficiency?
- del self[key]
- self._sequence.insert(index, key)
- dict.__setitem__(self, key, value)
-
- def reverse(self):
- """
- Reverse the order of the OrderedDict.
-
- >>> d = OrderedDict(((1, 3), (3, 2), (2, 1)))
- >>> d.reverse()
- >>> d
- OrderedDict([(2, 1), (3, 2), (1, 3)])
- """
- self._sequence.reverse()
-
- def sort(self, *args, **kwargs):
- """
- Sort the key order in the OrderedDict.
-
- This method takes the same arguments as the ``list.sort`` method on
- your version of Python.
-
- >>> d = OrderedDict(((4, 1), (2, 2), (3, 3), (1, 4)))
- >>> d.sort()
- >>> d
- OrderedDict([(1, 4), (2, 2), (3, 3), (4, 1)])
- """
- self._sequence.sort(*args, **kwargs)
-
-class Keys(object):
- # FIXME: should this object be a subclass of list?
- """
- Custom object for accessing the keys of an OrderedDict.
-
- Can be called like the normal ``OrderedDict.keys`` method, but also
- supports indexing and sequence methods.
- """
-
- def __init__(self, main):
- self._main = main
-
- def __call__(self):
- """Pretend to be the keys method."""
- return self._main._keys()
-
- def __getitem__(self, index):
- """Fetch the key at position i."""
- # NOTE: this automatically supports slicing :-)
- return self._main._sequence[index]
-
- def __setitem__(self, index, name):
- """
- You cannot assign to keys, but you can do slice assignment to re-order
- them.
-
- You can only do slice assignment if the new set of keys is a reordering
- of the original set.
- """
- if isinstance(index, types.SliceType):
- # FIXME: efficiency?
- # check length is the same
- indexes = range(len(self._main._sequence))[index]
- if len(indexes) != len(name):
- raise ValueError('attempt to assign sequence of size %s '
- 'to slice of size %s' % (len(name), len(indexes)))
- # check they are the same keys
- # FIXME: Use set
- old_keys = self._main._sequence[index]
- new_keys = list(name)
- old_keys.sort()
- new_keys.sort()
- if old_keys != new_keys:
- raise KeyError('Keylist is not the same as current keylist.')
- orig_vals = [self._main[k] for k in name]
- del self._main[index]
- vals = zip(indexes, name, orig_vals)
- vals.sort()
- for i, k, v in vals:
- if self._main.strict and k in self._main:
- raise ValueError('slice assignment must be from '
- 'unique keys')
- self._main.insert(i, k, v)
- else:
- raise ValueError('Cannot assign to keys')
-
- ### following methods pinched from UserList and adapted ###
- def __repr__(self): return repr(self._main._sequence)
-
- # FIXME: do we need to check if we are comparing with another ``Keys``
- # object? (like the __cast method of UserList)
- def __lt__(self, other): return self._main._sequence < other
- def __le__(self, other): return self._main._sequence <= other
- def __eq__(self, other): return self._main._sequence == other
- def __ne__(self, other): return self._main._sequence != other
- def __gt__(self, other): return self._main._sequence > other
- def __ge__(self, other): return self._main._sequence >= other
- # FIXME: do we need __cmp__ as well as rich comparisons?
- def __cmp__(self, other): return cmp(self._main._sequence, other)
-
- def __contains__(self, item): return item in self._main._sequence
- def __len__(self): return len(self._main._sequence)
- def __iter__(self): return self._main.iterkeys()
- def count(self, item): return self._main._sequence.count(item)
- def index(self, item, *args): return self._main._sequence.index(item, *args)
- def reverse(self): self._main._sequence.reverse()
- def sort(self, *args, **kwds): self._main._sequence.sort(*args, **kwds)
- def __mul__(self, n): return self._main._sequence*n
- __rmul__ = __mul__
- def __add__(self, other): return self._main._sequence + other
- def __radd__(self, other): return other + self._main._sequence
-
- ## following methods not implemented for keys ##
- def __delitem__(self, i): raise TypeError('Can\'t delete items from keys')
- def __iadd__(self, other): raise TypeError('Can\'t add in place to keys')
- def __imul__(self, n): raise TypeError('Can\'t multiply keys in place')
- def append(self, item): raise TypeError('Can\'t append items to keys')
- def insert(self, i, item): raise TypeError('Can\'t insert items into keys')
- def pop(self, i=-1): raise TypeError('Can\'t pop items from keys')
- def remove(self, item): raise TypeError('Can\'t remove items from keys')
- def extend(self, other): raise TypeError('Can\'t extend keys')
-
-class Items(object):
- """
- Custom object for accessing the items of an OrderedDict.
-
- Can be called like the normal ``OrderedDict.items`` method, but also
- supports indexing and sequence methods.
- """
-
- def __init__(self, main):
- self._main = main
-
- def __call__(self):
- """Pretend to be the items method."""
- return self._main._items()
-
- def __getitem__(self, index):
- """Fetch the item at position i."""
- if isinstance(index, types.SliceType):
- # fetching a slice returns an OrderedDict
- return self._main[index].items()
- key = self._main._sequence[index]
- return (key, self._main[key])
-
- def __setitem__(self, index, item):
- """Set item at position i to item."""
- if isinstance(index, types.SliceType):
- # NOTE: item must be an iterable (list of tuples)
- self._main[index] = OrderedDict(item)
- else:
- # FIXME: Does this raise a sensible error?
- orig = self._main.keys[index]
- key, value = item
- if self._main.strict and key in self and (key != orig):
- raise ValueError('slice assignment must be from '
- 'unique keys')
- # delete the current one
- del self._main[self._main._sequence[index]]
- self._main.insert(index, key, value)
-
- def __delitem__(self, i):
- """Delete the item at position i."""
- key = self._main._sequence[i]
- if isinstance(i, types.SliceType):
- for k in key:
- # FIXME: efficiency?
- del self._main[k]
- else:
- del self._main[key]
-
- ### following methods pinched from UserList and adapted ###
- def __repr__(self): return repr(self._main.items())
-
- # FIXME: do we need to check if we are comparing with another ``Items``
- # object? (like the __cast method of UserList)
- def __lt__(self, other): return self._main.items() < other
- def __le__(self, other): return self._main.items() <= other
- def __eq__(self, other): return self._main.items() == other
- def __ne__(self, other): return self._main.items() != other
- def __gt__(self, other): return self._main.items() > other
- def __ge__(self, other): return self._main.items() >= other
- def __cmp__(self, other): return cmp(self._main.items(), other)
-
- def __contains__(self, item): return item in self._main.items()
- def __len__(self): return len(self._main._sequence) # easier :-)
- def __iter__(self): return self._main.iteritems()
- def count(self, item): return self._main.items().count(item)
- def index(self, item, *args): return self._main.items().index(item, *args)
- def reverse(self): self._main.reverse()
- def sort(self, *args, **kwds): self._main.sort(*args, **kwds)
- def __mul__(self, n): return self._main.items()*n
- __rmul__ = __mul__
- def __add__(self, other): return self._main.items() + other
- def __radd__(self, other): return other + self._main.items()
-
- def append(self, item):
- """Add an item to the end."""
- # FIXME: this is only append if the key isn't already present
- key, value = item
- self._main[key] = value
-
- def insert(self, i, item):
- key, value = item
- self._main.insert(i, key, value)
-
- def pop(self, i=-1):
- key = self._main._sequence[i]
- return (key, self._main.pop(key))
-
- def remove(self, item):
- key, value = item
- try:
- assert value == self._main[key]
- except (KeyError, AssertionError):
- raise ValueError('ValueError: list.remove(x): x not in list')
- else:
- del self._main[key]
-
- def extend(self, other):
- # FIXME: is only a true extend if none of the keys already present
- for item in other:
- key, value = item
- self._main[key] = value
-
- def __iadd__(self, other):
- self.extend(other)
-
- ## following methods not implemented for items ##
-
- def __imul__(self, n): raise TypeError('Can\'t multiply items in place')
-
-class Values(object):
- """
- Custom object for accessing the values of an OrderedDict.
-
- Can be called like the normal ``OrderedDict.values`` method, but also
- supports indexing and sequence methods.
- """
-
- def __init__(self, main):
- self._main = main
-
- def __call__(self):
- """Pretend to be the values method."""
- return self._main._values()
-
- def __getitem__(self, index):
- """Fetch the value at position i."""
- if isinstance(index, types.SliceType):
- return [self._main[key] for key in self._main._sequence[index]]
- else:
- return self._main[self._main._sequence[index]]
-
- def __setitem__(self, index, value):
- """
- Set the value at position i to value.
-
- You can only do slice assignment to values if you supply a sequence of
- equal length to the slice you are replacing.
- """
- if isinstance(index, types.SliceType):
- keys = self._main._sequence[index]
- if len(keys) != len(value):
- raise ValueError('attempt to assign sequence of size %s '
- 'to slice of size %s' % (len(name), len(keys)))
- # FIXME: efficiency? Would be better to calculate the indexes
- # directly from the slice object
- # NOTE: the new keys can collide with existing keys (or even
- # contain duplicates) - these will overwrite
- for key, val in zip(keys, value):
- self._main[key] = val
- else:
- self._main[self._main._sequence[index]] = value
-
- ### following methods pinched from UserList and adapted ###
- def __repr__(self): return repr(self._main.values())
-
- # FIXME: do we need to check if we are comparing with another ``Values``
- # object? (like the __cast method of UserList)
- def __lt__(self, other): return self._main.values() < other
- def __le__(self, other): return self._main.values() <= other
- def __eq__(self, other): return self._main.values() == other
- def __ne__(self, other): return self._main.values() != other
- def __gt__(self, other): return self._main.values() > other
- def __ge__(self, other): return self._main.values() >= other
- def __cmp__(self, other): return cmp(self._main.values(), other)
-
- def __contains__(self, item): return item in self._main.values()
- def __len__(self): return len(self._main._sequence) # easier :-)
- def __iter__(self): return self._main.itervalues()
- def count(self, item): return self._main.values().count(item)
- def index(self, item, *args): return self._main.values().index(item, *args)
-
- def reverse(self):
- """Reverse the values"""
- vals = self._main.values()
- vals.reverse()
- # FIXME: efficiency
- self[:] = vals
-
- def sort(self, *args, **kwds):
- """Sort the values."""
- vals = self._main.values()
- vals.sort(*args, **kwds)
- self[:] = vals
-
- def __mul__(self, n): return self._main.values()*n
- __rmul__ = __mul__
- def __add__(self, other): return self._main.values() + other
- def __radd__(self, other): return other + self._main.values()
-
- ## following methods not implemented for values ##
- def __delitem__(self, i): raise TypeError('Can\'t delete items from values')
- def __iadd__(self, other): raise TypeError('Can\'t add in place to values')
- def __imul__(self, n): raise TypeError('Can\'t multiply values in place')
- def append(self, item): raise TypeError('Can\'t append items to values')
- def insert(self, i, item): raise TypeError('Can\'t insert items into values')
- def pop(self, i=-1): raise TypeError('Can\'t pop items from values')
- def remove(self, item): raise TypeError('Can\'t remove items from values')
- def extend(self, other): raise TypeError('Can\'t extend values')
-
-class SequenceOrderedDict(OrderedDict):
- """
- Experimental version of OrderedDict that has a custom object for ``keys``,
- ``values``, and ``items``.
-
- These are callable sequence objects that work as methods, or can be
- manipulated directly as sequences.
-
- Test for ``keys``, ``items`` and ``values``.
-
- >>> d = SequenceOrderedDict(((1, 2), (2, 3), (3, 4)))
- >>> d
- SequenceOrderedDict([(1, 2), (2, 3), (3, 4)])
- >>> d.keys
- [1, 2, 3]
- >>> d.keys()
- [1, 2, 3]
- >>> d.setkeys((3, 2, 1))
- >>> d
- SequenceOrderedDict([(3, 4), (2, 3), (1, 2)])
- >>> d.setkeys((1, 2, 3))
- >>> d.keys[0]
- 1
- >>> d.keys[:]
- [1, 2, 3]
- >>> d.keys[-1]
- 3
- >>> d.keys[-2]
- 2
- >>> d.keys[0:2] = [2, 1]
- >>> d
- SequenceOrderedDict([(2, 3), (1, 2), (3, 4)])
- >>> d.keys.reverse()
- >>> d.keys
- [3, 1, 2]
- >>> d.keys = [1, 2, 3]
- >>> d
- SequenceOrderedDict([(1, 2), (2, 3), (3, 4)])
- >>> d.keys = [3, 1, 2]
- >>> d
- SequenceOrderedDict([(3, 4), (1, 2), (2, 3)])
- >>> a = SequenceOrderedDict()
- >>> b = SequenceOrderedDict()
- >>> a.keys == b.keys
- 1
- >>> a['a'] = 3
- >>> a.keys == b.keys
- 0
- >>> b['a'] = 3
- >>> a.keys == b.keys
- 1
- >>> b['b'] = 3
- >>> a.keys == b.keys
- 0
- >>> a.keys > b.keys
- 0
- >>> a.keys < b.keys
- 1
- >>> 'a' in a.keys
- 1
- >>> len(b.keys)
- 2
- >>> 'c' in d.keys
- 0
- >>> 1 in d.keys
- 1
- >>> [v for v in d.keys]
- [3, 1, 2]
- >>> d.keys.sort()
- >>> d.keys
- [1, 2, 3]
- >>> d = SequenceOrderedDict(((1, 2), (2, 3), (3, 4)), strict=True)
- >>> d.keys[::-1] = [1, 2, 3]
- >>> d
- SequenceOrderedDict([(3, 4), (2, 3), (1, 2)])
- >>> d.keys[:2]
- [3, 2]
- >>> d.keys[:2] = [1, 3]
- Traceback (most recent call last):
- KeyError: 'Keylist is not the same as current keylist.'
-
- >>> d = SequenceOrderedDict(((1, 2), (2, 3), (3, 4)))
- >>> d
- SequenceOrderedDict([(1, 2), (2, 3), (3, 4)])
- >>> d.values
- [2, 3, 4]
- >>> d.values()
- [2, 3, 4]
- >>> d.setvalues((4, 3, 2))
- >>> d
- SequenceOrderedDict([(1, 4), (2, 3), (3, 2)])
- >>> d.values[::-1]
- [2, 3, 4]
- >>> d.values[0]
- 4
- >>> d.values[-2]
- 3
- >>> del d.values[0]
- Traceback (most recent call last):
- TypeError: Can't delete items from values
- >>> d.values[::2] = [2, 4]
- >>> d
- SequenceOrderedDict([(1, 2), (2, 3), (3, 4)])
- >>> 7 in d.values
- 0
- >>> len(d.values)
- 3
- >>> [val for val in d.values]
- [2, 3, 4]
- >>> d.values[-1] = 2
- >>> d.values.count(2)
- 2
- >>> d.values.index(2)
- 0
- >>> d.values[-1] = 7
- >>> d.values
- [2, 3, 7]
- >>> d.values.reverse()
- >>> d.values
- [7, 3, 2]
- >>> d.values.sort()
- >>> d.values
- [2, 3, 7]
- >>> d.values.append('anything')
- Traceback (most recent call last):
- TypeError: Can't append items to values
- >>> d.values = (1, 2, 3)
- >>> d
- SequenceOrderedDict([(1, 1), (2, 2), (3, 3)])
-
- >>> d = SequenceOrderedDict(((1, 2), (2, 3), (3, 4)))
- >>> d
- SequenceOrderedDict([(1, 2), (2, 3), (3, 4)])
- >>> d.items()
- [(1, 2), (2, 3), (3, 4)]
- >>> d.setitems([(3, 4), (2 ,3), (1, 2)])
- >>> d
- SequenceOrderedDict([(3, 4), (2, 3), (1, 2)])
- >>> d.items[0]
- (3, 4)
- >>> d.items[:-1]
- [(3, 4), (2, 3)]
- >>> d.items[1] = (6, 3)
- >>> d.items
- [(3, 4), (6, 3), (1, 2)]
- >>> d.items[1:2] = [(9, 9)]
- >>> d
- SequenceOrderedDict([(3, 4), (9, 9), (1, 2)])
- >>> del d.items[1:2]
- >>> d
- SequenceOrderedDict([(3, 4), (1, 2)])
- >>> (3, 4) in d.items
- 1
- >>> (4, 3) in d.items
- 0
- >>> len(d.items)
- 2
- >>> [v for v in d.items]
- [(3, 4), (1, 2)]
- >>> d.items.count((3, 4))
- 1
- >>> d.items.index((1, 2))
- 1
- >>> d.items.index((2, 1))
- Traceback (most recent call last):
- ValueError: list.index(x): x not in list
- >>> d.items.reverse()
- >>> d.items
- [(1, 2), (3, 4)]
- >>> d.items.reverse()
- >>> d.items.sort()
- >>> d.items
- [(1, 2), (3, 4)]
- >>> d.items.append((5, 6))
- >>> d.items
- [(1, 2), (3, 4), (5, 6)]
- >>> d.items.insert(0, (0, 0))
- >>> d.items
- [(0, 0), (1, 2), (3, 4), (5, 6)]
- >>> d.items.insert(-1, (7, 8))
- >>> d.items
- [(0, 0), (1, 2), (3, 4), (7, 8), (5, 6)]
- >>> d.items.pop()
- (5, 6)
- >>> d.items
- [(0, 0), (1, 2), (3, 4), (7, 8)]
- >>> d.items.remove((1, 2))
- >>> d.items
- [(0, 0), (3, 4), (7, 8)]
- >>> d.items.extend([(1, 2), (5, 6)])
- >>> d.items
- [(0, 0), (3, 4), (7, 8), (1, 2), (5, 6)]
- """
-
- def __init__(self, init_val=(), strict=True):
- OrderedDict.__init__(self, init_val, strict=strict)
- self._keys = self.keys
- self._values = self.values
- self._items = self.items
- self.keys = Keys(self)
- self.values = Values(self)
- self.items = Items(self)
- self._att_dict = {
- 'keys': self.setkeys,
- 'items': self.setitems,
- 'values': self.setvalues,
- }
-
- def __setattr__(self, name, value):
- """Protect keys, items, and values."""
- if not '_att_dict' in self.__dict__:
- object.__setattr__(self, name, value)
- else:
- try:
- fun = self._att_dict[name]
- except KeyError:
- OrderedDict.__setattr__(self, name, value)
- else:
- fun(value)
-
-if __name__ == '__main__':
- if INTP_VER < (2, 3):
- raise RuntimeError("Tests require Python v.2.3 or later")
- # turn off warnings for tests
- warnings.filterwarnings('ignore')
- # run the code tests in doctest format
- import doctest
- m = sys.modules.get('__main__')
- globs = m.__dict__.copy()
- globs.update({
- 'INTP_VER': INTP_VER,
- })
- doctest.testmod(m, globs=globs)
-
+++ /dev/null
-import datetime
-
-def one_day_from_now():
- return datetime.datetime.now() + datetime.timedelta(days=1)
+++ /dev/null
-readers.py - views strictly reading main content: questions, answers, tags and comments
-
-writers.py - views that write main content, with possible reading
- note: deletion counts as writing in this case
-
-commands.py - data status changing commands, votes, question close/reopen
-
-users.py - user views - user listing and profiles
-
-meta.py - privacy, about, faq, feedback, logout, badges
-
-auth.py - Authentication related views
+++ /dev/null
-import readers
-import writers
-import commands
-import users
-import meta
-import auth
-import admin
+++ /dev/null
-from datetime import datetime, timedelta
-
-from django.shortcuts import render_to_response
-from django.core.urlresolvers import reverse
-from django.http import HttpResponseRedirect, HttpResponse, HttpResponseForbidden, Http404
-from django.template import RequestContext
-from django.utils.translation import ugettext as _
-
-from forum.settings.base import Setting
-from forum.settings.forms import SettingsSetForm
-
-from forum.models import Activity, Question, Answer, User
-from forum import const
-from forum import settings
-
-def super_user_required(fn):
- def wrapper(request, *args, **kwargs):
- if request.user.is_authenticated() and request.user.is_superuser:
- return fn(request, *args, **kwargs)
- else:
- raise Http404
-
- return wrapper
-
-@super_user_required
-def index(request):
- return render_to_response('osqaadmin/index.html', {
- 'sets': get_all_sets(),
- 'settings_pack': settings.SETTINGS_PACK,
- 'statistics': get_statistics(),
- 'recent_activity': get_recent_activity(),
- }, context_instance=RequestContext(request))
-
-@super_user_required
-def settings_set(request, set_name):
- set = Setting.sets.get(set_name, None)
-
- if set is None:
- raise Http404
-
- if request.POST:
- form = SettingsSetForm(set, data=request.POST, files=request.FILES)
-
- if form.is_valid():
- form.save()
- request.user.message_set.create(message=_("'%s' settings saved succesfully") % set_name)
-
- if set_name in ('minrep', 'badges', 'repgain'):
- settings.SETTINGS_PACK.set_value("custom")
- else:
- form = SettingsSetForm(set)
-
- return render_to_response('osqaadmin/set.html', {
- 'form': form,
- 'sets': get_all_sets(),
- }, context_instance=RequestContext(request))
-
-def get_all_sets():
- return sorted(Setting.sets.values(), lambda s1, s2: s1.weight - s2.weight)
-
-def get_recent_activity():
- return Activity.objects.filter(activity_type__in=(
- const.TYPE_ACTIVITY_ASK_QUESTION, const.TYPE_ACTIVITY_ANSWER,
- const.TYPE_ACTIVITY_COMMENT_QUESTION, const.TYPE_ACTIVITY_COMMENT_ANSWER,
- const.TYPE_ACTIVITY_MARK_ANSWER)).order_by('-active_at')[0:10]
-
-def get_statistics():
- return {
- 'total_users': User.objects.all().count(),
- 'users_last_24': User.objects.filter(date_joined__gt=(datetime.now() - timedelta(days=1))).count(),
- 'total_questions': Question.objects.filter(deleted=False).count(),
- 'questions_last_24': Question.objects.filter(deleted=False, added_at__gt=(datetime.now() - timedelta(days=1))).count(),
- 'total_answers': Answer.objects.filter(deleted=False).count(),
- 'answers_last_24': Answer.objects.filter(deleted=False, added_at__gt=(datetime.now() - timedelta(days=1))).count(),
- }
-
-@super_user_required
-def go_bootstrap(request):
- #todo: this is the quick and dirty way of implementing a bootstrap mode
- try:
- from forum_modules.default_badges import settings as dbsets
- dbsets.POPULAR_QUESTION_VIEWS.set_value(100)
- dbsets.NOTABLE_QUESTION_VIEWS.set_value(200)
- dbsets.FAMOUS_QUESTION_VIEWS.set_value(300)
- dbsets.NICE_ANSWER_VOTES_UP.set_value(2)
- dbsets.NICE_QUESTION_VOTES_UP.set_value(2)
- dbsets.GOOD_ANSWER_VOTES_UP.set_value(4)
- dbsets.GOOD_QUESTION_VOTES_UP.set_value(4)
- dbsets.GREAT_ANSWER_VOTES_UP.set_value(8)
- dbsets.GREAT_QUESTION_VOTES_UP.set_value(8)
- dbsets.FAVORITE_QUESTION_FAVS.set_value(1)
- dbsets.STELLAR_QUESTION_FAVS.set_value(3)
- dbsets.DISCIPLINED_MIN_SCORE.set_value(3)
- dbsets.PEER_PRESSURE_MAX_SCORE.set_value(-3)
- dbsets.CIVIC_DUTY_VOTES.set_value(15)
- dbsets.PUNDIT_COMMENT_COUNT.set_value(10)
- dbsets.SELF_LEARNER_UP_VOTES.set_value(2)
- dbsets.STRUNK_AND_WHITE_EDITS.set_value(10)
- dbsets.ENLIGHTENED_UP_VOTES.set_value(2)
- dbsets.GURU_UP_VOTES.set_value(4)
- dbsets.NECROMANCER_UP_VOTES.set_value(2)
- dbsets.NECROMANCER_DIF_DAYS.set_value(30)
- dbsets.TAXONOMIST_USE_COUNT.set_value(5)
- except:
- pass
-
- settings.REP_TO_VOTE_UP.set_value(0)
- settings.REP_TO_VOTE_DOWN.set_value(15)
- settings.REP_TO_FLAG.set_value(15)
- settings.REP_TO_COMMENT.set_value(0)
- settings.REP_TO_LIKE_COMMENT.set_value(0)
- settings.REP_TO_UPLOAD.set_value(0)
- settings.REP_TO_CLOSE_OWN.set_value(60)
- settings.REP_TO_REOPEN_OWN.set_value(120)
- settings.REP_TO_RETAG.set_value(150)
- settings.REP_TO_EDIT_WIKI.set_value(200)
- settings.REP_TO_EDIT_OTHERS.set_value(400)
- settings.REP_TO_CLOSE_OTHERS.set_value(600)
- settings.REP_TO_DELETE_COMMENTS.set_value(400)
- settings.REP_TO_VIEW_FLAGS.set_value(30)
-
- settings.INITIAL_REP.set_value(1)
- settings.MAX_REP_BY_UPVOTE_DAY.set_value(300)
- settings.REP_GAIN_BY_UPVOTED.set_value(15)
- settings.REP_LOST_BY_UPVOTE_CANCELED.set_value(15)
- settings.REP_LOST_BY_DOWNVOTED.set_value(1)
- settings.REP_LOST_BY_DOWNVOTING.set_value(0)
- settings.REP_GAIN_BY_DOWNVOTE_CANCELED.set_value(1)
- settings.REP_GAIN_BY_CANCELING_DOWNVOTE.set_value(0)
- settings.REP_GAIN_BY_ACCEPTED.set_value(25)
- settings.REP_LOST_BY_ACCEPTED_CANCELED.set_value(25)
- settings.REP_GAIN_BY_ACCEPTING.set_value(5)
- settings.REP_LOST_BY_CANCELING_ACCEPTED.set_value(5)
- settings.REP_LOST_BY_FLAGGED.set_value(2)
- settings.REP_LOST_BY_FLAGGED_3_TIMES.set_value(30)
- settings.REP_LOST_BY_FLAGGED_5_TIMES.set_value(100)
-
- settings.SETTINGS_PACK.set_value("bootstrap")
-
- request.user.message_set.create(message=_('Bootstrap mode enabled'))
- return HttpResponseRedirect(reverse('admin_index'))
-
-@super_user_required
-def go_defaults(request):
- for setting in Setting.sets['badges']:
- setting.to_default()
- for setting in Setting.sets['minrep']:
- setting.to_default()
- for setting in Setting.sets['repgain']:
- setting.to_default()
-
- settings.SETTINGS_PACK.set_value("default")
-
- request.user.message_set.create(message=_('All values reverted to defaults'))
- return HttpResponseRedirect(reverse('admin_index'))
-
+++ /dev/null
-from django.shortcuts import render_to_response, get_object_or_404
-from django.template import RequestContext
-from django.core.urlresolvers import reverse
-from forum.models import User
-from django.http import HttpResponseRedirect, Http404
-from django.utils.safestring import mark_safe
-from django.utils.translation import ugettext as _
-from django.utils.http import urlquote_plus
-from django.contrib.auth.decorators import login_required
-from django.contrib.auth import login, logout
-from django.http import get_host
-import types
-import datetime
-
-from forum.authentication.forms import SimpleRegistrationForm, SimpleEmailSubscribeForm, \
- TemporaryLoginRequestForm, ChangePasswordForm, SetPasswordForm
-from forum.utils.mail import send_email
-
-from forum.authentication.base import InvalidAuthentication
-from forum.authentication import AUTH_PROVIDERS, user_logged_in
-
-from forum.models import AuthKeyUserAssociation, ValidationHash, Question, Answer
-
-def signin_page(request, action=None):
- if action is None:
- request.session['on_signin_url'] = request.META.get('HTTP_REFERER', '/')
- else:
- request.session['on_signin_action'] = action
- request.session['on_signin_url'] = reverse('auth_action_signin', kwargs={'action': action})
-
- all_providers = [provider.context for provider in AUTH_PROVIDERS.values()]
-
- sort = lambda c1, c2: c1.weight - c2.weight
- can_show = lambda c: not request.user.is_authenticated() or c.show_to_logged_in_user
-
- bigicon_providers = sorted([
- context for context in all_providers if context.mode == 'BIGICON' and can_show(context)
- ], sort)
-
- smallicon_providers = sorted([
- context for context in all_providers if context.mode == 'SMALLICON' and can_show(context)
- ], sort)
-
- top_stackitem_providers = sorted([
- context for context in all_providers if context.mode == 'TOP_STACK_ITEM' and can_show(context)
- ], sort)
-
- stackitem_providers = sorted([
- context for context in all_providers if context.mode == 'STACK_ITEM' and can_show(context)
- ], sort)
-
- try:
- msg = request.session['auth_error']
- del request.session['auth_error']
- except:
- msg = None
-
- return render_to_response(
- 'auth/signin.html',
- {
- 'msg': msg,
- 'all_providers': all_providers,
- 'bigicon_providers': bigicon_providers,
- 'top_stackitem_providers': top_stackitem_providers,
- 'stackitem_providers': stackitem_providers,
- 'smallicon_providers': smallicon_providers,
- },
- RequestContext(request))
-
-def prepare_provider_signin(request, provider):
- force_email_request = request.REQUEST.get('validate_email', 'yes') == 'yes'
- request.session['force_email_request'] = force_email_request
-
- if provider in AUTH_PROVIDERS:
- provider_class = AUTH_PROVIDERS[provider].consumer
-
- try:
- request_url = provider_class.prepare_authentication_request(request,
- reverse('auth_provider_done', kwargs={'provider': provider}))
-
- return HttpResponseRedirect(request_url)
- except NotImplementedError, e:
- return process_provider_signin(request, provider)
- except InvalidAuthentication, e:
- request.session['auth_error'] = e.message
-
- return HttpResponseRedirect(reverse('auth_signin'))
-
-
-def process_provider_signin(request, provider):
- if provider in AUTH_PROVIDERS:
- provider_class = AUTH_PROVIDERS[provider].consumer
-
- try:
- assoc_key = provider_class.process_authentication_request(request)
- except InvalidAuthentication, e:
- request.session['auth_error'] = e.message
- return HttpResponseRedirect(reverse('auth_signin'))
-
- if request.user.is_authenticated():
- if isinstance(assoc_key, (type, User)):
- if request.user != assoc_key:
- request.session['auth_error'] = _("Sorry, these login credentials belong to anoother user. Plese terminate your current session and try again.")
- else:
- request.session['auth_error'] = _("You are already logged in with that user.")
- else:
- try:
- assoc = AuthKeyUserAssociation.objects.get(key=assoc_key)
- if assoc.user == request.user:
- request.session['auth_error'] = _("These login credentials are already associated with your account.")
- else:
- request.session['auth_error'] = _("Sorry, these login credentials belong to anoother user. Plese terminate your current session and try again.")
- except:
- uassoc = AuthKeyUserAssociation(user=request.user, key=assoc_key, provider=provider)
- uassoc.save()
- request.user.message_set.create(message=_('The new credentials are now associated with your account'))
- return HttpResponseRedirect(reverse('user_authsettings'))
-
- return HttpResponseRedirect(reverse('auth_signin'))
- else:
- if isinstance(assoc_key, User):
- return login_and_forward(request, assoc_key)
-
- try:
- assoc = AuthKeyUserAssociation.objects.get(key=assoc_key)
- user_ = assoc.user
- return login_and_forward(request, user_)
- except:
- request.session['assoc_key'] = assoc_key
- request.session['auth_provider'] = provider
- return HttpResponseRedirect(reverse('auth_external_register'))
-
- return HttpResponseRedirect(reverse('auth_signin'))
-
-def external_register(request):
- if request.method == 'POST' and 'bnewaccount' in request.POST:
- form1 = SimpleRegistrationForm(request.POST)
- email_feeds_form = SimpleEmailSubscribeForm(request.POST)
-
- if (form1.is_valid() and email_feeds_form.is_valid()):
- user_ = User(username=form1.cleaned_data['username'], email=form1.cleaned_data['email'])
- user_.email_isvalid = request.session.get('auth_validated_email', '') == form1.cleaned_data['email']
- user_.set_unusable_password()
-
- if User.objects.all().count() == 0:
- user_.is_superuser = True
-
- user_.save()
-
- if not user_.email_isvalid:
- send_validation_email(user_)
-
- try:
- assoc_key = request.session['assoc_key']
- auth_provider = request.session['auth_provider']
- except:
- request.session['auth_error'] = _("Oops, something went wrong in the middle of this process. Please try again.")
- return HttpResponseRedirect(request.session.get('on_signin_url', reverse('auth_signin')))
-
- uassoc = AuthKeyUserAssociation(user=user_, key=request.session['assoc_key'], provider=request.session['auth_provider'])
- uassoc.save()
-
- if email_feeds_form.cleaned_data['subscribe'] == 'n':
- user_.subscription_settings.enable_notifications = False
- user_.subscription_settings.save()
-
- del request.session['assoc_key']
- del request.session['auth_provider']
-
- if user_.email_isvalid:
- return login_and_forward(request, user_)
- else:
- return HttpResponseRedirect(reverse('index'))
- else:
- provider_class = AUTH_PROVIDERS[request.session['auth_provider']].consumer
- user_data = provider_class.get_user_data(request.session['assoc_key'])
-
- username = user_data.get('username', '')
- email = user_data.get('email', '')
-
- if not email:
- email = request.session.get('auth_email_request', '')
-
- if email:
- request.session['auth_validated_email'] = email
-
- form1 = SimpleRegistrationForm(initial={
- 'next': '/',
- 'username': username,
- 'email': email,
- })
- email_feeds_form = SimpleEmailSubscribeForm()
-
- provider_context = AUTH_PROVIDERS[request.session['auth_provider']].context
-
- return render_to_response('auth/complete.html', {
- 'form1': form1,
- 'email_feeds_form': email_feeds_form,
- 'provider':mark_safe(provider_context.human_name),
- 'login_type':provider_context.id,
- 'gravatar_faq_url':reverse('faq') + '#gravatar',
- }, context_instance=RequestContext(request))
-
-def request_temp_login(request):
- if request.method == 'POST':
- form = TemporaryLoginRequestForm(request.POST)
-
- if form.is_valid():
- user = form.user_cache
-
- try:
- hash = get_object_or_404(ValidationHash, user=user, type='templogin')
- if hash.expiration < datetime.datetime.now():
- hash.delete()
- return request_temp_login(request)
- except:
- hash = ValidationHash.objects.create_new(user, 'templogin', [user.id])
-
- send_email(_("Temporary login link"), [(user.username, user.email)], "auth/temp_login_email.html", {
- 'temp_login_code': hash,
- 'user': user
- })
-
- request.user.message_set.create(message=_("An email has been sent with your temporary login key"))
-
- return HttpResponseRedirect(reverse('index'))
- else:
- form = TemporaryLoginRequestForm()
-
- return render_to_response(
- 'auth/temp_login_request.html', {'form': form},
- context_instance=RequestContext(request))
-
-def temp_signin(request, user, code):
- user = get_object_or_404(User, id=user)
-
- if (ValidationHash.objects.validate(code, user, 'templogin', [user.id])):
- return login_and_forward(request, user, reverse('user_authsettings'),
- _("You are logged in with a temporary access key, please take the time to fix your issue with authentication."))
- else:
- raise Http404()
-
-def send_validation_email(user):
- hash = ValidationHash.objects.create_new(user, 'email', [user.email])
- send_email(_("Email Validation"), [(user.username, user.email)], "auth/email_validation.html", {
- 'validation_code': hash,
- 'user': user
- })
-
-def validate_email(request, user, code):
- user = get_object_or_404(User, id=user)
-
- if (ValidationHash.objects.validate(code, user, 'email', [user.email])):
- user.email_isvalid = True
- user.save()
- return login_and_forward(request, user, None, _("Thank you, your email is now validated."))
- else:
- raise Http404()
-
-@login_required
-def auth_settings(request):
- """
- change password view.
-
- url : /changepw/
- template: authopenid/changepw.html
- """
- user_ = request.user
- auth_keys = user_.auth_keys.all()
-
- if user_.has_usable_password():
- FormClass = ChangePasswordForm
- else:
- FormClass = SetPasswordForm
-
- if request.POST:
- form = FormClass(request.POST, user=user_)
- if form.is_valid():
- if user_.has_usable_password():
- request.user.message_set.create(message=_("Your password was changed"))
- else:
- request.user.message_set.create(message=_("New password set"))
- FormClass = ChangePasswordForm
-
- user_.set_password(form.cleaned_data['password1'])
- user_.save()
- return HttpResponseRedirect(reverse('user_authsettings'))
-
- form = FormClass(user=user_)
-
- auth_keys_list = []
-
- for k in auth_keys:
- provider = AUTH_PROVIDERS.get(k.provider, None)
-
- if provider is not None:
- name = "%s: %s" % (provider.context.human_name, provider.context.readable_key(k))
- else:
- from forum.authentication.base import ConsumerTemplateContext
- "unknown: %s" % ConsumerTemplateContext.readable_key(k)
-
- auth_keys_list.append({
- 'name': name,
- 'id': k.id
- })
-
- return render_to_response('auth/auth_settings.html', {
- 'form': form,
- 'has_password': user_.has_usable_password(),
- 'auth_keys': auth_keys_list,
- }, context_instance=RequestContext(request))
-
-def remove_external_provider(request, id):
- association = get_object_or_404(AuthKeyUserAssociation, id=id)
- request.user.message_set.create(message=_("You removed the association with %s") % association.provider)
- association.delete()
- return HttpResponseRedirect(reverse('user_authsettings'))
-
-def newquestion_signin_action(user):
- question = Question.objects.filter(author=user).order_by('-added_at')[0]
- return question.get_absolute_url()
-
-def newanswer_signin_action(user):
- answer = Answer.objects.filter(author=user).order_by('-added_at')[0]
- return answer.get_absolute_url()
-
-POST_SIGNIN_ACTIONS = {
- 'newquestion': newquestion_signin_action,
- 'newanswer': newanswer_signin_action,
-}
-
-def login_and_forward(request, user, forward=None, message=None):
- old_session = request.session.session_key
- user.backend = "django.contrib.auth.backends.ModelBackend"
- login(request, user)
-
- user_logged_in.send(user=user,old_session=old_session,sender=None)
-
- if not forward:
- signin_action = request.session.get('on_signin_action', None)
- if not signin_action:
- forward = request.session.get('on_signin_url', None)
-
- if not forward:
- forward = reverse('index')
- else:
- try:
- forward = POST_SIGNIN_ACTIONS[signin_action](user)
- except:
- forward = reverse('index')
-
- if message is None:
- message = _("Welcome back %s, you are now logged in") % user.username
-
- request.user.message_set.create(message=message)
- return HttpResponseRedirect(forward)
-
-@login_required
-def signout(request):
- """
- signout from the website. Remove openid from session and kill it.
-
- url : /signout/"
- """
-
- logout(request)
- return HttpResponseRedirect(reverse('index'))
\ No newline at end of file
+++ /dev/null
-import datetime
-from django.conf import settings
-from django.core.exceptions import ObjectDoesNotExist
-from django.utils import simplejson
-from django.http import HttpResponse, HttpResponseRedirect, HttpResponseForbidden
-from django.shortcuts import get_object_or_404, render_to_response
-from django.utils.translation import ungettext, ugettext as _
-from django.template import RequestContext
-from forum.models import *
-from forum.forms import CloseForm
-from django.core.urlresolvers import reverse
-from django.contrib.auth.decorators import login_required
-from forum.utils.decorators import ajax_method, ajax_login_required
-from decorators import command
-import logging
-
-class NotEnoughRepPointsException(Exception):
- def __init__(self, action):
- super(NotEnoughRepPointsException, self).__init__(
- _("""
- Sorry, but you don't have enough reputation points to %(action)s.<br />
- Please check the <a href'%(faq_url)s'>faq</a>
- """ % {'action': action, 'faq_url': reverse('faq')})
- )
-
-class CannotDoOnOwnException(Exception):
- def __init__(self, action):
- super(CannotDoOnOwnException, self).__init__(
- _("""
- Sorry but you cannot %(action)s your own post.<br />
- Please check the <a href'%(faq_url)s'>faq</a>
- """ % {'action': action, 'faq_url': reverse('faq')})
- )
-
-class AnonymousNotAllowedException(Exception):
- def __init__(self, action):
- super(AnonymousNotAllowedException, self).__init__(
- _("""
- Sorry but anonymous users cannot %(action)s.<br />
- Please login or create an account <a href'%(signin_url)s'>here</a>.
- """ % {'action': action, 'signin_url': reverse('auth_signin')})
- )
-
-class NotEnoughLeftException(Exception):
- def __init__(self, action, limit):
- super(NotEnoughRepPointsException, self).__init__(
- _("""
- Sorry, but you don't have enough %(action)s left for today..<br />
- The limit is %(limit)s per day..<br />
- Please check the <a href'%(faq_url)s'>faq</a>
- """ % {'action': action, 'limit': limit, 'faq_url': reverse('faq')})
- )
-
-class CannotDoubleActionException(Exception):
- def __init__(self, action):
- super(CannotDoubleActionException, self).__init__(
- _("""
- Sorry, but you cannot %(action)s twice the same post.<br />
- Please check the <a href'%(faq_url)s'>faq</a>
- """ % {'action': action, 'faq_url': reverse('faq')})
- )
-
-
-@command
-def vote_post(request, post_type, id, vote_type):
- post = get_object_or_404(post_type == "question" and Question or Answer, id=id)
- vote_score = vote_type == 'up' and 1 or -1
- user = request.user
-
- if not user.is_authenticated():
- raise AnonymousNotAllowedException(_('vote'))
-
- if user == post.author:
- raise CannotDoOnOwnException(_('vote'))
-
- if not (vote_type == 'up' and user.can_vote_up() or user.can_vote_down()):
- raise NotEnoughRepPointsException(vote_type == 'up' and _('upvote') or _('downvote'))
-
- user_vote_count_today = user.get_vote_count_today()
-
- if user_vote_count_today >= int(settings.MAX_VOTES_PER_DAY):
- raise NotEnoughLeftException(_('votes'), str(settings.MAX_VOTES_PER_DAY))
-
- try:
- vote = post.votes.get(canceled=False, user=user)
-
- if vote.voted_at < datetime.datetime.now() - datetime.timedelta(days=int(settings.DENY_UNVOTE_DAYS)):
- raise Exception(
- _("Sorry but you cannot cancel a vote after %(ndays)d %(tdays)s from the original vote") %
- {'ndays': int(settings.DENY_UNVOTE_DAYS), 'tdays': ungettext('day', 'days', int(settings.DENY_UNVOTE_DAYS))}
- )
-
- vote.cancel()
- vote_type = 'none'
- except ObjectDoesNotExist:
- #there is no vote yet
- vote = Vote(user=user, content_object=post, vote=vote_score)
- vote.save()
-
- response = {
- 'commands': {
- 'update_post_score': [post_type, id, vote.vote * (vote_type == 'none' and -1 or 1)],
- 'update_user_post_vote': [post_type, id, vote_type]
- }
- }
-
- votes_left = int(settings.MAX_VOTES_PER_DAY) - user_vote_count_today + (vote_type == 'none' and -1 or 1)
-
- if int(settings.START_WARN_VOTES_LEFT) >= votes_left:
- response['message'] = _("You have %(nvotes) %(tvotes) left today.") % \
- {'nvotes': votes_left, 'tvotes': ungettext('vote', 'votes', votes_left)}
-
- return response
-
-@command
-def flag_post(request, post_type, id):
- post = get_object_or_404(post_type == "question" and Question or Answer, id=id)
- user = request.user
-
- if not user.is_authenticated():
- raise AnonymousNotAllowedException(_('flag posts'))
-
- if user == post.author:
- raise CannotDoOnOwnException(_('flag'))
-
- if not (user.can_flag_offensive(post)):
- raise NotEnoughRepPointsException(_('flag posts'))
-
- user_flag_count_today = user.get_flagged_items_count_today()
-
- if user_flag_count_today >= int(settings.MAX_FLAGS_PER_DAY):
- raise NotEnoughLeftException(_('flags'), str(settings.MAX_FLAGS_PER_DAY))
-
- try:
- post.flagged_items.get(user=user)
- raise CannotDoubleActionException(_('flag'))
- except ObjectDoesNotExist:
- #there is no vote yet
- flag = FlaggedItem(user=user, content_object=post)
- flag.save()
-
- response = {
-
- }
-
- return response
-
-@command
-def like_comment(request, id):
- comment = get_object_or_404(Comment, id=id)
- user = request.user
-
- if not user.is_authenticated():
- raise AnonymousNotAllowedException(_('like comments'))
-
- if user == comment.user:
- raise CannotDoOnOwnException(_('like'))
-
- if not user.can_like_comment(comment):
- raise NotEnoughRepPointsException( _('like comments'))
-
- try:
- like = LikedComment.active.get(comment=comment, user=user)
- like.cancel()
- likes = False
- except ObjectDoesNotExist:
- like = LikedComment(comment=comment, user=user)
- like.save()
- likes = True
-
- return {
- 'commands': {
- 'update_comment_score': [comment.id, likes and 1 or -1],
- 'update_likes_comment_mark': [comment.id, likes and 'on' or 'off']
- }
- }
-
-@command
-def delete_comment(request, id):
- comment = get_object_or_404(Comment, id=id)
- user = request.user
-
- if not user.is_authenticated():
- raise AnonymousNotAllowedException(_('delete comments'))
-
- if not user.can_delete_comment(comment):
- raise NotEnoughRepPointsException( _('delete comments'))
-
- comment.mark_deleted(user)
-
- return {
- 'commands': {
- 'remove_comment': [comment.id],
- }
- }
-
-@command
-def mark_favorite(request, id):
- question = get_object_or_404(Question, id=id)
-
- if not request.user.is_authenticated():
- raise AnonymousNotAllowedException(_('mark a question as favorite'))
-
- try:
- favorite = FavoriteQuestion.objects.get(question=question, user=request.user)
- favorite.delete()
- added = False
- except ObjectDoesNotExist:
- favorite = FavoriteQuestion(question=question, user=request.user)
- favorite.save()
- added = True
-
- return {
- 'commands': {
- 'update_favorite_count': [added and 1 or -1],
- 'update_favorite_mark': [added and 'on' or 'off']
- }
- }
-
-@command
-def comment(request, post_type, id):
- post = get_object_or_404(post_type == "question" and Question or Answer, id=id)
- user = request.user
-
- if not user.is_authenticated():
- raise AnonymousNotAllowedException(_('comment'))
-
- if not request.method == 'POST':
- raise Exception(_("Invalid request"))
-
- if 'id' in request.POST:
- comment = get_object_or_404(Comment, id=request.POST['id'])
-
- if not user.can_edit_comment(comment):
- raise NotEnoughRepPointsException( _('edit comments'))
- else:
- if not user.can_comment(post):
- raise NotEnoughRepPointsException( _('comment'))
-
- comment = Comment(user=user, content_object=post)
-
- comment_text = request.POST.get('comment', '').strip()
-
- if not len(comment_text):
- raise Exception(_("Comment is empty"))
-
- comment.comment=comment_text
- comment.save()
-
- if comment._is_new:
- return {
- 'commands': {
- 'insert_comment': [
- post_type, id,
- comment.id, comment_text, user.username, user.get_profile_url(), reverse('delete_comment', kwargs={'id': comment.id})
- ]
- }
- }
- else:
- return {
- 'commands': {
- 'update_comment': [comment.id, comment.comment]
- }
- }
-
-
-@command
-def accept_answer(request, id):
- user = request.user
-
- if not user.is_authenticated():
- raise AnonymousNotAllowedException(_('accept answers'))
-
- answer = get_object_or_404(Answer, id=id)
- question = answer.question
-
- if not user.can_accept_answer(answer):
- raise Exception(_("Sorry but only the question author can accept an answer"))
-
- commands = {}
-
- if answer.accepted:
- answer.unmark_accepted()
- commands['unmark_accepted'] = [answer.id]
- else:
- try:
- accepted = question.answers.get(accepted=True)
- accepted.unmark_accepted()
- commands['unmark_accepted'] = [accepted.id]
- except:
- pass
-
- answer.mark_accepted(user)
- commands['mark_accepted'] = [answer.id]
-
- return {'commands': commands}
-
-@command
-def delete_post(request, post_type, id):
- post = get_object_or_404(post_type == "question" and Question or Answer, id=id)
- user = request.user
-
- if not user.is_authenticated():
- raise AnonymousNotAllowedException(_('delete posts'))
-
- if not (user.can_delete_post(post)):
- raise NotEnoughRepPointsException(_('delete posts'))
-
- post.mark_deleted(user)
-
- return {
- 'commands': {
- 'mark_deleted': [post_type, id]
- }
- }
-
-@command
-def subscribe(request, id):
- question = get_object_or_404(Question, id=id)
-
- try:
- subscription = QuestionSubscription.objects.get(question=question, user=request.user)
- subscription.delete()
- subscribed = False
- except:
- subscription = QuestionSubscription(question=question, user=request.user, auto_subscription=False)
- subscription.save()
- subscribed = True
-
- return {
- 'commands': {
- 'set_subscription_button': [subscribed and _('unsubscribe me') or _('subscribe me')],
- 'set_subscription_status': ['']
- }
- }
-
-#internally grouped views - used by the tagging system
-@ajax_login_required
-def mark_tag(request, tag=None, **kwargs):#tagging system
- action = kwargs['action']
- ts = MarkedTag.objects.filter(user=request.user, tag__name=tag)
- if action == 'remove':
- logging.debug('deleting tag %s' % tag)
- ts.delete()
- else:
- reason = kwargs['reason']
- if len(ts) == 0:
- try:
- t = Tag.objects.get(name=tag)
- mt = MarkedTag(user=request.user, reason=reason, tag=t)
- mt.save()
- except:
- pass
- else:
- ts.update(reason=reason)
- return HttpResponse(simplejson.dumps(''), mimetype="application/json")
-
-@ajax_login_required
-def ajax_toggle_ignored_questions(request):#ajax tagging and tag-filtering system
- if request.user.hide_ignored_questions:
- new_hide_setting = False
- else:
- new_hide_setting = True
- request.user.hide_ignored_questions = new_hide_setting
- request.user.save()
-
-@ajax_method
-def ajax_command(request):#refactor? view processing ajax commands - note "vote" and view others do it too
- if 'command' not in request.POST:
- return HttpResponseForbidden(mimetype="application/json")
- if request.POST['command'] == 'toggle-ignored-questions':
- return ajax_toggle_ignored_questions(request)
-
-@login_required
-def close(request, id):#close question
- """view to initiate and process
- question close
- """
- question = get_object_or_404(Question, id=id)
- if not request.user.can_close_question(question):
- return HttpResponseForbidden()
- if request.method == 'POST':
- form = CloseForm(request.POST)
- if form.is_valid():
- reason = form.cleaned_data['reason']
- question.closed = True
- question.closed_by = request.user
- question.closed_at = datetime.datetime.now()
- question.close_reason = reason
- question.save()
- return HttpResponseRedirect(question.get_absolute_url())
- else:
- form = CloseForm()
- return render_to_response('close.html', {
- 'form' : form,
- 'question' : question,
- }, context_instance=RequestContext(request))
-
-@login_required
-def reopen(request, id):#re-open question
- """view to initiate and process
- question close
- """
- question = get_object_or_404(Question, id=id)
- # open question
- if not request.user.can_reopen_question(question):
- return HttpResponseForbidden()
- if request.method == 'POST' :
- Question.objects.filter(id=question.id).update(closed=False,
- closed_by=None, closed_at=None, close_reason=None)
- return HttpResponseRedirect(question.get_absolute_url())
- else:
- return render_to_response('reopen.html', {
- 'question' : question,
- }, context_instance=RequestContext(request))
-
-#osqa-user communication system
-def read_message(request):#marks message a read
- if request.method == "POST":
- if request.POST['formdata'] == 'required':
- request.session['message_silent'] = 1
- if request.user.is_authenticated():
- request.user.delete_messages()
- return HttpResponse('')
-
-
+++ /dev/null
-from django.http import HttpResponse, HttpResponseRedirect\r
-from django.utils import simplejson\r
-from django.core.paginator import Paginator\r
-from django.shortcuts import render_to_response\r
-from django.template import RequestContext\r
-\r
-def render(template=None, tab=None):\r
- def decorator(func):\r
- def decorated(request, *args, **kwargs):\r
- context = func(request, *args, **kwargs)\r
-\r
- if tab is not None:\r
- context['tab'] = tab\r
-\r
- return render_to_response(context.pop('template', template), context, context_instance=RequestContext(request))\r
- return decorated\r
- return decorator\r
-\r
-def list(paginate, default_page_size):\r
- def decorator(func):\r
- def decorated(request, *args, **kwargs):\r
- context = func(request, *args, **kwargs)\r
-\r
- pagesize = request.utils.page_size(default_page_size)\r
- page = int(request.GET.get('page', 1))\r
-\r
- big_list = context[paginate]\r
- paginator = Paginator(big_list, pagesize)\r
-\r
- page_obj = paginator.page(page)\r
- context[paginate] = page_obj.object_list\r
-\r
- base_path = context.get('base_path', None) or request.path\r
- sort = request.utils.sort_method('')\r
-\r
- context["pagination_context"] = {\r
- 'is_paginated' : True,\r
- 'pages': paginator.num_pages,\r
- 'page': page,\r
- 'has_previous': page_obj.has_previous(),\r
- 'has_next': page_obj.has_next(),\r
- 'previous': page_obj.previous_page_number(),\r
- 'next': page_obj.next_page_number(),\r
- 'base_url' : "%s%ssort=%s&" % (base_path, ('?' in base_path) and '&' or '?', sort),\r
- 'pagesize' : pagesize\r
- }\r
-\r
- context['sort_context'] = {\r
- 'base_url': "%s%ssort=" % (base_path, ('?' in base_path) and '&' or '?'),\r
- 'current': sort,\r
- }\r
-\r
- return context\r
- return decorated\r
- return decorator\r
-\r
-\r
-def command(func):\r
- def decorated(request, *args, **kwargs):\r
- try:\r
- response = func(request, *args, **kwargs)\r
- response['success'] = True\r
- except Exception, e:\r
- import sys, traceback\r
- traceback.print_exc(file=sys.stdout)\r
-\r
- response = {\r
- 'success': False,\r
- 'error_message': str(e)\r
- }\r
-\r
- if request.is_ajax():\r
- return HttpResponse(simplejson.dumps(response), mimetype="application/json")\r
- else:\r
- return HttpResponseRedirect(request.META.get('HTTP_REFERER', '/'))\r
-\r
- return decorated
\ No newline at end of file
+++ /dev/null
-from django.shortcuts import render_to_response, get_object_or_404
-from django.core.urlresolvers import reverse
-from django.template import RequestContext
-from django.http import HttpResponseRedirect, HttpResponse
-from django.conf import settings
-from forum.forms import FeedbackForm
-from django.core.urlresolvers import reverse
-from django.core.mail import mail_admins
-from django.utils.translation import ugettext as _
-from forum.utils.forms import get_next_url
-from forum.models import Badge, Award
-from forum.badges import ALL_BADGES
-from markdown2 import Markdown
-from forum import settings
-
-def favicon(request):
- return HttpResponseRedirect(str(settings.APP_FAVICON))
-
-def about(request):
- markdowner = Markdown(html4tags=True)
- text = markdowner.convert(settings.ABOUT_PAGE_TEXT.value)
- return render_to_response('about.html', {'text': text }, context_instance=RequestContext(request))
-
-def faq(request):
- data = {
- 'gravatar_faq_url': reverse('faq') + '#gravatar',
- #'send_email_key_url': reverse('send_email_key'),
- 'ask_question_url': reverse('ask'),
- }
- return render_to_response('faq.html', data, context_instance=RequestContext(request))
-
-def feedback(request):
- data = {}
- form = None
- if request.method == "POST":
- form = FeedbackForm(request.POST)
- if form.is_valid():
- if not request.user.is_authenticated:
- data['email'] = form.cleaned_data.get('email',None)
- data['message'] = form.cleaned_data['message']
- data['name'] = form.cleaned_data.get('name',None)
- message = render_to_response('feedback_email.txt',data,context_instance=RequestContext(request))
- mail_admins(_('Q&A forum feedback'), message)
- msg = _('Thanks for the feedback!')
- request.user.message_set.create(message=msg)
- return HttpResponseRedirect(get_next_url(request))
- else:
- form = FeedbackForm(initial={'next':get_next_url(request)})
-
- data['form'] = form
- return render_to_response('feedback.html', data, context_instance=RequestContext(request))
-feedback.CANCEL_MESSAGE=_('We look forward to hearing your feedback! Please, give it next time :)')
-
-def privacy(request):
- return render_to_response('privacy.html', context_instance=RequestContext(request))
-
-def logout(request):#refactor/change behavior?
-#currently you click logout and you get
-#to this view which actually asks you again - do you really want to log out?
-#I guess rationale was to tell the user that s/he may be still logged in
-#through their external login sytem and we'd want to remind them about it
-#however it might be a little annoying
-#why not just show a message: you are logged out of osqa, but
-#if you really want to log out -> go to your openid provider
- return render_to_response('logout.html', {
- 'next' : get_next_url(request),
- }, context_instance=RequestContext(request))
-
-def badges(request):#user status/reputation system
- badges = Badge.objects.all().order_by('name')
-
- badges_dict = dict([(badge.badge, badge.description) for badge in ALL_BADGES])
-
- for badge in badges:
- if badge.description != badges_dict.get(badge.slug, badge.description):
- badge.description = badges_dict[badge.slug]
- badge.save()
-
- my_badges = []
- if request.user.is_authenticated():
- my_badges = Award.objects.filter(user=request.user).values('badge_id')
- #my_badges.query.group_by = ['badge_id']
-
- return render_to_response('badges.html', {
- 'badges' : badges,
- 'mybadges' : my_badges,
- 'feedback_faq_url' : reverse('feedback'),
- }, context_instance=RequestContext(request))
-
-def badge(request, id):
- badge = get_object_or_404(Badge, id=id)
- awards = Award.objects.extra(
- select={'id': 'auth_user.id',
- 'name': 'auth_user.username',
- 'rep':'forum_user.reputation',
- 'gold': 'forum_user.gold',
- 'silver': 'forum_user.silver',
- 'bronze': 'forum_user.bronze'},
- tables=['award', 'auth_user', 'forum_user'],
- where=['badge_id=%s AND user_id=auth_user.id AND forum_user.user_ptr_id = auth_user.id'],
- params=[id]
- ).distinct('id')
-
- return render_to_response('badge.html', {
- 'awards' : awards,
- 'badge' : badge,
- }, context_instance=RequestContext(request))
-
+++ /dev/null
-# encoding:utf-8
-import datetime
-import logging
-from urllib import unquote
-from django.conf import settings as django_settings
-from django.shortcuts import render_to_response, get_object_or_404
-from django.http import HttpResponseRedirect, HttpResponse, HttpResponseForbidden, Http404
-from django.core.paginator import Paginator, EmptyPage, InvalidPage
-from django.template import RequestContext
-from django.utils.html import *
-from django.utils import simplejson
-from django.db.models import Q
-from django.utils.translation import ugettext as _
-from django.template.defaultfilters import slugify
-from django.core.urlresolvers import reverse
-from django.utils.datastructures import SortedDict
-from django.views.decorators.cache import cache_page
-from django.utils.http import urlquote as django_urlquote
-from django.template.defaultfilters import slugify
-from django.utils.safestring import mark_safe
-
-from forum.utils.html import sanitize_html
-from markdown2 import Markdown
-from forum.utils.diff import textDiff as htmldiff
-from forum.forms import *
-from forum.models import *
-from forum.const import *
-from forum.utils.forms import get_next_url
-from forum.models.question import question_view
-import decorators
-
-# used in index page
-#refactor - move these numbers somewhere?
-INDEX_PAGE_SIZE = 30
-INDEX_AWARD_SIZE = 15
-INDEX_TAGS_SIZE = 25
-# used in tags list
-DEFAULT_PAGE_SIZE = 60
-# used in questions
-QUESTIONS_PAGE_SIZE = 30
-# used in answers
-ANSWERS_PAGE_SIZE = 10
-
-markdowner = Markdown(html4tags=True)
-
-#system to display main content
-def _get_tags_cache_json():#service routine used by views requiring tag list in the javascript space
- """returns list of all tags in json format
- no caching yet, actually
- """
- tags = Tag.objects.filter(deleted=False).all()
- tags_list = []
- for tag in tags:
- dic = {'n': tag.name, 'c': tag.used_count}
- tags_list.append(dic)
- tags = simplejson.dumps(tags_list)
- return tags
-
-@decorators.render('index.html')
-def index(request):
- return question_list(request, Question.objects.all(), sort='latest', base_path=reverse('questions'))
-
-@decorators.render('questions.html', 'unanswered')
-def unanswered(request):
- return question_list(request, Question.objects.filter(answer_accepted=False),
- _('Open questions without an accepted answer'))
-
-@decorators.render('questions.html', 'questions')
-def questions(request):
- return question_list(request, Question.objects.all())
-
-@decorators.render('questions.html')
-def tag(request, tag):
- return question_list(request, Question.objects.filter(tags__name=unquote(tag)),
- mark_safe(_('Questions tagged <span class="tag">%(tag)s</span>') % {'tag': tag}))
-
-@decorators.list('questions', QUESTIONS_PAGE_SIZE)
-def question_list(request, initial, list_description=_('questions'), sort=None, base_path=None):
- pagesize = request.utils.page_size(QUESTIONS_PAGE_SIZE)
- page = int(request.GET.get('page', 1))
-
- questions = initial.filter(deleted=False)
-
- if request.user.is_authenticated():
- questions = questions.filter(
- ~Q(tags__id__in=request.user.marked_tags.filter(user_selections__reason='bad')))
-
- if sort is None:
- sort = request.utils.sort_method('latest')
- else:
- request.utils.set_sort_method(sort)
-
- view_dic = {"latest":"-added_at", "active":"-last_activity_at", "hottest":"-answer_count", "mostvoted":"-score" }
-
- questions=questions.order_by(view_dic.get(sort, '-added_at'))
-
- return {
- "questions" : questions,
- "questions_count" : questions.count(),
- "tags_autocomplete" : _get_tags_cache_json(),
- "list_description": list_description,
- "base_path" : base_path,
- }
-
-
-def search(request):
- if request.method == "GET" and "q" in request.GET:
- keywords = request.GET.get("q")
- search_type = request.GET.get("t")
-
- if not keywords:
- return HttpResponseRedirect(reverse(index))
- if search_type == 'tag':
- return HttpResponseRedirect(reverse('tags') + '?q=%s' % (keywords.strip()))
- elif search_type == "user":
- return HttpResponseRedirect(reverse('users') + '?q=%s' % (keywords.strip()))
- elif search_type == "question":
- return question_search(request, keywords)
- else:
- return render_to_response("search.html", context_instance=RequestContext(request))
-
-@decorators.render('questions.html')
-def question_search(request, keywords):
- def question_search(keywords, orderby):
- return Question.objects.filter(Q(title__icontains=keywords) | Q(html__icontains=keywords))
-
- from forum.modules import get_handler
-
- question_search = get_handler('question_search', question_search)
- initial = question_search(keywords)
-
- return question_list(request, initial, _("questions matching '%(keywords)s'") % {'keywords': keywords},
- base_path="%s?t=question&q=%s" % (reverse('search'), django_urlquote(keywords)))
-
-
-def tags(request):#view showing a listing of available tags - plain list
- stag = ""
- is_paginated = True
- sortby = request.GET.get('sort', 'used')
- try:
- page = int(request.GET.get('page', '1'))
- except ValueError:
- page = 1
-
- if request.method == "GET":
- stag = request.GET.get("q", "").strip()
- if stag != '':
- objects_list = Paginator(Tag.objects.filter(deleted=False).exclude(used_count=0).extra(where=['name like %s'], params=['%' + stag + '%']), DEFAULT_PAGE_SIZE)
- else:
- if sortby == "name":
- objects_list = Paginator(Tag.objects.all().filter(deleted=False).exclude(used_count=0).order_by("name"), DEFAULT_PAGE_SIZE)
- else:
- objects_list = Paginator(Tag.objects.all().filter(deleted=False).exclude(used_count=0).order_by("-used_count"), DEFAULT_PAGE_SIZE)
-
- try:
- tags = objects_list.page(page)
- except (EmptyPage, InvalidPage):
- tags = objects_list.page(objects_list.num_pages)
-
- return render_to_response('tags.html', {
- "tags" : tags,
- "stag" : stag,
- "tab_id" : sortby,
- "keywords" : stag,
- "context" : {
- 'is_paginated' : is_paginated,
- 'pages': objects_list.num_pages,
- 'page': page,
- 'has_previous': tags.has_previous(),
- 'has_next': tags.has_next(),
- 'previous': tags.previous_page_number(),
- 'next': tags.next_page_number(),
- 'base_url' : reverse('tags') + '?sort=%s&' % sortby
- }
- }, context_instance=RequestContext(request))
-
-def get_answer_sort_order(request):
- view_dic = {"latest":"-added_at", "oldest":"added_at", "votes":"-score" }
-
- view_id = request.GET.get('sort', request.session.get('answer_sort_order', None))
-
- if view_id is None or not view_id in view_dic:
- view_id = "votes"
-
- if view_id != request.session.get('answer_sort_order', None):
- request.session['answer_sort_order'] = view_id
-
- return (view_id, view_dic[view_id])
-
-def update_question_view_times(request, question):
- if not 'question_view_times' in request.session:
- request.session['question_view_times'] = {}
-
- last_seen = request.session['question_view_times'].get(question.id,None)
- updated_when, updated_who = question.get_last_update_info()
-
- if not last_seen or last_seen < updated_when:
- question.view_count = question.view_count + 1
- question_view.send(sender=update_question_view_times, instance=question, user=request.user)
-
- request.session['question_view_times'][question.id] = datetime.datetime.now()
-
-def question(request, id, slug):
- question = get_object_or_404(Question, id=id)
-
- if slug != urlquote(slugify(question.title)):
- return HttpResponseRedirect(question.get_absolute_url())
-
- page = int(request.GET.get('page', 1))
- view_id, order_by = get_answer_sort_order(request)
-
- if question.deleted and not request.user.can_view_deleted_post(question):
- raise Http404
-
- answer_form = AnswerForm(question,request.user)
- answers = request.user.get_visible_answers(question)
-
- if answers is not None:
- answers = [a for a in answers.order_by("-accepted", order_by)
- if not a.deleted or a.author == request.user]
-
- objects_list = Paginator(answers, ANSWERS_PAGE_SIZE)
- page_objects = objects_list.page(page)
-
- update_question_view_times(request, question)
-
- if request.user.is_authenticated():
- try:
- subscription = QuestionSubscription.objects.get(question=question, user=request.user)
- except:
- subscription = False
- else:
- subscription = False
-
- return render_to_response('question.html', {
- "question" : question,
- "answer" : answer_form,
- "answers" : page_objects.object_list,
- "tags" : question.tags.all(),
- "tab_id" : view_id,
- "similar_questions" : question.get_related_questions(),
- "subscription": subscription,
- "context" : {
- 'is_paginated' : True,
- 'pages': objects_list.num_pages,
- 'page': page,
- 'has_previous': page_objects.has_previous(),
- 'has_next': page_objects.has_next(),
- 'previous': page_objects.previous_page_number(),
- 'next': page_objects.next_page_number(),
- 'base_url' : request.path + '?sort=%s&' % view_id,
- 'extend_url' : "#sort-top"
- }
- }, context_instance=RequestContext(request))
-
-
-QUESTION_REVISION_TEMPLATE = ('<h1>%(title)s</h1>\n'
- '<div class="text">%(html)s</div>\n'
- '<div class="tags">%(tags)s</div>')
-def question_revisions(request, id):
- post = get_object_or_404(Question, id=id)
- revisions = list(post.revisions.all())
- revisions.reverse()
- for i, revision in enumerate(revisions):
- revision.html = QUESTION_REVISION_TEMPLATE % {
- 'title': revision.title,
- 'html': sanitize_html(markdowner.convert(revision.text)),
- 'tags': ' '.join(['<a class="post-tag">%s</a>' % tag
- for tag in revision.tagnames.split(' ')]),
- }
- if i > 0:
- revisions[i].diff = htmldiff(revisions[i-1].html, revision.html)
- else:
- revisions[i].diff = QUESTION_REVISION_TEMPLATE % {
- 'title': revisions[0].title,
- 'html': sanitize_html(markdowner.convert(revisions[0].text)),
- 'tags': ' '.join(['<a class="post-tag">%s</a>' % tag
- for tag in revisions[0].tagnames.split(' ')]),
- }
- revisions[i].summary = _('initial version')
- return render_to_response('revisions_question.html', {
- 'post': post,
- 'revisions': revisions,
- }, context_instance=RequestContext(request))
-
-ANSWER_REVISION_TEMPLATE = ('<div class="text">%(html)s</div>')
-def answer_revisions(request, id):
- post = get_object_or_404(Answer, id=id)
- revisions = list(post.revisions.all())
- revisions.reverse()
- for i, revision in enumerate(revisions):
- revision.html = ANSWER_REVISION_TEMPLATE % {
- 'html': sanitize_html(markdowner.convert(revision.text))
- }
- if i > 0:
- revisions[i].diff = htmldiff(revisions[i-1].html, revision.html)
- else:
- revisions[i].diff = revisions[i].text
- revisions[i].summary = _('initial version')
- return render_to_response('revisions_answer.html', {
- 'post': post,
- 'revisions': revisions,
- }, context_instance=RequestContext(request))
-
+++ /dev/null
-from django.contrib.auth.decorators import login_required\r
-from forum.models import User\r
-from django.core.paginator import Paginator, EmptyPage, InvalidPage\r
-from django.template.defaultfilters import slugify\r
-from django.contrib.contenttypes.models import ContentType\r
-from django.core.urlresolvers import reverse\r
-from django.shortcuts import render_to_response, get_object_or_404\r
-from django.template import RequestContext\r
-from django.http import HttpResponse, HttpResponseForbidden, HttpResponseRedirect, Http404\r
-from django.utils.translation import ugettext as _\r
-from django.utils.http import urlquote_plus\r
-from django.utils.html import strip_tags\r
-from django.utils import simplejson\r
-from django.core.urlresolvers import reverse\r
-from forum.forms import *\r
-from forum.utils.html import sanitize_html\r
-from forum.authentication import user_updated \r
-import time\r
-from django.contrib.contenttypes.models import ContentType\r
-\r
-question_type = ContentType.objects.get_for_model(Question)\r
-answer_type = ContentType.objects.get_for_model(Answer)\r
-comment_type = ContentType.objects.get_for_model(Comment)\r
-question_revision_type = ContentType.objects.get_for_model(QuestionRevision)\r
-answer_revision_type = ContentType.objects.get_for_model(AnswerRevision)\r
-repute_type = ContentType.objects.get_for_model(Repute)\r
-question_type_id = question_type.id\r
-answer_type_id = answer_type.id\r
-comment_type_id = comment_type.id\r
-question_revision_type_id = question_revision_type.id\r
-answer_revision_type_id = answer_revision_type.id\r
-repute_type_id = repute_type.id\r
-\r
-USERS_PAGE_SIZE = 35# refactor - move to some constants file\r
-\r
-def users(request):\r
- is_paginated = True\r
- sortby = request.GET.get('sort', 'reputation')\r
- suser = request.REQUEST.get('q', "")\r
- try:\r
- page = int(request.GET.get('page', '1'))\r
- except ValueError:\r
- page = 1\r
-\r
- if suser == "":\r
- if sortby == "newest":\r
- objects_list = Paginator(User.objects.all().order_by('-date_joined'), USERS_PAGE_SIZE)\r
- elif sortby == "last":\r
- objects_list = Paginator(User.objects.all().order_by('date_joined'), USERS_PAGE_SIZE)\r
- elif sortby == "user":\r
- objects_list = Paginator(User.objects.all().order_by('username'), USERS_PAGE_SIZE)\r
- # default\r
- else:\r
- objects_list = Paginator(User.objects.all().order_by('-reputation'), USERS_PAGE_SIZE)\r
- base_url = reverse('users') + '?sort=%s&' % sortby\r
- else:\r
- sortby = "reputation"\r
- objects_list = Paginator(User.objects.filter(username__icontains=suser).order_by('-reputation'), USERS_PAGE_SIZE)\r
- base_url = reverse('users') + '?name=%s&sort=%s&' % (suser, sortby)\r
-\r
- try:\r
- users = objects_list.page(page)\r
- except (EmptyPage, InvalidPage):\r
- users = objects_list.page(objects_list.num_pages)\r
-\r
- return render_to_response('users.html', {\r
- "users" : users,\r
- "suser" : suser,\r
- "keywords" : suser,\r
- "tab_id" : sortby,\r
- "context" : {\r
- 'is_paginated' : is_paginated,\r
- 'pages': objects_list.num_pages,\r
- 'page': page,\r
- 'has_previous': users.has_previous(),\r
- 'has_next': users.has_next(),\r
- 'previous': users.previous_page_number(),\r
- 'next': users.next_page_number(),\r
- 'base_url' : base_url\r
- }\r
-\r
- }, context_instance=RequestContext(request))\r
-\r
-@login_required\r
-def moderate_user(request, id):\r
- """ajax handler of user moderation\r
- """\r
- if not request.user.is_superuser or request.method != 'POST':\r
- raise Http404\r
- if not request.is_ajax():\r
- return HttpResponseForbidden(mimetype="application/json")\r
-\r
- user = get_object_or_404(User, id=id)\r
- form = ModerateUserForm(request.POST, instance=user)\r
-\r
- if form.is_valid():\r
- form.save()\r
- logging.debug('data saved')\r
- response = HttpResponse(simplejson.dumps(''), mimetype="application/json")\r
- else:\r
- response = HttpResponseForbidden(mimetype="application/json")\r
- return response\r
-\r
-def set_new_email(user, new_email, nomessage=False):\r
- if new_email != user.email:\r
- user.email = new_email\r
- user.email_isvalid = False\r
- user.save()\r
- #if settings.EMAIL_VALIDATION == 'on':\r
- # send_new_email_key(user,nomessage=nomessage) \r
-\r
-@login_required\r
-def edit_user(request, id):\r
- user = get_object_or_404(User, id=id)\r
- if request.user != user:\r
- raise Http404\r
- if request.method == "POST":\r
- form = EditUserForm(user, request.POST)\r
- if form.is_valid():\r
- new_email = sanitize_html(form.cleaned_data['email'])\r
-\r
- set_new_email(user, new_email)\r
-\r
- #user.username = sanitize_html(form.cleaned_data['username'])\r
- user.real_name = sanitize_html(form.cleaned_data['realname'])\r
- user.website = sanitize_html(form.cleaned_data['website'])\r
- user.location = sanitize_html(form.cleaned_data['city'])\r
- user.date_of_birth = sanitize_html(form.cleaned_data['birthday'])\r
- if len(user.date_of_birth) == 0:\r
- user.date_of_birth = '1900-01-01'\r
- user.about = sanitize_html(form.cleaned_data['about'])\r
-\r
- user.save()\r
- # send user updated singal if full fields have been updated\r
- if user.email and user.real_name and user.website and user.location and \\r
- user.date_of_birth and user.about:\r
- user_updated.send(sender=user.__class__, instance=user, updated_by=user)\r
- return HttpResponseRedirect(user.get_profile_url())\r
- else:\r
- form = EditUserForm(user)\r
- return render_to_response('user_edit.html', {\r
- 'form' : form,\r
- 'gravatar_faq_url' : reverse('faq') + '#gravatar',\r
- }, context_instance=RequestContext(request))\r
-\r
-def user_stats(request, user_id, user_view):\r
- user = get_object_or_404(User, id=user_id)\r
-\r
- questions = Question.objects.filter(deleted=False, author=user).order_by('-added_at')\r
-\r
- answered_questions = Question.objects.extra(\r
- select={\r
- 'vote_up_count' : 'answer.vote_up_count',\r
- 'vote_down_count' : 'answer.vote_down_count',\r
- 'answer_id' : 'answer.id',\r
- 'accepted' : 'answer.accepted',\r
- 'vote_count' : 'answer.score',\r
- 'comment_count' : 'answer.comment_count'\r
- },\r
- tables=['question', 'answer'],\r
- where=['NOT answer.deleted AND NOT question.deleted AND answer.author_id=%s AND answer.question_id=question.id'],\r
- params=[user_id],\r
- order_by=['-vote_count', '-answer_id'],\r
- select_params=[user_id]\r
- ).distinct().values('comment_count',\r
- 'id',\r
- 'answer_id',\r
- 'title',\r
- 'author_id',\r
- 'accepted',\r
- 'vote_count',\r
- 'answer_count',\r
- 'vote_up_count',\r
- 'vote_down_count')[:100]\r
-\r
- up_votes = user.get_up_vote_count()\r
- down_votes = user.get_down_vote_count()\r
- votes_today = user.get_vote_count_today()\r
- votes_total = int(settings.MAX_VOTES_PER_DAY)\r
-\r
- #question_id_set = set(map(lambda v: v['id'], list(questions))) \\r
- # | set(map(lambda v: v['id'], list(answered_questions)))\r
-\r
- user_tags = Tag.objects.filter(questions__author=user)\r
- try:\r
- from django.db.models import Count\r
- awards = Award.objects.extra(\r
- select={'id': 'badge.id', \r
- 'name':'badge.name', \r
- 'description': 'badge.description', \r
- 'type': 'badge.type'},\r
- tables=['award', 'badge'],\r
- order_by=['-awarded_at'],\r
- where=['user_id=%s AND badge_id=badge.id'],\r
- params=[user.id]\r
- ).values('id', 'name', 'description', 'type')\r
- total_awards = awards.count()\r
- awards = awards.annotate(count = Count('badge__id'))\r
- user_tags = user_tags.annotate(user_tag_usage_count=Count('name'))\r
-\r
- except ImportError:\r
- awards = Award.objects.extra(\r
- select={'id': 'badge.id', \r
- 'count': 'count(badge_id)', \r
- 'name':'badge.name', \r
- 'description': 'badge.description', \r
- 'type': 'badge.type'},\r
- tables=['award', 'badge'],\r
- order_by=['-awarded_at'],\r
- where=['user_id=%s AND badge_id=badge.id'],\r
- params=[user.id]\r
- ).values('id', 'count', 'name', 'description', 'type')\r
- total_awards = awards.count()\r
- awards.query.group_by = ['badge_id']\r
-\r
- user_tags = user_tags.extra(\r
- select={'user_tag_usage_count': 'COUNT(1)',},\r
- order_by=['-user_tag_usage_count'],\r
- )\r
- user_tags.query.group_by = ['name']\r
-\r
- if request.user.is_superuser:\r
- moderate_user_form = ModerateUserForm(instance=user)\r
- else:\r
- moderate_user_form = None\r
-\r
- return render_to_response(user_view.template_file,{\r
- 'moderate_user_form': moderate_user_form,\r
- "tab_name" : user_view.id,\r
- "tab_description" : user_view.tab_description,\r
- "page_title" : user_view.page_title,\r
- "view_user" : user,\r
- "questions" : questions,\r
- "answered_questions" : answered_questions,\r
- "up_votes" : up_votes,\r
- "down_votes" : down_votes,\r
- "total_votes": up_votes + down_votes,\r
- "votes_today_left": votes_total-votes_today,\r
- "votes_total_per_day": votes_total,\r
- "user_tags" : user_tags[:50],\r
- "awards": awards,\r
- "total_awards" : total_awards,\r
- }, context_instance=RequestContext(request))\r
-\r
-def user_recent(request, user_id, user_view):\r
- user = get_object_or_404(User, id=user_id)\r
- def get_type_name(type_id):\r
- for item in TYPE_ACTIVITY:\r
- if type_id in item:\r
- return item[1]\r
-\r
- class Event:\r
- def __init__(self, time, type, title, summary, answer_id, question_id):\r
- self.time = time\r
- self.type = get_type_name(type)\r
- self.type_id = type\r
- self.title = title\r
- self.summary = summary\r
- slug_title = slugify(title)\r
- self.title_link = reverse('question', kwargs={'id':question_id, 'slug':slug_title})\r
- if int(answer_id) > 0:\r
- self.title_link += '#%s' % answer_id\r
-\r
- class AwardEvent:\r
- def __init__(self, time, type, id):\r
- self.time = time\r
- self.type = get_type_name(type)\r
- self.type_id = type\r
- self.badge = get_object_or_404(Badge, id=id)\r
-\r
- activities = []\r
- # ask questions\r
- questions = Activity.objects.extra(\r
- select={\r
- 'title' : 'question.title',\r
- 'question_id' : 'question.id',\r
- 'active_at' : 'activity.active_at',\r
- 'activity_type' : 'activity.activity_type'\r
- },\r
- tables=['activity', 'question'],\r
- where=['activity.content_type_id = %s AND activity.object_id = ' +\r
- 'question.id AND NOT question.deleted AND activity.user_id = %s AND activity.activity_type = %s'],\r
- params=[question_type_id, user_id, TYPE_ACTIVITY_ASK_QUESTION],\r
- order_by=['-activity.active_at']\r
- ).values(\r
- 'title',\r
- 'question_id',\r
- 'active_at',\r
- 'activity_type'\r
- )\r
- if len(questions) > 0:\r
- questions = [(Event(q['active_at'], q['activity_type'], q['title'], '', '0', \\r
- q['question_id'])) for q in questions]\r
- activities.extend(questions)\r
-\r
- # answers\r
- answers = Activity.objects.extra(\r
- select={\r
- 'title' : 'question.title',\r
- 'question_id' : 'question.id',\r
- 'answer_id' : 'answer.id',\r
- 'active_at' : 'activity.active_at',\r
- 'activity_type' : 'activity.activity_type'\r
- },\r
- tables=['activity', 'answer', 'question'],\r
- where=['activity.content_type_id = %s AND activity.object_id = answer.id AND ' + \r
- 'answer.question_id=question.id AND NOT answer.deleted AND activity.user_id=%s AND '+\r
- 'activity.activity_type=%s AND NOT question.deleted'],\r
- params=[answer_type_id, user_id, TYPE_ACTIVITY_ANSWER],\r
- order_by=['-activity.active_at']\r
- ).values(\r
- 'title',\r
- 'question_id',\r
- 'answer_id',\r
- 'active_at',\r
- 'activity_type'\r
- )\r
- if len(answers) > 0:\r
- answers = [(Event(q['active_at'], q['activity_type'], q['title'], '', q['answer_id'], \\r
- q['question_id'])) for q in answers]\r
- activities.extend(answers)\r
-\r
- # question comments\r
- comments = Activity.objects.extra(\r
- select={\r
- 'title' : 'question.title',\r
- 'question_id' : 'comment.object_id',\r
- 'added_at' : 'comment.added_at',\r
- 'activity_type' : 'activity.activity_type'\r
- },\r
- tables=['activity', 'question', 'comment'],\r
-\r
- where=['activity.content_type_id = %s AND activity.object_id = comment.id AND '+\r
- 'activity.user_id = comment.user_id AND comment.object_id=question.id AND '+\r
- 'comment.content_type_id=%s AND activity.user_id = %s AND activity.activity_type=%s AND ' +\r
- 'NOT question.deleted'],\r
- params=[comment_type_id, question_type_id, user_id, TYPE_ACTIVITY_COMMENT_QUESTION],\r
- order_by=['-comment.added_at']\r
- ).values(\r
- 'title',\r
- 'question_id',\r
- 'added_at',\r
- 'activity_type'\r
- )\r
-\r
- if len(comments) > 0:\r
- comments = [(Event(q['added_at'], q['activity_type'], q['title'], '', '0', \\r
- q['question_id'])) for q in comments]\r
- activities.extend(comments)\r
-\r
- # answer comments\r
- comments = Activity.objects.extra(\r
- select={\r
- 'title' : 'question.title',\r
- 'question_id' : 'question.id',\r
- 'answer_id' : 'answer.id',\r
- 'added_at' : 'comment.added_at',\r
- 'activity_type' : 'activity.activity_type'\r
- },\r
- tables=['activity', 'question', 'answer', 'comment'],\r
-\r
- where=['activity.content_type_id = %s AND activity.object_id = comment.id AND '+\r
- 'activity.user_id = comment.user_id AND comment.object_id=answer.id AND '+\r
- 'comment.content_type_id=%s AND question.id = answer.question_id AND '+\r
- 'activity.user_id = %s AND activity.activity_type=%s AND '+\r
- 'NOT answer.deleted AND NOT question.deleted'],\r
- params=[comment_type_id, answer_type_id, user_id, TYPE_ACTIVITY_COMMENT_ANSWER],\r
- order_by=['-comment.added_at']\r
- ).values(\r
- 'title',\r
- 'question_id',\r
- 'answer_id',\r
- 'added_at',\r
- 'activity_type'\r
- )\r
-\r
- if len(comments) > 0:\r
- comments = [(Event(q['added_at'], q['activity_type'], q['title'], '', q['answer_id'], \\r
- q['question_id'])) for q in comments]\r
- activities.extend(comments)\r
-\r
- # question revisions\r
- revisions = Activity.objects.extra(\r
- select={\r
- 'title' : 'question_revision.title',\r
- 'question_id' : 'question_revision.question_id',\r
- 'added_at' : 'activity.active_at',\r
- 'activity_type' : 'activity.activity_type',\r
- 'summary' : 'question_revision.summary'\r
- },\r
- tables=['activity', 'question_revision', 'question'],\r
- where=['activity.content_type_id = %s AND activity.object_id = question_revision.id AND '+\r
- 'question_revision.id=question.id AND NOT question.deleted AND '+\r
- 'activity.user_id = question_revision.author_id AND activity.user_id = %s AND '+\r
- 'activity.activity_type=%s'],\r
- params=[question_revision_type_id, user_id, TYPE_ACTIVITY_UPDATE_QUESTION],\r
- order_by=['-activity.active_at']\r
- ).values(\r
- 'title',\r
- 'question_id',\r
- 'added_at',\r
- 'activity_type',\r
- 'summary'\r
- )\r
-\r
- if len(revisions) > 0:\r
- revisions = [(Event(q['added_at'], q['activity_type'], q['title'], q['summary'], '0', \\r
- q['question_id'])) for q in revisions]\r
- activities.extend(revisions)\r
-\r
- # answer revisions\r
- revisions = Activity.objects.extra(\r
- select={\r
- 'title' : 'question.title',\r
- 'question_id' : 'question.id',\r
- 'answer_id' : 'answer.id',\r
- 'added_at' : 'activity.active_at',\r
- 'activity_type' : 'activity.activity_type',\r
- 'summary' : 'answer_revision.summary'\r
- },\r
- tables=['activity', 'answer_revision', 'question', 'answer'],\r
-\r
- where=['activity.content_type_id = %s AND activity.object_id = answer_revision.id AND '+\r
- 'activity.user_id = answer_revision.author_id AND activity.user_id = %s AND '+\r
- 'answer_revision.answer_id=answer.id AND answer.question_id = question.id AND '+\r
- 'NOT question.deleted AND NOT answer.deleted AND '+\r
- 'activity.activity_type=%s'],\r
- params=[answer_revision_type_id, user_id, TYPE_ACTIVITY_UPDATE_ANSWER],\r
- order_by=['-activity.active_at']\r
- ).values(\r
- 'title',\r
- 'question_id',\r
- 'added_at',\r
- 'answer_id',\r
- 'activity_type',\r
- 'summary'\r
- )\r
-\r
- if len(revisions) > 0:\r
- revisions = [(Event(q['added_at'], q['activity_type'], q['title'], q['summary'], \\r
- q['answer_id'], q['question_id'])) for q in revisions]\r
- activities.extend(revisions)\r
-\r
- # accepted answers\r
- accept_answers = Activity.objects.extra(\r
- select={\r
- 'title' : 'question.title',\r
- 'question_id' : 'question.id',\r
- 'added_at' : 'activity.active_at',\r
- 'activity_type' : 'activity.activity_type',\r
- },\r
- tables=['activity', 'answer', 'question'],\r
- where=['activity.content_type_id = %s AND activity.object_id = answer.id AND '+\r
- 'activity.user_id = question.author_id AND activity.user_id = %s AND '+\r
- 'NOT answer.deleted AND NOT question.deleted AND '+\r
- 'answer.question_id=question.id AND activity.activity_type=%s'],\r
- params=[answer_type_id, user_id, TYPE_ACTIVITY_MARK_ANSWER],\r
- order_by=['-activity.active_at']\r
- ).values(\r
- 'title',\r
- 'question_id',\r
- 'added_at',\r
- 'activity_type',\r
- )\r
- if len(accept_answers) > 0:\r
- accept_answers = [(Event(q['added_at'], q['activity_type'], q['title'], '', '0', \\r
- q['question_id'])) for q in accept_answers]\r
- activities.extend(accept_answers)\r
- #award history\r
- awards = Activity.objects.extra(\r
- select={\r
- 'badge_id' : 'badge.id',\r
- 'awarded_at': 'award.awarded_at',\r
- 'activity_type' : 'activity.activity_type'\r
- },\r
- tables=['activity', 'award', 'badge'],\r
- where=['activity.user_id = award.user_id AND activity.user_id = %s AND '+\r
- 'award.badge_id=badge.id AND activity.object_id=award.id AND activity.activity_type=%s'],\r
- params=[user_id, TYPE_ACTIVITY_PRIZE],\r
- order_by=['-activity.active_at']\r
- ).values(\r
- 'badge_id',\r
- 'awarded_at',\r
- 'activity_type'\r
- )\r
- if len(awards) > 0:\r
- awards = [(AwardEvent(q['awarded_at'], q['activity_type'], q['badge_id'])) for q in awards]\r
- activities.extend(awards)\r
-\r
- activities.sort(lambda x,y: cmp(y.time, x.time))\r
-\r
- return render_to_response(user_view.template_file,{\r
- "tab_name" : user_view.id,\r
- "tab_description" : user_view.tab_description,\r
- "page_title" : user_view.page_title,\r
- "view_user" : user,\r
- "activities" : activities[:user_view.data_size]\r
- }, context_instance=RequestContext(request))\r
-\r
-def user_responses(request, user_id, user_view):\r
- """\r
- We list answers for question, comments, and answer accepted by others for this user.\r
- """\r
- class Response:\r
- def __init__(self, type, title, question_id, answer_id, time, username, user_id, content):\r
- self.type = type\r
- self.title = title\r
- self.titlelink = reverse('question', args=[question_id]) + u'%s#%s' % (slugify(title), answer_id)\r
- self.time = time\r
- self.userlink = reverse('users') + u'%s/%s/' % (user_id, username)\r
- self.username = username\r
- self.content = u'%s ...' % strip_tags(content)[:300]\r
-\r
- def __unicode__(self):\r
- return u'%s %s' % (self.type, self.titlelink)\r
-\r
- user = get_object_or_404(User, id=user_id)\r
- responses = []\r
- answers = Answer.objects.extra(\r
- select={\r
- 'title' : 'question.title',\r
- 'question_id' : 'question.id',\r
- 'answer_id' : 'answer.id',\r
- 'added_at' : 'answer.added_at',\r
- 'html' : 'answer.html',\r
- 'username' : 'auth_user.username',\r
- 'user_id' : 'auth_user.id'\r
- },\r
- select_params=[user_id],\r
- tables=['answer', 'question', 'auth_user'],\r
- where=['answer.question_id = question.id AND NOT answer.deleted AND NOT question.deleted AND '+\r
- 'question.author_id = %s AND answer.author_id <> %s AND answer.author_id=auth_user.id'],\r
- params=[user_id, user_id],\r
- order_by=['-answer.id']\r
- ).values(\r
- 'title',\r
- 'question_id',\r
- 'answer_id',\r
- 'added_at',\r
- 'html',\r
- 'username',\r
- 'user_id'\r
- )\r
- if len(answers) > 0:\r
- answers = [(Response(TYPE_RESPONSE['QUESTION_ANSWERED'], a['title'], a['question_id'],\r
- a['answer_id'], a['added_at'], a['username'], a['user_id'], a['html'])) for a in answers]\r
- responses.extend(answers)\r
-\r
-\r
- # question comments\r
- comments = Comment.active.extra(\r
- select={\r
- 'title' : 'question.title',\r
- 'question_id' : 'comment.object_id',\r
- 'added_at' : 'comment.added_at',\r
- 'comment' : 'comment.comment',\r
- 'username' : 'auth_user.username',\r
- 'user_id' : 'auth_user.id'\r
- },\r
- tables=['question', 'auth_user', 'comment'],\r
- where=['NOT question.deleted AND question.author_id = %s AND comment.object_id=question.id AND '+\r
- 'comment.content_type_id=%s AND comment.user_id <> %s AND comment.user_id = auth_user.id'],\r
- params=[user_id, question_type_id, user_id],\r
- order_by=['-comment.added_at']\r
- ).values(\r
- 'title',\r
- 'question_id',\r
- 'added_at',\r
- 'comment',\r
- 'username',\r
- 'user_id'\r
- )\r
-\r
- if len(comments) > 0:\r
- comments = [(Response(TYPE_RESPONSE['QUESTION_COMMENTED'], c['title'], c['question_id'],\r
- '', c['added_at'], c['username'], c['user_id'], c['comment'])) for c in comments]\r
- responses.extend(comments)\r
-\r
- # answer comments\r
- comments = Comment.active.extra(\r
- select={\r
- 'title' : 'question.title',\r
- 'question_id' : 'question.id',\r
- 'answer_id' : 'answer.id',\r
- 'added_at' : 'comment.added_at',\r
- 'comment' : 'comment.comment',\r
- 'username' : 'auth_user.username',\r
- 'user_id' : 'auth_user.id'\r
- },\r
- tables=['answer', 'auth_user', 'comment', 'question'],\r
- where=['NOT answer.deleted AND answer.author_id = %s AND comment.object_id=answer.id AND '+\r
- 'comment.content_type_id=%s AND comment.user_id <> %s AND comment.user_id = auth_user.id '+\r
- 'AND question.id = answer.question_id'],\r
- params=[user_id, answer_type_id, user_id],\r
- order_by=['-comment.added_at']\r
- ).values(\r
- 'title',\r
- 'question_id',\r
- 'answer_id',\r
- 'added_at',\r
- 'comment',\r
- 'username',\r
- 'user_id'\r
- )\r
-\r
- if len(comments) > 0:\r
- comments = [(Response(TYPE_RESPONSE['ANSWER_COMMENTED'], c['title'], c['question_id'],\r
- c['answer_id'], c['added_at'], c['username'], c['user_id'], c['comment'])) for c in comments]\r
- responses.extend(comments)\r
-\r
- # answer has been accepted\r
- answers = Answer.objects.extra(\r
- select={\r
- 'title' : 'question.title',\r
- 'question_id' : 'question.id',\r
- 'answer_id' : 'answer.id',\r
- 'added_at' : 'answer.accepted_at',\r
- 'html' : 'answer.html',\r
- 'username' : 'auth_user.username',\r
- 'user_id' : 'auth_user.id'\r
- },\r
- select_params=[user_id],\r
- tables=['answer', 'question', 'auth_user'],\r
- where=['answer.question_id = question.id AND NOT answer.deleted AND NOT question.deleted AND '+\r
- 'answer.author_id = %s AND answer.accepted=True AND question.author_id=auth_user.id'],\r
- params=[user_id],\r
- order_by=['-answer.id']\r
- ).values(\r
- 'title',\r
- 'question_id',\r
- 'answer_id',\r
- 'added_at',\r
- 'html',\r
- 'username',\r
- 'user_id'\r
- )\r
- if len(answers) > 0:\r
- answers = [(Response(TYPE_RESPONSE['ANSWER_ACCEPTED'], a['title'], a['question_id'],\r
- a['answer_id'], a['added_at'], a['username'], a['user_id'], a['html'])) for a in answers]\r
- responses.extend(answers)\r
-\r
- # sort posts by time\r
- responses.sort(lambda x,y: cmp(y.time, x.time))\r
-\r
- return render_to_response(user_view.template_file,{\r
- "tab_name" : user_view.id,\r
- "tab_description" : user_view.tab_description,\r
- "page_title" : user_view.page_title,\r
- "view_user" : user,\r
- "responses" : responses[:user_view.data_size],\r
-\r
- }, context_instance=RequestContext(request))\r
-\r
-def user_votes(request, user_id, user_view):\r
- user = get_object_or_404(User, id=user_id)\r
- if not request.user == user:\r
- raise Http404\r
- votes = []\r
- question_votes = Vote.active.extra(\r
- select={\r
- 'title' : 'question.title',\r
- 'question_id' : 'question.id',\r
- 'answer_id' : 0,\r
- 'voted_at' : 'vote.voted_at',\r
- 'vote' : 'vote',\r
- },\r
- select_params=[user_id],\r
- tables=['vote', 'question', 'auth_user'],\r
- where=['vote.content_type_id = %s AND vote.user_id = %s AND vote.object_id = question.id '+\r
- 'AND vote.user_id=auth_user.id'],\r
- params=[question_type_id, user_id],\r
- order_by=['-vote.id']\r
- ).values(\r
- 'title',\r
- 'question_id',\r
- 'answer_id',\r
- 'voted_at',\r
- 'vote',\r
- )\r
- if(len(question_votes) > 0):\r
- votes.extend(question_votes)\r
-\r
- answer_votes = Vote.active.extra(\r
- select={\r
- 'title' : 'question.title',\r
- 'question_id' : 'question.id',\r
- 'answer_id' : 'answer.id',\r
- 'voted_at' : 'vote.voted_at',\r
- 'vote' : 'vote',\r
- },\r
- select_params=[user_id],\r
- tables=['vote', 'answer', 'question', 'auth_user'],\r
- where=['vote.content_type_id = %s AND vote.user_id = %s AND vote.object_id = answer.id '+\r
- 'AND answer.question_id = question.id AND vote.user_id=auth_user.id'],\r
- params=[answer_type_id, user_id],\r
- order_by=['-vote.id']\r
- ).values(\r
- 'title',\r
- 'question_id',\r
- 'answer_id',\r
- 'voted_at',\r
- 'vote',\r
- )\r
-\r
- if(len(answer_votes) > 0):\r
- votes.extend(answer_votes)\r
- votes.sort(lambda x,y: cmp(y['voted_at'], x['voted_at']))\r
- return render_to_response(user_view.template_file,{\r
- "tab_name" : user_view.id,\r
- "tab_description" : user_view.tab_description,\r
- "page_title" : user_view.page_title,\r
- "view_user" : user,\r
- "votes" : votes[:user_view.data_size]\r
-\r
- }, context_instance=RequestContext(request))\r
-\r
-def user_reputation(request, user_id, user_view):\r
- user = get_object_or_404(User, id=user_id)\r
-\r
- reputation = user.reputes.order_by('-reputed_at')\r
-\r
- graph_data = simplejson.dumps([\r
- (time.mktime(rep.reputed_at.timetuple()) * 1000, rep.reputation)\r
- for rep in reputation\r
- ])\r
-\r
- return render_to_response(user_view.template_file, {\r
- "tab_name": user_view.id,\r
- "tab_description": user_view.tab_description,\r
- "page_title": user_view.page_title,\r
- "view_user": user,\r
- "reputation": reputation,\r
- "graph_data": graph_data\r
- }, context_instance=RequestContext(request))\r
-\r
-def user_favorites(request, user_id, user_view):\r
- user = get_object_or_404(User, id=user_id)\r
- questions = Question.objects.extra(\r
- select={\r
- 'vote_count' : 'question.vote_up_count + question.vote_down_count',\r
- 'favorited_myself' : 'SELECT count(*) FROM favorite_question f WHERE f.user_id = %s '+\r
- 'AND f.question_id = question.id',\r
- 'la_user_id' : 'auth_user.id',\r
- 'la_username' : 'auth_user.username',\r
- 'la_user_gold' : 'forum_user.gold',\r
- 'la_user_silver' : 'forum_user.silver',\r
- 'la_user_bronze' : 'forum_user.bronze',\r
- 'la_user_reputation' : 'forum_user.reputation'\r
- },\r
- select_params=[user_id],\r
- tables=['question', 'auth_user', 'favorite_question', 'forum_user'],\r
- where=['NOT question.deleted AND question.last_activity_by_id = auth_user.id '+\r
- 'AND favorite_question.question_id = question.id AND favorite_question.user_id = %s AND forum_user.user_ptr_id = auth_user.id'],\r
- params=[user_id],\r
- order_by=['-vote_count', '-question.id']\r
- ).values('vote_count',\r
- 'favorited_myself',\r
- 'id',\r
- 'title',\r
- 'author_id',\r
- 'added_at',\r
- 'answer_accepted',\r
- 'answer_count',\r
- 'comment_count',\r
- 'view_count',\r
- 'favourite_count',\r
- 'summary',\r
- 'tagnames',\r
- 'vote_up_count',\r
- 'vote_down_count',\r
- 'last_activity_at',\r
- 'la_user_id',\r
- 'la_username',\r
- 'la_user_gold',\r
- 'la_user_silver',\r
- 'la_user_bronze',\r
- 'la_user_reputation')\r
- return render_to_response(user_view.template_file,{\r
- "tab_name" : user_view.id,\r
- "tab_description" : user_view.tab_description,\r
- "page_title" : user_view.page_title,\r
- "questions" : questions[:user_view.data_size],\r
- "view_user" : user\r
- }, context_instance=RequestContext(request))\r
-\r
-def user_subscription_settings(request, user_id, user_view):\r
- user = get_object_or_404(User, id=user_id)\r
-\r
- if request.method == 'POST':\r
- form = SubscriptionSettingsForm(request.POST)\r
-\r
- if 'notswitch' in request.POST:\r
- user.subscription_settings.enable_notifications = not user.subscription_settings.enable_notifications\r
- user.subscription_settings.save()\r
-\r
- if user.subscription_settings.enable_notifications:\r
- request.user.message_set.create(message=_('Notifications are now enabled'))\r
- else:\r
- request.user.message_set.create(message=_('Notifications are now disabled'))\r
- else:\r
- form.is_valid()\r
- for k,v in form.cleaned_data.items():\r
- setattr(user.subscription_settings, k, v)\r
-\r
- user.subscription_settings.save()\r
- request.user.message_set.create(message=_('New subscription settings are now saved'))\r
- else:\r
- form = SubscriptionSettingsForm(user.subscription_settings.__dict__)\r
-\r
- notificatons_on = user.subscription_settings.enable_notifications\r
-\r
- return render_to_response(user_view.template_file,{\r
- 'tab_name':user_view.id,\r
- 'tab_description':user_view.tab_description,\r
- 'page_title':user_view.page_title,\r
- 'view_user':user,\r
- 'notificatons_on': notificatons_on,\r
- 'form':form,\r
- }, context_instance=RequestContext(request))\r
-\r
-class UserView:\r
- def __init__(self, id, tab_title, tab_description, page_title, view_func, template_file, data_size=0):\r
- self.id = id\r
- self.tab_title = tab_title\r
- self.tab_description = tab_description\r
- self.page_title = page_title\r
- self.view_func = view_func \r
- self.template_file = template_file\r
- self.data_size = data_size\r
- \r
-USER_TEMPLATE_VIEWS = (\r
- UserView(\r
- id = 'stats',\r
- tab_title = _('overview'),\r
- tab_description = _('user profile'),\r
- page_title = _('user profile overview'),\r
- view_func = user_stats,\r
- template_file = 'user_stats.html'\r
- ),\r
- UserView(\r
- id = 'recent',\r
- tab_title = _('recent activity'),\r
- tab_description = _('recent user activity'),\r
- page_title = _('profile - recent activity'),\r
- view_func = user_recent,\r
- template_file = 'user_recent.html',\r
- data_size = 50\r
- ),\r
- UserView(\r
- id = 'responses',\r
- tab_title = _('responses'),\r
- tab_description = _('comments and answers to others questions'),\r
- page_title = _('profile - responses'),\r
- view_func = user_responses,\r
- template_file = 'user_responses.html',\r
- data_size = 50\r
- ),\r
- UserView(\r
- id = 'reputation',\r
- tab_title = _('reputation'),\r
- tab_description = _('user reputation in the community'),\r
- page_title = _('profile - user reputation'),\r
- view_func = user_reputation,\r
- template_file = 'user_reputation.html'\r
- ),\r
- UserView(\r
- id = 'favorites',\r
- tab_title = _('favorite questions'),\r
- tab_description = _('users favorite questions'),\r
- page_title = _('profile - favorite questions'),\r
- view_func = user_favorites,\r
- template_file = 'user_favorites.html',\r
- data_size = 50\r
- ),\r
- UserView(\r
- id = 'votes',\r
- tab_title = _('casted votes'),\r
- tab_description = _('user vote record'),\r
- page_title = _('profile - votes'),\r
- view_func = user_votes,\r
- template_file = 'user_votes.html',\r
- data_size = 50\r
- ),\r
- UserView(\r
- id = 'subscriptions',\r
- tab_title = _('subscriptions'),\r
- tab_description = _('subscription settings'),\r
- page_title = _('profile - subscriptions'),\r
- view_func = user_subscription_settings,\r
- template_file = 'user_subscriptions.html'\r
- )\r
-)\r
-\r
-def user(request, id, slug=None):\r
- sort = request.GET.get('sort', 'stats')\r
- user_view = dict((v.id, v) for v in USER_TEMPLATE_VIEWS).get(sort, USER_TEMPLATE_VIEWS[0])\r
- from forum.views import users\r
- func = user_view.view_func\r
- return func(request, id, user_view)\r
-\r
-@login_required\r
-def account_settings(request):\r
- """\r
- index pages to changes some basic account settings :\r
- - change password\r
- - change email\r
- - associate a new openid\r
- - delete account\r
-\r
- url : /\r
-\r
- template : authopenid/settings.html\r
- """\r
- logging.debug('')\r
- msg = request.GET.get('msg', '')\r
- is_openid = False\r
-\r
- return render_to_response('account_settings.html', {\r
- 'msg': msg,\r
- 'is_openid': is_openid\r
- }, context_instance=RequestContext(request))\r
-\r
+++ /dev/null
-# encoding:utf-8
-import os.path
-import time, datetime, random
-import logging
-from django.core.files.storage import FileSystemStorage
-from django.shortcuts import render_to_response, get_object_or_404
-from django.contrib.auth.decorators import login_required
-from django.http import HttpResponseRedirect, HttpResponse, HttpResponseForbidden, Http404
-from django.template import RequestContext
-from django.utils.html import *
-from django.utils import simplejson
-from django.utils.translation import ugettext as _
-from django.core.urlresolvers import reverse
-from django.core.exceptions import PermissionDenied
-
-from forum.utils.html import sanitize_html
-from markdown2 import Markdown
-from forum.forms import *
-from forum.models import *
-from forum.const import *
-from forum.utils.forms import get_next_url
-from forum.views.readers import _get_tags_cache_json
-
-# used in index page
-INDEX_PAGE_SIZE = 20
-INDEX_AWARD_SIZE = 15
-INDEX_TAGS_SIZE = 100
-# used in tags list
-DEFAULT_PAGE_SIZE = 60
-# used in questions
-QUESTIONS_PAGE_SIZE = 10
-# used in answers
-ANSWERS_PAGE_SIZE = 10
-
-markdowner = Markdown(html4tags=True)
-
-def upload(request):#ajax upload file to a question or answer
- class FileTypeNotAllow(Exception):
- pass
- class FileSizeNotAllow(Exception):
- pass
- class UploadPermissionNotAuthorized(Exception):
- pass
-
- #<result><msg><![CDATA[%s]]></msg><error><![CDATA[%s]]></error><file_url>%s</file_url></result>
- xml_template = "<result><msg><![CDATA[%s]]></msg><error><![CDATA[%s]]></error><file_url>%s</file_url></result>"
-
- try:
- f = request.FILES['file-upload']
- # check upload permission
- if not request.user.can_upload_files():
- raise UploadPermissionNotAuthorized()
-
- # check file type
- file_name_suffix = os.path.splitext(f.name)[1].lower()
-
- if not file_name_suffix in ('.jpg', '.jpeg', '.gif', '.png', '.bmp', '.tiff', '.ico'):
- raise FileTypeNotAllow()
-
- storage = FileSystemStorage(str(settings.UPFILES_FOLDER), str(settings.UPFILES_ALIAS))
- new_file_name = storage.save(f.name, f)
- # check file size
- # byte
- size = storage.size(new_file_name)
-
- if size > float(settings.ALLOW_MAX_FILE_SIZE) * 1024 * 1024:
- storage.delete(new_file_name)
- raise FileSizeNotAllow()
-
- result = xml_template % ('Good', '', str(settings.UPFILES_ALIAS) + new_file_name)
- except UploadPermissionNotAuthorized:
- result = xml_template % ('', _('uploading images is limited to users with >60 reputation points'), '')
- except FileTypeNotAllow:
- result = xml_template % ('', _("allowed file types are 'jpg', 'jpeg', 'gif', 'bmp', 'png', 'tiff'"), '')
- except FileSizeNotAllow:
- result = xml_template % ('', _("maximum upload file size is %sM") % settings.ALLOW_MAX_FILE_SIZE, '')
- except Exception, e:
- result = xml_template % ('', _('Error uploading file. Please contact the site administrator. Thank you. %s' % e), '')
-
- return HttpResponse(result, mimetype="application/xml")
-
-
-def ask(request):
- if request.method == "POST" and "text" in request.POST:
- form = AskForm(request.POST)
- if form.is_valid():
-
- added_at = datetime.datetime.now()
- title = strip_tags(form.cleaned_data['title'].strip())
- wiki = form.cleaned_data['wiki']
- tagnames = form.cleaned_data['tags'].strip()
- text = form.cleaned_data['text']
- html = sanitize_html(markdowner.convert(text))
- summary = strip_tags(html)[:120]
-
- if request.user.is_authenticated():
- author = request.user
-
- question = Question.objects.create_new(
- title = title,
- author = author,
- added_at = added_at,
- wiki = wiki,
- tagnames = tagnames,
- summary = summary,
- text = sanitize_html(markdowner.convert(text))
- )
-
- return HttpResponseRedirect(question.get_absolute_url())
- else:
- request.session.flush()
- session_key = request.session.session_key
- question = AnonymousQuestion(
- session_key = session_key,
- title = title,
- tagnames = tagnames,
- wiki = wiki,
- text = text,
- summary = summary,
- added_at = added_at,
- ip_addr = request.META['REMOTE_ADDR'],
- )
- question.save()
- return HttpResponseRedirect(reverse('auth_action_signin', kwargs={'action': 'newquestion'}))
- elif request.method == "POST" and "go" in request.POST:
- form = AskForm({'title': request.POST['q']})
- else:
- form = AskForm()
-
- tags = _get_tags_cache_json()
- return render_to_response('ask.html', {
- 'form' : form,
- 'tags' : tags,
- 'email_validation_faq_url':reverse('faq') + '#validate',
- }, context_instance=RequestContext(request))
-
-@login_required
-def edit_question(request, id):#edit or retag a question
- """view to edit question
- """
- question = get_object_or_404(Question, id=id)
- if question.deleted and not request.user.can_view_deleted_post(question):
- raise Http404
- if request.user.can_edit_post(question):
- return _edit_question(request, question)
- elif request.user.can_retag_questions():
- return _retag_question(request, question)
- else:
- raise Http404
-
-def _retag_question(request, question):#non-url subview of edit question - just retag
- """retag question sub-view used by
- view "edit_question"
- """
- if request.method == 'POST':
- form = RetagQuestionForm(question, request.POST)
- if form.is_valid():
- if form.has_changed():
- latest_revision = question.get_latest_revision()
- retagged_at = datetime.datetime.now()
-
- question.tagnames = form.cleaned_data['tags']
- question.last_edited_at = retagged_at
- question.last_edited_by = request.user
- question.last_activity_at = retagged_at
- question.last_activity_by = request.user
- question.save()
-
- # Create a new revision
- QuestionRevision.objects.create(
- question = question,
- title = latest_revision.title,
- author = request.user,
- revised_at = retagged_at,
- tagnames = form.cleaned_data['tags'],
- summary = CONST['retagged'],
- text = latest_revision.text
- )
-
- return HttpResponseRedirect(question.get_absolute_url())
- else:
- form = RetagQuestionForm(question)
- return render_to_response('question_retag.html', {
- 'question': question,
- 'form' : form,
- 'tags' : _get_tags_cache_json(),
- }, context_instance=RequestContext(request))
-
-def _edit_question(request, question):#non-url subview of edit_question - just edit the body/title
- latest_revision = question.get_latest_revision()
- revision_form = None
- if request.method == 'POST':
- if 'select_revision' in request.POST:
- # user has changed revistion number
- revision_form = RevisionForm(question, latest_revision, request.POST)
- if revision_form.is_valid():
- # Replace with those from the selected revision
- form = EditQuestionForm(question,
- QuestionRevision.objects.get(question=question,
- revision=revision_form.cleaned_data['revision']))
- else:
- form = EditQuestionForm(question, latest_revision, request.POST)
- else:
- # Always check modifications against the latest revision
- form = EditQuestionForm(question, latest_revision, request.POST)
- if form.is_valid():
- html = sanitize_html(markdowner.convert(form.cleaned_data['text']))
- if form.has_changed():
- edited_at = datetime.datetime.now()
- tags_changed = (latest_revision.tagnames !=
- form.cleaned_data['tags'])
-
- # Update the Question itself
- question.title = form.cleaned_data['title']
- question.last_edited_at = edited_at
- question.last_edited_by = request.user
- question.last_activity_at = edited_at
- question.last_activity_by = request.user
- question.tagnames = form.cleaned_data['tags']
- question.summary = strip_tags(html)[:120]
- question.html = html
-
- # only save when it's checked
- # because wiki doesn't allow to be edited if last version has been enabled already
- # and we make sure this in forms.
- if ('wiki' in form.cleaned_data and
- form.cleaned_data['wiki']):
- question.wiki = True
- question.wikified_at = edited_at
-
- question.save()
-
- # Create a new revision
- revision = QuestionRevision(
- question = question,
- title = form.cleaned_data['title'],
- author = request.user,
- revised_at = edited_at,
- tagnames = form.cleaned_data['tags'],
- text = form.cleaned_data['text'],
- )
- if form.cleaned_data['summary']:
- revision.summary = form.cleaned_data['summary']
- else:
- revision.summary = 'No.%s Revision' % latest_revision.revision
- revision.save()
-
- return HttpResponseRedirect(question.get_absolute_url())
- else:
-
- revision_form = RevisionForm(question, latest_revision)
- form = EditQuestionForm(question, latest_revision)
- return render_to_response('question_edit.html', {
- 'question': question,
- 'revision_form': revision_form,
- 'form' : form,
- 'tags' : _get_tags_cache_json()
- }, context_instance=RequestContext(request))
-
-@login_required
-def edit_answer(request, id):
- answer = get_object_or_404(Answer, id=id)
- if answer.deleted and not request.user.can_view_deleted_post(answer):
- raise Http404
- elif not request.user.can_edit_post(answer):
- raise Http404
- else:
- latest_revision = answer.get_latest_revision()
- if request.method == "POST":
- if 'select_revision' in request.POST:
- # user has changed revistion number
- revision_form = RevisionForm(answer, latest_revision, request.POST)
- if revision_form.is_valid():
- # Replace with those from the selected revision
- form = EditAnswerForm(answer,
- AnswerRevision.objects.get(answer=answer,
- revision=revision_form.cleaned_data['revision']))
- else:
- form = EditAnswerForm(answer, latest_revision, request.POST)
- else:
- form = EditAnswerForm(answer, latest_revision, request.POST)
- if form.is_valid():
- html = sanitize_html(markdowner.convert(form.cleaned_data['text']))
- if form.has_changed():
- edited_at = datetime.datetime.now()
- updated_fields = {
- 'last_edited_at': edited_at,
- 'last_edited_by': request.user,
- 'html': html,
- }
- Answer.objects.filter(id=answer.id).update(**updated_fields)
-
- revision = AnswerRevision(
- answer=answer,
- author=request.user,
- revised_at=edited_at,
- text=form.cleaned_data['text']
- )
-
- if form.cleaned_data['summary']:
- revision.summary = form.cleaned_data['summary']
- else:
- revision.summary = 'No.%s Revision' % latest_revision.revision
- revision.save()
-
- answer.question.last_activity_at = edited_at
- answer.question.last_activity_by = request.user
- answer.question.save()
-
- return HttpResponseRedirect(answer.get_absolute_url())
- else:
- revision_form = RevisionForm(answer, latest_revision)
- form = EditAnswerForm(answer, latest_revision)
- return render_to_response('answer_edit.html', {
- 'answer': answer,
- 'revision_form': revision_form,
- 'form': form,
- }, context_instance=RequestContext(request))
-
-def answer(request, id):#process a new answer
- question = get_object_or_404(Question, id=id)
- if request.method == "POST":
- form = AnswerForm(question, request.user, request.POST)
- if form.is_valid():
- wiki = form.cleaned_data['wiki']
- text = form.cleaned_data['text']
- update_time = datetime.datetime.now()
-
- if request.user.is_authenticated():
- Answer.objects.create_new(
- question=question,
- author=request.user,
- added_at=update_time,
- wiki=wiki,
- text=sanitize_html(markdowner.convert(text)),
- email_notify=form.cleaned_data['email_notify']
- )
- else:
- request.session.flush()
- html = sanitize_html(markdowner.convert(text))
- summary = strip_tags(html)[:120]
- anon = AnonymousAnswer(
- question=question,
- wiki=wiki,
- text=text,
- summary=summary,
- session_key=request.session.session_key,
- ip_addr=request.META['REMOTE_ADDR'],
- )
- anon.save()
- return HttpResponseRedirect(reverse('auth_action_signin', kwargs={'action': 'newanswer'}))
-
- return HttpResponseRedirect(question.get_absolute_url())
-
+++ /dev/null
-NAME = 'Osqa Books'
-DESCRIPTION = "Allows discussion around books."
-CAN_ENABLE = True
+++ /dev/null
-from django.db import models
-from forum.models import User
-from forum.models import Question
-from django.core.urlresolvers import reverse
-from django.utils.http import urlquote as django_urlquote
-from django.template.defaultfilters import slugify
-
-class Book(models.Model):
- """
- Model for book info
- """
- user = models.ForeignKey(User)
- title = models.CharField(max_length=255)
- short_name = models.CharField(max_length=255)
- author = models.CharField(max_length=255)
- price = models.DecimalField(max_digits=6, decimal_places=2)
- pages = models.SmallIntegerField()
- published_at = models.DateTimeField()
- publication = models.CharField(max_length=255)
- cover_img = models.CharField(max_length=255)
- tagnames = models.CharField(max_length=125)
- added_at = models.DateTimeField()
- last_edited_at = models.DateTimeField()
- questions = models.ManyToManyField(Question, related_name='book', db_table='book_question')
-
- def get_absolute_url(self):
- return reverse('book', args=[django_urlquote(slugify(self.short_name))])
-
- def __unicode__(self):
- return self.title
-
- class Meta:
- app_label = 'forum'
- db_table = u'book'
-
-class BookAuthorInfo(models.Model):
- """
- Model for book author info
- """
- user = models.ForeignKey(User)
- book = models.ForeignKey(Book)
- blog_url = models.CharField(max_length=255)
- added_at = models.DateTimeField()
- last_edited_at = models.DateTimeField()
-
- class Meta:
- app_label = 'forum'
- db_table = u'book_author_info'
-
-class BookAuthorRss(models.Model):
- """
- Model for book author blog rss
- """
- user = models.ForeignKey(User)
- book = models.ForeignKey(Book)
- title = models.CharField(max_length=255)
- url = models.CharField(max_length=255)
- rss_created_at = models.DateTimeField()
- added_at = models.DateTimeField()
-
- class Meta:
- app_label = 'forum'
- db_table = u'book_author_rss'
\ No newline at end of file
+++ /dev/null
-from django.conf.urls.defaults import *
-from django.utils.translation import ugettext as _
-
-import views as app
-
-urlpatterns = patterns('',
- url(r'^%s$' % _('books/'), app.books, name='books'),
- url(r'^%s%s(?P<short_name>[^/]+)/$' % (_('books/'), _('ask/')), app.ask_book, name='ask_book'),
- url(r'^%s(?P<short_name>[^/]+)/$' % _('books/'), app.book, name='book'),
-)
\ No newline at end of file
+++ /dev/null
-from django.shortcuts import render_to_response, get_object_or_404
-from django.http import HttpResponseRedirect, HttpResponse, HttpResponseForbidden, Http404
-from django.template import RequestContext
-from django.contrib.auth.decorators import login_required
-from django.core.urlresolvers import reverse
-from django.utils.html import *
-
-from models import *
-
-from forum.forms import AskForm
-from forum.views.readers import _get_tags_cache_json
-from forum.models import *
-from forum.utils.html import sanitize_html
-
-def books(request):
- return HttpResponseRedirect(reverse('books') + '/mysql-zhaoyang')
-
-def book(request, short_name, unanswered=False):
- """
- 1. questions list
- 2. book info
- 3. author info and blog rss items
- """
- """
- List of Questions, Tagged questions, and Unanswered questions.
- """
- books = Book.objects.extra(where=['short_name = %s'], params=[short_name])
- match_count = len(books)
- if match_count == 0:
- raise Http404
- else:
- # the book info
- book = books[0]
- # get author info
- author_info = BookAuthorInfo.objects.get(book=book)
- # get author rss info
- author_rss = BookAuthorRss.objects.filter(book=book)
-
- # get pagesize from session, if failed then get default value
- user_page_size = request.session.get("pagesize", QUESTIONS_PAGE_SIZE)
- # set pagesize equal to logon user specified value in database
- if request.user.is_authenticated() and request.user.questions_per_page > 0:
- user_page_size = request.user.questions_per_page
-
- try:
- page = int(request.GET.get('page', '1'))
- except ValueError:
- page = 1
-
- view_id = request.GET.get('sort', None)
- view_dic = {"latest":"-added_at", "active":"-last_activity_at", "hottest":"-answer_count", "mostvoted":"-score" }
- try:
- orderby = view_dic[view_id]
- except KeyError:
- view_id = "latest"
- orderby = "-added_at"
-
- # check if request is from tagged questions
- if unanswered:
- # check if request is from unanswered questions
- # Article.objects.filter(publications__id__exact=1)
- objects = Question.objects.filter(book__id__exact=book.id, deleted=False, answer_count=0).order_by(orderby)
- else:
- objects = Question.objects.filter(book__id__exact=book.id, deleted=False).order_by(orderby)
-
- # RISK - inner join queries
- objects = objects.select_related();
- objects_list = Paginator(objects, user_page_size)
- questions = objects_list.page(page)
-
- return render_to_response('book.html', {
- "book" : book,
- "author_info" : author_info,
- "author_rss" : author_rss,
- "questions" : questions,
- "context" : {
- 'is_paginated' : True,
- 'pages': objects_list.num_pages,
- 'page': page,
- 'has_previous': questions.has_previous(),
- 'has_next': questions.has_next(),
- 'previous': questions.previous_page_number(),
- 'next': questions.next_page_number(),
- 'base_url' : request.path + '?sort=%s&' % view_id,
- 'pagesize' : user_page_size
- }
- }, context_instance=RequestContext(request))
-
-@login_required
-def ask_book(request, short_name):
- if request.method == "POST":
- form = AskForm(request.POST)
- if form.is_valid():
- added_at = datetime.datetime.now()
- html = sanitize_html(markdowner.convert(form.cleaned_data['text']))
- question = Question(
- title = strip_tags(form.cleaned_data['title']),
- author = request.user,
- added_at = added_at,
- last_activity_at = added_at,
- last_activity_by = request.user,
- wiki = form.cleaned_data['wiki'],
- tagnames = form.cleaned_data['tags'].strip(),
- html = html,
- summary = strip_tags(html)[:120]
- )
- if question.wiki:
- question.last_edited_by = question.author
- question.last_edited_at = added_at
- question.wikified_at = added_at
-
- question.save()
-
- # create the first revision
- QuestionRevision.objects.create(
- question = question,
- revision = 1,
- title = question.title,
- author = request.user,
- revised_at = added_at,
- tagnames = question.tagnames,
- summary = CONST['default_version'],
- text = form.cleaned_data['text']
- )
-
- books = Book.objects.extra(where=['short_name = %s'], params=[short_name])
- match_count = len(books)
- if match_count == 1:
- # the book info
- book = books[0]
- book.questions.add(question)
-
- return HttpResponseRedirect(question.get_absolute_url())
- else:
- form = AskForm()
-
- tags = _get_tags_cache_json()
- return render_to_response('ask.html', {
- 'form' : form,
- 'tags' : tags,
- 'email_validation_faq_url': reverse('faq') + '#validate',
- }, context_instance=RequestContext(request))
\ No newline at end of file
+++ /dev/null
-from datetime import timedelta
-
-from django.db.models.signals import post_save
-from django.utils.translation import ugettext as _
-
-from forum.badges.base import PostCountableAbstractBadge, ActivityAbstractBadge, FirstActivityAbstractBadge, \
- ActivityCountAbstractBadge, CountableAbstractBadge, AbstractBadge
-from forum.models import Question, Answer, Activity, Tag
-from forum.models.user import activity_record
-from forum import const
-
-import settings
-
-class PopularQuestionBadge(PostCountableAbstractBadge):
- type = const.BRONZE_BADGE
- description = _('Asked a question with %s views') % str(settings.POPULAR_QUESTION_VIEWS)
-
- def __init__(self):
- super(PopularQuestionBadge, self).__init__(Question, 'view_count', settings.POPULAR_QUESTION_VIEWS)
-
-class NotableQuestionBadge(PostCountableAbstractBadge):
- type = const.SILVER_BADGE
- description = _('Asked a question with %s views') % str(settings.NOTABLE_QUESTION_VIEWS)
-
- def __init__(self):
- super(NotableQuestionBadge, self).__init__(Question, 'view_count', settings.NOTABLE_QUESTION_VIEWS)
-
-class FamousQuestionBadge(PostCountableAbstractBadge):
- type = const.GOLD_BADGE
- description = _('Asked a question with %s views') % str(settings.FAMOUS_QUESTION_VIEWS)
-
- def __init__(self):
- super(FamousQuestionBadge, self).__init__(Question, 'view_count', settings.FAMOUS_QUESTION_VIEWS)
-
-
-class NiceAnswerBadge(PostCountableAbstractBadge):
- type = const.BRONZE_BADGE
- description = _('Answer voted up %s times') % str(settings.NICE_ANSWER_VOTES_UP)
-
- def __init__(self):
- super(NiceAnswerBadge, self).__init__(Answer, 'vote_up_count', settings.NICE_ANSWER_VOTES_UP)
-
-class NiceQuestionBadge(PostCountableAbstractBadge):
- type = const.BRONZE_BADGE
- description = _('Question voted up %s times') % str(settings.NICE_QUESTION_VOTES_UP)
-
- def __init__(self):
- super(NiceQuestionBadge, self).__init__(Question, 'vote_up_count', settings.NICE_QUESTION_VOTES_UP)
-
-class GoodAnswerBadge(PostCountableAbstractBadge):
- type = const.SILVER_BADGE
- description = _('Answer voted up %s times') % str(settings.GOOD_ANSWER_VOTES_UP)
-
- def __init__(self):
- super(GoodAnswerBadge, self).__init__(Answer, 'vote_up_count', settings.GOOD_ANSWER_VOTES_UP)
-
-class GoodQuestionBadge(PostCountableAbstractBadge):
- type = const.SILVER_BADGE
- description = _('Question voted up %s times') % str(settings.GOOD_QUESTION_VOTES_UP)
-
- def __init__(self):
- super(GoodQuestionBadge, self).__init__(Question, 'vote_up_count', settings.GOOD_QUESTION_VOTES_UP)
-
-class GreatAnswerBadge(PostCountableAbstractBadge):
- type = const.GOLD_BADGE
- description = _('Answer voted up %s times') % str(settings.GREAT_ANSWER_VOTES_UP)
-
- def __init__(self):
- super(GreatAnswerBadge, self).__init__(Answer, 'vote_up_count', settings.GREAT_ANSWER_VOTES_UP)
-
-class GreatQuestionBadge(PostCountableAbstractBadge):
- type = const.GOLD_BADGE
- description = _('Question voted up %s times') % str(settings.GREAT_QUESTION_VOTES_UP)
-
- def __init__(self):
- super(GreatQuestionBadge, self).__init__(Question, 'vote_up_count', settings.GREAT_QUESTION_VOTES_UP)
-
-
-class FavoriteQuestionBadge(PostCountableAbstractBadge):
- type = const.SILVER_BADGE
- description = _('Question favorited by %s users') % str(settings.FAVORITE_QUESTION_FAVS)
-
- def __init__(self):
- super(FavoriteQuestionBadge, self).__init__(Question, 'favourite_count', settings.FAVORITE_QUESTION_FAVS)
-
-class StellarQuestionBadge(PostCountableAbstractBadge):
- type = const.GOLD_BADGE
- description = _('Question favorited by %s users') % str(settings.STELLAR_QUESTION_FAVS)
-
- def __init__(self):
- super(StellarQuestionBadge, self).__init__(Question, 'favourite_count', settings.STELLAR_QUESTION_FAVS)
-
-
-class DisciplinedBadge(ActivityAbstractBadge):
- type = const.BRONZE_BADGE
- description = _('Deleted own post with score of %s or higher') % str(settings.DISCIPLINED_MIN_SCORE)
-
- def __init__(self):
- def handler(instance):
- if instance.user.id == instance.content_object.author.id and instance.content_object.score >= settings.DISCIPLINED_MIN_SCORE:
- self.award_badge(instance.user, instance)
-
- super(DisciplinedBadge, self).__init__(const.TYPE_ACTIVITY_DELETE_QUESTION, handler)
-
-class PeerPressureBadge(ActivityAbstractBadge):
- type = const.BRONZE_BADGE
- description = _('Deleted own post with score of %s or lower') % str(settings.PEER_PRESSURE_MAX_SCORE)
-
- def __init__(self):
- def handler(instance):
- if instance.user.id == instance.content_object.author.id and instance.content_object.score <= settings.PEER_PRESSURE_MAX_SCORE:
- self.award_badge(instance.user, instance)
-
- super(PeerPressureBadge, self).__init__(const.TYPE_ACTIVITY_DELETE_QUESTION, handler)
-
-
-class CitizenPatrolBadge(FirstActivityAbstractBadge):
- type = const.BRONZE_BADGE
- description = _('First flagged post')
-
- def __init__(self):
- super(CitizenPatrolBadge, self).__init__(const.TYPE_ACTIVITY_MARK_OFFENSIVE)
-
-class CriticBadge(FirstActivityAbstractBadge):
- type = const.BRONZE_BADGE
- description = _('First down vote')
-
- def __init__(self):
- super(CriticBadge, self).__init__(const.TYPE_ACTIVITY_VOTE_DOWN)
-
-class OrganizerBadge(FirstActivityAbstractBadge):
- type = const.BRONZE_BADGE
- description = _('First retag')
-
- def __init__(self):
- super(OrganizerBadge, self).__init__(const.TYPE_ACTIVITY_UPDATE_TAGS)
-
-class SupporterBadge(FirstActivityAbstractBadge):
- type = const.BRONZE_BADGE
- description = _('First up vote')
-
- def __init__(self):
- super(SupporterBadge, self).__init__(const.TYPE_ACTIVITY_VOTE_UP)
-
-class EditorBadge(FirstActivityAbstractBadge):
- type = const.BRONZE_BADGE
- description = _('First edit')
-
- def __init__(self):
- super(EditorBadge, self).__init__((const.TYPE_ACTIVITY_UPDATE_ANSWER, const.TYPE_ACTIVITY_UPDATE_QUESTION))
-
-class ScholarBadge(FirstActivityAbstractBadge):
- type = const.BRONZE_BADGE
- description = _('First accepted answer on your own question')
-
- def __init__(self):
- super(ScholarBadge, self).__init__(const.TYPE_ACTIVITY_MARK_ANSWER)
-
-class AutobiographerBadge(FirstActivityAbstractBadge):
- type = const.BRONZE_BADGE
- description = _('Completed all user profile fields')
-
- def __init__(self):
- super(AutobiographerBadge, self).__init__(const.TYPE_ACTIVITY_USER_FULL_UPDATED)
-
-class CleanupBadge(FirstActivityAbstractBadge):
- type = const.BRONZE_BADGE
- description = _('First rollback')
-
- def __init__(self):
- super(CleanupBadge, self).__init__((const.TYPE_ACTIVITY_CANCEL_VOTE_UP, const.TYPE_ACTIVITY_CANCEL_VOTE_DOWN))
-
-
-class CivicDutyBadge(ActivityCountAbstractBadge):
- type = const.SILVER_BADGE
- description = _('Voted %s times') % str(settings.CIVIC_DUTY_VOTES)
-
- def __init__(self):
- super(CivicDutyBadge, self).__init__((const.TYPE_ACTIVITY_VOTE_DOWN, const.TYPE_ACTIVITY_VOTE_UP), settings.CIVIC_DUTY_VOTES)
-
-class PunditBadge(ActivityCountAbstractBadge):
- type = const.BRONZE_BADGE
- description = _('Left %s comments') % str(settings.PUNDIT_COMMENT_COUNT)
-
- def __init__(self):
- super(PunditBadge, self).__init__((const.TYPE_ACTIVITY_COMMENT_ANSWER, const.TYPE_ACTIVITY_COMMENT_QUESTION), settings.PUNDIT_COMMENT_COUNT)
-
-
-class SelfLearnerBadge(CountableAbstractBadge):
- type = const.BRONZE_BADGE
- description = _('Answered your own question with at least %s up votes') % str(settings.SELF_LEARNER_UP_VOTES)
-
- def __init__(self):
-
- def handler(instance):
- if instance.author_id == instance.question.author_id:
- self.award_badge(instance.author, instance)
-
- super(SelfLearnerBadge, self).__init__(Answer, 'vote_up_count', settings.SELF_LEARNER_UP_VOTES, handler)
-
-
-class StrunkAndWhiteBadge(ActivityCountAbstractBadge):
- type = const.SILVER_BADGE
- name = _('Strunk & White')
- description = _('Edited %s entries') % str(settings.STRUNK_AND_WHITE_EDITS)
-
- def __init__(self):
- super(StrunkAndWhiteBadge, self).__init__((const.TYPE_ACTIVITY_UPDATE_ANSWER, const.TYPE_ACTIVITY_UPDATE_QUESTION), settings.STRUNK_AND_WHITE_EDITS)
-
-
-def is_user_first(post):
- return post.__class__.objects.filter(author=post.author).order_by('added_at')[0].id == post.id
-
-class StudentBadge(CountableAbstractBadge):
- type = const.BRONZE_BADGE
- description = _('Asked first question with at least one up vote')
-
- def __init__(self):
- def handler(instance):
- if is_user_first(instance):
- self.award_badge(instance.author, instance)
-
- super(StudentBadge, self).__init__(Question, 'vote_up_count', 1, handler)
-
-class TeacherBadge(CountableAbstractBadge):
- type = const.BRONZE_BADGE
- description = _('Answered first question with at least one up vote')
-
- def __init__(self):
- def handler(instance):
- if is_user_first(instance):
- self.award_badge(instance.author, instance)
-
- super(TeacherBadge, self).__init__(Answer, 'vote_up_count', 1, handler)
-
-
-class AcceptedAndVotedAnswerAbstractBadge(AbstractBadge):
- def __init__(self, up_votes, handler):
- def wrapper(sender, instance, **kwargs):
- if sender is Answer:
- answer = instance
- if not "vote_up_count" in answer.get_dirty_fields():
- return
- else:
- answer = instance.content_object
-
- accepted = answer.accepted
- vote_count = answer.vote_up_count
-
- if accepted and vote_count == up_votes:
- handler(answer)
-
- activity_record.connect(wrapper, sender=const.TYPE_ACTIVITY_MARK_ANSWER, weak=False)
- post_save.connect(wrapper, sender=Answer, weak=False)
-
-
-class EnlightenedBadge(AcceptedAndVotedAnswerAbstractBadge):
- type = const.SILVER_BADGE
- description = _('First answer was accepted with at least %s up votes') % str(settings.ENLIGHTENED_UP_VOTES)
-
- def __init__(self):
- def handler(answer):
- self.award_badge(answer.author, answer, True)
-
- super(EnlightenedBadge, self).__init__(settings.ENLIGHTENED_UP_VOTES, handler)
-
-
-class GuruBadge(AcceptedAndVotedAnswerAbstractBadge):
- type = const.SILVER_BADGE
- description = _('Accepted answer and voted up %s times') % str(settings.GURU_UP_VOTES)
-
- def __init__(self):
- def handler(answer):
- self.award_badge(answer.author, answer)
-
- super(GuruBadge, self).__init__(settings.GURU_UP_VOTES, handler)
-
-
-class NecromancerBadge(CountableAbstractBadge):
- type = const.SILVER_BADGE
- description = _('Answered a question more than %(dif_days)s days later with at least %(up_votes)s votes') % \
- {'dif_days': str(settings.NECROMANCER_DIF_DAYS), 'up_votes': str(settings.NECROMANCER_UP_VOTES)}
-
- def __init__(self):
- def handler(instance):
- if instance.added_at >= (instance.question.added_at + timedelta(days=int(settings.NECROMANCER_DIF_DAYS))):
- self.award_badge(instance.author, instance)
-
- super(NecromancerBadge, self).__init__(Answer, "vote_up_count", settings.NECROMANCER_UP_VOTES, handler)
-
-
-class TaxonomistBadge(AbstractBadge):
- type = const.SILVER_BADGE
- description = _('Created a tag used by %s questions') % str(settings.TAXONOMIST_USE_COUNT)
-
- def __init__(self):
- def handler(instance, **kwargs):
- if instance.used_count == settings.TAXONOMIST_USE_COUNT:
- self.award_badge(instance.created_by, instance)
-
- post_save.connect(handler, sender=Tag, weak=False)
-
-
-#class GeneralistTag(AbstractBadge):
-# pass
-
-#class ExpertTag(AbstractBadge):
-# pass
-
-#class YearlingTag(AbstractBadge):
-# pass
-
-
-
+++ /dev/null
-from forum.settings import BADGES_SET
-from forum.settings.base import Setting
-from django.utils.translation import ugettext_lazy as _
-
-POPULAR_QUESTION_VIEWS = Setting('POPULAR_QUESTION_VIEWS', 1000, BADGES_SET, dict(
-label = _("Popular Question views"),
-help_text = _("""
-Number of question views required to award a Popular Question badge to the question author
-""")))
-
-NOTABLE_QUESTION_VIEWS = Setting('NOTABLE_QUESTION_VIEWS', 2500, BADGES_SET, dict(
-label = _("Notable Question views"),
-help_text = _("""
-Number of question views required to award a Notable Question badge to the question author
-""")))
-
-FAMOUS_QUESTION_VIEWS = Setting('FAMOUS_QUESTION_VIEWS', 10000, BADGES_SET, dict(
-label = _("Famous Question views"),
-help_text = _("""
-Number of question views required to award a Famous Question badge to the question author
-""")))
-
-NICE_ANSWER_VOTES_UP = Setting('NICE_ANSWER_VOTES_UP', 10, BADGES_SET, dict(
-label = _("Nice Answer up votes"),
-help_text = _("""
-Number of up votes required to award a Nice Answer badge to the answer author
-""")))
-
-NICE_QUESTION_VOTES_UP = Setting('NICE_QUESTION_VOTES_UP', 10, BADGES_SET, dict(
-label = _("Nice Question up votes"),
-help_text = _("""
-Number of up votes required to award a Nice Question badge to the question author
-""")))
-
-GOOD_ANSWER_VOTES_UP = Setting('GOOD_ANSWER_VOTES_UP', 25, BADGES_SET, dict(
-label = _("Good Answer up votes"),
-help_text = _("""
-Number of up votes required to award a Good Answer badge to the answer author
-""")))
-
-GOOD_QUESTION_VOTES_UP = Setting('GOOD_QUESTION_VOTES_UP', 25, BADGES_SET, dict(
-label = _("Good Question up votes"),
-help_text = _("""
-Number of up votes required to award a Good Question badge to the question author
-""")))
-
-GREAT_ANSWER_VOTES_UP = Setting('GREAT_ANSWER_VOTES_UP', 100, BADGES_SET, dict(
-label = _("Great Answer up votes"),
-help_text = _("""
-Number of up votes required to award a Great Answer badge to the answer author
-""")))
-
-GREAT_QUESTION_VOTES_UP = Setting('GREAT_QUESTION_VOTES_UP', 100, BADGES_SET, dict(
-label = _("Great Question up votes"),
-help_text = _("""
-Number of up votes required to award a Great Question badge to the question author
-""")))
-
-FAVORITE_QUESTION_FAVS = Setting('FAVORITE_QUESTION_FAVS', 25, BADGES_SET, dict(
-label = _("Favorite Question favorite count"),
-help_text = _("""
-How many times a question needs to be favorited by other users to award a Favorite Question badge to the question author
-""")))
-
-STELLAR_QUESTION_FAVS = Setting('STELLAR_QUESTION_FAVS', 100, BADGES_SET, dict(
-label = _("Stellar Question favorite count"),
-help_text = _("""
-How many times a question needs to be favorited by other users to award a Stellar Question badge to the question author
-""")))
-
-DISCIPLINED_MIN_SCORE = Setting('DISCIPLINED_MIN_SCORE', 3, BADGES_SET, dict(
-label = _("Disciplined minimum score"),
-help_text = _("""
-Minimum score a question needs to have to award the Disciplined badge to an author of a question who deletes it.
-""")))
-
-PEER_PRESSURE_MAX_SCORE = Setting('PEER_PRESSURE_MAX_SCORE', -3, BADGES_SET, dict(
-label = _("Peer Pressure maximum score"),
-help_text = _("""
-Maximum score a question needs to have to award the Peer Pressure badge to an author of a question who deletes it.
-""")))
-
-CIVIC_DUTY_VOTES = Setting('CIVIC_DUTY_VOTES', 300, BADGES_SET, dict(
-label = _("Civic Duty votes"),
-help_text = _("""
-Number of votes an user needs to cast to be awarded the Civic Duty badge.
-""")))
-
-PUNDIT_COMMENT_COUNT = Setting('PUNDIT_COMMENT_COUNT', 10, BADGES_SET, dict(
-label = _("Pundit number of comments"),
-help_text = _("""
-Number of comments an user needs to post to be awarded the Pundit badge.
-""")))
-
-SELF_LEARNER_UP_VOTES = Setting('SELF_LEARNER_UP_VOTES', 3, BADGES_SET, dict(
-label = _("Self Learner up votes"),
-help_text = _("""
-Number of up votes an answer from the question author needs to have for the author to be awarded the Self Learner badge.
-""")))
-
-STRUNK_AND_WHITE_EDITS = Setting('STRUNK_AND_WHITE_EDITS', 100, BADGES_SET, dict(
-label = _("Strunk and White updates"),
-help_text = _("""
-Number of question or answer updates an user needs to make to be awarded the Strunk & White badge.
-""")))
-
-ENLIGHTENED_UP_VOTES = Setting('ENLIGHTENED_UP_VOTES', 10, BADGES_SET, dict(
-label = _("Enlightened up votes"),
-help_text = _("""
-Number of up votes an accepted answer needs to have for the author to be awarded the Enlightened badge.
-""")))
-
-GURU_UP_VOTES = Setting('GURU_UP_VOTES', 40, BADGES_SET, dict(
-label = _("Guru up votes"),
-help_text = _("""
-Number of up votes an accepted answer needs to have for the author to be awarded the Guru badge.
-""")))
-
-NECROMANCER_UP_VOTES = Setting('NECROMANCER_UP_VOTES', 5, BADGES_SET, dict(
-label = _("Necromancer up votes"),
-help_text = _("""
-Number of up votes an answer needs to have for the author to be awarded the Necromancer badge.
-""")))
-
-NECROMANCER_DIF_DAYS = Setting('NECROMANCER_DIF_DAYS', 60, BADGES_SET, dict(
-label = _("Necromancer difference in days"),
-help_text = _("""
-Difference in days betwen the posted date of a question and an answer for the answer author to be awarded the Necromancer badge.
-""")))
-
-TAXONOMIST_USE_COUNT = Setting('TAXONOMIST_USE_COUNT', 50, BADGES_SET, dict(
-label = _("Taxonomist usage count"),
-help_text = _("""
-How many usages a tag needs to have for the tag creator to be awarded the Taxonomist badge.
-""")))
-
+++ /dev/null
-import hashlib
-from time import time
-from datetime import datetime
-from urllib import urlopen, urlencode
-from forum.authentication.base import AuthenticationConsumer, ConsumerTemplateContext, InvalidAuthentication
-from django.utils.translation import ugettext as _
-
-import settings
-
-try:
- from json import load as load_json
-except:
- from django.utils.simplejson import JSONDecoder
-
- def load_json(json):
- decoder = JSONDecoder()
- return decoder.decode(json.read())
-
-REST_SERVER = 'http://api.facebook.com/restserver.php'
-
-class FacebookAuthConsumer(AuthenticationConsumer):
-
- def process_authentication_request(self, request):
- API_KEY = str(settings.FB_API_KEY)
-
- if API_KEY in request.COOKIES:
- if self.check_cookies_signature(request.COOKIES):
- if self.check_session_expiry(request.COOKIES):
- return request.COOKIES[API_KEY + '_user']
- else:
- raise InvalidAuthentication(_('Sorry, your Facebook session has expired, please try again'))
- else:
- raise InvalidAuthentication(_('The authentication with Facebook connect failed due to an invalid signature'))
- else:
- raise InvalidAuthentication(_('The authentication with Facebook connect failed, cannot find authentication tokens'))
-
- def generate_signature(self, values):
- keys = []
-
- for key in sorted(values.keys()):
- keys.append(key)
-
- signature = ''.join(['%s=%s' % (key, values[key]) for key in keys]) + str(settings.FB_APP_SECRET)
- return hashlib.md5(signature).hexdigest()
-
- def check_session_expiry(self, cookies):
- return datetime.fromtimestamp(float(cookies[settings.FB_API_KEY+'_expires'])) > datetime.now()
-
- def check_cookies_signature(self, cookies):
- API_KEY = str(settings.FB_API_KEY)
-
- values = {}
-
- for key in cookies.keys():
- if (key.startswith(API_KEY + '_')):
- values[key.replace(API_KEY + '_', '')] = cookies[key]
-
- return self.generate_signature(values) == cookies[API_KEY]
-
- def get_user_data(self, key):
- request_data = {
- 'method': 'Users.getInfo',
- 'api_key': settings.FB_API_KEY,
- 'call_id': time(),
- 'v': '1.0',
- 'uids': key,
- 'fields': 'name,first_name,last_name,email',
- 'format': 'json',
- }
-
- request_data['sig'] = self.generate_signature(request_data)
- fb_response = load_json(urlopen(REST_SERVER, urlencode(request_data)))[0]
-
- return {
- 'username': fb_response['first_name'] + ' ' + fb_response['last_name'],
- 'email': fb_response['email']
- }
-
-class FacebookAuthContext(ConsumerTemplateContext):
- mode = 'BIGICON'
- type = 'CUSTOM'
- weight = 100
- human_name = 'Facebook'
- code_template = 'modules/facebookauth/button.html'
- extra_css = ["http://www.facebook.com/css/connect/connect_button.css"]
-
- API_KEY = settings.FB_API_KEY
\ No newline at end of file
+++ /dev/null
-from forum.settings import EXT_KEYS_SET
-from forum.settings.base import Setting
-
-FB_API_KEY = Setting('FB_API_KEY', '', EXT_KEYS_SET, dict(
-label = "Facebook API key",
-help_text = """
-Get this key at the <a href="http://www.facebook.com/developers/">Facebook developers network</a> to enable
-authentication in your site through facebook.
-""",
-required=False))
-
-FB_APP_SECRET = Setting('FB_APP_SECRET', '', EXT_KEYS_SET, dict(
-label = "Facebook APP secret",
-help_text = """
-This your facebook app secret that you'll get in the same place as the API key.
-""",
-required=False))
+++ /dev/null
-<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php/en_US" type="text/javascript"></script>\r
-<script type="text/javascript">\r
- var FB_API_KEY = "{{ provider.API_KEY }}";\r
- var FB_CHANNEL_PATH = "{% url xd_receiver %}";\r
-\r
- FB.init(FB_API_KEY, FB_CHANNEL_PATH, {permsToRequestOnConnect : "email"});\r
-\r
- function FB_ConnectPostAuthorization() {\r
- if ($('#validate_email').attr('checked')) {\r
- FB_RequireFeatures(["Api"], function(){\r
- var api = FB.Facebook.apiClient;\r
- var fb_uid = api.get_session().uid;\r
-\r
- $.post('{% url facebook_user_is_registered %}', {'fb_uid': fb_uid}, function(response) {\r
- if (response != "yes") {\r
- api.users_hasAppPermission("email", function(result) {\r
- if (!result) {\r
- FB.Connect.showPermissionDialog("email", redirect_to_done_page);\r
- } else {\r
- redirect_to_done_page()\r
- }\r
- })\r
- } else {\r
- redirect_to_done_page()\r
- }\r
- });\r
- });\r
- } else {\r
- redirect_to_done_page();\r
- }\r
- }\r
-\r
- function redirect_to_done_page() {\r
- window.location = "{% url auth_provider_done provider=provider.id %}";\r
- }\r
-\r
-</script>\r
-<fb:login-button v="2" size="medium" onlogin="FB_ConnectPostAuthorization()">Facebook</fb:login-button>
\ No newline at end of file
+++ /dev/null
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <body> <script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/XdCommReceiver.js" type="text/javascript"></script> </body> </html>\r
+++ /dev/null
-from django.conf.urls.defaults import *
-from django.views.generic.simple import direct_to_template
-
-from views import user_is_registered
-
-urlpatterns = patterns('',
- url(r'^xd_receiver.htm$', direct_to_template, {'template': 'modules/facebookauth/xd_receiver.html'}, name='xd_receiver'),
- url(r'^facebook/user_is_registered/', user_is_registered, name="facebook_user_is_registered"),
-)
\ No newline at end of file
+++ /dev/null
-from forum.models import AuthKeyUserAssociation
-from django.http import HttpResponse
-
-def user_is_registered(request):
- try:
- fb_uid = request.POST['fb_uid']
- #print fb_uid
- AuthKeyUserAssociation.objects.get(key=fb_uid)
- return HttpResponse('yes')
- except:
- return HttpResponse('no')
\ No newline at end of file
+++ /dev/null
-from forum.authentication.base import AuthenticationConsumer, ConsumerTemplateContext, InvalidAuthentication
-from forms import ClassicLoginForm
-
-class LocalAuthConsumer(AuthenticationConsumer):
- def process_authentication_request(self, request):
- form_auth = ClassicLoginForm(request.POST)
-
- if form_auth.is_valid():
- return form_auth.get_user()
- else:
- raise InvalidAuthentication(" ".join(form_auth.errors.values()[0]))
-
-class LocalAuthContext(ConsumerTemplateContext):
- mode = 'STACK_ITEM'
- weight = 1000
- human_name = 'Local authentication'
- stack_item_template = 'modules/localauth/loginform.html'
- show_to_logged_in_user = False
\ No newline at end of file
+++ /dev/null
-from forum.utils.forms import NextUrlField, UserNameField, UserEmailField, SetPasswordForm
-from forum.models import Question
-from forum.modules import call_all_handlers
-from django.contrib.contenttypes.models import ContentType
-from django.utils.translation import ugettext as _
-from django.contrib.auth import authenticate
-from django import forms
-import logging
-
-class ClassicRegisterForm(SetPasswordForm):
- """ legacy registration form """
-
- next = NextUrlField()
- username = UserNameField()
- email = UserEmailField()
-
- def __init__(self, *args, **kwargs):
- super(ClassicRegisterForm, self).__init__(*args, **kwargs)
-
- spam_fields = call_all_handlers('create_anti_spam_field')
- if spam_fields:
- spam_fields = dict(spam_fields)
- for name,field in spam_fields.items():
- self.fields[name] = field
-
- self._anti_spam_fields = spam_fields.keys()
- else:
- self._anti_spam_fields = []
-
- def anti_spam_fields(self):
- return [self[name] for name in self._anti_spam_fields]
-
-class ClassicLoginForm(forms.Form):
- """ legacy account signin form """
- next = NextUrlField()
- username = UserNameField(required=False,skip_clean=True)
- password = forms.CharField(max_length=128,
- widget=forms.widgets.PasswordInput(attrs={'class':'required login'}),
- required=False)
-
- def __init__(self, data=None, files=None, auto_id='id_%s',
- prefix=None, initial=None):
- super(ClassicLoginForm, self).__init__(data, files, auto_id,
- prefix, initial)
- self.user_cache = None
-
- def _clean_nonempty_field(self,field):
- value = None
- if field in self.cleaned_data:
- value = str(self.cleaned_data[field]).strip()
- if value == '':
- value = None
- self.cleaned_data[field] = value
- return value
-
- def clean_username(self):
- return self._clean_nonempty_field('username')
-
- def clean_password(self):
- return self._clean_nonempty_field('password')
-
- def clean(self):
- error_list = []
- username = self.cleaned_data['username']
- password = self.cleaned_data['password']
-
- self.user_cache = None
- if username and password:
- user_ = authenticate(username=username, password=password)
-
- if user_ is None:
- del self.cleaned_data['username']
- del self.cleaned_data['password']
-
- error_list.insert(0,(_("Please enter valid username and password "
- "(both are case-sensitive).")))
-
- elif not user_.is_active:
- error_list.append(_("This account is inactive."))
- if len(error_list) > 0:
- error_list.insert(0,_('Login failed.'))
- try:
- self.user_cache = user_.user
- except:
- error_list.append(_('This user is not a valid user'))
-
- elif password == None and username == None:
- error_list.append(_('Please enter username and password'))
- elif password == None:
- error_list.append(_('Please enter your password'))
- elif username == None:
- error_list.append(_('Please enter user name'))
- if len(error_list) > 0:
- self._errors['__all__'] = forms.util.ErrorList(error_list)
-
- return self.cleaned_data
-
- def get_user(self):
- """ get authenticated user """
- return self.user_cache
\ No newline at end of file
+++ /dev/null
-{% load i18n %}\r
-\r
-<fieldset id='local_login_fs'>\r
- <p><span class='big strong'>Enter your local user name and password</span><br/><span class='grey'>(or select your external provider above)</span></p>\r
- <table>\r
- <tr>\r
- <td>\r
- <label for="id_username">Login name</label>\r
- </td>\r
- <td>\r
- <input id="id_username" type="text" class="required login" name="username" maxlength="30" />\r
- </td>\r
- </tr>\r
- <tr>\r
- <td>\r
- <label for="id_password">Password</label>\r
- </td>\r
- <td>\r
- <input id="id_password" type="password" class="required login" name="password" maxlength="128" />\r
- </td>\r
- </tr>\r
- <tr>\r
- <td>\r
- <input id="blogin" name="blogin" type="submit" value="Login" />\r
- </td>\r
- <td>\r
- <a href="{% url auth_local_register %}">Create account</a><span> | </span><a href="{% url auth_request_tempsignin %}">Forgot your password?</a>\r
- </td>\r
- </tr>\r
- </table>\r
-</fieldset>
\ No newline at end of file
+++ /dev/null
-from django.conf.urls.defaults import *
-from django.views.generic.simple import direct_to_template
-from django.utils.translation import ugettext as _
-import views as app
-
-urlpatterns = patterns('',
- url(r'^%s%s%s$' % (_('account/'), _('local/'), _('register/')), app.register, name='auth_local_register'),
-)
\ No newline at end of file
+++ /dev/null
-from forum.models import User
-from django.shortcuts import render_to_response
-from django.template import RequestContext
-from django.utils.translation import ugettext as _
-
-from forms import ClassicRegisterForm
-from forum.authentication.forms import SimpleEmailSubscribeForm
-from forum.views.auth import login_and_forward, send_validation_email
-
-def register(request):
- if request.method == 'POST':
- form = ClassicRegisterForm(request.POST)
- email_feeds_form = SimpleEmailSubscribeForm(request.POST)
-
- if form.is_valid() and email_feeds_form.is_valid():
- username = form.cleaned_data['username']
- password = form.cleaned_data['password1']
- email = form.cleaned_data['email']
-
- user_ = User(username=username, email=email)
- user_.set_password(password)
-
- if User.objects.all().count() == 0:
- user_.is_superuser = True
-
- user_.save()
-
- send_validation_email(user_)
- if email_feeds_form.cleaned_data['subscribe'] == 'n':
- user_.subscription_settings.enable_notifications = False
- user_.subscription_settings.save()
-
- return login_and_forward(request, user_, None, _("A validation email has been sent to your email address. "))
- else:
- form = ClassicRegisterForm(initial={'next':'/'})
- email_feeds_form = SimpleEmailSubscribeForm()
-
- return render_to_response('auth/signup.html', {
- 'form': form,
- 'email_feeds_form': email_feeds_form
- }, context_instance=RequestContext(request))
\ No newline at end of file
+++ /dev/null
-from consumer import OAuthAbstractAuthConsumer
-from forum.authentication.base import ConsumerTemplateContext
-
-try:
- import json as simplejson
-except ImportError:
- from django.utils import simplejson
-
-from lib import oauth
-import settings
-
-class TwitterAuthConsumer(OAuthAbstractAuthConsumer):
- def __init__(self):
- OAuthAbstractAuthConsumer.__init__(self,
- str(settings.TWITTER_CONSUMER_KEY),
- str(settings.TWITTER_CONSUMER_SECRET),
- "twitter.com",
- "https://twitter.com/oauth/request_token",
- "https://twitter.com/oauth/access_token",
- "https://twitter.com/oauth/authorize",
- )
-
- def get_user_data(self, key):
- json = self.fetch_data(key, "https://twitter.com/account/verify_credentials.json")
-
- if 'screen_name' in json:
- creds = simplejson.loads(json)
-
- return {
- 'username': creds['screen_name']
- }
-
-
- return {}
-
-class TwitterAuthContext(ConsumerTemplateContext):
- mode = 'BIGICON'
- type = 'DIRECT'
- weight = 150
- human_name = 'Twitter'
- icon = '/media/images/openid/twitter.png'
\ No newline at end of file
+++ /dev/null
-import urllib
-import urllib2
-import httplib
-import time
-
-from forum.authentication.base import AuthenticationConsumer, InvalidAuthentication
-from django.utils.translation import ugettext as _
-
-from lib import oauth
-
-class OAuthAbstractAuthConsumer(AuthenticationConsumer):
-
- def __init__(self, consumer_key, consumer_secret, server_url, request_token_url, access_token_url, authorization_url):
- self.consumer_secret = consumer_secret
- self.consumer_key = consumer_key
-
- self.consumer = oauth.OAuthConsumer(consumer_key, consumer_secret)
- self.signature_method = oauth.OAuthSignatureMethod_HMAC_SHA1()
-
- self.server_url = server_url
- self.request_token_url = request_token_url
- self.access_token_url = access_token_url
- self.authorization_url = authorization_url
-
- def prepare_authentication_request(self, request, redirect_to):
- request_token = self.fetch_request_token()
- request.session['unauthed_token'] = request_token.to_string()
- return self.authorize_token_url(request_token)
-
- def process_authentication_request(self, request):
- unauthed_token = request.session.get('unauthed_token', None)
- if not unauthed_token:
- raise InvalidAuthentication(_('Error, the oauth token is not on the server'))
-
- token = oauth.OAuthToken.from_string(unauthed_token)
-
- if token.key != request.GET.get('oauth_token', 'no-token'):
- raise InvalidAuthentication(_("Something went wrong! Auth tokens do not match"))
-
- access_token = self.fetch_access_token(token)
-
- return access_token.to_string()
-
- def get_user_data(self, key):
- #token = oauth.OAuthToken.from_string(access_token)
- return {}
-
- def fetch_request_token(self):
- oauth_request = oauth.OAuthRequest.from_consumer_and_token(self.consumer, http_url=self.request_token_url)
- oauth_request.sign_request(self.signature_method, self.consumer, None)
- params = oauth_request.parameters
- data = urllib.urlencode(params)
- full_url='%s?%s'%(self.request_token_url, data)
- response = urllib2.urlopen(full_url)
- return oauth.OAuthToken.from_string(response.read())
-
- def authorize_token_url(self, token, callback_url=None):
- oauth_request = oauth.OAuthRequest.from_token_and_callback(token=token,\
- callback=callback_url, http_url=self.authorization_url)
- params = oauth_request.parameters
- data = urllib.urlencode(params)
- full_url='%s?%s'%(self.authorization_url, data)
- return full_url
-
- def fetch_access_token(self, token):
- oauth_request = oauth.OAuthRequest.from_consumer_and_token(self.consumer, token=token, http_url=self.access_token_url)
- oauth_request.sign_request(self.signature_method, self.consumer, token)
- params = oauth_request.parameters
- data = urllib.urlencode(params)
- full_url='%s?%s'%(self.access_token_url, data)
- response = urllib2.urlopen(full_url)
- return oauth.OAuthToken.from_string(response.read())
-
- def fetch_data(self, token, http_url, parameters=None):
- access_token = oauth.OAuthToken.from_string(token)
- oauth_request = oauth.OAuthRequest.from_consumer_and_token(
- self.consumer, token=access_token, http_method="GET",
- http_url=http_url, parameters=parameters,
- )
- oauth_request.sign_request(self.signature_method, self.consumer, access_token)
-
- url = oauth_request.to_url()
- connection = httplib.HTTPSConnection(self.server_url)
- connection.request(oauth_request.http_method, url)
-
- return connection.getresponse().read()
-
+++ /dev/null
-"""
-The MIT License
-
-Copyright (c) 2007 Leah Culver
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-"""
-
-import cgi
-import urllib
-import time
-import random
-import urlparse
-import hmac
-import binascii
-
-
-VERSION = '1.0' # Hi Blaine!
-HTTP_METHOD = 'GET'
-SIGNATURE_METHOD = 'PLAINTEXT'
-
-
-class OAuthError(RuntimeError):
- """Generic exception class."""
- def __init__(self, message='OAuth error occured.'):
- self.message = message
-
-def build_authenticate_header(realm=''):
- """Optional WWW-Authenticate header (401 error)"""
- return {'WWW-Authenticate': 'OAuth realm="%s"' % realm}
-
-def escape(s):
- """Escape a URL including any /."""
- return urllib.quote(s, safe='~')
-
-def _utf8_str(s):
- """Convert unicode to utf-8."""
- if isinstance(s, unicode):
- return s.encode("utf-8")
- else:
- return str(s)
-
-def generate_timestamp():
- """Get seconds since epoch (UTC)."""
- return int(time.time())
-
-def generate_nonce(length=8):
- """Generate pseudorandom number."""
- return ''.join([str(random.randint(0, 9)) for i in range(length)])
-
-
-class OAuthConsumer(object):
- """Consumer of OAuth authentication.
-
- OAuthConsumer is a data type that represents the identity of the Consumer
- via its shared secret with the Service Provider.
-
- """
- key = None
- secret = None
-
- def __init__(self, key, secret):
- self.key = key
- self.secret = secret
-
-
-class OAuthToken(object):
- """OAuthToken is a data type that represents an End User via either an access
- or request token.
-
- key -- the token
- secret -- the token secret
-
- """
- key = None
- secret = None
-
- def __init__(self, key, secret):
- self.key = key
- self.secret = secret
-
- def to_string(self):
- return urllib.urlencode({'oauth_token': self.key,
- 'oauth_token_secret': self.secret})
-
- def from_string(s):
- """ Returns a token from something like:
- oauth_token_secret=xxx&oauth_token=xxx
- """
- params = cgi.parse_qs(s, keep_blank_values=False)
- key = params['oauth_token'][0]
- secret = params['oauth_token_secret'][0]
- return OAuthToken(key, secret)
- from_string = staticmethod(from_string)
-
- def __str__(self):
- return self.to_string()
-
-
-class OAuthRequest(object):
- """OAuthRequest represents the request and can be serialized.
-
- OAuth parameters:
- - oauth_consumer_key
- - oauth_token
- - oauth_signature_method
- - oauth_signature
- - oauth_timestamp
- - oauth_nonce
- - oauth_version
- ... any additional parameters, as defined by the Service Provider.
- """
- parameters = None # OAuth parameters.
- http_method = HTTP_METHOD
- http_url = None
- version = VERSION
-
- def __init__(self, http_method=HTTP_METHOD, http_url=None, parameters=None):
- self.http_method = http_method
- self.http_url = http_url
- self.parameters = parameters or {}
-
- def set_parameter(self, parameter, value):
- self.parameters[parameter] = value
-
- def get_parameter(self, parameter):
- try:
- return self.parameters[parameter]
- except:
- raise OAuthError('Parameter not found: %s' % parameter)
-
- def _get_timestamp_nonce(self):
- return self.get_parameter('oauth_timestamp'), self.get_parameter(
- 'oauth_nonce')
-
- def get_nonoauth_parameters(self):
- """Get any non-OAuth parameters."""
- parameters = {}
- for k, v in self.parameters.iteritems():
- # Ignore oauth parameters.
- if k.find('oauth_') < 0:
- parameters[k] = v
- return parameters
-
- def to_header(self, realm=''):
- """Serialize as a header for an HTTPAuth request."""
- auth_header = 'OAuth realm="%s"' % realm
- # Add the oauth parameters.
- if self.parameters:
- for k, v in self.parameters.iteritems():
- if k[:6] == 'oauth_':
- auth_header += ', %s="%s"' % (k, escape(str(v)))
- return {'Authorization': auth_header}
-
- def to_postdata(self):
- """Serialize as post data for a POST request."""
- return '&'.join(['%s=%s' % (escape(str(k)), escape(str(v))) \
- for k, v in self.parameters.iteritems()])
-
- def to_url(self):
- """Serialize as a URL for a GET request."""
- return '%s?%s' % (self.get_normalized_http_url(), self.to_postdata())
-
- def get_normalized_parameters(self):
- """Return a string that contains the parameters that must be signed."""
- params = self.parameters
- try:
- # Exclude the signature if it exists.
- del params['oauth_signature']
- except:
- pass
- # Escape key values before sorting.
- key_values = [(escape(_utf8_str(k)), escape(_utf8_str(v))) \
- for k,v in params.items()]
- # Sort lexicographically, first after key, then after value.
- key_values.sort()
- # Combine key value pairs into a string.
- return '&'.join(['%s=%s' % (k, v) for k, v in key_values])
-
- def get_normalized_http_method(self):
- """Uppercases the http method."""
- return self.http_method.upper()
-
- def get_normalized_http_url(self):
- """Parses the URL and rebuilds it to be scheme://host/path."""
- parts = urlparse.urlparse(self.http_url)
- scheme, netloc, path = parts[:3]
- # Exclude default port numbers.
- if scheme == 'http' and netloc[-3:] == ':80':
- netloc = netloc[:-3]
- elif scheme == 'https' and netloc[-4:] == ':443':
- netloc = netloc[:-4]
- return '%s://%s%s' % (scheme, netloc, path)
-
- def sign_request(self, signature_method, consumer, token):
- """Set the signature parameter to the result of build_signature."""
- # Set the signature method.
- self.set_parameter('oauth_signature_method',
- signature_method.get_name())
- # Set the signature.
- self.set_parameter('oauth_signature',
- self.build_signature(signature_method, consumer, token))
-
- def build_signature(self, signature_method, consumer, token):
- """Calls the build signature method within the signature method."""
- return signature_method.build_signature(self, consumer, token)
-
- def from_request(http_method, http_url, headers=None, parameters=None,
- query_string=None):
- """Combines multiple parameter sources."""
- if parameters is None:
- parameters = {}
-
- # Headers
- if headers and 'Authorization' in headers:
- auth_header = headers['Authorization']
- # Check that the authorization header is OAuth.
- if auth_header.index('OAuth') > -1:
- auth_header = auth_header.lstrip('OAuth ')
- try:
- # Get the parameters from the header.
- header_params = OAuthRequest._split_header(auth_header)
- parameters.update(header_params)
- except:
- raise OAuthError('Unable to parse OAuth parameters from '
- 'Authorization header.')
-
- # GET or POST query string.
- if query_string:
- query_params = OAuthRequest._split_url_string(query_string)
- parameters.update(query_params)
-
- # URL parameters.
- param_str = urlparse.urlparse(http_url)[4] # query
- url_params = OAuthRequest._split_url_string(param_str)
- parameters.update(url_params)
-
- if parameters:
- return OAuthRequest(http_method, http_url, parameters)
-
- return None
- from_request = staticmethod(from_request)
-
- def from_consumer_and_token(oauth_consumer, token=None,
- http_method=HTTP_METHOD, http_url=None, parameters=None):
- if not parameters:
- parameters = {}
-
- defaults = {
- 'oauth_consumer_key': oauth_consumer.key,
- 'oauth_timestamp': generate_timestamp(),
- 'oauth_nonce': generate_nonce(),
- 'oauth_version': OAuthRequest.version,
- }
-
- defaults.update(parameters)
- parameters = defaults
-
- if token:
- parameters['oauth_token'] = token.key
-
- return OAuthRequest(http_method, http_url, parameters)
- from_consumer_and_token = staticmethod(from_consumer_and_token)
-
- def from_token_and_callback(token, callback=None, http_method=HTTP_METHOD,
- http_url=None, parameters=None):
- if not parameters:
- parameters = {}
-
- parameters['oauth_token'] = token.key
-
- if callback:
- parameters['oauth_callback'] = callback
-
- return OAuthRequest(http_method, http_url, parameters)
- from_token_and_callback = staticmethod(from_token_and_callback)
-
- def _split_header(header):
- """Turn Authorization: header into parameters."""
- params = {}
- parts = header.split(',')
- for param in parts:
- # Ignore realm parameter.
- if param.find('realm') > -1:
- continue
- # Remove whitespace.
- param = param.strip()
- # Split key-value.
- param_parts = param.split('=', 1)
- # Remove quotes and unescape the value.
- params[param_parts[0]] = urllib.unquote(param_parts[1].strip('\"'))
- return params
- _split_header = staticmethod(_split_header)
-
- def _split_url_string(param_str):
- """Turn URL string into parameters."""
- parameters = cgi.parse_qs(param_str, keep_blank_values=False)
- for k, v in parameters.iteritems():
- parameters[k] = urllib.unquote(v[0])
- return parameters
- _split_url_string = staticmethod(_split_url_string)
-
-class OAuthServer(object):
- """A worker to check the validity of a request against a data store."""
- timestamp_threshold = 300 # In seconds, five minutes.
- version = VERSION
- signature_methods = None
- data_store = None
-
- def __init__(self, data_store=None, signature_methods=None):
- self.data_store = data_store
- self.signature_methods = signature_methods or {}
-
- def set_data_store(self, data_store):
- self.data_store = data_store
-
- def get_data_store(self):
- return self.data_store
-
- def add_signature_method(self, signature_method):
- self.signature_methods[signature_method.get_name()] = signature_method
- return self.signature_methods
-
- def fetch_request_token(self, oauth_request):
- """Processes a request_token request and returns the
- request token on success.
- """
- try:
- # Get the request token for authorization.
- token = self._get_token(oauth_request, 'request')
- except OAuthError:
- # No token required for the initial token request.
- version = self._get_version(oauth_request)
- consumer = self._get_consumer(oauth_request)
- self._check_signature(oauth_request, consumer, None)
- # Fetch a new token.
- token = self.data_store.fetch_request_token(consumer)
- return token
-
- def fetch_access_token(self, oauth_request):
- """Processes an access_token request and returns the
- access token on success.
- """
- version = self._get_version(oauth_request)
- consumer = self._get_consumer(oauth_request)
- # Get the request token.
- token = self._get_token(oauth_request, 'request')
- self._check_signature(oauth_request, consumer, token)
- new_token = self.data_store.fetch_access_token(consumer, token)
- return new_token
-
- def verify_request(self, oauth_request):
- """Verifies an api call and checks all the parameters."""
- # -> consumer and token
- version = self._get_version(oauth_request)
- consumer = self._get_consumer(oauth_request)
- # Get the access token.
- token = self._get_token(oauth_request, 'access')
- self._check_signature(oauth_request, consumer, token)
- parameters = oauth_request.get_nonoauth_parameters()
- return consumer, token, parameters
-
- def authorize_token(self, token, user):
- """Authorize a request token."""
- return self.data_store.authorize_request_token(token, user)
-
- def get_callback(self, oauth_request):
- """Get the callback URL."""
- return oauth_request.get_parameter('oauth_callback')
-
- def build_authenticate_header(self, realm=''):
- """Optional support for the authenticate header."""
- return {'WWW-Authenticate': 'OAuth realm="%s"' % realm}
-
- def _get_version(self, oauth_request):
- """Verify the correct version request for this server."""
- try:
- version = oauth_request.get_parameter('oauth_version')
- except:
- version = VERSION
- if version and version != self.version:
- raise OAuthError('OAuth version %s not supported.' % str(version))
- return version
-
- def _get_signature_method(self, oauth_request):
- """Figure out the signature with some defaults."""
- try:
- signature_method = oauth_request.get_parameter(
- 'oauth_signature_method')
- except:
- signature_method = SIGNATURE_METHOD
- try:
- # Get the signature method object.
- signature_method = self.signature_methods[signature_method]
- except:
- signature_method_names = ', '.join(self.signature_methods.keys())
- raise OAuthError('Signature method %s not supported try one of the '
- 'following: %s' % (signature_method, signature_method_names))
-
- return signature_method
-
- def _get_consumer(self, oauth_request):
- consumer_key = oauth_request.get_parameter('oauth_consumer_key')
- consumer = self.data_store.lookup_consumer(consumer_key)
- if not consumer:
- raise OAuthError('Invalid consumer.')
- return consumer
-
- def _get_token(self, oauth_request, token_type='access'):
- """Try to find the token for the provided request token key."""
- token_field = oauth_request.get_parameter('oauth_token')
- token = self.data_store.lookup_token(token_type, token_field)
- if not token:
- raise OAuthError('Invalid %s token: %s' % (token_type, token_field))
- return token
-
- def _check_signature(self, oauth_request, consumer, token):
- timestamp, nonce = oauth_request._get_timestamp_nonce()
- self._check_timestamp(timestamp)
- self._check_nonce(consumer, token, nonce)
- signature_method = self._get_signature_method(oauth_request)
- try:
- signature = oauth_request.get_parameter('oauth_signature')
- except:
- raise OAuthError('Missing signature.')
- # Validate the signature.
- valid_sig = signature_method.check_signature(oauth_request, consumer,
- token, signature)
- if not valid_sig:
- key, base = signature_method.build_signature_base_string(
- oauth_request, consumer, token)
- raise OAuthError('Invalid signature. Expected signature base '
- 'string: %s' % base)
- built = signature_method.build_signature(oauth_request, consumer, token)
-
- def _check_timestamp(self, timestamp):
- """Verify that timestamp is recentish."""
- timestamp = int(timestamp)
- now = int(time.time())
- lapsed = now - timestamp
- if lapsed > self.timestamp_threshold:
- raise OAuthError('Expired timestamp: given %d and now %s has a '
- 'greater difference than threshold %d' %
- (timestamp, now, self.timestamp_threshold))
-
- def _check_nonce(self, consumer, token, nonce):
- """Verify that the nonce is uniqueish."""
- nonce = self.data_store.lookup_nonce(consumer, token, nonce)
- if nonce:
- raise OAuthError('Nonce already used: %s' % str(nonce))
-
-
-class OAuthClient(object):
- """OAuthClient is a worker to attempt to execute a request."""
- consumer = None
- token = None
-
- def __init__(self, oauth_consumer, oauth_token):
- self.consumer = oauth_consumer
- self.token = oauth_token
-
- def get_consumer(self):
- return self.consumer
-
- def get_token(self):
- return self.token
-
- def fetch_request_token(self, oauth_request):
- """-> OAuthToken."""
- raise NotImplementedError
-
- def fetch_access_token(self, oauth_request):
- """-> OAuthToken."""
- raise NotImplementedError
-
- def access_resource(self, oauth_request):
- """-> Some protected resource."""
- raise NotImplementedError
-
-
-class OAuthDataStore(object):
- """A database abstraction used to lookup consumers and tokens."""
-
- def lookup_consumer(self, key):
- """-> OAuthConsumer."""
- raise NotImplementedError
-
- def lookup_token(self, oauth_consumer, token_type, token_token):
- """-> OAuthToken."""
- raise NotImplementedError
-
- def lookup_nonce(self, oauth_consumer, oauth_token, nonce):
- """-> OAuthToken."""
- raise NotImplementedError
-
- def fetch_request_token(self, oauth_consumer):
- """-> OAuthToken."""
- raise NotImplementedError
-
- def fetch_access_token(self, oauth_consumer, oauth_token):
- """-> OAuthToken."""
- raise NotImplementedError
-
- def authorize_request_token(self, oauth_token, user):
- """-> OAuthToken."""
- raise NotImplementedError
-
-
-class OAuthSignatureMethod(object):
- """A strategy class that implements a signature method."""
- def get_name(self):
- """-> str."""
- raise NotImplementedError
-
- def build_signature_base_string(self, oauth_request, oauth_consumer, oauth_token):
- """-> str key, str raw."""
- raise NotImplementedError
-
- def build_signature(self, oauth_request, oauth_consumer, oauth_token):
- """-> str."""
- raise NotImplementedError
-
- def check_signature(self, oauth_request, consumer, token, signature):
- built = self.build_signature(oauth_request, consumer, token)
- return built == signature
-
-
-class OAuthSignatureMethod_HMAC_SHA1(OAuthSignatureMethod):
-
- def get_name(self):
- return 'HMAC-SHA1'
-
- def build_signature_base_string(self, oauth_request, consumer, token):
- sig = (
- escape(oauth_request.get_normalized_http_method()),
- escape(oauth_request.get_normalized_http_url()),
- escape(oauth_request.get_normalized_parameters()),
- )
-
- key = '%s&' % escape(consumer.secret)
- if token:
- key += escape(token.secret)
- raw = '&'.join(sig)
- return key, raw
-
- def build_signature(self, oauth_request, consumer, token):
- """Builds the base signature string."""
- key, raw = self.build_signature_base_string(oauth_request, consumer,
- token)
-
- # HMAC object.
- try:
- import hashlib # 2.5
- hashed = hmac.new(key, raw, hashlib.sha1)
- except:
- import sha # Deprecated
- hashed = hmac.new(key, raw, sha)
-
- # Calculate the digest base 64.
- return binascii.b2a_base64(hashed.digest())[:-1]
-
-
-class OAuthSignatureMethod_PLAINTEXT(OAuthSignatureMethod):
-
- def get_name(self):
- return 'PLAINTEXT'
-
- def build_signature_base_string(self, oauth_request, consumer, token):
- """Concatenates the consumer key and secret."""
- sig = '%s&' % escape(consumer.secret)
- if token:
- sig = sig + escape(token.secret)
- return sig, sig
-
- def build_signature(self, oauth_request, consumer, token):
- key, raw = self.build_signature_base_string(oauth_request, consumer,
- token)
- return key
\ No newline at end of file
+++ /dev/null
-from forum.settings import EXT_KEYS_SET
-from forum.settings.base import Setting
-
-TWITTER_CONSUMER_KEY = Setting('TWITTER_CONSUMER_KEY', '', EXT_KEYS_SET, dict(
-label = "Twitter consumer key",
-help_text = """
-Get this key at the <a href="http://twitter.com/apps/">Twitter apps</a> to enable
-authentication in your site through Twitter.
-""",
-required=False))
-
-TWITTER_CONSUMER_SECRET = Setting('TWITTER_CONSUMER_SECRET', '', EXT_KEYS_SET, dict(
-label = "Twitter consumer secret",
-help_text = """
-This your Twitter consumer secret that you'll get in the same place as the consumer key.
-""",
-required=False))
-
-
+++ /dev/null
-try:
- import openid
- CAN_USE = True
-except:
- CAN_USE = False
\ No newline at end of file
+++ /dev/null
-from consumer import OpenIdAbstractAuthConsumer
-from forum.authentication.base import ConsumerTemplateContext
-
-class GoogleAuthConsumer(OpenIdAbstractAuthConsumer):
- def get_user_url(self, request):
- return 'https://www.google.com/accounts/o8/id'
-
-class GoogleAuthContext(ConsumerTemplateContext):
- mode = 'BIGICON'
- type = 'DIRECT'
- weight = 200
- human_name = 'Google'
- icon = '/media/images/openid/google.gif'
-
-
-
-class YahooAuthConsumer(OpenIdAbstractAuthConsumer):
- def get_user_url(self, request):
- return 'http://yahoo.com/'
-
-class YahooAuthContext(ConsumerTemplateContext):
- mode = 'BIGICON'
- type = 'DIRECT'
- weight = 300
- human_name = 'Yahoo'
- icon = '/media/images/openid/yahoo.gif'
-
-
-
-class AolAuthConsumer(OpenIdAbstractAuthConsumer):
- def get_user_url(self, request):
- uname = request.POST['input_field']
- return 'http://openid.aol.com/' + uname
-
-class AolAuthContext(ConsumerTemplateContext):
- mode = 'BIGICON'
- type = 'SIMPLE_FORM'
- simple_form_context = {
- 'your_what': 'AOL screen name'
- }
- weight = 400
- human_name = 'AOL'
- icon = '/media/images/openid/aol.gif'
-
-
-class MyOpenIdAuthConsumer(OpenIdAbstractAuthConsumer):
- def get_user_url(self, request):
- blog_name = request.POST['input_field']
- return "http://%s.myopenid.com/" % blog_name
-
-class MyOpenIdAuthContext(ConsumerTemplateContext):
- mode = 'SMALLICON'
- type = 'SIMPLE_FORM'
- simple_form_context = {
- 'your_what': 'MyOpenID user name'
- }
- weight = 200
- human_name = 'MyOpenID'
- icon = '/media/images/openid/myopenid.ico'
-
-
-class FlickrAuthConsumer(OpenIdAbstractAuthConsumer):
- def get_user_url(self, request):
- blog_name = request.POST['input_field']
- return "http://flickr.com/%s/" % blog_name
-
-class FlickrAuthContext(ConsumerTemplateContext):
- mode = 'SMALLICON'
- type = 'SIMPLE_FORM'
- simple_form_context = {
- 'your_what': 'Flickr user name'
- }
- weight = 250
- human_name = 'Flickr'
- icon = '/media/images/openid/flickr.ico'
-
-
-class TechnoratiAuthConsumer(OpenIdAbstractAuthConsumer):
- def get_user_url(self, request):
- blog_name = request.POST['input_field']
- return "http://technorati.com/people/technorati/%s/" % blog_name
-
-class TechnoratiAuthContext(ConsumerTemplateContext):
- mode = 'SMALLICON'
- type = 'SIMPLE_FORM'
- simple_form_context = {
- 'your_what': 'Technorati user name'
- }
- weight = 260
- human_name = 'Technorati'
- icon = '/media/images/openid/technorati.ico'
-
-
-class WordpressAuthConsumer(OpenIdAbstractAuthConsumer):
- def get_user_url(self, request):
- blog_name = request.POST['input_field']
- return "http://%s.wordpress.com/" % blog_name
-
-class WordpressAuthContext(ConsumerTemplateContext):
- mode = 'SMALLICON'
- type = 'SIMPLE_FORM'
- simple_form_context = {
- 'your_what': 'Wordpress blog name'
- }
- weight = 270
- human_name = 'Wordpress'
- icon = '/media/images/openid/wordpress.ico'
-
-
-class BloggerAuthConsumer(OpenIdAbstractAuthConsumer):
- def get_user_url(self, request):
- blog_name = request.POST['input_field']
- return "http://%s.blogspot.com/" % blog_name
-
-class BloggerAuthContext(ConsumerTemplateContext):
- mode = 'SMALLICON'
- type = 'SIMPLE_FORM'
- simple_form_context = {
- 'your_what': 'Blogger blog name'
- }
- weight = 300
- human_name = 'Blogger'
- icon = '/media/images/openid/blogger.ico'
-
-
-class LiveJournalAuthConsumer(OpenIdAbstractAuthConsumer):
- def get_user_url(self, request):
- blog_name = request.POST['input_field']
- return "http://%s.livejournal.com/" % blog_name
-
-class LiveJournalAuthContext(ConsumerTemplateContext):
- mode = 'SMALLICON'
- type = 'SIMPLE_FORM'
- simple_form_context = {
- 'your_what': 'LiveJournal blog name'
- }
- weight = 310
- human_name = 'LiveJournal'
- icon = '/media/images/openid/livejournal.ico'
-
-
-class ClaimIdAuthConsumer(OpenIdAbstractAuthConsumer):
- def get_user_url(self, request):
- blog_name = request.POST['input_field']
- return "http://claimid.com/%s" % blog_name
-
-class ClaimIdAuthContext(ConsumerTemplateContext):
- mode = 'SMALLICON'
- type = 'SIMPLE_FORM'
- simple_form_context = {
- 'your_what': 'ClaimID user name'
- }
- weight = 320
- human_name = 'ClaimID'
- icon = '/media/images/openid/claimid.ico'
-
-class VidoopAuthConsumer(OpenIdAbstractAuthConsumer):
- def get_user_url(self, request):
- blog_name = request.POST['input_field']
- return "http://%s.myvidoop.com/" % blog_name
-
-class VidoopAuthContext(ConsumerTemplateContext):
- mode = 'SMALLICON'
- type = 'SIMPLE_FORM'
- simple_form_context = {
- 'your_what': 'Vidoop user name'
- }
- weight = 330
- human_name = 'Vidoop'
- icon = '/media/images/openid/vidoop.ico'
-
-class VerisignAuthConsumer(OpenIdAbstractAuthConsumer):
- def get_user_url(self, request):
- blog_name = request.POST['input_field']
- return "http://%s.pip.verisignlabs.com/" % blog_name
-
-class VerisignAuthContext(ConsumerTemplateContext):
- mode = 'SMALLICON'
- type = 'SIMPLE_FORM'
- simple_form_context = {
- 'your_what': 'Verisign user name'
- }
- weight = 340
- human_name = 'Verisign'
- icon = '/media/images/openid/verisign.ico'
-
-
-class OpenIdUrlAuthConsumer(OpenIdAbstractAuthConsumer):
- pass
-
-class OpenIdUrlAuthContext(ConsumerTemplateContext):
- mode = 'STACK_ITEM'
- weight = 300
- human_name = 'OpenId url'
- stack_item_template = 'modules/openidauth/openidurl.html'
- icon = '/media/images/openid/openid-inputicon.gif'
\ No newline at end of file
+++ /dev/null
-from django.utils.html import escape
-from django.http import get_host
-
-from forum.authentication.base import AuthenticationConsumer, InvalidAuthentication
-import settings
-
-from openid.yadis import xri
-from openid.consumer.consumer import Consumer, SUCCESS, CANCEL, FAILURE, SETUP_NEEDED
-from openid.consumer.discover import DiscoveryFailure
-from openid.extensions.sreg import SRegRequest, SRegResponse
-from openid.extensions.ax import FetchRequest as AXFetchRequest, AttrInfo, FetchResponse as AXFetchResponse
-from django.utils.translation import ugettext as _
-
-from store import OsqaOpenIDStore
-
-class OpenIdAbstractAuthConsumer(AuthenticationConsumer):
-
- def get_user_url(self, request):
- try:
- return request.POST['openid_identifier']
- except:
- raise NotImplementedError()
-
- def prepare_authentication_request(self, request, redirect_to):
- if not redirect_to.startswith('http://') or redirect_to.startswith('https://'):
- redirect_to = get_url_host(request) + redirect_to
-
- user_url = self.get_user_url(request)
-
- if xri.identifierScheme(user_url) == 'XRI' and getattr(
- settings, 'OPENID_DISALLOW_INAMES', False
- ):
- raise InvalidAuthentication('i-names are not supported')
-
- consumer = Consumer(request.session, OsqaOpenIDStore())
-
- try:
- auth_request = consumer.begin(user_url)
- except DiscoveryFailure:
- raise InvalidAuthentication(_('Sorry, but your input is not a valid OpenId'))
-
- #sreg = getattr(settings, 'OPENID_SREG', False)
-
- #if sreg:
- # s = SRegRequest()
- # for sarg in sreg:
- # if sarg.lower().lstrip() == "policy_url":
- # s.policy_url = sreg[sarg]
- # else:
- # for v in sreg[sarg].split(','):
- # s.requestField(field_name=v.lower().lstrip(), required=(sarg.lower().lstrip() == "required"))
- # auth_request.addExtension(s)
-
- #auth_request.addExtension(SRegRequest(required=['email']))
-
- if request.session.get('force_email_request', True):
- axr = AXFetchRequest()
- axr.add(AttrInfo("http://axschema.org/contact/email", 1, True, "email"))
- auth_request.addExtension(axr)
-
- trust_root = getattr(
- settings, 'OPENID_TRUST_ROOT', get_url_host(request) + '/'
- )
-
-
- return auth_request.redirectURL(trust_root, redirect_to)
-
- def process_authentication_request(self, request):
- consumer = Consumer(request.session, OsqaOpenIDStore())
-
- query_dict = dict([
- (k.encode('utf8'), v.encode('utf8')) for k, v in request.GET.items()
- ])
-
- #for i in query_dict.items():
- # print "%s : %s" % i
-
- url = get_url_host(request) + request.path
- openid_response = consumer.complete(query_dict, url)
-
- if openid_response.status == SUCCESS:
- if request.session.get('force_email_request', True):
- try:
- ax = AXFetchResponse.fromSuccessResponse(openid_response)
- email = ax.getExtensionArgs()['value.ext0.1']
- request.session['auth_email_request'] = email
- except Exception, e:
- pass
-
- return request.GET['openid.identity']
- elif openid_response.status == CANCEL:
- raise InvalidAuthentication(_('The OpenId authentication request was canceled'))
- elif openid_response.status == FAILURE:
- raise InvalidAuthentication(_('The OpenId authentication failed: ') + openid_response.message)
- elif openid_response.status == SETUP_NEEDED:
- raise InvalidAuthentication(_('Setup needed'))
- else:
- raise InvalidAuthentication(_('The OpenId authentication failed with an unknown status: ') + openid_response.status)
-
- def get_user_data(self, key):
- return {}
-
-def get_url_host(request):
- if request.is_secure():
- protocol = 'https'
- else:
- protocol = 'http'
- host = escape(get_host(request))
- return '%s://%s' % (protocol, host)
-
-def get_full_url(request):
- return get_url_host(request) + request.get_full_path()
\ No newline at end of file
+++ /dev/null
-from django.db import models
-
-class OpenIdNonce(models.Model):
- server_url = models.URLField()
- timestamp = models.IntegerField()
- salt = models.CharField( max_length=50 )
-
- def __unicode__(self):
- return "Nonce: %s" % self.nonce
-
- class Meta:
- app_label = 'forum'
-
-class OpenIdAssociation(models.Model):
- server_url = models.TextField(max_length=2047)
- handle = models.CharField(max_length=255)
- secret = models.TextField(max_length=255) # Stored base64 encoded
- issued = models.IntegerField()
- lifetime = models.IntegerField()
- assoc_type = models.TextField(max_length=64)
-
- def __unicode__(self):
- return "Association: %s, %s" % (self.server_url, self.handle)
-
- class Meta:
- app_label = 'forum'
+++ /dev/null
-OPENID_SREG = {
- "required": "nickname, email",
- "optional": "postcode, country",
- "policy_url": ""
-}
-OPENID_AX = [
- {"type_uri": "http://axschema.org/contact/email", "count": 1, "required": True, "alias": "email"},
- {"type_uri": "fullname", "count":1 , "required": False, "alias": "fullname"}
- ]
\ No newline at end of file
+++ /dev/null
-import time, base64
-
-#thanks to alexlavr
-#see: http://meta.osqa.net/question/25/installation-issue-importerror-cannot-import-name-auth_providers#43
-try:
- from hashlib import md5 as md
-except ImportError:
- from md5 import new as md
-
-from openid.store import nonce as oid_nonce
-from openid.store.interface import OpenIDStore
-from openid.association import Association as OIDAssociation
-from django.conf import settings
-
-from models import OpenIdNonce as Nonce, OpenIdAssociation as Association
-
-class OsqaOpenIDStore(OpenIDStore):
- def __init__(self):
- self.max_nonce_age = 6 * 60 * 60 # Six hours
-
- def storeAssociation(self, server_url, association):
- assoc = Association(
- server_url = server_url,
- handle = association.handle,
- secret = base64.encodestring(association.secret),
- issued = association.issued,
- lifetime = association.issued,
- assoc_type = association.assoc_type
- )
- assoc.save()
-
- def getAssociation(self, server_url, handle=None):
- assocs = []
- if handle is not None:
- assocs = Association.objects.filter(
- server_url = server_url, handle = handle
- )
- else:
- assocs = Association.objects.filter(
- server_url = server_url
- )
- if not assocs:
- return None
- associations = []
- for assoc in assocs:
- association = OIDAssociation(
- assoc.handle, base64.decodestring(assoc.secret), assoc.issued,
- assoc.lifetime, assoc.assoc_type
- )
- if association.getExpiresIn() == 0:
- self.removeAssociation(server_url, assoc.handle)
- else:
- associations.append((association.issued, association))
- if not associations:
- return None
- return associations[-1][1]
-
- def removeAssociation(self, server_url, handle):
- assocs = list(Association.objects.filter(
- server_url = server_url, handle = handle
- ))
- assocs_exist = len(assocs) > 0
- for assoc in assocs:
- assoc.delete()
- return assocs_exist
-
- def storeNonce(self, nonce):
- nonce, created = Nonce.objects.get_or_create(
- nonce = nonce, defaults={'expires': int(time.time())}
- )
-
- def useNonce(self, server_url, timestamp, salt):
- if abs(timestamp - time.time()) > oid_nonce.SKEW:
- return False
-
- try:
- nonce = Nonce( server_url=server_url, timestamp=timestamp, salt=salt)
- nonce.save()
- except:
- raise
- else:
- return 1
-
- def getAuthKey(self):
- # Use first AUTH_KEY_LEN characters of md5 hash of SECRET_KEY
- return md(settings.SECRET_KEY).hexdigest()[:self.AUTH_KEY_LEN]
+++ /dev/null
-{% load i18n %}\r
-{% load extra_tags %}\r
-\r
-<fieldset>\r
- <table>\r
- <tr>\r
- <td><p id="provider_name_slot">{% trans 'Enter your OpenId Url' %}</p></td>\r
- </tr>\r
- <tr>\r
- <td>\r
- <input id="openid_identifier" class="icon_input" name="openid_identifier" type="text"\r
- style="width: 500px; background: url('{% media provider.icon %}') no-repeat left center" />\r
- </td>\r
- <td>\r
- <input type="submit" name="ssignin" value="Login" />\r
- </td>\r
- </tr>\r
- </table>\r
-</fieldset>\r
-\r
+++ /dev/null
-NAME = 'Postgresql Full Text Search'
-DESCRIPTION = "Enables PostgreSql full text search functionality."
-
-try:
- import psycopg2
- from django.conf import settings
- CAN_USE = settings.DATABASE_ENGINE in ('postgresql_psycopg2', 'postgresql', )
-except:
- CAN_USE = False
-
\ No newline at end of file
+++ /dev/null
-from forum.models import Question
-
-def question_search(keywords):
- return Question.objects.extra(
- select={
- 'ranking': "ts_rank_cd(tsv, plainto_tsquery(%s), 32)",
- },
- where=["tsv @@ plainto_tsquery(%s)"],
- params=[keywords],
- select_params=[keywords]
- ).order_by('-ranking')
\ No newline at end of file
+++ /dev/null
-import os
-
-from django.db import connection, transaction
-from django.conf import settings
-
-import forum.models
-
-if settings.DATABASE_ENGINE in ('postgresql_psycopg2', 'postgresql', ):
- from django.db.models.signals import post_syncdb
-
- def setup_pgfulltext(sender, **kwargs):
- if sender == forum.models:
- install_pg_fts()
-
- post_syncdb.connect(setup_pgfulltext)
-
-def install_pg_fts():
- f = open(os.path.join(os.path.dirname(__file__), 'pg_fts_install.sql'), 'r')
-
- try:
- cursor = connection.cursor()
- cursor.execute(f.read())
- transaction.commit_unless_managed()
- except:
- pass
- finally:
- cursor.close()
-
- f.close()
+++ /dev/null
- CREATE OR REPLACE FUNCTION public.create_plpgsql_language ()
- RETURNS TEXT
- AS $$
- CREATE LANGUAGE plpgsql;
- SELECT 'language plpgsql created'::TEXT;
- $$
- LANGUAGE 'sql';
-
- SELECT CASE WHEN
- (SELECT true::BOOLEAN
- FROM pg_language
- WHERE lanname='plpgsql')
- THEN
- (SELECT 'language already installed'::TEXT)
- ELSE
- (SELECT public.create_plpgsql_language())
- END;
-
- DROP FUNCTION public.create_plpgsql_language ();
-
- CREATE OR REPLACE FUNCTION set_question_tsv() RETURNS TRIGGER AS $$
- begin
- new.tsv :=
- setweight(to_tsvector('english', coalesce(new.tagnames,'')), 'A') ||
- setweight(to_tsvector('english', coalesce(new.title,'')), 'B') ||
- setweight(to_tsvector('english', coalesce(new.html,'')), 'C');
- RETURN new;
- end
- $$ LANGUAGE plpgsql;
-
- CREATE OR REPLACE FUNCTION public.create_tsv_question_column ()
- RETURNS TEXT
- AS $$
- ALTER TABLE question ADD COLUMN tsv tsvector;
-
- CREATE TRIGGER tsvectorupdate BEFORE INSERT OR UPDATE
- ON question FOR EACH ROW EXECUTE PROCEDURE set_question_tsv();
-
- CREATE INDEX question_tsv ON question USING gin(tsv);
-
- SELECT 'tsv column created'::TEXT;
- $$
- LANGUAGE 'sql';
-
- SELECT CASE WHEN
- (SELECT true::BOOLEAN FROM pg_attribute WHERE attrelid = (SELECT oid FROM pg_class WHERE relname = 'question') AND attname = 'tsv')
- THEN
- (SELECT 'Tsv column already exists'::TEXT)
- ELSE
- (SELECT public.create_tsv_question_column())
-
- END;
-
- DROP FUNCTION public.create_tsv_question_column ();
+++ /dev/null
-from forum.badges.base import CountableAbstractBadge
-from forum.models import Question, Tag
-from forum import const
-from django.utils.translation import ugettext as _
-import settings
-
-class BugBusterBadge(CountableAbstractBadge):
- type = const.SILVER_BADGE
- description = _('Got %s upvotes in a question tagged with "bug"') % str(settings.BUG_BUSTER_VOTES_UP)
-
- def __init__(self):
-
- def handler(instance):
- try:
- bug_tag = Tag.objects.get(name='bug')
- if bug_tag in instance.tags.all():
- self.award_badge(instance.author, instance)
- except:
- pass
-
- super(BugBusterBadge, self).__init__(Question, 'vote_up_count', settings.BUG_BUSTER_VOTES_UP, handler)
\ No newline at end of file
+++ /dev/null
-from forum.settings import BADGES_SET
-from forum.settings.base import Setting
-
-BUG_BUSTER_VOTES_UP = Setting('BUG_BUSTER_VOTES_UP', 3, BADGES_SET, dict(
-label = "Bug Buster Votes Up",
-help_text = """
-Number of votes up required for the author of a question tagged as bug to be awarded the Bug Buster badge.
-"""))
\ No newline at end of file
+++ /dev/null
-from django import forms
-from lib import captcha
-from django.utils.safestring import mark_safe
-from django.utils.encoding import force_unicode, smart_unicode
-from django.utils.translation import ugettext_lazy as _
-import settings
-
-class ReCaptchaField(forms.Field):
- def __init__(self, *args, **kwargs):
- super(ReCaptchaField, self).__init__(widget=ReCaptchaWidget)
-
- def clean(self, values):
- super(ReCaptchaField, self).clean(values[1])
- recaptcha_challenge_value = smart_unicode(values[0])
- recaptcha_response_value = smart_unicode(values[1])
- check_captcha = captcha.submit(recaptcha_challenge_value,
- recaptcha_response_value, settings.RECAPTCHA_PRIV_KEY, {})
-
- if not check_captcha.is_valid:
- raise forms.util.ValidationError(_('Invalid captcha'))
-
- return values[0]
-
-
-class ReCaptchaWidget(forms.Widget):
- def render(self, name, value, attrs=None):
- return mark_safe(force_unicode(captcha.displayhtml(settings.RECAPTCHA_PUB_KEY)))
-
- def value_from_datadict(self, data, files, name):
- return (data.get('recaptcha_challenge_field', None), data.get('recaptcha_response_field', None))
-
-
+++ /dev/null
-from formfield import ReCaptchaField
-
-def create_anti_spam_field():
- return ('recaptcha', ReCaptchaField())
\ No newline at end of file
+++ /dev/null
-import urllib2, urllib
-
-API_SSL_SERVER="https://api-secure.recaptcha.net"
-API_SERVER="http://api.recaptcha.net"
-VERIFY_SERVER="api-verify.recaptcha.net"
-
-class RecaptchaResponse(object):
- def __init__(self, is_valid, error_code=None):
- self.is_valid = is_valid
- self.error_code = error_code
-
-def displayhtml (public_key,
- use_ssl = False,
- error = None):
- """Gets the HTML to display for reCAPTCHA
-
- public_key -- The public api key
- use_ssl -- Should the request be sent over ssl?
- error -- An error message to display (from RecaptchaResponse.error_code)"""
-
- error_param = ''
- if error:
- error_param = '&error=%s' % error
-
- if use_ssl:
- server = API_SSL_SERVER
- else:
- server = API_SERVER
-
- return """<script type="text/javascript" src="%(ApiServer)s/challenge?k=%(PublicKey)s%(ErrorParam)s"></script>
-
-<noscript>
- <iframe src="%(ApiServer)s/noscript?k=%(PublicKey)s%(ErrorParam)s" height="300" width="500" frameborder="0"></iframe><br />
- <textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea>
- <input type='hidden' name='recaptcha_response_field' value='manual_challenge' />
-</noscript>
-""" % {
- 'ApiServer' : server,
- 'PublicKey' : public_key,
- 'ErrorParam' : error_param,
- }
-
-
-def submit (recaptcha_challenge_field,
- recaptcha_response_field,
- private_key,
- remoteip):
- """
- Submits a reCAPTCHA request for verification. Returns RecaptchaResponse
- for the request
-
- recaptcha_challenge_field -- The value of recaptcha_challenge_field from the form
- recaptcha_response_field -- The value of recaptcha_response_field from the form
- private_key -- your reCAPTCHA private key
- remoteip -- the user's ip address
- """
-
- if not (recaptcha_response_field and recaptcha_challenge_field and
- len (recaptcha_response_field) and len (recaptcha_challenge_field)):
- return RecaptchaResponse (is_valid = False, error_code = 'incorrect-captcha-sol')
-
-
- def encode_if_necessary(s):
- if isinstance(s, unicode):
- return s.encode('utf-8')
- return s
-
- params = urllib.urlencode ({
- 'privatekey': encode_if_necessary(private_key),
- 'remoteip' : encode_if_necessary(remoteip),
- 'challenge': encode_if_necessary(recaptcha_challenge_field),
- 'response' : encode_if_necessary(recaptcha_response_field),
- })
-
- request = urllib2.Request (
- url = "http://%s/verify" % VERIFY_SERVER,
- data = params,
- headers = {
- "Content-type": "application/x-www-form-urlencoded",
- "User-agent": "reCAPTCHA Python"
- }
- )
-
- httpresp = urllib2.urlopen (request)
-
- return_values = httpresp.read ().splitlines ();
- httpresp.close();
-
- return_code = return_values [0]
-
- if (return_code == "true"):
- return RecaptchaResponse (is_valid=True)
- else:
- return RecaptchaResponse (is_valid=False, error_code = return_values [1])
-
-
+++ /dev/null
-from forum.settings import EXT_KEYS_SET
-from forum.settings.base import Setting
-
-RECAPTCHA_PUB_KEY = Setting('RECAPTCHA_PUB_KEY', '', EXT_KEYS_SET, dict(
-label = "Recaptch public key",
-help_text = """
-Get this key at <a href="http://recaptcha.net">reCaptcha</a> to enable
-recaptcha anti spam through.
-""",
-required=False))
-
-RECAPTCHA_PRIV_KEY = Setting('RECAPTCHA_PRIV_KEY', '', EXT_KEYS_SET, dict(
-label = "Recaptch private key",
-help_text = """
-This is the private key you'll get in the same place as the recaptcha public key.
-""",
-required=False))
+++ /dev/null
-from forum.settings.base import Setting, SettingSet
-from django.forms.widgets import Textarea
-
-ROBOTS_SET = SettingSet('robots', 'Robots txt', "Set up the robots.txt file.", 3000)
-
-ROBOTS_FILE = Setting('ROBOTS_FILE',
-"""
-User-Agent: *
-Disallow: /accounts/
-Disallow: /users/
-""", ROBOTS_SET, dict(
-label = "Robots.txt file",
-help_text = """
-The robots.txt file search engine spiders will see.
-""",
-widget=Textarea(attrs={'rows': '20'})))
\ No newline at end of file
+++ /dev/null
-User-agent: *
-Disallow: /
\ No newline at end of file
+++ /dev/null
-from django.conf.urls.defaults import *
-from django.http import HttpResponse
-import settings
-
-urlpatterns = patterns('',
- (r'^robots.txt$', lambda r: HttpResponse(settings.ROBOTS_FILE.value)),
-)
+++ /dev/null
-Full text search (using sphinx search)
-
-Currently full text search works only with sphinx search engine
-And builtin PostgreSQL (postgres only >= 8.3???)
-
-5.1 Instructions for Sphinx search setup
-Sphinx at this time supports only MySQL and PostgreSQL databases
-to enable this, install sphinx search engine and djangosphinx
-
-configure sphinx, sample configuration can be found in
-sphinx/sphinx.conf file usually goes somewhere in /etc tree
-
-build osqa index first time manually
-
-% indexer --config /path/to/sphinx.conf --index osqa
-
-setup cron job to rebuild index periodically with command
-your crontab entry may be something like
-
-0 9,15,21 * * * /usr/local/bin/indexer --config /etc/sphinx/sphinx.conf --all --rotate >/dev/null 2>&1
-adjust it as necessary this one will reindex three times a day at 9am 3pm and 9pm
-
-if your forum grows very big ( good luck with that :) you'll
-need to two search indices one diff index and one main
-please refer to online sphinx search documentation for the information
-on the subject http://sphinxsearch.com/docs/
-
-in settings.py look for INSTALLED_APPS
-and uncomment #'djangosphinx',
\ No newline at end of file
+++ /dev/null
-try:
- import djangosphinx
- CAN_USE = True
-except:
- CAN_USE = False
\ No newline at end of file
+++ /dev/null
-DJANGO_APPS = ('djangosphinx', )
-
+++ /dev/null
-from forum.models import Question
-
-def question_search(keywords, orderby):
- return Question.search.query(keywords)
\ No newline at end of file
+++ /dev/null
-from forum.models import Question
-from django.conf import settings
-from djangosphinx.manager import SphinxSearch
-
-from djangosphinx.models import SphinxSearch
-
-Question.add_to_class('search', SphinxSearch(
- index=' '.join(settings.SPHINX_SEARCH_INDICES),
- mode='SPH_MATCH_ALL',
- )
- )
+++ /dev/null
-SPHINX_API_VERSION = 0x113 #refer to djangosphinx documentation
-SPHINX_SEARCH_INDICES=('osqa',) #a tuple of index names remember about a comma after the
-#last item, especially if you have just one :)
-SPHINX_SERVER='localhost'
-SPHINX_PORT=3312
+++ /dev/null
-# SOME DESCRIPTIVE TITLE.
-# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
-# This file is distributed under the same license as the PACKAGE package.
-# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
-#
-#, fuzzy
-msgid ""
-msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2010-03-01 19:51-0500\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: LANGUAGE <LL@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-
-#: forum/auth.py:484
-msgid "Your question and all of it's answers have been deleted"
-msgstr ""
-
-#: forum/auth.py:486
-msgid "Your question has been deleted"
-msgstr ""
-
-#: forum/auth.py:489
-msgid "The question and all of it's answers have been deleted"
-msgstr ""
-
-#: forum/auth.py:491
-msgid "The question has been deleted"
-msgstr ""
-
-#: forum/const.py:8
-msgid "duplicate question"
-msgstr ""
-
-#: forum/const.py:9
-msgid "question is off-topic or not relevant"
-msgstr ""
-
-#: forum/const.py:10
-msgid "too subjective and argumentative"
-msgstr ""
-
-#: forum/const.py:11
-msgid "is not an answer to the question"
-msgstr ""
-
-#: forum/const.py:12
-msgid "the question is answered, right answer was accepted"
-msgstr ""
-
-#: forum/const.py:13
-msgid "problem is not reproducible or outdated"
-msgstr ""
-
-#: forum/const.py:15
-msgid "question contains offensive inappropriate, or malicious remarks"
-msgstr ""
-
-#: forum/const.py:16
-msgid "spam or advertising"
-msgstr ""
-
-#: forum/const.py:57
-msgid "question"
-msgstr ""
-
-#: forum/const.py:58 forum/skins/default/templates/book.html:110
-msgid "answer"
-msgstr ""
-
-#: forum/const.py:59
-msgid "commented question"
-msgstr ""
-
-#: forum/const.py:60
-msgid "commented answer"
-msgstr ""
-
-#: forum/const.py:61
-msgid "edited question"
-msgstr ""
-
-#: forum/const.py:62
-msgid "edited answer"
-msgstr ""
-
-#: forum/const.py:63
-msgid "received award"
-msgstr "received badge"
-
-#: forum/const.py:64
-msgid "marked best answer"
-msgstr ""
-
-#: forum/const.py:65
-msgid "upvoted"
-msgstr ""
-
-#: forum/const.py:66
-msgid "downvoted"
-msgstr ""
-
-#: forum/const.py:67
-msgid "canceled vote"
-msgstr ""
-
-#: forum/const.py:68
-msgid "deleted question"
-msgstr ""
-
-#: forum/const.py:69
-msgid "deleted answer"
-msgstr ""
-
-#: forum/const.py:70
-msgid "marked offensive"
-msgstr ""
-
-#: forum/const.py:71
-msgid "updated tags"
-msgstr ""
-
-#: forum/const.py:72
-msgid "selected favorite"
-msgstr ""
-
-#: forum/const.py:73
-msgid "completed user profile"
-msgstr ""
-
-#: forum/const.py:74
-msgid "email update sent to user"
-msgstr ""
-
-#: forum/const.py:78
-msgid "question_answered"
-msgstr "answer"
-
-#: forum/const.py:79
-msgid "question_commented"
-msgstr "question comment"
-
-#: forum/const.py:80
-msgid "answer_commented"
-msgstr "answer comment"
-
-#: forum/const.py:81
-msgid "answer_accepted"
-msgstr "answer accepted"
-
-#: forum/const.py:85
-msgid "[closed]"
-msgstr ""
-
-#: forum/const.py:86
-msgid "[deleted]"
-msgstr ""
-
-#: forum/const.py:87 forum/views/readers.py:564 forum/views/readers.py:583
-msgid "initial version"
-msgstr ""
-
-#: forum/const.py:88
-msgid "retagged"
-msgstr ""
-
-#: forum/const.py:92
-msgid "exclude ignored tags"
-msgstr ""
-
-#: forum/const.py:92
-msgid "allow only selected tags"
-msgstr ""
-
-#: forum/feed.py:18
-msgid " - "
-msgstr ""
-
-#: forum/feed.py:18
-msgid "latest questions"
-msgstr ""
-
-#: forum/forms.py:22 forum/skins/default/templates/answer_edit_tips.html:35
-#: forum/skins/default/templates/answer_edit_tips.html:39
-#: forum/skins/default/templates/question_edit_tips.html:32
-#: forum/skins/default/templates/question_edit_tips.html:37
-msgid "title"
-msgstr ""
-
-#: forum/forms.py:23
-msgid "please enter a descriptive title for your question"
-msgstr ""
-
-#: forum/forms.py:28
-msgid "title must be > 10 characters"
-msgstr ""
-
-#: forum/forms.py:37
-msgid "content"
-msgstr ""
-
-#: forum/forms.py:43
-msgid "question content must be > 10 characters"
-msgstr ""
-
-#: forum/forms.py:53 forum/skins/default/templates/header.html:28
-#: forum/skins/default/templates/header.html:56
-msgid "tags"
-msgstr ""
-
-#: forum/forms.py:55
-msgid ""
-"Tags are short keywords, with no spaces within. Up to five tags can be used."
-msgstr ""
-
-#: forum/forms.py:62 forum/skins/default/templates/question_retag.html:39
-msgid "tags are required"
-msgstr ""
-
-#: forum/forms.py:68
-msgid "please use 5 tags or less"
-msgstr ""
-
-#: forum/forms.py:71
-msgid "tags must be shorter than 20 characters"
-msgstr ""
-
-#: forum/forms.py:75
-msgid ""
-"please use following characters in tags: letters 'a-z', numbers, and "
-"characters '.-_#'"
-msgstr ""
-
-#: forum/forms.py:85
-#: forum/skins/default/templates/post_contributor_info.html:7
-#: forum/skins/default/templates/question_summary_list_roll.html:26
-#: forum/skins/default/templates/question_summary_list_roll.html:38
-#: forum/skins/default/templates/questions.html:92
-#: forum/skins/default/templates/questions.html:104
-msgid "community wiki"
-msgstr ""
-
-#: forum/forms.py:86
-msgid ""
-"if you choose community wiki option, the question and answer do not generate "
-"points and name of author will not be shown"
-msgstr ""
-
-#: forum/forms.py:102
-msgid "update summary:"
-msgstr ""
-
-#: forum/forms.py:103
-msgid ""
-"enter a brief summary of your revision (e.g. fixed spelling, grammar, "
-"improved style, this field is optional)"
-msgstr ""
-
-#: forum/forms.py:106
-msgid "Automatically accept user's contributions for the email updates"
-msgstr ""
-
-#: forum/forms.py:122
-msgid "Your name:"
-msgstr ""
-
-#: forum/forms.py:123
-msgid "Email (not shared with anyone):"
-msgstr ""
-
-#: forum/forms.py:124
-msgid "Your message:"
-msgstr ""
-
-#: forum/forms.py:206
-msgid "this email does not have to be linked to gravatar"
-msgstr ""
-
-#: forum/forms.py:208
-msgid "Screen name"
-msgstr ""
-
-#: forum/forms.py:209
-msgid "Real name"
-msgstr ""
-
-#: forum/forms.py:210
-msgid "Website"
-msgstr ""
-
-#: forum/forms.py:211
-msgid "Location"
-msgstr ""
-
-#: forum/forms.py:212
-msgid "Date of birth"
-msgstr ""
-
-#: forum/forms.py:212
-msgid "will not be shown, used to calculate age, format: YYYY-MM-DD"
-msgstr ""
-
-#: forum/forms.py:213 forum/skins/default/templates/account_settings.html:21
-#: forum/skins/default/templates/authopenid/settings.html:21
-msgid "Profile"
-msgstr ""
-
-#: forum/forms.py:244 forum/forms.py:245
-msgid "this email has already been registered, please use another one"
-msgstr ""
-
-#: forum/forms.py:251
-msgid "Choose email tag filter"
-msgstr ""
-
-#: forum/forms.py:269
-msgid "Current password"
-msgstr ""
-
-#: forum/forms.py:280
-msgid ""
-"Old password is incorrect. Please enter the correct "
-"password."
-msgstr ""
-
-#: forum/forms.py:285 forum/forms.py:286
-msgid "weekly"
-msgstr ""
-
-#: forum/forms.py:285 forum/forms.py:286
-msgid "no email"
-msgstr ""
-
-#: forum/forms.py:286
-msgid "daily"
-msgstr ""
-
-#: forum/forms.py:301
-msgid "Asked by me"
-msgstr ""
-
-#: forum/forms.py:304
-msgid "Answered by me"
-msgstr ""
-
-#: forum/forms.py:307
-msgid "Individually selected"
-msgstr ""
-
-#: forum/forms.py:310
-msgid "Entire forum (tag filtered)"
-msgstr ""
-
-#: forum/urls.py:28
-msgid "upfiles/"
-msgstr ""
-
-#: forum/urls.py:33
-msgid "about/"
-msgstr ""
-
-#: forum/urls.py:34
-msgid "faq/"
-msgstr ""
-
-#: forum/urls.py:35
-msgid "privacy/"
-msgstr ""
-
-#: forum/urls.py:36
-msgid "logout/"
-msgstr ""
-
-#: forum/urls.py:37 forum/urls.py:38 forum/urls.py:39 forum/urls.py:56
-msgid "answers/"
-msgstr ""
-
-#: forum/urls.py:37 forum/urls.py:49 forum/urls.py:52 forum/urls.py:56
-msgid "comments/"
-msgstr ""
-
-#: forum/urls.py:38 forum/urls.py:43 forum/urls.py:78
-#: forum/skins/default/templates/user_info.html:45
-msgid "edit/"
-msgstr ""
-
-#: forum/urls.py:39 forum/urls.py:48
-msgid "revisions/"
-msgstr ""
-
-#: forum/urls.py:40 forum/urls.py:41 forum/urls.py:42 forum/urls.py:43
-#: forum/urls.py:44 forum/urls.py:45 forum/urls.py:46 forum/urls.py:47
-#: forum/urls.py:48 forum/urls.py:49 forum/urls.py:52
-msgid "questions/"
-msgstr ""
-
-#: forum/urls.py:41 forum_modules/books/urls.py:8
-msgid "ask/"
-msgstr ""
-
-#: forum/urls.py:42
-msgid "unanswered/"
-msgstr ""
-
-#: forum/urls.py:44
-msgid "close/"
-msgstr ""
-
-#: forum/urls.py:45
-msgid "reopen/"
-msgstr ""
-
-#: forum/urls.py:46
-msgid "answer/"
-msgstr ""
-
-#: forum/urls.py:47
-msgid "vote/"
-msgstr ""
-
-#: forum/urls.py:50
-msgid "command/"
-msgstr ""
-
-#: forum/urls.py:52 forum/urls.py:56
-msgid "delete/"
-msgstr ""
-
-#: forum/urls.py:60 forum/views/readers.py:435
-msgid "question/"
-msgstr ""
-
-#: forum/urls.py:61 forum/urls.py:62
-msgid "tags/"
-msgstr ""
-
-#: forum/urls.py:64 forum/urls.py:68
-msgid "mark-tag/"
-msgstr ""
-
-#: forum/urls.py:64
-msgid "interesting/"
-msgstr ""
-
-#: forum/urls.py:68
-msgid "ignored/"
-msgstr ""
-
-#: forum/urls.py:72
-msgid "unmark-tag/"
-msgstr ""
-
-#: forum/urls.py:76 forum/urls.py:78 forum/urls.py:79
-msgid "users/"
-msgstr ""
-
-#: forum/urls.py:77
-msgid "moderate-user/"
-msgstr ""
-
-#: forum/urls.py:80 forum/urls.py:81
-msgid "badges/"
-msgstr ""
-
-#: forum/urls.py:82
-msgid "messages/"
-msgstr ""
-
-#: forum/urls.py:82
-msgid "markread/"
-msgstr ""
-
-#: forum/urls.py:84
-msgid "nimda/"
-msgstr ""
-
-#: forum/urls.py:86
-msgid "upload/"
-msgstr ""
-
-#: forum/urls.py:87
-msgid "search/"
-msgstr ""
-
-#: forum/urls.py:88
-msgid "feedback/"
-msgstr ""
-
-#: forum/urls.py:93 forum/urls.py:94 forum/urls.py:95 forum/urls.py:96
-#: forum/urls.py:97 forum/urls.py:98 forum/urls.py:100 forum/urls.py:102
-#: forum_modules/localauth/urls.py:7
-msgid "account/"
-msgstr ""
-
-#: forum/urls.py:93 forum/urls.py:95 forum/urls.py:96
-msgid "signin/"
-msgstr ""
-
-#: forum/urls.py:94
-msgid "signout/"
-msgstr ""
-
-#: forum/urls.py:97
-msgid "done/"
-msgstr ""
-
-#: forum/urls.py:98 forum_modules/localauth/urls.py:7
-msgid "register/"
-msgstr ""
-
-#: forum/urls.py:100
-msgid "password/"
-msgstr ""
-
-#: forum/authentication/forms.py:17
-msgid "okay, let's try!"
-msgstr ""
-
-#: forum/authentication/forms.py:18
-msgid "no OSQA community email please, thanks"
-msgstr ""
-
-#: forum/authentication/forms.py:21
-msgid "please choose one of the options above"
-msgstr ""
-
-#: forum/management/commands/send_email_alerts.py:156
-msgid "email update message subject"
-msgstr "news from Q&A forum"
-
-#: forum/management/commands/send_email_alerts.py:158
-#, python-format
-msgid "%(name)s, this is an update message header for a question"
-msgid_plural "%(name)s, this is an update message header for %(num)d questions"
-msgstr[0] ""
-"<p>Dear %(name)s,</p></p>The following question has been updated on the Q&A "
-"forum:</p>"
-msgstr[1] ""
-"<p>Dear %(name)s,</p><p>The following %(num)d questions have been updated on "
-"the Q&A forum:</p>"
-
-#: forum/management/commands/send_email_alerts.py:169
-msgid "new question"
-msgstr ""
-
-#: forum/management/commands/send_email_alerts.py:179
-#, python-format
-msgid "There is also one question which was recently "
-msgid_plural ""
-"There are also %(num)d more questions which were recently updated "
-msgstr[0] ""
-msgstr[1] ""
-
-#: forum/management/commands/send_email_alerts.py:184
-msgid ""
-"Perhaps you could look up previously sent forum reminders in your mailbox."
-msgstr ""
-
-#: forum/management/commands/send_email_alerts.py:188
-#, python-format
-msgid ""
-"go to %(link)s to change frequency of email updates or %(email)s "
-"administrator"
-msgstr ""
-"<p>Please remember that you can always <a href='%(link)s'>adjust</a> "
-"frequency of the email updates or turn them off entirely.<br/>If you believe "
-"that this message was sent in an error, please email about it the forum "
-"administrator at %(email)s.</p><p>Sincerely,</p><p>Your friendly Q&A forum "
-"server.</p>"
-
-#: forum/middleware/anon_user.py:34
-#, python-format
-msgid "First time here? Check out the <a href=\"%s\">FAQ</a>!"
-msgstr ""
-
-#: forum/models/question.py:247
-#, python-format
-msgid "%(author)s modified the question"
-msgstr ""
-
-#: forum/models/question.py:251
-#, python-format
-msgid "%(people)s posted %(new_answer_count)s new answers"
-msgstr ""
-
-#: forum/models/question.py:256
-#, python-format
-msgid "%(people)s commented the question"
-msgstr ""
-
-#: forum/models/question.py:261
-#, python-format
-msgid "%(people)s commented answers"
-msgstr ""
-
-#: forum/models/question.py:263
-#, python-format
-msgid "%(people)s commented an answer"
-msgstr ""
-
-#: forum/models/repute.py:13 forum/skins/default/templates/badges.html:53
-msgid "gold"
-msgstr ""
-
-#: forum/models/repute.py:14 forum/skins/default/templates/badges.html:61
-msgid "silver"
-msgstr ""
-
-#: forum/models/repute.py:15 forum/skins/default/templates/badges.html:68
-msgid "bronze"
-msgstr ""
-
-#: forum/models/tag.py:79
-msgid "interesting"
-msgstr ""
-
-#: forum/models/tag.py:79
-msgid "ignored"
-msgstr ""
-
-#: forum/models/user.py:33
-msgid "Entire forum"
-msgstr ""
-
-#: forum/models/user.py:34
-msgid "Questions that I asked"
-msgstr ""
-
-#: forum/models/user.py:35
-msgid "Questions that I answered"
-msgstr ""
-
-#: forum/models/user.py:36
-msgid "Individually selected questions"
-msgstr ""
-
-#: forum/models/user.py:39
-msgid "Weekly"
-msgstr ""
-
-#: forum/models/user.py:40
-msgid "Daily"
-msgstr ""
-
-#: forum/models/user.py:41
-msgid "No email"
-msgstr ""
-
-#: forum/skins/default/templates/404.html:24
-msgid "Sorry, could not find the page you requested."
-msgstr ""
-
-#: forum/skins/default/templates/404.html:26
-msgid "This might have happened for the following reasons:"
-msgstr ""
-
-#: forum/skins/default/templates/404.html:28
-msgid "this question or answer has been deleted;"
-msgstr ""
-
-#: forum/skins/default/templates/404.html:29
-msgid "url has error - please check it;"
-msgstr ""
-
-#: forum/skins/default/templates/404.html:30
-msgid ""
-"the page you tried to visit is protected or you don't have sufficient "
-"points, see"
-msgstr ""
-
-#: forum/skins/default/templates/404.html:31
-msgid "if you believe this error 404 should not have occured, please"
-msgstr ""
-
-#: forum/skins/default/templates/404.html:32
-msgid "report this problem"
-msgstr ""
-
-#: forum/skins/default/templates/404.html:41
-#: forum/skins/default/templates/500.html:27
-msgid "back to previous page"
-msgstr ""
-
-#: forum/skins/default/templates/404.html:42
-msgid "see all questions"
-msgstr ""
-
-#: forum/skins/default/templates/404.html:43
-msgid "see all tags"
-msgstr ""
-
-#: forum/skins/default/templates/500.html:22
-msgid "sorry, system error"
-msgstr ""
-
-#: forum/skins/default/templates/500.html:24
-msgid "system error log is recorded, error will be fixed as soon as possible"
-msgstr ""
-
-#: forum/skins/default/templates/500.html:25
-msgid "please report the error to the site administrators if you wish"
-msgstr ""
-
-#: forum/skins/default/templates/500.html:28
-msgid "see latest questions"
-msgstr ""
-
-#: forum/skins/default/templates/500.html:29
-msgid "see tags"
-msgstr ""
-
-#: forum/skins/default/templates/about.html:6
-#: forum/skins/default/templates/about.html:11
-msgid "About"
-msgstr ""
-
-#: forum/skins/default/templates/account_settings.html:4
-#: forum/skins/default/templates/authopenid/settings.html:4
-msgid "Account functions"
-msgstr ""
-
-#: forum/skins/default/templates/account_settings.html:29
-#: forum/skins/default/templates/changepw.html:5
-#: forum/skins/default/templates/changepw.html:14
-#: forum/skins/default/templates/authopenid/changepw.html:5
-#: forum/skins/default/templates/authopenid/changepw.html:14
-#: forum/skins/default/templates/authopenid/settings.html:29
-msgid "Change password"
-msgstr ""
-
-#: forum/skins/default/templates/account_settings.html:30
-#: forum/skins/default/templates/authopenid/settings.html:30
-msgid "Give your account a new password."
-msgstr ""
-
-#: forum/skins/default/templates/account_settings.html:32
-#: forum/skins/default/templates/authopenid/settings.html:31
-msgid "Change email "
-msgstr ""
-
-#: forum/skins/default/templates/account_settings.html:33
-#: forum/skins/default/templates/authopenid/settings.html:32
-msgid "Add or update the email address associated with your account."
-msgstr ""
-
-#: forum/skins/default/templates/account_settings.html:35
-#: forum/skins/default/templates/authopenid/changeopenid.html:4
-#: forum/skins/default/templates/authopenid/changeopenid.html:30
-#: forum/skins/default/templates/authopenid/settings.html:34
-msgid "Change OpenID"
-msgstr ""
-
-#: forum/skins/default/templates/account_settings.html:36
-#: forum/skins/default/templates/authopenid/settings.html:35
-msgid "Change openid associated to your account"
-msgstr ""
-
-#: forum/skins/default/templates/account_settings.html:39
-#: forum/skins/default/templates/authopenid/delete.html:4
-#: forum/skins/default/templates/authopenid/settings.html:38
-msgid "Delete account"
-msgstr ""
-
-#: forum/skins/default/templates/account_settings.html:40
-#: forum/skins/default/templates/authopenid/settings.html:39
-msgid "Erase your username and all your data from website"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit.html:5
-#: forum/skins/default/templates/answer_edit.html:48
-msgid "Edit answer"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit.html:25
-#: forum/skins/default/templates/answer_edit.html:28
-#: forum/skins/default/templates/ask.html:26
-#: forum/skins/default/templates/ask.html:29
-#: forum/skins/default/templates/question.html:45
-#: forum/skins/default/templates/question.html:48
-#: forum/skins/default/templates/question_edit.html:25
-#: forum/skins/default/templates/question_edit.html:28
-msgid "hide preview"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit.html:28
-#: forum/skins/default/templates/ask.html:29
-#: forum/skins/default/templates/question.html:48
-#: forum/skins/default/templates/question_edit.html:28
-msgid "show preview"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit.html:48
-#: forum/skins/default/templates/question_edit.html:66
-#: forum/skins/default/templates/question_retag.html:53
-#: forum/skins/default/templates/revisions_answer.html:38
-#: forum/skins/default/templates/revisions_question.html:38
-msgid "back"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit.html:53
-#: forum/skins/default/templates/question_edit.html:71
-#: forum/skins/default/templates/revisions_answer.html:52
-#: forum/skins/default/templates/revisions_question.html:52
-msgid "revision"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit.html:56
-#: forum/skins/default/templates/question_edit.html:75
-msgid "select revision"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit.html:63
-#: forum/skins/default/templates/ask.html:97
-#: forum/skins/default/templates/question.html:432
-#: forum/skins/default/templates/question_edit.html:92
-msgid "Toggle the real time Markdown editor preview"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit.html:63
-#: forum/skins/default/templates/ask.html:97
-#: forum/skins/default/templates/question.html:433
-#: forum/skins/default/templates/question_edit.html:92
-msgid "toggle preview"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit.html:72
-#: forum/skins/default/templates/question_edit.html:118
-#: forum/skins/default/templates/question_retag.html:74
-msgid "Save edit"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit.html:73
-#: forum/skins/default/templates/close.html:29
-#: forum/skins/default/templates/feedback.html:50
-#: forum/skins/default/templates/question_edit.html:119
-#: forum/skins/default/templates/question_retag.html:75
-#: forum/skins/default/templates/reopen.html:30
-#: forum/skins/default/templates/user_edit.html:87
-#: forum/skins/default/templates/authopenid/changeemail.html:40
-msgid "Cancel"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit_tips.html:4
-msgid "answer tips"
-msgstr "Tips"
-
-#: forum/skins/default/templates/answer_edit_tips.html:7
-msgid "please make your answer relevant to this community"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit_tips.html:10
-msgid "try to give an answer, rather than engage into a discussion"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit_tips.html:13
-msgid "please try to provide details"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit_tips.html:16
-#: forum/skins/default/templates/question_edit_tips.html:13
-msgid "be clear and concise"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit_tips.html:20
-#: forum/skins/default/templates/question_edit_tips.html:17
-msgid "see frequently asked questions"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit_tips.html:26
-#: forum/skins/default/templates/question_edit_tips.html:23
-msgid "Markdown tips"
-msgstr "Markdown basics"
-
-#: forum/skins/default/templates/answer_edit_tips.html:29
-#: forum/skins/default/templates/question_edit_tips.html:26
-msgid "*italic* or __italic__"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit_tips.html:32
-#: forum/skins/default/templates/question_edit_tips.html:29
-msgid "**bold** or __bold__"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit_tips.html:35
-#: forum/skins/default/templates/question_edit_tips.html:32
-msgid "link"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit_tips.html:35
-#: forum/skins/default/templates/answer_edit_tips.html:39
-#: forum/skins/default/templates/question_edit_tips.html:32
-#: forum/skins/default/templates/question_edit_tips.html:37
-msgid "text"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit_tips.html:39
-#: forum/skins/default/templates/question_edit_tips.html:37
-msgid "image"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit_tips.html:43
-#: forum/skins/default/templates/question_edit_tips.html:41
-msgid "numbered list:"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit_tips.html:48
-#: forum/skins/default/templates/question_edit_tips.html:46
-msgid "basic HTML tags are also supported"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit_tips.html:52
-#: forum/skins/default/templates/question_edit_tips.html:50
-msgid "learn more about Markdown"
-msgstr ""
-
-#: forum/skins/default/templates/ask.html:5
-#: forum/skins/default/templates/ask.html:61
-msgid "Ask a question"
-msgstr ""
-
-#: forum/skins/default/templates/ask.html:68
-msgid "login to post question info"
-msgstr ""
-"<span class=\"strong big\">You are welcome to start submitting your question "
-"anonymously</span>. When you submit the post, you will be redirected to the "
-"login/signup page. Your question will be saved in the current session and "
-"will be published after you log in. Login/signup process is very simple. "
-"Login takes about 30 seconds, initial signup takes a minute or less."
-
-#: forum/skins/default/templates/ask.html:74
-#, python-format
-msgid ""
-"must have valid %(email)s to post, \n"
-" see %(email_validation_faq_url)s\n"
-" "
-msgstr ""
-"<span class='strong big'>Looks like your email address, %(email)s has not "
-"yet been validated.</span> To post messages you must verify your email, "
-"please see <a href='%(email_validation_faq_url)s'>more details here</a>."
-"<br>You can submit your question now and validate email after that. Your "
-"question will saved as pending meanwhile. "
-
-#: forum/skins/default/templates/ask.html:112
-msgid "(required)"
-msgstr ""
-
-#: forum/skins/default/templates/ask.html:119
-msgid "Login/signup to post your question"
-msgstr "Login/Signup to Post"
-
-#: forum/skins/default/templates/ask.html:121
-msgid "Ask your question"
-msgstr "Ask Your Question"
-
-#: forum/skins/default/templates/badge.html:6
-#: forum/skins/default/templates/badge.html:17
-msgid "Badge"
-msgstr ""
-
-#: forum/skins/default/templates/badge.html:26
-msgid "The users have been awarded with badges:"
-msgstr ""
-
-#: forum/skins/default/templates/badges.html:6
-msgid "Badges summary"
-msgstr ""
-
-#: forum/skins/default/templates/badges.html:17
-msgid "Badges"
-msgstr ""
-
-#: forum/skins/default/templates/badges.html:21
-msgid "Community gives you awards for your questions, answers and votes."
-msgstr ""
-"If your questions and answers are highly voted, your contribution to this "
-"Q&A community will be recognized with the variety of badges."
-
-#: forum/skins/default/templates/badges.html:22
-#, python-format
-msgid ""
-"Below is the list of available badges and number \n"
-" of times each type of badge has been awarded. Give us feedback at %"
-"(feedback_faq_url)s.\n"
-" "
-msgstr ""
-"Currently badges differ only by their level: <strong>gold</strong>, "
-"<strong>silver</strong> and <strong>bronze</strong> (their meanings are "
-"described on the right). In the future there will be many types of badges at "
-"each level. <strong>Please give us your <a href='%(feedback_faq_url)"
-"s'>feedback</a></strong> - what kinds of badges would you like to see and "
-"suggest the activity for which those badges might be awarded."
-
-#: forum/skins/default/templates/badges.html:50
-msgid "Community badges"
-msgstr "Badge levels"
-
-#: forum/skins/default/templates/badges.html:56
-msgid "gold badge description"
-msgstr ""
-"Gold badge is the highest award in this community. To obtain it have to show "
-"profound knowledge and ability in addition to your active participation."
-
-#: forum/skins/default/templates/badges.html:64
-msgid "silver badge description"
-msgstr ""
-"Obtaining silver badge requires significant patience. If you have received "
-"one, that means you have greatly contributed to this community."
-
-#: forum/skins/default/templates/badges.html:67
-msgid "bronze badge: often given as a special honor"
-msgstr ""
-
-#: forum/skins/default/templates/badges.html:71
-msgid "bronze badge description"
-msgstr ""
-"If you are an active participant in this community, you will be recognized "
-"with this badge."
-
-#: forum/skins/default/templates/book.html:7
-msgid "reading channel"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:26
-msgid "[author]"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:30
-msgid "[publisher]"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:34
-msgid "[publication date]"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:38
-msgid "[price]"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:39
-msgid "currency unit"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:42
-msgid "[pages]"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:43
-msgid "pages abbreviation"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:46
-msgid "[tags]"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:56
-msgid "author blog"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:62
-msgid "book directory"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:66
-msgid "buy online"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:79
-msgid "reader questions"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:82
-msgid "ask the author"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:88
-#: forum/skins/default/templates/book.html:93
-#: forum/skins/default/templates/users_questions.html:18
-msgid "this question was selected as favorite"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:88
-#: forum/skins/default/templates/book.html:93
-#: forum/skins/default/templates/users_questions.html:11
-#: forum/skins/default/templates/users_questions.html:18
-msgid "number of times"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:105
-#: forum/skins/default/templates/index.html:40
-#: forum/skins/default/templates/index_.html:40
-#: forum/skins/default/templates/question_summary_list_roll.html:14
-#: forum/skins/default/templates/questions.html:80
-#: forum/skins/default/templates/users_questions.html:32
-msgid "votes"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:108
-msgid "the answer has been accepted to be correct"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:115
-#: forum/skins/default/templates/index.html:48
-#: forum/skins/default/templates/index_.html:48
-#: forum/skins/default/templates/question_summary_list_roll.html:15
-#: forum/skins/default/templates/questions.html:81
-#: forum/skins/default/templates/users_questions.html:40
-msgid "views"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:125
-#: forum/skins/default/templates/index.html:63
-#: forum/skins/default/templates/index_.html:63
-#: forum/skins/default/templates/question.html:478
-#: forum/skins/default/templates/question_summary_list_roll.html:52
-#: forum/skins/default/templates/questions.html:136
-#: forum/skins/default/templates/tags.html:49
-#: forum/skins/default/templates/users_questions.html:52
-msgid "using tags"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:147
-msgid "subscribe to book RSS feed"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:147
-#: forum/skins/default/templates/index.html:114
-#: forum/skins/default/templates/index_.html:114
-msgid "subscribe to the questions feed"
-msgstr ""
-
-#: forum/skins/default/templates/changepw.html:7
-#: forum/skins/default/templates/authopenid/changepw.html:7
-msgid "Account: change password"
-msgstr "Change your password"
-
-#: forum/skins/default/templates/changepw.html:8
-#: forum/skins/default/templates/authopenid/changepw.html:8
-msgid "This is where you can change your password. Make sure you remember it!"
-msgstr ""
-"<span class='strong'>To change your password</span> please fill out and "
-"submit this form"
-
-#: forum/skins/default/templates/close.html:6
-#: forum/skins/default/templates/close.html:16
-msgid "Close question"
-msgstr ""
-
-#: forum/skins/default/templates/close.html:19
-msgid "Close the question"
-msgstr ""
-
-#: forum/skins/default/templates/close.html:25
-msgid "Reasons"
-msgstr ""
-
-#: forum/skins/default/templates/close.html:28
-msgid "OK to close"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:11
-msgid "Frequently Asked Questions "
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:16
-msgid "What kinds of questions can I ask here?"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:17
-msgid ""
-"Most importanly - questions should be <strong>relevant</strong> to this "
-"community."
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:18
-msgid ""
-"Before asking the question - please make sure to use search to see whether "
-"your question has alredy been answered."
-msgstr ""
-"Before you ask - please make sure to search for a similar question. You can "
-"search questions by their title or tags."
-
-#: forum/skins/default/templates/faq.html:21
-msgid "What questions should I avoid asking?"
-msgstr "What kinds of questions should be avoided?"
-
-#: forum/skins/default/templates/faq.html:22
-msgid ""
-"Please avoid asking questions that are not relevant to this community, too "
-"subjective and argumentative."
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:27
-msgid "What should I avoid in my answers?"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:28
-msgid ""
-"is a Q&A site, not a discussion group. Therefore - please avoid having "
-"discussions in your answers, comment facility allows some space for brief "
-"discussions."
-msgstr ""
-"is a <strong>question and answer</strong> site - <strong>it is not a "
-"discussion group</strong>. Please avoid holding debates in your answers as "
-"they tend to dilute the essense of questions and answers. For the brief "
-"discussions please use commenting facility."
-
-#: forum/skins/default/templates/faq.html:32
-msgid "Who moderates this community?"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:33
-msgid "The short answer is: <strong>you</strong>."
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:34
-msgid "This website is moderated by the users."
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:35
-msgid ""
-"The reputation system allows users earn the authorization to perform a "
-"variety of moderation tasks."
-msgstr ""
-"Karma system allows users to earn rights to perform a variety of moderation "
-"tasks"
-
-#: forum/skins/default/templates/faq.html:40
-msgid "How does reputation system work?"
-msgstr "How does karma system work?"
-
-#: forum/skins/default/templates/faq.html:41
-msgid "Rep system summary"
-msgstr ""
-"When a question or answer is upvoted, the user who posted them will gain "
-"some points, which are called \"karma points\". These points serve as a "
-"rough measure of the community trust to him/her. Various moderation tasks "
-"are gradually assigned to the users based on those points."
-
-#: forum/skins/default/templates/faq.html:42
-msgid ""
-"For example, if you ask an interesting question or give a helpful answer, "
-"your input will be upvoted. On the other hand if the answer is misleading - "
-"it will be downvoted. Each vote in favor will generate <strong>10</strong> "
-"points, each vote against will subtract <strong>2</strong> points. There is "
-"a limit of <strong>200</strong> points that can be accumulated per question "
-"or answer. The table below explains reputation point requirements for each "
-"type of moderation task."
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:53
-#: forum/skins/default/templates/user_votes.html:15
-msgid "upvote"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:57
-msgid "use tags"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:62
-msgid "add comments"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:66
-#: forum/skins/default/templates/user_votes.html:17
-msgid "downvote"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:69
-msgid "open and close own questions"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:73
-msgid "retag questions"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:78
-msgid "edit community wiki questions"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:83
-msgid "edit any answer"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:87
-msgid "open any closed question"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:91
-msgid "delete any comment"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:95
-msgid "delete any questions and answers and perform other moderation tasks"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:103
-msgid "how to validate email title"
-msgstr "How to validate email and why?"
-
-#: forum/skins/default/templates/faq.html:105
-#, python-format
-msgid ""
-"how to validate email info with %(send_email_key_url)s %(gravatar_faq_url)s"
-msgstr ""
-"<form style='margin:0;padding:0;' action='%(send_email_key_url)s'><p><span "
-"class=\"bigger strong\">How?</span> If you have just set or changed your "
-"email address - <strong>check your email and click the included link</"
-"strong>.<br>The link contains a key generated specifically for you. You can "
-"also <button style='display:inline' type='submit'><strong>get a new key</"
-"strong></button> and check your email again.</p></form><span class=\"bigger "
-"strong\">Why?</span> Email validation is required to make sure that "
-"<strong>only you can post messages</strong> on your behalf and to "
-"<strong>minimize spam</strong> posts.<br>With email you can "
-"<strong>subscribe for updates</strong> on the most interesting questions. "
-"Also, when you sign up for the first time - create a unique <a href='%"
-"(gravatar_faq_url)s'><strong>gravatar</strong></a> personal image.</p>"
-
-#: forum/skins/default/templates/faq.html:110
-msgid "what is gravatar"
-msgstr "What is gravatar?"
-
-#: forum/skins/default/templates/faq.html:111
-msgid "gravatar faq info"
-msgstr ""
-"<strong>Gravatar</strong> means <strong>g</strong>lobally <strong>r</"
-"strong>ecognized <strong>avatar</strong> - your unique avatar image "
-"associated with your email address. It's simply a picture that shows next to "
-"your posts on the websites that support gravatar protocol. By default gravar "
-"appears as a square filled with a snowflake-like figure. You can <strong>set "
-"your image</strong> at <a href='http://gravatar.com'><strong>gravatar.com</"
-"strong></a>"
-
-#: forum/skins/default/templates/faq.html:114
-msgid "To register, do I need to create new password?"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:115
-msgid ""
-"No, you don't have to. You can login through any service that supports "
-"OpenID, e.g. Google, Yahoo, AOL, etc."
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:116
-msgid "Login now!"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:121
-msgid "Why other people can edit my questions/answers?"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:122
-msgid "Goal of this site is..."
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:122
-msgid ""
-"So questions and answers can be edited like wiki pages by experienced users "
-"of this site and this improves the overall quality of the knowledge base "
-"content."
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:123
-msgid "If this approach is not for you, we respect your choice."
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:127
-msgid "Still have questions?"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:128
-#, python-format
-msgid ""
-"Please ask your question at %(ask_question_url)s, help make our community "
-"better!"
-msgstr ""
-"Please <a href='%(ask_question_url)s'>ask</a> your question, help make our "
-"community better!"
-
-#: forum/skins/default/templates/faq.html:130
-#: forum/skins/default/templates/header.html:27
-#: forum/skins/default/templates/header.html:55
-msgid "questions"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:130
-#: forum/skins/default/templates/index.html:121
-#: forum/skins/default/templates/index_.html:121
-msgid "."
-msgstr ""
-
-#: forum/skins/default/templates/feedback.html:6
-msgid "Feedback"
-msgstr ""
-
-#: forum/skins/default/templates/feedback.html:11
-msgid "Give us your feedback!"
-msgstr ""
-
-#: forum/skins/default/templates/feedback.html:17
-#, python-format
-msgid ""
-"\n"
-" <span class='big strong'>Dear %(user_name)s</span>, we look "
-"forward to hearing your feedback. \n"
-" Please type and send us your message below.\n"
-" "
-msgstr ""
-
-#: forum/skins/default/templates/feedback.html:24
-msgid ""
-"\n"
-" <span class='big strong'>Dear visitor</span>, we look forward to "
-"hearing your feedback.\n"
-" Please type and send us your message below.\n"
-" "
-msgstr ""
-
-#: forum/skins/default/templates/feedback.html:41
-msgid "(this field is required)"
-msgstr ""
-
-#: forum/skins/default/templates/feedback.html:49
-msgid "Send Feedback"
-msgstr ""
-
-#: forum/skins/default/templates/feedback_email.txt:3
-#, python-format
-msgid ""
-"\n"
-"Hello, this is a %(site_title)s forum feedback message\n"
-msgstr ""
-
-#: forum/skins/default/templates/feedback_email.txt:9
-msgid "Sender is"
-msgstr ""
-
-#: forum/skins/default/templates/feedback_email.txt:11
-#: forum/skins/default/templates/feedback_email.txt:14
-msgid "email"
-msgstr ""
-
-#: forum/skins/default/templates/feedback_email.txt:13
-msgid "anonymous"
-msgstr ""
-
-#: forum/skins/default/templates/feedback_email.txt:19
-msgid "Message body:"
-msgstr ""
-
-#: forum/skins/default/templates/footer.html:8
-#: forum/skins/default/templates/header.html:13
-#: forum/skins/default/templates/index.html:77
-#: forum/skins/default/templates/index_.html:77
-msgid "about"
-msgstr ""
-
-#: forum/skins/default/templates/footer.html:9
-#: forum/skins/default/templates/header.html:14
-#: forum/skins/default/templates/index.html:78
-#: forum/skins/default/templates/index_.html:78
-#: forum/skins/default/templates/question_edit_tips.html:17
-msgid "faq"
-msgstr ""
-
-#: forum/skins/default/templates/footer.html:10
-msgid "privacy policy"
-msgstr ""
-
-#: forum/skins/default/templates/footer.html:19
-msgid "give feedback"
-msgstr ""
-
-#: forum/skins/default/templates/header.html:9
-msgid "logout"
-msgstr ""
-
-#: forum/skins/default/templates/header.html:11
-msgid "login"
-msgstr ""
-
-#: forum/skins/default/templates/header.html:21
-msgid "back to home page"
-msgstr ""
-
-#: forum/skins/default/templates/header.html:29
-#: forum/skins/default/templates/header.html:57
-msgid "users"
-msgstr ""
-
-#: forum/skins/default/templates/header.html:31
-msgid "books"
-msgstr ""
-
-#: forum/skins/default/templates/header.html:33
-#: forum/templatetags/extra_tags.py:165 forum/templatetags/extra_tags.py:194
-msgid "badges"
-msgstr ""
-
-#: forum/skins/default/templates/header.html:34
-msgid "unanswered questions"
-msgstr "unanswered"
-
-#: forum/skins/default/templates/header.html:36
-msgid "ask a question"
-msgstr ""
-
-#: forum/skins/default/templates/header.html:51
-msgid "search"
-msgstr ""
-
-#: forum/skins/default/templates/index.html:8
-#: forum/skins/default/templates/index_.html:8
-msgid "Home"
-msgstr ""
-
-#: forum/skins/default/templates/index.html:25
-#: forum/skins/default/templates/index_.html:25
-#: forum/skins/default/templates/questions.html:8
-msgid "Questions"
-msgstr ""
-
-#: forum/skins/default/templates/index.html:27
-#: forum/skins/default/templates/index_.html:27
-msgid "last updated questions"
-msgstr ""
-
-#: forum/skins/default/templates/index.html:27
-#: forum/skins/default/templates/index_.html:27
-#: forum/skins/default/templates/questions.html:47
-msgid "newest"
-msgstr ""
-
-#: forum/skins/default/templates/index.html:28
-#: forum/skins/default/templates/index_.html:28
-#: forum/skins/default/templates/questions.html:49
-msgid "hottest questions"
-msgstr ""
-
-#: forum/skins/default/templates/index.html:28
-#: forum/skins/default/templates/index_.html:28
-#: forum/skins/default/templates/questions.html:49
-msgid "hottest"
-msgstr ""
-
-#: forum/skins/default/templates/index.html:29
-#: forum/skins/default/templates/index_.html:29
-#: forum/skins/default/templates/questions.html:50
-msgid "most voted questions"
-msgstr ""
-
-#: forum/skins/default/templates/index.html:29
-#: forum/skins/default/templates/index_.html:29
-#: forum/skins/default/templates/questions.html:50
-msgid "most voted"
-msgstr ""
-
-#: forum/skins/default/templates/index.html:30
-#: forum/skins/default/templates/index_.html:30
-msgid "all questions"
-msgstr ""
-
-#: forum/skins/default/templates/index.html:42
-#: forum/skins/default/templates/index_.html:42
-#: forum/skins/default/templates/users_questions.html:34
-msgid "this answer has been accepted to be correct"
-msgstr ""
-
-#: forum/skins/default/templates/index.html:44
-#: forum/skins/default/templates/index_.html:44
-#: forum/skins/default/templates/question_summary_list_roll.html:13
-#: forum/skins/default/templates/questions.html:79
-#: forum/skins/default/templates/users_questions.html:36
-msgid "answers"
-msgstr ""
-
-#: forum/skins/default/templates/index.html:63
-#: forum/skins/default/templates/index_.html:63
-#: forum/skins/default/templates/question.html:478
-#: forum/skins/default/templates/question_summary_list_roll.html:52
-#: forum/skins/default/templates/questions.html:136
-#: forum/skins/default/templates/tags.html:49
-#: forum/skins/default/templates/users_questions.html:52
-msgid "see questions tagged"
-msgstr ""
-
-#: forum/skins/default/templates/index.html:74
-#: forum/skins/default/templates/index_.html:74
-msgid "welcome to website"
-msgstr "Welcome to Q&A forum"
-
-#: forum/skins/default/templates/index.html:85
-#: forum/skins/default/templates/index_.html:85
-msgid "Recent tags"
-msgstr ""
-
-#: forum/skins/default/templates/index.html:90
-#: forum/skins/default/templates/index_.html:90
-#: forum/skins/default/templates/question.html:133
-#, python-format
-msgid "see questions tagged '%(tagname)s'"
-msgstr ""
-
-#: forum/skins/default/templates/index.html:93
-#: forum/skins/default/templates/index.html:121
-#: forum/skins/default/templates/index_.html:93
-#: forum/skins/default/templates/index_.html:121
-msgid "popular tags"
-msgstr "tags"
-
-#: forum/skins/default/templates/index.html:98
-#: forum/skins/default/templates/index_.html:98
-msgid "Recent awards"
-msgstr "Recent badges"
-
-#: forum/skins/default/templates/index.html:104
-msgid "given to"
-msgstr ""
-
-#: forum/skins/default/templates/index.html:109
-#: forum/skins/default/templates/index_.html:109
-msgid "all awards"
-msgstr "all badges"
-
-#: forum/skins/default/templates/index.html:114
-#: forum/skins/default/templates/index_.html:114
-msgid "subscribe to last 30 questions by RSS"
-msgstr ""
-
-#: forum/skins/default/templates/index.html:121
-#: forum/skins/default/templates/index_.html:121
-msgid "Still looking for more? See"
-msgstr ""
-
-#: forum/skins/default/templates/index.html:121
-#: forum/skins/default/templates/index_.html:121
-msgid "complete list of questions"
-msgstr "list of all questions"
-
-#: forum/skins/default/templates/index.html:121
-#: forum/skins/default/templates/index_.html:121
-#: forum/skins/default/templates/auth/signup.html:28
-#: forum/skins/default/templates/authopenid/signup.html:28
-msgid "or"
-msgstr ""
-
-#: forum/skins/default/templates/index.html:121
-#: forum/skins/default/templates/index_.html:121
-msgid "Please help us answer"
-msgstr ""
-
-#: forum/skins/default/templates/index.html:121
-#: forum/skins/default/templates/index_.html:121
-msgid "list of unanswered questions"
-msgstr "unanswered questions"
-
-#: forum/skins/default/templates/logout.html:6
-#: forum/skins/default/templates/logout.html:16
-msgid "Logout"
-msgstr ""
-
-#: forum/skins/default/templates/logout.html:19
-msgid ""
-"As a registered user you can login with your OpenID, log out of the site or "
-"permanently remove your account."
-msgstr ""
-"Clicking <strong>Logout</strong> will log you out from the forumbut will not "
-"sign you off from your OpenID provider.</p><p>If you wish to sign off "
-"completely - please make sure to log out from your OpenID provider as well."
-
-#: forum/skins/default/templates/logout.html:20
-msgid "Logout now"
-msgstr "Logout Now"
-
-#: forum/skins/default/templates/notarobot.html:3
-msgid "Please prove that you are a Human Being"
-msgstr ""
-
-#: forum/skins/default/templates/notarobot.html:10
-msgid "I am a Human Being"
-msgstr ""
-
-#: forum/skins/default/templates/pagesize.html:6
-msgid "posts per page"
-msgstr ""
-
-#: forum/skins/default/templates/paginator.html:6
-#: forum/skins/default/templates/paginator.html:7
-msgid "previous"
-msgstr ""
-
-#: forum/skins/default/templates/paginator.html:19
-msgid "current page"
-msgstr ""
-
-#: forum/skins/default/templates/paginator.html:22
-#: forum/skins/default/templates/paginator.html:29
-msgid "page number "
-msgstr ""
-
-#: forum/skins/default/templates/paginator.html:22
-#: forum/skins/default/templates/paginator.html:29
-msgid "number - make blank in english"
-msgstr ""
-
-#: forum/skins/default/templates/paginator.html:33
-msgid "next page"
-msgstr ""
-
-#: forum/skins/default/templates/post_contributor_info.html:9
-#, python-format
-msgid ""
-"\n"
-" one revision\n"
-" "
-msgid_plural ""
-"\n"
-" %(rev_count)s revisions\n"
-" "
-msgstr[0] ""
-msgstr[1] ""
-
-#: forum/skins/default/templates/post_contributor_info.html:19
-msgid "asked"
-msgstr ""
-
-#: forum/skins/default/templates/post_contributor_info.html:22
-msgid "answered"
-msgstr ""
-
-#: forum/skins/default/templates/post_contributor_info.html:24
-msgid "posted"
-msgstr ""
-
-#: forum/skins/default/templates/post_contributor_info.html:45
-msgid "updated"
-msgstr ""
-
-#: forum/skins/default/templates/privacy.html:6
-#: forum/skins/default/templates/privacy.html:11
-msgid "Privacy policy"
-msgstr ""
-
-#: forum/skins/default/templates/privacy.html:15
-msgid "general message about privacy"
-msgstr ""
-"Respecting users privacy is an important core principle of this Q&A "
-"forum. Information on this page details how this forum protects your "
-"privacy, and what type of information is collected."
-
-#: forum/skins/default/templates/privacy.html:18
-msgid "Site Visitors"
-msgstr ""
-
-#: forum/skins/default/templates/privacy.html:20
-msgid "what technical information is collected about visitors"
-msgstr ""
-"Information on question views, revisions of questions and answers - both "
-"times and content are recorded for each user in order to correctly count "
-"number of views, maintain data integrity and report relevant updates."
-
-#: forum/skins/default/templates/privacy.html:23
-msgid "Personal Information"
-msgstr ""
-
-#: forum/skins/default/templates/privacy.html:25
-msgid "details on personal information policies"
-msgstr ""
-"Members of this community may choose to display personally identifiable "
-"information in their profiles. Forum will never display such information "
-"without a request from the user."
-
-#: forum/skins/default/templates/privacy.html:28
-msgid "Other Services"
-msgstr ""
-
-#: forum/skins/default/templates/privacy.html:30
-msgid "details on sharing data with third parties"
-msgstr ""
-"None of the data that is not openly shown on the forum by the choice of the "
-"user is shared with any third party."
-
-#: forum/skins/default/templates/privacy.html:35
-msgid "cookie policy details"
-msgstr ""
-"Forum software relies on the internet cookie technology to keep track of "
-"user sessions. Cookies must be enabled in your browser so that forum can "
-"work for you."
-
-#: forum/skins/default/templates/privacy.html:37
-msgid "Policy Changes"
-msgstr ""
-
-#: forum/skins/default/templates/privacy.html:38
-msgid "how privacy policies can be changed"
-msgstr ""
-"These policies may be adjusted to improve protection of user's privacy. "
-"Whenever such changes occur, users will be notified via the internal "
-"messaging system. "
-
-#: forum/skins/default/templates/question.html:77
-#: forum/skins/default/templates/question.html:78
-#: forum/skins/default/templates/question.html:94
-#: forum/skins/default/templates/question.html:96
-msgid "i like this post (click again to cancel)"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:80
-#: forum/skins/default/templates/question.html:98
-#: forum/skins/default/templates/question.html:255
-msgid "current number of votes"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:89
-#: forum/skins/default/templates/question.html:90
-#: forum/skins/default/templates/question.html:103
-#: forum/skins/default/templates/question.html:104
-msgid "i dont like this post (click again to cancel)"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:108
-#: forum/skins/default/templates/question.html:109
-msgid "mark this question as favorite (click again to cancel)"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:115
-#: forum/skins/default/templates/question.html:116
-msgid "remove favorite mark from this question (click again to restore mark)"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:138
-#: forum/skins/default/templates/question.html:292
-#: forum/skins/default/templates/revisions_answer.html:58
-#: forum/skins/default/templates/revisions_question.html:58
-msgid "edit"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:143
-msgid "reopen"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:147
-msgid "close"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:153
-#: forum/skins/default/templates/question.html:297
-msgid ""
-"report as offensive (i.e containing spam, advertising, malicious text, etc.)"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:154
-#: forum/skins/default/templates/question.html:298
-msgid "flag offensive"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:162
-#: forum/skins/default/templates/question.html:309
-msgid "delete"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:180
-#: forum/skins/default/templates/question.html:329
-msgid "delete this comment"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:191
-#: forum/skins/default/templates/question.html:340
-msgid "add comment"
-msgstr "post a comment"
-
-#: forum/skins/default/templates/question.html:195
-#, python-format
-msgid ""
-"\n"
-" see <strong>one</strong> more \n"
-" "
-msgid_plural ""
-"\n"
-" see <strong>%(counter)s</strong> "
-"more\n"
-" "
-msgstr[0] ""
-msgstr[1] ""
-
-#: forum/skins/default/templates/question.html:201
-#, python-format
-msgid ""
-"\n"
-" see <strong>one</strong> more "
-"comment\n"
-" "
-msgid_plural ""
-"\n"
-" see <strong>%(counter)s</strong> "
-"more comments\n"
-" "
-msgstr[0] ""
-msgstr[1] ""
-
-#: forum/skins/default/templates/question.html:217
-#, python-format
-msgid ""
-"The question has been closed for the following reason \"%(close_reason)s\" by"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:219
-#, python-format
-msgid "close date %(closed_at)s"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:227
-#, python-format
-msgid ""
-"\n"
-" One Answer:\n"
-" "
-msgid_plural ""
-"\n"
-" %(counter)s Answers:\n"
-" "
-msgstr[0] ""
-msgstr[1] ""
-
-#: forum/skins/default/templates/question.html:235
-msgid "oldest answers will be shown first"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:235
-msgid "oldest answers"
-msgstr "oldest"
-
-#: forum/skins/default/templates/question.html:237
-msgid "newest answers will be shown first"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:237
-msgid "newest answers"
-msgstr "newest"
-
-#: forum/skins/default/templates/question.html:239
-msgid "most voted answers will be shown first"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:239
-msgid "popular answers"
-msgstr "most voted"
-
-#: forum/skins/default/templates/question.html:253
-#: forum/skins/default/templates/question.html:254
-msgid "i like this answer (click again to cancel)"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:260
-#: forum/skins/default/templates/question.html:261
-msgid "i dont like this answer (click again to cancel)"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:266
-#: forum/skins/default/templates/question.html:267
-msgid "mark this answer as favorite (click again to undo)"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:272
-#: forum/skins/default/templates/question.html:273
-msgid "the author of the question has selected this answer as correct"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:286
-msgid "answer permanent link"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:287
-msgid "permanent link"
-msgstr "link"
-
-#: forum/skins/default/templates/question.html:309
-msgid "undelete"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:344
-#, python-format
-msgid ""
-"\n"
-" see <strong>one</"
-"strong> more \n"
-" "
-msgid_plural ""
-"\n"
-" see <strong>%"
-"(counter)s</strong> more\n"
-" "
-msgstr[0] ""
-msgstr[1] ""
-
-#: forum/skins/default/templates/question.html:350
-#, python-format
-msgid ""
-"\n"
-" see <strong>one</"
-"strong> more comment\n"
-" "
-msgid_plural ""
-"\n"
-" see <strong>%"
-"(counter)s</strong> more comments\n"
-" "
-msgstr[0] ""
-msgstr[1] ""
-
-#: forum/skins/default/templates/question.html:376
-#: forum/skins/default/templates/question.html:379
-msgid "Notify me once a day when there are any new answers"
-msgstr ""
-"<strong>Notify me</strong> once a day by email when there are any new "
-"answers or updates"
-
-#: forum/skins/default/templates/question.html:382
-msgid "Notify me weekly when there are any new answers"
-msgstr ""
-"<strong>Notify me</strong> weekly when there are any new answers or updates"
-
-#: forum/skins/default/templates/question.html:387
-#, python-format
-msgid ""
-"\n"
-" You can always adjust frequency of email updates from your %"
-"(profile_url)s\n"
-" "
-msgstr ""
-"\n"
-"(note: you can always <a href='%(profile_url)s?"
-"sort=email_subscriptions'>adjust frequency</a> of email updates)"
-
-#: forum/skins/default/templates/question.html:394
-msgid "once you sign in you will be able to subscribe for any updates here"
-msgstr ""
-"<span class='strong'>Here</span> (once you log in) you will be able to sign "
-"up for the periodic email updates about this question."
-
-#: forum/skins/default/templates/question.html:405
-msgid "Your answer"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:407
-msgid "Be the first one to answer this question!"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:413
-msgid "you can answer anonymously and then login"
-msgstr ""
-"<span class='strong big'>Please start posting your answer anonymously</span> "
-"- your answer will be saved within the current session and published after "
-"you log in or create a new account. Please try to give a <strong>substantial "
-"answer</strong>, for discussions, <strong>please use comments</strong> and "
-"<strong>please do remember to vote</strong> (after you log in)!"
-
-#: forum/skins/default/templates/question.html:417
-msgid "answer your own question only to give an answer"
-msgstr ""
-"<span class='big strong'>You are welcome to answer your own question</span>, "
-"but please make sure to give an <strong>answer</strong>. Remember that you "
-"can always <strong>revise your original question</strong>. Please "
-"<strong>use comments for discussions</strong> and <strong>please don't "
-"forget to vote :)</strong> for the answers that you liked (or perhaps did "
-"not like)! "
-
-#: forum/skins/default/templates/question.html:419
-msgid "please only give an answer, no discussions"
-msgstr ""
-"<span class='big strong'>Please try to give a substantial answer</span>. If "
-"you wanted to comment on the question or answer, just <strong>use the "
-"commenting tool</strong>. Please remember that you can always <strong>revise "
-"your answers</strong> - no need to answer the same question twice. Also, "
-"please <strong>don't forget to vote</strong> - it really helps to select the "
-"best questions and answers!"
-
-#: forum/skins/default/templates/question.html:455
-msgid "Login/Signup to Post Your Answer"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:458
-msgid "Answer Your Own Question"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:460
-msgid "Answer the question"
-msgstr "Post Your Answer"
-
-#: forum/skins/default/templates/question.html:473
-msgid "Question tags"
-msgstr "Tags"
-
-#: forum/skins/default/templates/question.html:483
-msgid "question asked"
-msgstr "Asked"
-
-#: forum/skins/default/templates/question.html:486
-msgid "question was seen"
-msgstr "Seen"
-
-#: forum/skins/default/templates/question.html:486
-msgid "times"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:489
-msgid "last updated"
-msgstr "Last updated"
-
-#: forum/skins/default/templates/question.html:494
-msgid "Related questions"
-msgstr ""
-
-#: forum/skins/default/templates/question_edit.html:5
-#: forum/skins/default/templates/question_edit.html:66
-msgid "Edit question"
-msgstr ""
-
-#: forum/skins/default/templates/question_edit_tips.html:4
-msgid "question tips"
-msgstr "Tips"
-
-#: forum/skins/default/templates/question_edit_tips.html:7
-msgid "please ask a relevant question"
-msgstr "ask a question relevant to the CNPROG community"
-
-#: forum/skins/default/templates/question_edit_tips.html:10
-msgid "please try provide enough details"
-msgstr "provide enough details"
-
-#: forum/skins/default/templates/question_retag.html:4
-#: forum/skins/default/templates/question_retag.html:53
-msgid "Change tags"
-msgstr ""
-
-#: forum/skins/default/templates/question_retag.html:40
-msgid "up to 5 tags, less than 20 characters each"
-msgstr ""
-
-#: forum/skins/default/templates/question_retag.html:83
-msgid "Why use and modify tags?"
-msgstr ""
-
-#: forum/skins/default/templates/question_retag.html:86
-msgid "tags help us keep Questions organized"
-msgstr ""
-
-#: forum/skins/default/templates/question_retag.html:94
-msgid "tag editors receive special awards from the community"
-msgstr ""
-
-#: forum/skins/default/templates/questions.html:29
-msgid "Found by tags"
-msgstr "Tagged questions"
-
-#: forum/skins/default/templates/questions.html:33
-msgid "Search results"
-msgstr ""
-
-#: forum/skins/default/templates/questions.html:35
-msgid "Found by title"
-msgstr ""
-
-#: forum/skins/default/templates/questions.html:39
-msgid "Unanswered questions"
-msgstr ""
-
-#: forum/skins/default/templates/questions.html:41
-msgid "All questions"
-msgstr ""
-
-#: forum/skins/default/templates/questions.html:47
-msgid "most recently asked questions"
-msgstr ""
-
-#: forum/skins/default/templates/questions.html:48
-msgid "most recently updated questions"
-msgstr ""
-
-#: forum/skins/default/templates/questions.html:48
-msgid "active"
-msgstr ""
-
-#: forum/skins/default/templates/questions.html:111
-#: forum/skins/default/templates/questions.html:125
-msgid "Posted:"
-msgstr ""
-
-#: forum/skins/default/templates/questions.html:114
-#: forum/skins/default/templates/questions.html:119
-msgid "Updated:"
-msgstr ""
-
-#: forum/skins/default/templates/questions.html:144
-msgid "Did not find anything?"
-msgstr ""
-
-#: forum/skins/default/templates/questions.html:147
-msgid "Did not find what you were looking for?"
-msgstr ""
-
-#: forum/skins/default/templates/questions.html:149
-msgid "Please, post your question!"
-msgstr ""
-
-#: forum/skins/default/templates/questions.html:163
-#, python-format
-msgid ""
-"\n"
-" have total %(q_num)s questions tagged %(tagname)s\n"
-" "
-msgid_plural ""
-"\n"
-" have total %(q_num)s questions tagged %(tagname)s\n"
-" "
-msgstr[0] ""
-"\n"
-"<div class=\"questions-count\">%(q_num)s</div><p>question tagged</p><p><span "
-"class=\"tag\">%(tagname)s</span></p>"
-msgstr[1] ""
-"\n"
-"<div class=\"questions-count\">%(q_num)s</div><p>questions tagged</p><div "
-"class=\"tags\"><span class=\"tag\">%(tagname)s</span></div>"
-
-#: forum/skins/default/templates/questions.html:171
-#, python-format
-msgid ""
-"\n"
-" have total %(q_num)s questions containing %(searchtitle)"
-"s in full text\n"
-" "
-msgid_plural ""
-"\n"
-" have total %(q_num)s questions containing %(searchtitle)"
-"s in full text\n"
-" "
-msgstr[0] ""
-"\n"
-"<div class=\"questions-count\">%(q_num)s</div><p>question containing "
-"<strong><span class=\"darkred\">%(searchtitle)s</span></strong></p>"
-msgstr[1] ""
-"\n"
-"<div class=\"questions-count\">%(q_num)s</div><p>questions containing "
-"<strong><span class=\"darkred\">%(searchtitle)s</span></strong></p>"
-
-#: forum/skins/default/templates/questions.html:177
-#, python-format
-msgid ""
-"\n"
-" have total %(q_num)s questions containing %(searchtitle)"
-"s\n"
-" "
-msgid_plural ""
-"\n"
-" have total %(q_num)s questions containing %(searchtitle)"
-"s\n"
-" "
-msgstr[0] ""
-"\n"
-"<div class=\"questions-count\">%(q_num)s</div><p>question with title "
-"containing <strong><span class=\"darkred\">%(searchtitle)s</span></strong></"
-"p>"
-msgstr[1] ""
-"\n"
-"<div class=\"questions-count\">%(q_num)s</div><p>questions with title "
-"containing <strong><span class=\"darkred\">%(searchtitle)s</span></strong></"
-"p>"
-
-#: forum/skins/default/templates/questions.html:185
-#, python-format
-msgid ""
-"\n"
-" have total %(q_num)s unanswered questions\n"
-" "
-msgid_plural ""
-"\n"
-" have total %(q_num)s unanswered questions\n"
-" "
-msgstr[0] ""
-"\n"
-"<div class=\"questions-count\">%(q_num)s</div><p>question without an "
-"accepted answer</p>"
-msgstr[1] ""
-"\n"
-"<div class=\"questions-count\">%(q_num)s</div><p>questions without an "
-"accepted answer</p>"
-
-#: forum/skins/default/templates/questions.html:191
-#, python-format
-msgid ""
-"\n"
-" have total %(q_num)s question\n"
-" "
-msgid_plural ""
-"\n"
-" have total %(q_num)s questions\n"
-" "
-msgstr[0] ""
-"\n"
-"<div class=\"questions-count\">%(q_num)s</div><p>question</p>"
-msgstr[1] ""
-"\n"
-"<div class=\"questions-count\">%(q_num)s</div><p>questions<p>"
-
-#: forum/skins/default/templates/questions.html:201
-msgid "latest questions info"
-msgstr "<strong>Newest</strong> questions are shown first."
-
-#: forum/skins/default/templates/questions.html:205
-msgid "Questions are sorted by the <strong>time of last update</strong>."
-msgstr ""
-
-#: forum/skins/default/templates/questions.html:206
-msgid "Most recently answered ones are shown first."
-msgstr "<strong>Most recently answered</strong> questions are shown first."
-
-#: forum/skins/default/templates/questions.html:210
-msgid "Questions sorted by <strong>number of responses</strong>."
-msgstr "Questions sorted by the <strong>number of answers</strong>."
-
-#: forum/skins/default/templates/questions.html:211
-msgid "Most answered questions are shown first."
-msgstr " "
-
-#: forum/skins/default/templates/questions.html:215
-msgid "Questions are sorted by the <strong>number of votes</strong>."
-msgstr ""
-
-#: forum/skins/default/templates/questions.html:216
-msgid "Most voted questions are shown first."
-msgstr ""
-
-#: forum/skins/default/templates/questions.html:224
-msgid "Related tags"
-msgstr "Tags"
-
-#: forum/skins/default/templates/questions.html:227
-#: forum/skins/default/templates/tag_selector.html:10
-#: forum/skins/default/templates/tag_selector.html:27
-#, python-format
-msgid "see questions tagged '%(tag_name)s'"
-msgstr ""
-
-#: forum/skins/default/templates/reopen.html:6
-#: forum/skins/default/templates/reopen.html:16
-msgid "Reopen question"
-msgstr ""
-
-#: forum/skins/default/templates/reopen.html:19
-msgid "Open the previously closed question"
-msgstr ""
-
-#: forum/skins/default/templates/reopen.html:22
-msgid "The question was closed for the following reason "
-msgstr ""
-
-#: forum/skins/default/templates/reopen.html:22
-msgid "reason - leave blank in english"
-msgstr ""
-
-#: forum/skins/default/templates/reopen.html:22
-msgid "on "
-msgstr ""
-
-#: forum/skins/default/templates/reopen.html:22
-msgid "date closed"
-msgstr ""
-
-#: forum/skins/default/templates/reopen.html:29
-msgid "Reopen this question"
-msgstr ""
-
-#: forum/skins/default/templates/revisions_answer.html:7
-#: forum/skins/default/templates/revisions_answer.html:38
-#: forum/skins/default/templates/revisions_question.html:8
-#: forum/skins/default/templates/revisions_question.html:38
-msgid "Revision history"
-msgstr ""
-
-#: forum/skins/default/templates/revisions_answer.html:50
-#: forum/skins/default/templates/revisions_question.html:50
-msgid "click to hide/show revision"
-msgstr ""
-
-#: forum/skins/default/templates/tag_selector.html:4
-msgid "Interesting tags"
-msgstr ""
-
-#: forum/skins/default/templates/tag_selector.html:14
-#, python-format
-msgid "remove '%(tag_name)s' from the list of interesting tags"
-msgstr ""
-
-#: forum/skins/default/templates/tag_selector.html:20
-#: forum/skins/default/templates/tag_selector.html:37
-msgid "Add"
-msgstr ""
-
-#: forum/skins/default/templates/tag_selector.html:21
-msgid "Ignored tags"
-msgstr ""
-
-#: forum/skins/default/templates/tag_selector.html:31
-#, python-format
-msgid "remove '%(tag_name)s' from the list of ignored tags"
-msgstr ""
-
-#: forum/skins/default/templates/tag_selector.html:40
-msgid "keep ingored questions hidden"
-msgstr ""
-
-#: forum/skins/default/templates/tags.html:6
-#: forum/skins/default/templates/tags.html:30
-msgid "Tag list"
-msgstr ""
-
-#: forum/skins/default/templates/tags.html:32
-msgid "sorted alphabetically"
-msgstr ""
-
-#: forum/skins/default/templates/tags.html:32
-msgid "by name"
-msgstr ""
-
-#: forum/skins/default/templates/tags.html:33
-msgid "sorted by frequency of tag use"
-msgstr ""
-
-#: forum/skins/default/templates/tags.html:33
-msgid "by popularity"
-msgstr ""
-
-#: forum/skins/default/templates/tags.html:39
-msgid "All tags matching query"
-msgstr ""
-
-#: forum/skins/default/templates/tags.html:39
-msgid "all tags - make this empty in english"
-msgstr ""
-
-#: forum/skins/default/templates/tags.html:42
-msgid "Nothing found"
-msgstr ""
-
-#: forum/skins/default/templates/user_edit.html:6
-msgid "Edit user profile"
-msgstr ""
-
-#: forum/skins/default/templates/user_edit.html:19
-msgid "edit profile"
-msgstr ""
-
-#: forum/skins/default/templates/user_edit.html:31
-msgid "image associated with your email address"
-msgstr ""
-
-#: forum/skins/default/templates/user_edit.html:31
-#, python-format
-msgid "avatar, see %(gravatar_faq_url)s"
-msgstr "<a href='%(gravatar_faq_url)s'>gravatar</a>"
-
-#: forum/skins/default/templates/user_edit.html:36
-#: forum/skins/default/templates/user_info.html:60
-msgid "Registered user"
-msgstr ""
-
-#: forum/skins/default/templates/user_edit.html:43
-msgid "Screen Name"
-msgstr ""
-
-#: forum/skins/default/templates/user_edit.html:86
-#: forum/skins/default/templates/user_email_subscriptions.html:20
-msgid "Update"
-msgstr ""
-
-#: forum/skins/default/templates/user_email_subscriptions.html:8
-msgid "Email subscription settings"
-msgstr ""
-
-#: forum/skins/default/templates/user_email_subscriptions.html:9
-msgid "email subscription settings info"
-msgstr ""
-"<span class='big strong'>Adjust frequency of email updates.</span> Receive "
-"updates on interesting questions by email, <strong><br/>help the community</"
-"strong> by answering questions of your colleagues. If you do not wish to "
-"receive emails - select 'no email' on all items below.<br/>Updates are only "
-"sent when there is any new activity on selected items."
-
-#: forum/skins/default/templates/user_email_subscriptions.html:21
-msgid "Stop sending email"
-msgstr "Stop Email"
-
-#: forum/skins/default/templates/user_info.html:22
-#: forum/skins/default/templates/users.html:26 forum/views/users.py:916
-msgid "reputation"
-msgstr "karma"
-
-#: forum/skins/default/templates/user_info.html:32
-msgid "Moderate this user"
-msgstr ""
-
-#: forum/skins/default/templates/user_info.html:45
-msgid "update profile"
-msgstr ""
-
-#: forum/skins/default/templates/user_info.html:64
-msgid "real name"
-msgstr ""
-
-#: forum/skins/default/templates/user_info.html:69
-msgid "member for"
-msgstr "member since"
-
-#: forum/skins/default/templates/user_info.html:74
-msgid "last seen"
-msgstr ""
-
-#: forum/skins/default/templates/user_info.html:80
-msgid "user website"
-msgstr ""
-
-#: forum/skins/default/templates/user_info.html:86
-msgid "location"
-msgstr ""
-
-#: forum/skins/default/templates/user_info.html:93
-msgid "age"
-msgstr ""
-
-#: forum/skins/default/templates/user_info.html:94
-msgid "age unit"
-msgstr "years old"
-
-#: forum/skins/default/templates/user_info.html:100
-msgid "todays unused votes"
-msgstr ""
-
-#: forum/skins/default/templates/user_info.html:101
-msgid "votes left"
-msgstr ""
-
-#: forum/skins/default/templates/user_stats.html:12
-#, python-format
-msgid ""
-"\n"
-" <span class=\"count\">1</span> Question\n"
-" "
-msgid_plural ""
-"\n"
-" <span class=\"count\">%(counter)s</span> Questions\n"
-" "
-msgstr[0] ""
-msgstr[1] ""
-
-#: forum/skins/default/templates/user_stats.html:23
-#, python-format
-msgid ""
-"\n"
-" <span class=\"count\">1</span> Answer\n"
-" "
-msgid_plural ""
-"\n"
-" <span class=\"count\">%(counter)s</span> Answers\n"
-" "
-msgstr[0] ""
-msgstr[1] ""
-
-#: forum/skins/default/templates/user_stats.html:36
-#, python-format
-msgid "the answer has been voted for %(vote_count)s times"
-msgstr ""
-
-#: forum/skins/default/templates/user_stats.html:36
-msgid "this answer has been selected as correct"
-msgstr ""
-
-#: forum/skins/default/templates/user_stats.html:46
-#, python-format
-msgid ""
-"\n"
-" (one comment)\n"
-" "
-msgid_plural ""
-"\n"
-" the answer has been commented %(comment_count)s times\n"
-" "
-msgstr[0] ""
-"\n"
-"(one comment)"
-msgstr[1] ""
-"\n"
-"(%(comment_count)s comments)"
-
-#: forum/skins/default/templates/user_stats.html:61
-#, python-format
-msgid ""
-"\n"
-" <span class=\"count\">1</span> Vote\n"
-" "
-msgid_plural ""
-"\n"
-" <span class=\"count\">%(cnt)s</span> Votes\n"
-" "
-msgstr[0] ""
-msgstr[1] ""
-
-#: forum/skins/default/templates/user_stats.html:72
-msgid "thumb up"
-msgstr ""
-
-#: forum/skins/default/templates/user_stats.html:73
-msgid "user has voted up this many times"
-msgstr ""
-
-#: forum/skins/default/templates/user_stats.html:77
-msgid "thumb down"
-msgstr ""
-
-#: forum/skins/default/templates/user_stats.html:78
-msgid "user voted down this many times"
-msgstr ""
-
-#: forum/skins/default/templates/user_stats.html:87
-#, python-format
-msgid ""
-"\n"
-" <span class=\"count\">1</span> Tag\n"
-" "
-msgid_plural ""
-"\n"
-" <span class=\"count\">%(counter)s</span> Tags\n"
-" "
-msgstr[0] ""
-msgstr[1] ""
-
-#: forum/skins/default/templates/user_stats.html:100
-#, python-format
-msgid ""
-"see other questions with %(view_user)s's contributions tagged '%(tag_name)s' "
-msgstr ""
-
-#: forum/skins/default/templates/user_stats.html:115
-#, python-format
-msgid ""
-"\n"
-" <span class=\"count\">1</span> Badge\n"
-" "
-msgid_plural ""
-"\n"
-" <span class=\"count\">%(counter)s</span> Badges\n"
-" "
-msgstr[0] ""
-msgstr[1] ""
-
-#: forum/skins/default/templates/user_tabs.html:7
-msgid "User profile"
-msgstr ""
-
-#: forum/skins/default/templates/user_tabs.html:7 forum/views/users.py:890
-msgid "overview"
-msgstr ""
-
-#: forum/skins/default/templates/user_tabs.html:9 forum/views/users.py:898
-msgid "recent activity"
-msgstr ""
-
-#: forum/skins/default/templates/user_tabs.html:12 forum/views/users.py:908
-msgid "comments and answers to others questions"
-msgstr ""
-
-#: forum/skins/default/templates/user_tabs.html:13 forum/views/users.py:907
-msgid "responses"
-msgstr ""
-
-#: forum/skins/default/templates/user_tabs.html:16
-msgid "graph of user reputation"
-msgstr "Graph of user karma"
-
-#: forum/skins/default/templates/user_tabs.html:17
-msgid "reputation history"
-msgstr "karma history"
-
-#: forum/skins/default/templates/user_tabs.html:20 forum/views/users.py:934
-msgid "user vote record"
-msgstr ""
-
-#: forum/skins/default/templates/user_tabs.html:20 forum/views/users.py:933
-msgid "casted votes"
-msgstr "votes"
-
-#: forum/skins/default/templates/user_tabs.html:23
-msgid "questions that user selected as his/her favorite"
-msgstr ""
-
-#: forum/skins/default/templates/user_tabs.html:24
-msgid "favorites"
-msgstr ""
-
-#: forum/skins/default/templates/user_tabs.html:27 forum/views/users.py:943
-msgid "email subscription settings"
-msgstr ""
-
-#: forum/skins/default/templates/user_tabs.html:28 forum/views/users.py:942
-msgid "email subscriptions"
-msgstr ""
-
-#: forum/skins/default/templates/users.html:6
-#: forum/skins/default/templates/users.html:24
-msgid "Users"
-msgstr ""
-
-#: forum/skins/default/templates/users.html:27
-msgid "recent"
-msgstr ""
-
-#: forum/skins/default/templates/users.html:28
-msgid "oldest"
-msgstr ""
-
-#: forum/skins/default/templates/users.html:29
-msgid "by username"
-msgstr ""
-
-#: forum/skins/default/templates/users.html:35
-#, python-format
-msgid "users matching query %(suser)s:"
-msgstr ""
-
-#: forum/skins/default/templates/users.html:39
-msgid "Nothing found."
-msgstr ""
-
-#: forum/skins/default/templates/users_questions.html:11
-msgid "this questions was selected as favorite"
-msgstr ""
-
-#: forum/skins/default/templates/users_questions.html:12
-msgid "thumb-up on"
-msgstr ""
-
-#: forum/skins/default/templates/users_questions.html:19
-msgid "thumb-up off"
-msgstr ""
-
-#: forum/skins/default/templates/auth/complete.html:5
-#: forum/skins/default/templates/authopenid/complete.html:19
-msgid "Connect your OpenID with this site"
-msgstr "New user signup"
-
-#: forum/skins/default/templates/auth/complete.html:8
-#: forum/skins/default/templates/authopenid/complete.html:22
-msgid "Connect your OpenID with your account on this site"
-msgstr "New user signup"
-
-#: forum/skins/default/templates/auth/complete.html:12
-msgid "You are here for the first time with "
-msgstr ""
-
-#: forum/skins/default/templates/auth/complete.html:13
-msgid ""
-"Please create your screen name and save your email address. Saved email "
-"address will let you subscribe for the updates on the most interesting "
-"questions and will be used to create and retrieve your unique avatar image. "
-msgstr ""
-
-#: forum/skins/default/templates/auth/complete.html:15
-#: forum/skins/default/templates/authopenid/complete.html:42
-msgid "This account already exists, please use another."
-msgstr ""
-
-#: forum/skins/default/templates/auth/complete.html:30
-#: forum/skins/default/templates/authopenid/complete.html:57
-msgid "Sorry, looks like we have some errors:"
-msgstr ""
-
-#: forum/skins/default/templates/auth/complete.html:47
-#: forum/skins/default/templates/authopenid/complete.html:82
-msgid "Screen name label"
-msgstr "<strong>Screen Name</strong> (<i>will be shown to others</i>)"
-
-#: forum/skins/default/templates/auth/complete.html:54
-#: forum/skins/default/templates/authopenid/complete.html:89
-msgid "Email address label"
-msgstr ""
-"<strong>Email Address</strong> (<i>will <strong>not</strong> be shared with "
-"anyone, must be valid</i>)"
-
-#: forum/skins/default/templates/auth/complete.html:60
-#: forum/skins/default/templates/auth/signup.html:18
-#: forum/skins/default/templates/authopenid/complete.html:95
-#: forum/skins/default/templates/authopenid/signup.html:18
-msgid "receive updates motivational blurb"
-msgstr ""
-"<strong>Receive forum updates by email</strong> - this will help our "
-"community grow and become more useful.<br/>By default <span "
-"class='orange'>Q&A</span> forum sends up to <strong>one email digest per "
-"week</strong> - only when there is anything new.<br/>If you like, please "
-"adjust this now or any time later from your user account."
-
-#: forum/skins/default/templates/auth/complete.html:64
-#: forum/skins/default/templates/auth/signup.html:22
-#: forum/skins/default/templates/authopenid/complete.html:99
-#: forum/skins/default/templates/authopenid/signup.html:22
-msgid "please select one of the options above"
-msgstr ""
-
-#: forum/skins/default/templates/auth/complete.html:67
-#: forum/skins/default/templates/authopenid/complete.html:102
-msgid "Tag filter tool will be your right panel, once you log in."
-msgstr ""
-
-#: forum/skins/default/templates/auth/complete.html:68
-#: forum/skins/default/templates/authopenid/complete.html:103
-msgid "create account"
-msgstr "Signup"
-
-#: forum/skins/default/templates/auth/complete.html:77
-#: forum/skins/default/templates/authopenid/complete.html:112
-msgid "Existing account"
-msgstr ""
-
-#: forum/skins/default/templates/auth/complete.html:78
-#: forum/skins/default/templates/authopenid/complete.html:113
-msgid "user name"
-msgstr ""
-
-#: forum/skins/default/templates/auth/complete.html:79
-#: forum/skins/default/templates/authopenid/complete.html:114
-msgid "password"
-msgstr ""
-
-#: forum/skins/default/templates/auth/complete.html:86
-#: forum/skins/default/templates/authopenid/complete.html:121
-msgid "Register"
-msgstr ""
-
-#: forum/skins/default/templates/auth/complete.html:87
-#: forum/skins/default/templates/authopenid/complete.html:122
-#: forum/skins/default/templates/authopenid/signin.html:151
-msgid "Forgot your password?"
-msgstr ""
-
-#: forum/skins/default/templates/auth/signin.html:22
-#: forum/skins/default/templates/authopenid/signin.html:5
-#: forum/skins/default/templates/authopenid/signin.html:21
-msgid "User login"
-msgstr "User login"
-
-#: forum/skins/default/templates/auth/signin.html:29
-#: forum/skins/default/templates/authopenid/signin.html:42
-msgid "Click to sign in through any of these services."
-msgstr ""
-"<p><span class=\"big strong\">Please select your favorite login method below."
-"</span></p><p><font color=\"gray\">External login services use <a href="
-"\"http://openid.net\"><b>OpenID</b></a> technology, where your password "
-"always stays confidential between you and your login provider and you don't "
-"have to remember another one. CNPROG option requires your login name and "
-"password entered here.</font></p>"
-
-#: forum/skins/default/templates/auth/signin.html:34
-msgid ""
-"Take the opurtunity to validate my email next to the external provider I "
-"choose."
-msgstr ""
-
-#: forum/skins/default/templates/auth/signin.html:84
-msgid "Enter your "
-msgstr ""
-
-#: forum/skins/default/templates/auth/signin.html:140
-#: forum/skins/default/templates/authopenid/signin.html:160
-msgid "Why use OpenID?"
-msgstr ""
-
-#: forum/skins/default/templates/auth/signin.html:143
-#: forum/skins/default/templates/authopenid/signin.html:163
-msgid "with openid it is easier"
-msgstr "With the OpenID you don't need to create new username and password."
-
-#: forum/skins/default/templates/auth/signin.html:146
-#: forum/skins/default/templates/authopenid/signin.html:166
-msgid "reuse openid"
-msgstr "You can safely re-use the same login for all OpenID-enabled websites."
-
-#: forum/skins/default/templates/auth/signin.html:149
-#: forum/skins/default/templates/authopenid/signin.html:169
-msgid "openid is widely adopted"
-msgstr ""
-"There are > 160,000,000 OpenID account in use. Over 10,000 sites are OpenID-"
-"enabled."
-
-#: forum/skins/default/templates/auth/signin.html:152
-#: forum/skins/default/templates/authopenid/signin.html:172
-msgid "openid is supported open standard"
-msgstr "OpenID is based on an open standard, supported by many organizations."
-
-#: forum/skins/default/templates/auth/signin.html:157
-#: forum/skins/default/templates/authopenid/signin.html:177
-msgid "Find out more"
-msgstr ""
-
-#: forum/skins/default/templates/auth/signin.html:158
-#: forum/skins/default/templates/authopenid/signin.html:178
-msgid "Get OpenID"
-msgstr ""
-
-#: forum/skins/default/templates/auth/signup.html:4
-#: forum/skins/default/templates/authopenid/signup.html:4
-msgid "Signup"
-msgstr ""
-
-#: forum/skins/default/templates/auth/signup.html:8
-#: forum/skins/default/templates/authopenid/signup.html:8
-msgid "Create login name and password"
-msgstr ""
-
-#: forum/skins/default/templates/auth/signup.html:10
-#: forum/skins/default/templates/authopenid/signup.html:10
-msgid "Traditional signup info"
-msgstr ""
-"<span class='strong big'>If you prefer, create your forum login name and "
-"password here. However</span>, please keep in mind that we also support "
-"<strong>OpenID</strong> login method. With <strong>OpenID</strong> you can "
-"simply reuse your external login (e.g. Gmail or AOL) without ever sharing "
-"your login details with anyone and having to remember yet another password."
-
-#: forum/skins/default/templates/auth/signup.html:25
-#: forum/skins/default/templates/authopenid/signup.html:25
-msgid ""
-"Please read and type in the two words below to help us prevent automated "
-"account creation."
-msgstr ""
-
-#: forum/skins/default/templates/auth/signup.html:27
-#: forum/skins/default/templates/authopenid/signup.html:27
-msgid "Create Account"
-msgstr ""
-
-#: forum/skins/default/templates/auth/signup.html:29
-msgid "return to login page"
-msgstr ""
-
-#: forum/skins/default/templates/authopenid/changeemail.html:3
-#: forum/skins/default/templates/authopenid/changeemail.html:9
-#: forum/skins/default/templates/authopenid/changeemail.html:38
-msgid "Change email"
-msgstr "Change Email"
-
-#: forum/skins/default/templates/authopenid/changeemail.html:11
-msgid "Save your email address"
-msgstr ""
-
-#: forum/skins/default/templates/authopenid/changeemail.html:16
-#, python-format
-msgid "change %(email)s info"
-msgstr ""
-"<span class=\"strong big\">Enter your new email into the box below</span> if "
-"you'd like to use another email for <strong>update subscriptions</strong>."
-"<br>Currently you are using <strong>%(email)s</strong>"
-
-#: forum/skins/default/templates/authopenid/changeemail.html:18
-#, python-format
-msgid "here is why email is required, see %(gravatar_faq_url)s"
-msgstr ""
-"<span class='strong big'>Please enter your email address in the box below.</"
-"span> Valid email address is required on this Q&A forum. If you like, "
-"you can <strong>receive updates</strong> on interesting questions or entire "
-"forum via email. Also, your email is used to create a unique <a href='%"
-"(gravatar_faq_url)s'><strong>gravatar</strong></a> image for your account. "
-"Email addresses are never shown or otherwise shared with anybody else."
-
-#: forum/skins/default/templates/authopenid/changeemail.html:31
-msgid "Your new Email"
-msgstr ""
-"<strong>Your new Email:</strong> (will <strong>not</strong> be shown to "
-"anyone, must be valid)"
-
-#: forum/skins/default/templates/authopenid/changeemail.html:31
-msgid "Your Email"
-msgstr ""
-"<strong>Your Email</strong> (<i>must be valid, never shown to others</i>)"
-
-#: forum/skins/default/templates/authopenid/changeemail.html:38
-msgid "Save Email"
-msgstr ""
-
-#: forum/skins/default/templates/authopenid/changeemail.html:49
-msgid "Validate email"
-msgstr ""
-
-#: forum/skins/default/templates/authopenid/changeemail.html:52
-#, python-format
-msgid "validate %(email)s info or go to %(change_email_url)s"
-msgstr ""
-"<span class=\"strong big\">An email with a validation link has been sent to %"
-"(email)s.</span> Please <strong>follow the emailed link</strong> with your "
-"web browser. Email validation is necessary to help insure the proper use of "
-"email on <span class=\"orange\">Q&A</span>. If you would like to use "
-"<strong>another email</strong>, please <a href='%(change_email_url)"
-"s'><strong>change it again</strong></a>."
-
-#: forum/skins/default/templates/authopenid/changeemail.html:57
-msgid "Email not changed"
-msgstr ""
-
-#: forum/skins/default/templates/authopenid/changeemail.html:60
-#, python-format
-msgid "old %(email)s kept, if you like go to %(change_email_url)s"
-msgstr ""
-"<span class=\"strong big\">Your email address %(email)s has not been changed."
-"</span> If you decide to change it later - you can always do it by editing "
-"it in your user profile or by using the <a href='%(change_email_url)"
-"s'><strong>previous form</strong></a> again."
-
-#: forum/skins/default/templates/authopenid/changeemail.html:65
-msgid "Email changed"
-msgstr ""
-
-#: forum/skins/default/templates/authopenid/changeemail.html:68
-#, python-format
-msgid "your current %(email)s can be used for this"
-msgstr ""
-"<span class='big strong'>Your email address is now set to %(email)s.</span> "
-"Updates on the questions that you like most will be sent to this address. "
-"Email notifications are sent once a day or less frequently - only when there "
-"are any news."
-
-#: forum/skins/default/templates/authopenid/changeemail.html:73
-msgid "Email verified"
-msgstr ""
-
-#: forum/skins/default/templates/authopenid/changeemail.html:76
-msgid "thanks for verifying email"
-msgstr ""
-"<span class=\"big strong\">Thank you for verifying your email!</span> Now "
-"you can <strong>ask</strong> and <strong>answer</strong> questions. Also if "
-"you find a very interesting question you can <strong>subscribe for the "
-"updates</strong> - then will be notified about changes <strong>once a day</"
-"strong> or less frequently."
-
-#: forum/skins/default/templates/authopenid/changeemail.html:81
-msgid "email key not sent"
-msgstr "Validation email not sent"
-
-#: forum/skins/default/templates/authopenid/changeemail.html:84
-#, python-format
-msgid "email key not sent %(email)s change email here %(change_link)s"
-msgstr ""
-"<span class='big strong'>Your current email address %(email)s has been "
-"validated before</span> so the new key was not sent. You can <a href='%"
-"(change_link)s'>change</a> email used for update subscriptions if necessary."
-
-#: forum/skins/default/templates/authopenid/changeopenid.html:8
-msgid "Account: change OpenID URL"
-msgstr ""
-
-#: forum/skins/default/templates/authopenid/changeopenid.html:12
-msgid ""
-"This is where you can change your OpenID URL. Make sure you remember it!"
-msgstr ""
-
-#: forum/skins/default/templates/authopenid/changeopenid.html:14
-#: forum/skins/default/templates/authopenid/delete.html:14
-#: forum/skins/default/templates/authopenid/delete.html:24
-msgid "Please correct errors below:"
-msgstr ""
-
-#: forum/skins/default/templates/authopenid/changeopenid.html:29
-msgid "OpenID URL:"
-msgstr ""
-
-#: forum/skins/default/templates/authopenid/complete.html:27
-#, python-format
-msgid "register new %(provider)s account info, see %(gravatar_faq_url)s"
-msgstr ""
-"<p><span class=\"big strong\">You are here for the first time with your %"
-"(provider)s login.</span> Please create your <strong>screen name</strong> "
-"and save your <strong>email</strong> address. Saved email address will let "
-"you <strong>subscribe for the updates</strong> on the most interesting "
-"questions and will be used to create and retrieve your unique avatar image - "
-"<a href='%(gravatar_faq_url)s'><strong>gravatar</strong></a>.</p>"
-
-#: forum/skins/default/templates/authopenid/complete.html:31
-#, python-format
-msgid ""
-"%(username)s already exists, choose another name for \n"
-" %(provider)s. Email is required too, see %"
-"(gravatar_faq_url)s\n"
-" "
-msgstr ""
-"<p><span class='strong big'>Oops... looks like screen name %(username)s is "
-"already used in another account.</span></p><p>Please choose another screen "
-"name to use with your %(provider)s login. Also, a valid email address is "
-"required on the <span class='orange'>Q&A</span> forum. Your email is "
-"used to create a unique <a href='%(gravatar_faq_url)s'><strong>gravatar</"
-"strong></a> image for your account. If you like, you can <strong>receive "
-"updates</strong> on the interesting questions or entire forum by email. "
-"Email addresses are never shown or otherwise shared with anybody else.</p>"
-
-#: forum/skins/default/templates/authopenid/complete.html:35
-#, python-format
-msgid ""
-"register new external %(provider)s account info, see %(gravatar_faq_url)s"
-msgstr ""
-"<p><span class=\"big strong\">You are here for the first time with your %"
-"(provider)s login.</span></p><p>You can either keep your <strong>screen "
-"name</strong> the same as your %(provider)s login name or choose some other "
-"nickname.</p><p>Also, please save a valid <strong>email</strong> address. "
-"With the email you can <strong>subscribe for the updates</strong> on the "
-"most interesting questions. Email address is also used to create and "
-"retrieve your unique avatar image - <a href='%(gravatar_faq_url)"
-"s'><strong>gravatar</strong></a>.</p>"
-
-#: forum/skins/default/templates/authopenid/complete.html:38
-#, python-format
-msgid "register new Facebook connect account info, see %(gravatar_faq_url)s"
-msgstr ""
-"<p><span class=\"big strong\">You are here for the first time with your "
-"Facebook login.</span> Please create your <strong>screen name</strong> and "
-"save your <strong>email</strong> address. Saved email address will let you "
-"<strong>subscribe for the updates</strong> on the most interesting questions "
-"and will be used to create and retrieve your unique avatar image - <a href='%"
-"(gravatar_faq_url)s'><strong>gravatar</strong></a>.</p>"
-
-#: forum/skins/default/templates/authopenid/confirm_email.txt:2
-msgid "Thank you for registering at our Q&A forum!"
-msgstr ""
-
-#: forum/skins/default/templates/authopenid/confirm_email.txt:4
-msgid "Your account details are:"
-msgstr ""
-
-#: forum/skins/default/templates/authopenid/confirm_email.txt:6
-msgid "Username:"
-msgstr ""
-
-#: forum/skins/default/templates/authopenid/confirm_email.txt:7
-#: forum/skins/default/templates/authopenid/delete.html:19
-msgid "Password:"
-msgstr ""
-
-#: forum/skins/default/templates/authopenid/confirm_email.txt:9
-msgid "Please sign in here:"
-msgstr ""
-
-#: forum/skins/default/templates/authopenid/confirm_email.txt:12
-#: forum/skins/default/templates/authopenid/email_validation.txt:14
-#: forum/skins/default/templates/authopenid/sendpw_email.txt:8
-msgid ""
-"Sincerely,\n"
-"Forum Administrator"
-msgstr ""
-"Sincerely,\n"
-"Q&A Forum Administrator"
-
-#: forum/skins/default/templates/authopenid/delete.html:8
-msgid "Account: delete account"
-msgstr ""
-
-#: forum/skins/default/templates/authopenid/delete.html:12
-msgid ""
-"Note: After deleting your account, anyone will be able to register this "
-"username."
-msgstr ""
-
-#: forum/skins/default/templates/authopenid/delete.html:16
-msgid "Check confirm box, if you want delete your account."
-msgstr ""
-
-#: forum/skins/default/templates/authopenid/delete.html:31
-msgid "I am sure I want to delete my account."
-msgstr ""
-
-#: forum/skins/default/templates/authopenid/delete.html:32
-msgid "Password/OpenID URL"
-msgstr ""
-
-#: forum/skins/default/templates/authopenid/delete.html:32
-msgid "(required for your security)"
-msgstr ""
-
-#: forum/skins/default/templates/authopenid/delete.html:34
-msgid "Delete account permanently"
-msgstr ""
-
-#: forum/skins/default/templates/authopenid/email_validation.txt:2
-msgid "Greetings from the Q&A forum"
-msgstr ""
-
-#: forum/skins/default/templates/authopenid/email_validation.txt:4
-msgid "To make use of the Forum, please follow the link below:"
-msgstr ""
-
-#: forum/skins/default/templates/authopenid/email_validation.txt:8
-msgid "Following the link above will help us verify your email address."
-msgstr ""
-
-#: forum/skins/default/templates/authopenid/email_validation.txt:10
-msgid ""
-"If you beleive that this message was sent in mistake - \n"
-"no further action is needed. Just ingore this email, we apologize\n"
-"for any inconvenience"
-msgstr ""
-
-#: forum/skins/default/templates/authopenid/external_legacy_login_info.html:4
-#: forum/skins/default/templates/authopenid/external_legacy_login_info.html:7
-msgid "Traditional login information"
-msgstr ""
-
-#: forum/skins/default/templates/authopenid/external_legacy_login_info.html:12
-#, python-format
-msgid ""
-"how to login with password through external login website or use %"
-"(feedback_url)s"
-msgstr ""
-
-#: forum/skins/default/templates/authopenid/sendpw.html:4
-#: forum/skins/default/templates/authopenid/sendpw.html:7
-msgid "Send new password"
-msgstr "Recover password"
-
-#: forum/skins/default/templates/authopenid/sendpw.html:10
-msgid "password recovery information"
-msgstr ""
-"<span class='big strong'>Forgot you password? No problems - just get a new "
-"one!</span><br/>Please follow the following steps:<br/>• submit your "
-"user name below and check your email<br/>• <strong>follow the "
-"activation link</strong> for the new password - sent to you by email and "
-"login with the suggested password<br/>• at this you might want to "
-"change your password to something you can remember better"
-
-#: forum/skins/default/templates/authopenid/sendpw.html:21
-msgid "Reset password"
-msgstr "Send me a new password"
-
-#: forum/skins/default/templates/authopenid/sendpw.html:22
-msgid "return to login"
-msgstr ""
-
-#: forum/skins/default/templates/authopenid/sendpw_email.txt:2
-#, python-format
-msgid ""
-"Someone has requested to reset your password on %(site_url)s.\n"
-"If it were not you, it is safe to ignore this email."
-msgstr ""
-
-#: forum/skins/default/templates/authopenid/sendpw_email.txt:5
-#, python-format
-msgid ""
-"email explanation how to use new %(password)s for %(username)s\n"
-"with the %(key_link)s"
-msgstr ""
-"To change your password, please follow these steps:\n"
-"* visit this link: %(key_link)s\n"
-"* login with user name %(username)s and password %(password)s\n"
-"* go to your user profile and set the password to something you can remember"
-
-#: forum/skins/default/templates/authopenid/signin.html:28
-#, python-format
-msgid ""
-"\n"
-" Your answer to %(title)s %(summary)s will be posted once you "
-"log in\n"
-" "
-msgstr ""
-"\n"
-"<span class=\"strong big\">Your answer to </span> <i>\"<strong>%(title)s</"
-"strong> %(summary)s...\"</i> <span class=\"strong big\">is saved and will be "
-"posted once you log in.</span>"
-
-#: forum/skins/default/templates/authopenid/signin.html:35
-#, python-format
-msgid ""
-"Your question \n"
-" %(title)s %(summary)s will be posted once you log in\n"
-" "
-msgstr ""
-"<span class=\"strong big\">Your question</span> <i>\"<strong>%(title)s</"
-"strong> %(summary)s...\"</i> <span class=\"strong big\">is saved and will be "
-"posted once you log in.</span>"
-
-#: forum/skins/default/templates/authopenid/signin.html:128
-msgid "Enter your <span id=\"enter_your_what\">Provider user name</span>"
-msgstr ""
-"<span class=\"big strong\">Enter your </span><span id=\"enter_your_what\" "
-"class='big strong'>Provider user name</span><br/><span class='grey'>(or "
-"select another login method above)</span>"
-
-#: forum/skins/default/templates/authopenid/signin.html:135
-msgid ""
-"Enter your <a class=\"openid_logo\" href=\"http://openid.net\">OpenID</a> "
-"web address"
-msgstr ""
-"<span class=\"big strong\">Enter your <a class=\"openid_logo\" href=\"http://"
-"openid.net\">OpenID</a> web address</span><br/><span class='grey'>(or choose "
-"another login method above)</span>"
-
-#: forum/skins/default/templates/authopenid/signin.html:137
-#: forum/skins/default/templates/authopenid/signin.html:149
-msgid "Login"
-msgstr ""
-
-#: forum/skins/default/templates/authopenid/signin.html:140
-msgid "Enter your login name and password"
-msgstr ""
-"<span class='big strong'>Enter your CNPROG login and password</span><br/"
-"><span class='grey'>(or select your OpenID provider above)</span>"
-
-#: forum/skins/default/templates/authopenid/signin.html:144
-msgid "Login name"
-msgstr ""
-
-#: forum/skins/default/templates/authopenid/signin.html:146
-msgid "Password"
-msgstr ""
-
-#: forum/skins/default/templates/authopenid/signin.html:150
-msgid "Create account"
-msgstr ""
-
-#: forum/skins/default/templates/authopenid/signup.html:29
-msgid "return to OpenID login"
-msgstr ""
-
-#: forum/skins/default/templates/fbconnect/xd_receiver.html:5
-#, python-format
-msgid "Connect to %(APP_SHORT_NAME)s with Facebook!"
-msgstr ""
-
-#: forum/templatetags/extra_tags.py:166 forum/templatetags/extra_tags.py:193
-msgid "reputation points"
-msgstr "karma"
-
-#: forum/templatetags/extra_tags.py:253
-msgid "2 days ago"
-msgstr ""
-
-#: forum/templatetags/extra_tags.py:255
-msgid "yesterday"
-msgstr ""
-
-#: forum/templatetags/extra_tags.py:257
-#, python-format
-msgid "%(hr)d hour ago"
-msgid_plural "%(hr)d hours ago"
-msgstr[0] ""
-msgstr[1] ""
-
-#: forum/templatetags/extra_tags.py:259
-#, python-format
-msgid "%(min)d min ago"
-msgid_plural "%(min)d mins ago"
-msgstr[0] ""
-msgstr[1] ""
-
-#: forum/utils/forms.py:27
-msgid "this field is required"
-msgstr ""
-
-#: forum/utils/forms.py:42
-msgid "choose a username"
-msgstr "Choose screen name"
-
-#: forum/utils/forms.py:47
-msgid "user name is required"
-msgstr ""
-
-#: forum/utils/forms.py:48
-msgid "sorry, this name is taken, please choose another"
-msgstr ""
-
-#: forum/utils/forms.py:49
-msgid "sorry, this name is not allowed, please choose another"
-msgstr ""
-
-#: forum/utils/forms.py:50
-msgid "sorry, there is no user with this name"
-msgstr ""
-
-#: forum/utils/forms.py:51
-msgid "sorry, we have a serious error - user name is taken by several users"
-msgstr ""
-
-#: forum/utils/forms.py:52
-msgid "user name can only consist of letters, empty space and underscore"
-msgstr ""
-
-#: forum/utils/forms.py:100
-msgid "your email address"
-msgstr "Your email <i>(never shared)</i>"
-
-#: forum/utils/forms.py:101
-msgid "email address is required"
-msgstr ""
-
-#: forum/utils/forms.py:102
-msgid "please enter a valid email address"
-msgstr ""
-
-#: forum/utils/forms.py:103
-msgid "this email is already used by someone else, please choose another"
-msgstr ""
-
-#: forum/utils/forms.py:128
-msgid "choose password"
-msgstr "Password"
-
-#: forum/utils/forms.py:129
-msgid "password is required"
-msgstr ""
-
-#: forum/utils/forms.py:132
-msgid "retype password"
-msgstr "Password <i>(please retype)</i>"
-
-#: forum/utils/forms.py:133
-msgid "please, retype your password"
-msgstr ""
-
-#: forum/utils/forms.py:134
-msgid "sorry, entered passwords did not match, please try again"
-msgstr ""
-
-#: forum/views/auth.py:94 forum/views/auth.py:103
-msgid ""
-"Sorry, these login credentials belong to anoother user. Plese terminate your "
-"current session and try again."
-msgstr ""
-
-#: forum/views/auth.py:96
-msgid "You are already logged in with that user."
-msgstr ""
-
-#: forum/views/auth.py:101
-msgid "These login credentials are already associated with your account."
-msgstr ""
-
-#: forum/views/auth.py:107
-msgid "These new credentials are now associated with your account."
-msgstr ""
-
-#: forum/views/commands.py:217
-#, python-format
-msgid "subscription saved, %(email)s needs validation, see %(details_url)s"
-msgstr ""
-"Your subscription is saved, but email address %(email)s needs to be "
-"validated, please see <a href='%(details_url)s'>more details here</a>"
-
-#: forum/views/commands.py:225
-msgid "email update frequency has been set to daily"
-msgstr ""
-
-#: forum/views/meta.py:34
-msgid "Q&A forum feedback"
-msgstr ""
-
-#: forum/views/meta.py:35
-msgid "Thanks for the feedback!"
-msgstr ""
-
-#: forum/views/meta.py:43
-msgid "We look forward to hearing your feedback! Please, give it next time :)"
-msgstr ""
-
-#: forum/views/users.py:851 forum/views/users.py:855
-msgid "changes saved"
-msgstr ""
-
-#: forum/views/users.py:861
-msgid "email updates canceled"
-msgstr ""
-
-#: forum/views/users.py:891
-msgid "user profile"
-msgstr ""
-
-#: forum/views/users.py:892
-msgid "user profile overview"
-msgstr ""
-
-#: forum/views/users.py:899
-msgid "recent user activity"
-msgstr ""
-
-#: forum/views/users.py:900
-msgid "profile - recent activity"
-msgstr ""
-
-#: forum/views/users.py:909
-msgid "profile - responses"
-msgstr ""
-
-#: forum/views/users.py:917
-msgid "user reputation in the community"
-msgstr "user karma"
-
-#: forum/views/users.py:918
-msgid "profile - user reputation"
-msgstr "Profile - User's Karma"
-
-#: forum/views/users.py:924
-msgid "favorite questions"
-msgstr ""
-
-#: forum/views/users.py:925
-msgid "users favorite questions"
-msgstr ""
-
-#: forum/views/users.py:926
-msgid "profile - favorite questions"
-msgstr ""
-
-#: forum/views/users.py:935
-msgid "profile - votes"
-msgstr ""
-
-#: forum/views/users.py:944
-msgid "profile - email subscriptions"
-msgstr ""
-
-#: forum/views/users.py:977
-msgid "Password changed."
-msgstr ""
-
-#: forum/views/writers.py:74
-msgid "uploading images is limited to users with >60 reputation points"
-msgstr "sorry, file uploading requires karma >60"
-
-#: forum/views/writers.py:76
-msgid "allowed file types are 'jpg', 'jpeg', 'gif', 'bmp', 'png', 'tiff'"
-msgstr ""
-
-#: forum/views/writers.py:78
-#, python-format
-msgid "maximum upload file size is %sK"
-msgstr ""
-
-#: forum/views/writers.py:80
-#, python-format
-msgid ""
-"Error uploading file. Please contact the site administrator. Thank you. %s"
-msgstr ""
-
-#: forum_modules/books/urls.py:7 forum_modules/books/urls.py:8
-#: forum_modules/books/urls.py:9
-msgid "books/"
-msgstr ""
-
-#: forum_modules/facebookauth/authentication.py:29
-msgid "Sorry, your Facebook session has expired, please try again"
-msgstr ""
-
-#: forum_modules/facebookauth/authentication.py:31
-msgid ""
-"The authentication with Facebook connect failed due to an invalid signature"
-msgstr ""
-
-#: forum_modules/facebookauth/authentication.py:33
-msgid ""
-"The authentication with Facebook connect failed, cannot find authentication "
-"tokens"
-msgstr ""
-
-#: forum_modules/localauth/forms.py:59
-msgid "Please enter valid username and password (both are case-sensitive)."
-msgstr ""
-
-#: forum_modules/localauth/forms.py:62
-msgid "This account is inactive."
-msgstr ""
-
-#: forum_modules/localauth/forms.py:64
-msgid "Login failed."
-msgstr ""
-
-#: forum_modules/localauth/forms.py:66
-msgid "Please enter username and password"
-msgstr ""
-
-#: forum_modules/localauth/forms.py:68
-msgid "Please enter your password"
-msgstr ""
-
-#: forum_modules/localauth/forms.py:70
-msgid "Please enter user name"
-msgstr ""
-
-#: forum_modules/localauth/urls.py:7
-msgid "local/"
-msgstr ""
-
-#: forum_modules/oauthauth/consumer.py:33
-msgid "Error, the oauth token is not on the server"
-msgstr ""
-
-#: forum_modules/oauthauth/consumer.py:38
-msgid "Something went wrong! Auth tokens do not match"
-msgstr ""
-
-#: forum_modules/openidauth/consumer.py:40
-msgid "Sorry, but your input is not a valid OpenId"
-msgstr ""
-
-#: forum_modules/openidauth/consumer.py:92
-msgid "The OpenId authentication request was canceled"
-msgstr ""
-
-#: forum_modules/openidauth/consumer.py:94
-msgid "The OpenId authentication failed: "
-msgstr ""
-
-#: forum_modules/openidauth/consumer.py:96
-msgid "Setup needed"
-msgstr ""
-
-#: forum_modules/openidauth/consumer.py:98
-msgid "The OpenId authentication failed with an unknown status: "
-msgstr ""
-
-#: forum_modules/openidauth/templates/openidurl.html:7
-msgid "Enter your OpenId Url"
-msgstr ""
-
-#~ msgid "Incorrect username."
-#~ msgstr "sorry, there is no such user name"
-
-#~ msgid "Welcome email subject line"
-#~ msgstr "Welcome to the Q&A forum"
-
-#~ msgid "your email needs to be validated see %(details_url)s"
-#~ msgstr ""
-#~ "Your email needs to be validated. Please see details <a "
-#~ "id='validate_email_alert' href='%(details_url)s'>here</a>."
-
-#~ msgid "Email verification subject line"
-#~ msgstr "Verification Email from Q&A forum"
-
-#~ msgid "first time greeting with %(url)s"
-#~ msgstr "Hello and welcome to OSQA - <a href='%(url)s'>please join us</a>!"
-
-#~ msgid "have %(num_q)s unanswered questions"
-#~ msgstr ""
-#~ "<div class=\"questions-count\">%(num_q)s</div>questions <strong>without "
-#~ "accepted answers</strong>"
-
-#~ msgid ""
-#~ "\n"
-#~ "\t\t\t\thave total %(q_num)s questions\n"
-#~ "\t\t\t\t"
-#~ msgid_plural ""
-#~ "\n"
-#~ "\t\t\t\thave total %(q_num)s questions\n"
-#~ "\t\t\t\t"
-#~ msgstr[0] ""
-#~ "\n"
-#~ "<div class=\"questions-count\">%(q_num)s</div><p>question</p>"
-#~ msgstr[1] ""
-#~ "\n"
-#~ "<div class=\"questions-count\">%(q_num)s</div><p>questions</p>"
+++ /dev/null
-# SOME DESCRIPTIVE TITLE.
-# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
-# This file is distributed under the same license as the PACKAGE package.
-# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
-#
-#, fuzzy
-msgid ""
-msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2010-03-23 10:41-0400\n"
-"PO-Revision-Date: 2010-02-09 14:11-0600\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: LANGUAGE <LL@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-
-#: forum/auth.py:438
-msgid "Your question and all of it's answers have been deleted"
-msgstr ""
-
-#: forum/auth.py:440
-msgid "Your question has been deleted"
-msgstr ""
-
-#: forum/auth.py:443
-msgid "The question and all of it's answers have been deleted"
-msgstr ""
-
-#: forum/auth.py:445
-msgid "The question has been deleted"
-msgstr ""
-
-#: forum/const.py:8
-msgid "duplicate question"
-msgstr ""
-
-#: forum/const.py:9
-msgid "question is off-topic or not relevant"
-msgstr ""
-
-#: forum/const.py:10
-msgid "too subjective and argumentative"
-msgstr ""
-
-#: forum/const.py:11
-msgid "is not an answer to the question"
-msgstr ""
-
-#: forum/const.py:12
-msgid "the question is answered, right answer was accepted"
-msgstr ""
-
-#: forum/const.py:13
-msgid "problem is not reproducible or outdated"
-msgstr ""
-
-#: forum/const.py:15
-msgid "question contains offensive inappropriate, or malicious remarks"
-msgstr ""
-
-#: forum/const.py:16
-msgid "spam or advertising"
-msgstr ""
-
-#: forum/const.py:57
-msgid "question"
-msgstr ""
-
-#: forum/const.py:58 forum/skins/default/templates/book.html:110
-msgid "answer"
-msgstr ""
-
-#: forum/const.py:59
-msgid "commented question"
-msgstr ""
-
-#: forum/const.py:60
-msgid "commented answer"
-msgstr ""
-
-#: forum/const.py:61
-msgid "edited question"
-msgstr ""
-
-#: forum/const.py:62
-msgid "edited answer"
-msgstr ""
-
-#: forum/const.py:63
-msgid "received award"
-msgstr ""
-
-#: forum/const.py:64
-msgid "marked best answer"
-msgstr ""
-
-#: forum/const.py:65
-msgid "upvoted"
-msgstr ""
-
-#: forum/const.py:66
-msgid "downvoted"
-msgstr ""
-
-#: forum/const.py:67
-msgid "canceled vote"
-msgstr ""
-
-#: forum/const.py:68
-msgid "deleted question"
-msgstr ""
-
-#: forum/const.py:69
-msgid "deleted answer"
-msgstr ""
-
-#: forum/const.py:70
-msgid "marked offensive"
-msgstr ""
-
-#: forum/const.py:71
-msgid "updated tags"
-msgstr ""
-
-#: forum/const.py:72
-msgid "selected favorite"
-msgstr ""
-
-#: forum/const.py:73
-msgid "completed user profile"
-msgstr ""
-
-#: forum/const.py:74
-msgid "email update sent to user"
-msgstr ""
-
-#: forum/const.py:78
-msgid "question_answered"
-msgstr ""
-
-#: forum/const.py:79
-msgid "question_commented"
-msgstr ""
-
-#: forum/const.py:80
-msgid "answer_commented"
-msgstr ""
-
-#: forum/const.py:81
-msgid "answer_accepted"
-msgstr ""
-
-#: forum/const.py:85
-msgid "[closed]"
-msgstr ""
-
-#: forum/const.py:86
-msgid "[deleted]"
-msgstr ""
-
-#: forum/const.py:87 forum/views/readers.py:565 forum/views/readers.py:584
-msgid "initial version"
-msgstr ""
-
-#: forum/const.py:88
-msgid "retagged"
-msgstr ""
-
-#: forum/const.py:92
-msgid "exclude ignored tags"
-msgstr ""
-
-#: forum/const.py:92
-msgid "allow only selected tags"
-msgstr ""
-
-#: forum/feed.py:18
-msgid " - "
-msgstr ""
-
-#: forum/feed.py:18
-msgid "latest questions"
-msgstr ""
-
-#: forum/forms.py:21 forum/skins/default/templates/answer_edit_tips.html:35
-#: forum/skins/default/templates/answer_edit_tips.html:39
-#: forum/skins/default/templates/question_edit_tips.html:32
-#: forum/skins/default/templates/question_edit_tips.html:37
-msgid "title"
-msgstr ""
-
-#: forum/forms.py:22
-msgid "please enter a descriptive title for your question"
-msgstr ""
-
-#: forum/forms.py:27
-msgid "title must be > 10 characters"
-msgstr ""
-
-#: forum/forms.py:36
-msgid "content"
-msgstr ""
-
-#: forum/forms.py:42
-msgid "question content must be > 10 characters"
-msgstr ""
-
-#: forum/forms.py:52 forum/skins/default/templates/header.html:31
-#: forum/skins/default/templates/header.html:59
-msgid "tags"
-msgstr ""
-
-#: forum/forms.py:54
-msgid ""
-"Tags are short keywords, with no spaces within. Up to five tags can be used."
-msgstr ""
-
-#: forum/forms.py:61 forum/skins/default/templates/question_retag.html:40
-msgid "tags are required"
-msgstr ""
-
-#: forum/forms.py:67
-msgid "please use 5 tags or less"
-msgstr ""
-
-#: forum/forms.py:70
-msgid "tags must be shorter than 20 characters"
-msgstr ""
-
-#: forum/forms.py:74
-msgid ""
-"please use following characters in tags: letters 'a-z', numbers, and "
-"characters '.-_#'"
-msgstr ""
-
-#: forum/forms.py:84
-#: forum/skins/default/templates/post_contributor_info.html:7
-#: forum/skins/default/templates/question_summary_list_roll.html:26
-#: forum/skins/default/templates/question_summary_list_roll.html:38
-msgid "community wiki"
-msgstr ""
-
-#: forum/forms.py:85
-msgid ""
-"if you choose community wiki option, the question and answer do not generate "
-"points and name of author will not be shown"
-msgstr ""
-
-#: forum/forms.py:101
-msgid "update summary:"
-msgstr ""
-
-#: forum/forms.py:102
-msgid ""
-"enter a brief summary of your revision (e.g. fixed spelling, grammar, "
-"improved style, this field is optional)"
-msgstr ""
-
-#: forum/forms.py:105
-msgid "Automatically accept user's contributions for the email updates"
-msgstr ""
-
-#: forum/forms.py:118
-msgid "Your name:"
-msgstr ""
-
-#: forum/forms.py:119
-msgid "Email (not shared with anyone):"
-msgstr ""
-
-#: forum/forms.py:120
-msgid "Your message:"
-msgstr ""
-
-#: forum/forms.py:202
-msgid "this email does not have to be linked to gravatar"
-msgstr ""
-
-#: forum/forms.py:204
-msgid "Screen name"
-msgstr ""
-
-#: forum/forms.py:205
-msgid "Real name"
-msgstr ""
-
-#: forum/forms.py:206
-msgid "Website"
-msgstr ""
-
-#: forum/forms.py:207
-msgid "Location"
-msgstr ""
-
-#: forum/forms.py:208
-msgid "Date of birth"
-msgstr ""
-
-#: forum/forms.py:208
-msgid "will not be shown, used to calculate age, format: YYYY-MM-DD"
-msgstr ""
-
-#: forum/forms.py:209 forum/skins/default/templates/account_settings.html:21
-msgid "Profile"
-msgstr ""
-
-#: forum/forms.py:240 forum/forms.py:241
-msgid "this email has already been registered, please use another one"
-msgstr ""
-
-#: forum/forms.py:247
-msgid "Choose email tag filter"
-msgstr ""
-
-#: forum/forms.py:263 forum/forms.py:264
-msgid "weekly"
-msgstr ""
-
-#: forum/forms.py:263 forum/forms.py:264
-msgid "no email"
-msgstr ""
-
-#: forum/forms.py:264
-msgid "daily"
-msgstr ""
-
-#: forum/forms.py:279
-msgid "Asked by me"
-msgstr ""
-
-#: forum/forms.py:282
-msgid "Answered by me"
-msgstr ""
-
-#: forum/forms.py:285
-msgid "Individually selected"
-msgstr ""
-
-#: forum/forms.py:288
-msgid "Entire forum (tag filtered)"
-msgstr ""
-
-#: forum/urls.py:30
-msgid "upfiles/"
-msgstr ""
-
-#: forum/urls.py:35
-msgid "about/"
-msgstr ""
-
-#: forum/urls.py:36
-msgid "faq/"
-msgstr ""
-
-#: forum/urls.py:37
-msgid "privacy/"
-msgstr ""
-
-#: forum/urls.py:38
-msgid "logout/"
-msgstr ""
-
-#: forum/urls.py:39 forum/urls.py:40 forum/urls.py:41 forum/urls.py:58
-msgid "answers/"
-msgstr ""
-
-#: forum/urls.py:39 forum/urls.py:51 forum/urls.py:54 forum/urls.py:58
-msgid "comments/"
-msgstr ""
-
-#: forum/urls.py:40 forum/urls.py:45 forum/urls.py:80
-#: forum/skins/default/templates/user_info.html:45
-msgid "edit/"
-msgstr ""
-
-#: forum/urls.py:41 forum/urls.py:50
-msgid "revisions/"
-msgstr ""
-
-#: forum/urls.py:42 forum/urls.py:43 forum/urls.py:44 forum/urls.py:45
-#: forum/urls.py:46 forum/urls.py:47 forum/urls.py:48 forum/urls.py:49
-#: forum/urls.py:50 forum/urls.py:51 forum/urls.py:54
-msgid "questions/"
-msgstr ""
-
-#: forum/urls.py:43 forum_modules/books/urls.py:8
-msgid "ask/"
-msgstr ""
-
-#: forum/urls.py:44
-msgid "unanswered/"
-msgstr ""
-
-#: forum/urls.py:46
-msgid "close/"
-msgstr ""
-
-#: forum/urls.py:47
-msgid "reopen/"
-msgstr ""
-
-#: forum/urls.py:48
-msgid "answer/"
-msgstr ""
-
-#: forum/urls.py:49
-msgid "vote/"
-msgstr ""
-
-#: forum/urls.py:52
-msgid "command/"
-msgstr ""
-
-#: forum/urls.py:54 forum/urls.py:58
-msgid "delete/"
-msgstr ""
-
-#: forum/urls.py:62 forum/views/readers.py:436
-msgid "question/"
-msgstr ""
-
-#: forum/urls.py:63 forum/urls.py:64
-msgid "tags/"
-msgstr ""
-
-#: forum/urls.py:66 forum/urls.py:70
-msgid "mark-tag/"
-msgstr ""
-
-#: forum/urls.py:66
-msgid "interesting/"
-msgstr ""
-
-#: forum/urls.py:70
-msgid "ignored/"
-msgstr ""
-
-#: forum/urls.py:74
-msgid "unmark-tag/"
-msgstr ""
-
-#: forum/urls.py:78 forum/urls.py:80 forum/urls.py:81
-msgid "users/"
-msgstr ""
-
-#: forum/urls.py:79
-msgid "moderate-user/"
-msgstr ""
-
-#: forum/urls.py:82 forum/urls.py:83
-msgid "badges/"
-msgstr ""
-
-#: forum/urls.py:84
-msgid "messages/"
-msgstr ""
-
-#: forum/urls.py:84
-msgid "markread/"
-msgstr ""
-
-#: forum/urls.py:86
-msgid "nimda/"
-msgstr ""
-
-#: forum/urls.py:88
-msgid "upload/"
-msgstr ""
-
-#: forum/urls.py:89
-msgid "search/"
-msgstr ""
-
-#: forum/urls.py:90
-msgid "feedback/"
-msgstr ""
-
-#: forum/urls.py:95 forum/urls.py:96 forum/urls.py:97 forum/urls.py:98
-#: forum/urls.py:99 forum/urls.py:100 forum/urls.py:101 forum/urls.py:102
-#: forum/urls.py:103 forum/urls.py:104 forum/urls.py:105 forum/urls.py:106
-#: forum_modules/localauth/urls.py:7
-msgid "account/"
-msgstr ""
-
-#: forum/urls.py:95 forum/urls.py:97 forum/urls.py:98
-msgid "signin/"
-msgstr ""
-
-#: forum/urls.py:96
-msgid "signout/"
-msgstr ""
-
-#: forum/urls.py:99
-msgid "done/"
-msgstr ""
-
-#: forum/urls.py:100 forum_modules/localauth/urls.py:7
-msgid "register/"
-msgstr ""
-
-#: forum/urls.py:101
-msgid "validate/"
-msgstr ""
-
-#: forum/urls.py:102 forum/urls.py:103
-msgid "tempsignin/"
-msgstr ""
-
-#: forum/urls.py:104
-msgid "authsettings/"
-msgstr ""
-
-#: forum/urls.py:105 forum/urls.py:106
-msgid "providers/"
-msgstr ""
-
-#: forum/urls.py:105
-msgid "remove/"
-msgstr ""
-
-#: forum/urls.py:106
-msgid "add/"
-msgstr ""
-
-#: forum/urls.py:112 forum/urls.py:113
-msgid "admin/"
-msgstr ""
-
-#: forum/authentication/forms.py:22
-msgid "Your account email"
-msgstr ""
-
-#: forum/authentication/forms.py:24
-msgid "You cannot leave this field blank"
-msgstr ""
-
-#: forum/authentication/forms.py:25 forum/utils/forms.py:102
-msgid "please enter a valid email address"
-msgstr ""
-
-#: forum/authentication/forms.py:33
-msgid "Sorry, but this email is not on our database."
-msgstr ""
-
-#: forum/authentication/forms.py:41
-msgid "okay, let's try!"
-msgstr ""
-
-#: forum/authentication/forms.py:42
-msgid "no OSQA community email please, thanks"
-msgstr ""
-
-#: forum/authentication/forms.py:45
-msgid "please choose one of the options above"
-msgstr ""
-
-#: forum/authentication/forms.py:60
-msgid "Current password"
-msgstr ""
-
-#: forum/authentication/forms.py:71
-msgid ""
-"Old password is incorrect. Please enter the correct "
-"password."
-msgstr ""
-
-#: forum/management/commands/send_email_alerts.py:236
-msgid "email update message subject"
-msgstr ""
-
-#: forum/management/commands/send_email_alerts.py:238
-#, python-format
-msgid "%(name)s, this is an update message header for a question"
-msgid_plural "%(name)s, this is an update message header for %(num)d questions"
-msgstr[0] ""
-msgstr[1] ""
-
-#: forum/management/commands/send_email_alerts.py:255
-msgid "new question"
-msgstr ""
-
-#: forum/management/commands/send_email_alerts.py:272
-msgid ""
-"Please visit the forum and see what's new! Could you spread the word about "
-"it - can somebody you know help answering those questions or benefit from "
-"posting one?"
-msgstr ""
-
-#: forum/management/commands/send_email_alerts.py:284
-msgid ""
-"Your most frequent subscription setting is 'daily' on selected questions. If "
-"you are receiving more than one email per dayplease tell about this issue to "
-"the forum administrator."
-msgstr ""
-
-#: forum/management/commands/send_email_alerts.py:290
-msgid ""
-"Your most frequent subscription setting is 'weekly' if you are receiving "
-"this email more than once a week please report this issue to the forum "
-"administrator."
-msgstr ""
-
-#: forum/management/commands/send_email_alerts.py:296
-msgid ""
-"There is a chance that you may be receiving links seen before - due to a "
-"technicality that will eventually go away. "
-msgstr ""
-
-#: forum/management/commands/send_email_alerts.py:311
-#, python-format
-msgid ""
-"go to %(link)s to change frequency of email updates or %(email)s "
-"administrator"
-msgstr ""
-
-#: forum/middleware/anon_user.py:34
-#, python-format
-msgid "First time here? Check out the <a href=\"%s\">FAQ</a>!"
-msgstr ""
-
-#: forum/models/question.py:257
-#, python-format
-msgid "%(author)s modified the question"
-msgstr ""
-
-#: forum/models/question.py:261
-#, python-format
-msgid "%(people)s posted %(new_answer_count)s new answers"
-msgstr ""
-
-#: forum/models/question.py:266
-#, python-format
-msgid "%(people)s commented the question"
-msgstr ""
-
-#: forum/models/question.py:271
-#, python-format
-msgid "%(people)s commented answers"
-msgstr ""
-
-#: forum/models/question.py:273
-#, python-format
-msgid "%(people)s commented an answer"
-msgstr ""
-
-#: forum/models/repute.py:13 forum/skins/default/templates/badges.html:53
-msgid "gold"
-msgstr ""
-
-#: forum/models/repute.py:14 forum/skins/default/templates/badges.html:61
-msgid "silver"
-msgstr ""
-
-#: forum/models/repute.py:15 forum/skins/default/templates/badges.html:68
-msgid "bronze"
-msgstr ""
-
-#: forum/models/tag.py:81
-msgid "interesting"
-msgstr ""
-
-#: forum/models/tag.py:81
-msgid "ignored"
-msgstr ""
-
-#: forum/models/user.py:45
-msgid "Entire forum"
-msgstr ""
-
-#: forum/models/user.py:46
-msgid "Questions that I asked"
-msgstr ""
-
-#: forum/models/user.py:47
-msgid "Questions that I answered"
-msgstr ""
-
-#: forum/models/user.py:48
-msgid "Individually selected questions"
-msgstr ""
-
-#: forum/models/user.py:51
-msgid "Weekly"
-msgstr ""
-
-#: forum/models/user.py:52
-msgid "Daily"
-msgstr ""
-
-#: forum/models/user.py:53
-msgid "No email"
-msgstr ""
-
-#: forum/skins/default/templates/404.html:24
-msgid "Sorry, could not find the page you requested."
-msgstr ""
-
-#: forum/skins/default/templates/404.html:26
-msgid "This might have happened for the following reasons:"
-msgstr ""
-
-#: forum/skins/default/templates/404.html:28
-msgid "this question or answer has been deleted;"
-msgstr ""
-
-#: forum/skins/default/templates/404.html:29
-msgid "url has error - please check it;"
-msgstr ""
-
-#: forum/skins/default/templates/404.html:30
-msgid ""
-"the page you tried to visit is protected or you don't have sufficient "
-"points, see"
-msgstr ""
-
-#: forum/skins/default/templates/404.html:31
-msgid "if you believe this error 404 should not have occured, please"
-msgstr ""
-
-#: forum/skins/default/templates/404.html:32
-msgid "report this problem"
-msgstr ""
-
-#: forum/skins/default/templates/404.html:41
-#: forum/skins/default/templates/500.html:27
-msgid "back to previous page"
-msgstr ""
-
-#: forum/skins/default/templates/404.html:42
-msgid "see all questions"
-msgstr ""
-
-#: forum/skins/default/templates/404.html:43
-msgid "see all tags"
-msgstr ""
-
-#: forum/skins/default/templates/500.html:22
-msgid "sorry, system error"
-msgstr ""
-
-#: forum/skins/default/templates/500.html:24
-msgid "system error log is recorded, error will be fixed as soon as possible"
-msgstr ""
-
-#: forum/skins/default/templates/500.html:25
-msgid "please report the error to the site administrators if you wish"
-msgstr ""
-
-#: forum/skins/default/templates/500.html:28
-msgid "see latest questions"
-msgstr ""
-
-#: forum/skins/default/templates/500.html:29
-msgid "see tags"
-msgstr ""
-
-#: forum/skins/default/templates/about.html:4
-#: forum/skins/default/templates/about.html:8
-msgid "About"
-msgstr ""
-
-#: forum/skins/default/templates/account_settings.html:4
-msgid "Account functions"
-msgstr ""
-
-#: forum/skins/default/templates/account_settings.html:29
-#: forum/skins/default/templates/auth/auth_settings.html:31
-msgid "Change password"
-msgstr ""
-
-#: forum/skins/default/templates/account_settings.html:30
-msgid "Give your account a new password."
-msgstr ""
-
-#: forum/skins/default/templates/account_settings.html:32
-msgid "Change email "
-msgstr ""
-
-#: forum/skins/default/templates/account_settings.html:33
-msgid "Add or update the email address associated with your account."
-msgstr ""
-
-#: forum/skins/default/templates/account_settings.html:35
-msgid "Change OpenID"
-msgstr ""
-
-#: forum/skins/default/templates/account_settings.html:36
-msgid "Change openid associated to your account"
-msgstr ""
-
-#: forum/skins/default/templates/account_settings.html:39
-msgid "Delete account"
-msgstr ""
-
-#: forum/skins/default/templates/account_settings.html:40
-msgid "Erase your username and all your data from website"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit.html:5
-#: forum/skins/default/templates/answer_edit.html:48
-msgid "Edit answer"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit.html:25
-#: forum/skins/default/templates/answer_edit.html:28
-#: forum/skins/default/templates/ask.html:26
-#: forum/skins/default/templates/ask.html:29
-#: forum/skins/default/templates/question.html:46
-#: forum/skins/default/templates/question.html:49
-#: forum/skins/default/templates/question_edit.html:25
-#: forum/skins/default/templates/question_edit.html:28
-msgid "hide preview"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit.html:28
-#: forum/skins/default/templates/ask.html:29
-#: forum/skins/default/templates/question.html:49
-#: forum/skins/default/templates/question_edit.html:28
-msgid "show preview"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit.html:48
-#: forum/skins/default/templates/question_edit.html:66
-#: forum/skins/default/templates/question_retag.html:54
-#: forum/skins/default/templates/revisions_answer.html:38
-#: forum/skins/default/templates/revisions_question.html:38
-msgid "back"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit.html:53
-#: forum/skins/default/templates/question_edit.html:71
-#: forum/skins/default/templates/revisions_answer.html:52
-#: forum/skins/default/templates/revisions_question.html:52
-msgid "revision"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit.html:56
-#: forum/skins/default/templates/question_edit.html:75
-msgid "select revision"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit.html:63
-#: forum/skins/default/templates/ask.html:97
-#: forum/skins/default/templates/question.html:433
-#: forum/skins/default/templates/question_edit.html:92
-msgid "Toggle the real time Markdown editor preview"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit.html:63
-#: forum/skins/default/templates/ask.html:97
-#: forum/skins/default/templates/question.html:434
-#: forum/skins/default/templates/question_edit.html:92
-msgid "toggle preview"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit.html:72
-#: forum/skins/default/templates/question_edit.html:118
-#: forum/skins/default/templates/question_retag.html:75
-msgid "Save edit"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit.html:73
-#: forum/skins/default/templates/close.html:29
-#: forum/skins/default/templates/feedback.html:50
-#: forum/skins/default/templates/question_edit.html:119
-#: forum/skins/default/templates/question_retag.html:76
-#: forum/skins/default/templates/reopen.html:30
-#: forum/skins/default/templates/user_edit.html:87
-msgid "Cancel"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit_tips.html:4
-msgid "answer tips"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit_tips.html:7
-msgid "please make your answer relevant to this community"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit_tips.html:10
-msgid "try to give an answer, rather than engage into a discussion"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit_tips.html:13
-msgid "please try to provide details"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit_tips.html:16
-#: forum/skins/default/templates/question_edit_tips.html:13
-msgid "be clear and concise"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit_tips.html:20
-#: forum/skins/default/templates/question_edit_tips.html:17
-msgid "see frequently asked questions"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit_tips.html:26
-#: forum/skins/default/templates/question_edit_tips.html:23
-msgid "Markdown tips"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit_tips.html:29
-#: forum/skins/default/templates/question_edit_tips.html:26
-msgid "*italic* or __italic__"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit_tips.html:32
-#: forum/skins/default/templates/question_edit_tips.html:29
-msgid "**bold** or __bold__"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit_tips.html:35
-#: forum/skins/default/templates/question_edit_tips.html:32
-msgid "link"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit_tips.html:35
-#: forum/skins/default/templates/answer_edit_tips.html:39
-#: forum/skins/default/templates/question_edit_tips.html:32
-#: forum/skins/default/templates/question_edit_tips.html:37
-msgid "text"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit_tips.html:39
-#: forum/skins/default/templates/question_edit_tips.html:37
-msgid "image"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit_tips.html:43
-#: forum/skins/default/templates/question_edit_tips.html:41
-msgid "numbered list:"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit_tips.html:48
-#: forum/skins/default/templates/question_edit_tips.html:46
-msgid "basic HTML tags are also supported"
-msgstr ""
-
-#: forum/skins/default/templates/answer_edit_tips.html:52
-#: forum/skins/default/templates/question_edit_tips.html:50
-msgid "learn more about Markdown"
-msgstr ""
-
-#: forum/skins/default/templates/ask.html:5
-#: forum/skins/default/templates/ask.html:61
-msgid "Ask a question"
-msgstr ""
-
-#: forum/skins/default/templates/ask.html:68
-msgid "login to post question info"
-msgstr ""
-
-#: forum/skins/default/templates/ask.html:74
-#, python-format
-msgid ""
-"must have valid %(email)s to post, \n"
-" see %(email_validation_faq_url)s\n"
-" "
-msgstr ""
-
-#: forum/skins/default/templates/ask.html:112
-msgid "(required)"
-msgstr ""
-
-#: forum/skins/default/templates/ask.html:119
-msgid "Login/signup to post your question"
-msgstr ""
-
-#: forum/skins/default/templates/ask.html:121
-msgid "Ask your question"
-msgstr ""
-
-#: forum/skins/default/templates/badge.html:6
-#: forum/skins/default/templates/badge.html:17
-msgid "Badge"
-msgstr ""
-
-#: forum/skins/default/templates/badge.html:26
-msgid "The users have been awarded with badges:"
-msgstr ""
-
-#: forum/skins/default/templates/badges.html:6
-msgid "Badges summary"
-msgstr ""
-
-#: forum/skins/default/templates/badges.html:17
-msgid "Badges"
-msgstr ""
-
-#: forum/skins/default/templates/badges.html:21
-msgid "Community gives you awards for your questions, answers and votes."
-msgstr ""
-
-#: forum/skins/default/templates/badges.html:22
-#, python-format
-msgid ""
-"Below is the list of available badges and number \n"
-" of times each type of badge has been awarded. Give us feedback at %"
-"(feedback_faq_url)s.\n"
-" "
-msgstr ""
-
-#: forum/skins/default/templates/badges.html:50
-msgid "Community badges"
-msgstr ""
-
-#: forum/skins/default/templates/badges.html:56
-msgid "gold badge description"
-msgstr ""
-
-#: forum/skins/default/templates/badges.html:64
-msgid "silver badge description"
-msgstr ""
-
-#: forum/skins/default/templates/badges.html:67
-msgid "bronze badge: often given as a special honor"
-msgstr ""
-
-#: forum/skins/default/templates/badges.html:71
-msgid "bronze badge description"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:7
-msgid "reading channel"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:26
-msgid "[author]"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:30
-msgid "[publisher]"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:34
-msgid "[publication date]"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:38
-msgid "[price]"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:39
-msgid "currency unit"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:42
-msgid "[pages]"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:43
-msgid "pages abbreviation"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:46
-msgid "[tags]"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:56
-msgid "author blog"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:62
-msgid "book directory"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:66
-msgid "buy online"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:79
-msgid "reader questions"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:82
-msgid "ask the author"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:88
-#: forum/skins/default/templates/book.html:93
-#: forum/skins/default/templates/users_questions.html:18
-msgid "this question was selected as favorite"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:88
-#: forum/skins/default/templates/book.html:93
-#: forum/skins/default/templates/users_questions.html:11
-#: forum/skins/default/templates/users_questions.html:18
-msgid "number of times"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:105
-#: forum/skins/default/templates/index_.html:40
-#: forum/skins/default/templates/question_list.html:14
-#: forum/skins/default/templates/question_summary_list_roll.html:14
-#: forum/skins/default/templates/users_questions.html:32
-msgid "votes"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:108
-msgid "the answer has been accepted to be correct"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:115
-#: forum/skins/default/templates/index_.html:48
-#: forum/skins/default/templates/question_list.html:22
-#: forum/skins/default/templates/question_summary_list_roll.html:15
-#: forum/skins/default/templates/users_questions.html:40
-msgid "views"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:125
-#: forum/skins/default/templates/index_.html:63
-#: forum/skins/default/templates/question.html:480
-#: forum/skins/default/templates/question_list.html:36
-#: forum/skins/default/templates/question_summary_list_roll.html:52
-#: forum/skins/default/templates/tags.html:49
-#: forum/skins/default/templates/users_questions.html:52
-msgid "using tags"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:147
-msgid "subscribe to book RSS feed"
-msgstr ""
-
-#: forum/skins/default/templates/book.html:147
-#: forum/skins/default/templates/index.html:85
-#: forum/skins/default/templates/index_.html:114
-msgid "subscribe to the questions feed"
-msgstr ""
-
-#: forum/skins/default/templates/close.html:6
-#: forum/skins/default/templates/close.html:16
-msgid "Close question"
-msgstr ""
-
-#: forum/skins/default/templates/close.html:19
-msgid "Close the question"
-msgstr ""
-
-#: forum/skins/default/templates/close.html:25
-msgid "Reasons"
-msgstr ""
-
-#: forum/skins/default/templates/close.html:28
-msgid "OK to close"
-msgstr ""
-
-#: forum/skins/default/templates/email_base.html:11
-msgid "home"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:11
-msgid "Frequently Asked Questions "
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:16
-msgid "What kinds of questions can I ask here?"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:17
-msgid ""
-"Most importanly - questions should be <strong>relevant</strong> to this "
-"community."
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:18
-msgid ""
-"Before asking the question - please make sure to use search to see whether "
-"your question has alredy been answered."
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:21
-msgid "What questions should I avoid asking?"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:22
-msgid ""
-"Please avoid asking questions that are not relevant to this community, too "
-"subjective and argumentative."
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:27
-msgid "What should I avoid in my answers?"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:28
-msgid ""
-"is a Q&A site, not a discussion group. Therefore - please avoid having "
-"discussions in your answers, comment facility allows some space for brief "
-"discussions."
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:32
-msgid "Who moderates this community?"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:33
-msgid "The short answer is: <strong>you</strong>."
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:34
-msgid "This website is moderated by the users."
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:35
-msgid ""
-"The reputation system allows users earn the authorization to perform a "
-"variety of moderation tasks."
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:40
-msgid "How does reputation system work?"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:41
-msgid "Rep system summary"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:42
-msgid ""
-"For example, if you ask an interesting question or give a helpful answer, "
-"your input will be upvoted. On the other hand if the answer is misleading - "
-"it will be downvoted. Each vote in favor will generate <strong>10</strong> "
-"points, each vote against will subtract <strong>2</strong> points. There is "
-"a limit of <strong>200</strong> points that can be accumulated per question "
-"or answer. The table below explains reputation point requirements for each "
-"type of moderation task."
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:53
-#: forum/skins/default/templates/user_votes.html:15
-msgid "upvote"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:57
-msgid "use tags"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:62
-msgid "add comments"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:66
-#: forum/skins/default/templates/user_votes.html:17
-msgid "downvote"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:69
-msgid "open and close own questions"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:73
-msgid "retag questions"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:78
-msgid "edit community wiki questions"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:83
-msgid "edit any answer"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:87
-msgid "open any closed question"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:91
-msgid "delete any comment"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:95
-msgid "delete any questions and answers and perform other moderation tasks"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:103
-msgid "how to validate email title"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:105
-#, python-format
-msgid ""
-"how to validate email info with %(send_email_key_url)s %(gravatar_faq_url)s"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:110
-msgid "what is gravatar"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:111
-msgid "gravatar faq info"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:114
-msgid "To register, do I need to create new password?"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:115
-msgid ""
-"No, you don't have to. You can login through any service that supports "
-"OpenID, e.g. Google, Yahoo, AOL, etc."
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:116
-msgid "Login now!"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:121
-msgid "Why other people can edit my questions/answers?"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:122
-msgid "Goal of this site is..."
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:122
-msgid ""
-"So questions and answers can be edited like wiki pages by experienced users "
-"of this site and this improves the overall quality of the knowledge base "
-"content."
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:123
-msgid "If this approach is not for you, we respect your choice."
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:127
-msgid "Still have questions?"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:128
-#, python-format
-msgid ""
-"Please ask your question at %(ask_question_url)s, help make our community "
-"better!"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:130
-#: forum/skins/default/templates/header.html:30
-#: forum/skins/default/templates/header.html:58
-msgid "questions"
-msgstr ""
-
-#: forum/skins/default/templates/faq.html:130
-#: forum/skins/default/templates/index.html:92
-#: forum/skins/default/templates/index_.html:121
-msgid "."
-msgstr ""
-
-#: forum/skins/default/templates/feedback.html:6
-msgid "Feedback"
-msgstr ""
-
-#: forum/skins/default/templates/feedback.html:11
-msgid "Give us your feedback!"
-msgstr ""
-
-#: forum/skins/default/templates/feedback.html:17
-#, python-format
-msgid ""
-"\n"
-" <span class='big strong'>Dear %(user_name)s</span>, we look "
-"forward to hearing your feedback. \n"
-" Please type and send us your message below.\n"
-" "
-msgstr ""
-
-#: forum/skins/default/templates/feedback.html:24
-msgid ""
-"\n"
-" <span class='big strong'>Dear visitor</span>, we look forward to "
-"hearing your feedback.\n"
-" Please type and send us your message below.\n"
-" "
-msgstr ""
-
-#: forum/skins/default/templates/feedback.html:41
-msgid "(this field is required)"
-msgstr ""
-
-#: forum/skins/default/templates/feedback.html:49
-msgid "Send Feedback"
-msgstr ""
-
-#: forum/skins/default/templates/footer.html:8
-#: forum/skins/default/templates/header.html:16
-#: forum/skins/default/templates/index.html:44
-#: forum/skins/default/templates/index_.html:77
-msgid "about"
-msgstr ""
-
-#: forum/skins/default/templates/footer.html:9
-#: forum/skins/default/templates/header.html:17
-#: forum/skins/default/templates/index.html:45
-#: forum/skins/default/templates/index_.html:78
-#: forum/skins/default/templates/question_edit_tips.html:17
-msgid "faq"
-msgstr ""
-
-#: forum/skins/default/templates/footer.html:10
-msgid "privacy policy"
-msgstr ""
-
-#: forum/skins/default/templates/footer.html:19
-msgid "give feedback"
-msgstr ""
-
-#: forum/skins/default/templates/header.html:9
-msgid "administration"
-msgstr ""
-
-#: forum/skins/default/templates/header.html:12
-msgid "logout"
-msgstr ""
-
-#: forum/skins/default/templates/header.html:14
-msgid "login"
-msgstr ""
-
-#: forum/skins/default/templates/header.html:24
-msgid "back to home page"
-msgstr ""
-
-#: forum/skins/default/templates/header.html:32
-#: forum/skins/default/templates/header.html:60
-msgid "users"
-msgstr ""
-
-#: forum/skins/default/templates/header.html:34
-msgid "books"
-msgstr ""
-
-#: forum/skins/default/templates/header.html:36
-#: forum/templatetags/extra_tags.py:166 forum/templatetags/extra_tags.py:195
-msgid "badges"
-msgstr ""
-
-#: forum/skins/default/templates/header.html:37
-msgid "unanswered questions"
-msgstr ""
-
-#: forum/skins/default/templates/header.html:39
-msgid "ask a question"
-msgstr ""
-
-#: forum/skins/default/templates/header.html:54
-msgid "search"
-msgstr ""
-
-#: forum/skins/default/templates/index.html:9
-#: forum/skins/default/templates/index_.html:8
-msgid "Home"
-msgstr ""
-
-#: forum/skins/default/templates/index.html:26
-#: forum/skins/default/templates/index_.html:25
-#: forum/skins/default/templates/questions.html:8
-msgid "Questions"
-msgstr ""
-
-#: forum/skins/default/templates/index.html:28
-#: forum/skins/default/templates/index_.html:27
-msgid "last updated questions"
-msgstr ""
-
-#: forum/skins/default/templates/index.html:28
-#: forum/skins/default/templates/index_.html:27
-#: forum/skins/default/templates/questions.html:47
-msgid "newest"
-msgstr ""
-
-#: forum/skins/default/templates/index.html:29
-#: forum/skins/default/templates/index_.html:28
-#: forum/skins/default/templates/questions.html:49
-msgid "hottest questions"
-msgstr ""
-
-#: forum/skins/default/templates/index.html:29
-#: forum/skins/default/templates/index_.html:28
-#: forum/skins/default/templates/questions.html:49
-msgid "hottest"
-msgstr ""
-
-#: forum/skins/default/templates/index.html:30
-#: forum/skins/default/templates/index_.html:29
-#: forum/skins/default/templates/questions.html:50
-msgid "most voted questions"
-msgstr ""
-
-#: forum/skins/default/templates/index.html:30
-#: forum/skins/default/templates/index_.html:29
-#: forum/skins/default/templates/questions.html:50
-msgid "most voted"
-msgstr ""
-
-#: forum/skins/default/templates/index.html:31
-#: forum/skins/default/templates/index_.html:30
-msgid "all questions"
-msgstr ""
-
-#: forum/skins/default/templates/index.html:41
-#: forum/skins/default/templates/index_.html:74
-msgid "welcome to website"
-msgstr ""
-
-#: forum/skins/default/templates/index.html:52
-#: forum/skins/default/templates/index_.html:85
-msgid "Recent tags"
-msgstr ""
-
-#: forum/skins/default/templates/index.html:58
-#: forum/skins/default/templates/index_.html:90
-#: forum/skins/default/templates/question.html:134
-#, python-format
-msgid "see questions tagged '%(tagname)s'"
-msgstr ""
-
-#: forum/skins/default/templates/index.html:62
-#: forum/skins/default/templates/index.html:92
-#: forum/skins/default/templates/index_.html:93
-#: forum/skins/default/templates/index_.html:121
-msgid "popular tags"
-msgstr ""
-
-#: forum/skins/default/templates/index.html:67
-#: forum/skins/default/templates/index_.html:98
-msgid "Recent awards"
-msgstr ""
-
-#: forum/skins/default/templates/index.html:80
-#: forum/skins/default/templates/index_.html:109
-msgid "all awards"
-msgstr ""
-
-#: forum/skins/default/templates/index.html:85
-#: forum/skins/default/templates/index_.html:114
-msgid "subscribe to last 30 questions by RSS"
-msgstr ""
-
-#: forum/skins/default/templates/index.html:92
-#: forum/skins/default/templates/index_.html:121
-msgid "Still looking for more? See"
-msgstr ""
-
-#: forum/skins/default/templates/index.html:92
-#: forum/skins/default/templates/index_.html:121
-msgid "complete list of questions"
-msgstr ""
-
-#: forum/skins/default/templates/index.html:92
-#: forum/skins/default/templates/index_.html:121
-#: forum/skins/default/templates/auth/signup.html:32
-msgid "or"
-msgstr ""
-
-#: forum/skins/default/templates/index.html:92
-#: forum/skins/default/templates/index_.html:121
-msgid "Please help us answer"
-msgstr ""
-
-#: forum/skins/default/templates/index.html:92
-#: forum/skins/default/templates/index_.html:121
-msgid "list of unanswered questions"
-msgstr ""
-
-#: forum/skins/default/templates/index_.html:42
-#: forum/skins/default/templates/question_list.html:16
-#: forum/skins/default/templates/users_questions.html:34
-msgid "this answer has been accepted to be correct"
-msgstr ""
-
-#: forum/skins/default/templates/index_.html:44
-#: forum/skins/default/templates/question_list.html:18
-#: forum/skins/default/templates/question_summary_list_roll.html:13
-#: forum/skins/default/templates/users_questions.html:36
-msgid "answers"
-msgstr ""
-
-#: forum/skins/default/templates/index_.html:63
-#: forum/skins/default/templates/question.html:480
-#: forum/skins/default/templates/question_list.html:36
-#: forum/skins/default/templates/question_summary_list_roll.html:52
-#: forum/skins/default/templates/tags.html:49
-#: forum/skins/default/templates/users_questions.html:52
-msgid "see questions tagged"
-msgstr ""
-
-#: forum/skins/default/templates/logout.html:6
-#: forum/skins/default/templates/logout.html:16
-msgid "Logout"
-msgstr ""
-
-#: forum/skins/default/templates/logout.html:19
-msgid ""
-"As a registered user you can login with your OpenID, log out of the site or "
-"permanently remove your account."
-msgstr ""
-
-#: forum/skins/default/templates/logout.html:20
-msgid "Logout now"
-msgstr ""
-
-#: forum/skins/default/templates/notarobot.html:3
-msgid "Please prove that you are a Human Being"
-msgstr ""
-
-#: forum/skins/default/templates/notarobot.html:10
-msgid "I am a Human Being"
-msgstr ""
-
-#: forum/skins/default/templates/pagesize.html:6
-msgid "posts per page"
-msgstr ""
-
-#: forum/skins/default/templates/paginator.html:6
-#: forum/skins/default/templates/paginator.html:7
-msgid "previous"
-msgstr ""
-
-#: forum/skins/default/templates/paginator.html:19
-msgid "current page"
-msgstr ""
-
-#: forum/skins/default/templates/paginator.html:22
-#: forum/skins/default/templates/paginator.html:29
-msgid "page number "
-msgstr ""
-
-#: forum/skins/default/templates/paginator.html:22
-#: forum/skins/default/templates/paginator.html:29
-msgid "number - make blank in english"
-msgstr ""
-
-#: forum/skins/default/templates/paginator.html:33
-msgid "next page"
-msgstr ""
-
-#: forum/skins/default/templates/post_contributor_info.html:9
-#, python-format
-msgid ""
-"\n"
-" one revision\n"
-" "
-msgid_plural ""
-"\n"
-" %(rev_count)s revisions\n"
-" "
-msgstr[0] ""
-msgstr[1] ""
-
-#: forum/skins/default/templates/post_contributor_info.html:19
-msgid "asked"
-msgstr ""
-
-#: forum/skins/default/templates/post_contributor_info.html:22
-msgid "answered"
-msgstr ""
-
-#: forum/skins/default/templates/post_contributor_info.html:24
-msgid "posted"
-msgstr ""
-
-#: forum/skins/default/templates/post_contributor_info.html:45
-msgid "updated"
-msgstr ""
-
-#: forum/skins/default/templates/privacy.html:6
-#: forum/skins/default/templates/privacy.html:11
-msgid "Privacy policy"
-msgstr ""
-
-#: forum/skins/default/templates/privacy.html:15
-msgid "general message about privacy"
-msgstr ""
-
-#: forum/skins/default/templates/privacy.html:18
-msgid "Site Visitors"
-msgstr ""
-
-#: forum/skins/default/templates/privacy.html:20
-msgid "what technical information is collected about visitors"
-msgstr ""
-
-#: forum/skins/default/templates/privacy.html:23
-msgid "Personal Information"
-msgstr ""
-
-#: forum/skins/default/templates/privacy.html:25
-msgid "details on personal information policies"
-msgstr ""
-
-#: forum/skins/default/templates/privacy.html:28
-msgid "Other Services"
-msgstr ""
-
-#: forum/skins/default/templates/privacy.html:30
-msgid "details on sharing data with third parties"
-msgstr ""
-
-#: forum/skins/default/templates/privacy.html:35
-msgid "cookie policy details"
-msgstr ""
-
-#: forum/skins/default/templates/privacy.html:37
-msgid "Policy Changes"
-msgstr ""
-
-#: forum/skins/default/templates/privacy.html:38
-msgid "how privacy policies can be changed"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:78
-#: forum/skins/default/templates/question.html:79
-#: forum/skins/default/templates/question.html:95
-#: forum/skins/default/templates/question.html:97
-msgid "i like this post (click again to cancel)"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:81
-#: forum/skins/default/templates/question.html:99
-#: forum/skins/default/templates/question.html:256
-msgid "current number of votes"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:90
-#: forum/skins/default/templates/question.html:91
-#: forum/skins/default/templates/question.html:104
-#: forum/skins/default/templates/question.html:105
-msgid "i dont like this post (click again to cancel)"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:109
-#: forum/skins/default/templates/question.html:110
-msgid "mark this question as favorite (click again to cancel)"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:116
-#: forum/skins/default/templates/question.html:117
-msgid "remove favorite mark from this question (click again to restore mark)"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:139
-#: forum/skins/default/templates/question.html:293
-#: forum/skins/default/templates/revisions_answer.html:58
-#: forum/skins/default/templates/revisions_question.html:58
-msgid "edit"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:144
-msgid "reopen"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:148
-msgid "close"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:154
-#: forum/skins/default/templates/question.html:298
-msgid ""
-"report as offensive (i.e containing spam, advertising, malicious text, etc.)"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:155
-#: forum/skins/default/templates/question.html:299
-msgid "flag offensive"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:163
-#: forum/skins/default/templates/question.html:310
-msgid "delete"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:181
-#: forum/skins/default/templates/question.html:330
-msgid "delete this comment"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:192
-#: forum/skins/default/templates/question.html:341
-msgid "add comment"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:196
-#, python-format
-msgid ""
-"\n"
-" see <strong>one</strong> more \n"
-" "
-msgid_plural ""
-"\n"
-" see <strong>%(counter)s</strong> "
-"more\n"
-" "
-msgstr[0] ""
-msgstr[1] ""
-
-#: forum/skins/default/templates/question.html:202
-#, python-format
-msgid ""
-"\n"
-" see <strong>one</strong> more "
-"comment\n"
-" "
-msgid_plural ""
-"\n"
-" see <strong>%(counter)s</strong> "
-"more comments\n"
-" "
-msgstr[0] ""
-msgstr[1] ""
-
-#: forum/skins/default/templates/question.html:218
-#, python-format
-msgid ""
-"The question has been closed for the following reason \"%(close_reason)s\" by"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:220
-#, python-format
-msgid "close date %(closed_at)s"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:228
-#, python-format
-msgid ""
-"\n"
-" One Answer:\n"
-" "
-msgid_plural ""
-"\n"
-" %(counter)s Answers:\n"
-" "
-msgstr[0] ""
-msgstr[1] ""
-
-#: forum/skins/default/templates/question.html:236
-msgid "oldest answers will be shown first"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:236
-msgid "oldest answers"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:238
-msgid "newest answers will be shown first"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:238
-msgid "newest answers"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:240
-msgid "most voted answers will be shown first"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:240
-msgid "popular answers"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:254
-#: forum/skins/default/templates/question.html:255
-msgid "i like this answer (click again to cancel)"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:261
-#: forum/skins/default/templates/question.html:262
-msgid "i dont like this answer (click again to cancel)"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:267
-#: forum/skins/default/templates/question.html:268
-msgid "mark this answer as favorite (click again to undo)"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:273
-#: forum/skins/default/templates/question.html:274
-msgid "the author of the question has selected this answer as correct"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:287
-msgid "answer permanent link"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:288
-msgid "permanent link"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:310
-msgid "undelete"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:345
-#, python-format
-msgid ""
-"\n"
-" see <strong>one</"
-"strong> more \n"
-" "
-msgid_plural ""
-"\n"
-" see <strong>%"
-"(counter)s</strong> more\n"
-" "
-msgstr[0] ""
-msgstr[1] ""
-
-#: forum/skins/default/templates/question.html:351
-#, python-format
-msgid ""
-"\n"
-" see <strong>one</"
-"strong> more comment\n"
-" "
-msgid_plural ""
-"\n"
-" see <strong>%"
-"(counter)s</strong> more comments\n"
-" "
-msgstr[0] ""
-msgstr[1] ""
-
-#: forum/skins/default/templates/question.html:377
-#: forum/skins/default/templates/question.html:380
-msgid "Notify me once a day when there are any new answers"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:383
-msgid "Notify me weekly when there are any new answers"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:388
-#, python-format
-msgid ""
-"\n"
-" You can always adjust frequency of email updates from your %"
-"(profile_url)s\n"
-" "
-msgstr ""
-
-#: forum/skins/default/templates/question.html:395
-msgid "once you sign in you will be able to subscribe for any updates here"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:406
-msgid "Your answer"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:408
-msgid "Be the first one to answer this question!"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:414
-msgid "you can answer anonymously and then login"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:418
-msgid "answer your own question only to give an answer"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:420
-msgid "please only give an answer, no discussions"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:456
-msgid "Login/Signup to Post Your Answer"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:459
-msgid "Answer Your Own Question"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:461
-msgid "Answer the question"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:475
-msgid "Question tags"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:485
-msgid "question asked"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:488
-msgid "question was seen"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:488
-msgid "times"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:491
-msgid "last updated"
-msgstr ""
-
-#: forum/skins/default/templates/question.html:497
-msgid "Related questions"
-msgstr ""
-
-#: forum/skins/default/templates/question_edit.html:5
-#: forum/skins/default/templates/question_edit.html:66
-msgid "Edit question"
-msgstr ""
-
-#: forum/skins/default/templates/question_edit_tips.html:4
-msgid "question tips"
-msgstr ""
-
-#: forum/skins/default/templates/question_edit_tips.html:7
-msgid "please ask a relevant question"
-msgstr ""
-
-#: forum/skins/default/templates/question_edit_tips.html:10
-msgid "please try provide enough details"
-msgstr ""
-
-#: forum/skins/default/templates/question_retag.html:5
-#: forum/skins/default/templates/question_retag.html:54
-msgid "Change tags"
-msgstr ""
-
-#: forum/skins/default/templates/question_retag.html:41
-msgid "up to 5 tags, less than 20 characters each"
-msgstr ""
-
-#: forum/skins/default/templates/question_retag.html:84
-msgid "Why use and modify tags?"
-msgstr ""
-
-#: forum/skins/default/templates/question_retag.html:87
-msgid "tags help us keep Questions organized"
-msgstr ""
-
-#: forum/skins/default/templates/question_retag.html:95
-msgid "tag editors receive special awards from the community"
-msgstr ""
-
-#: forum/skins/default/templates/questions.html:29
-msgid "Found by tags"
-msgstr ""
-
-#: forum/skins/default/templates/questions.html:33
-msgid "Search results"
-msgstr ""
-
-#: forum/skins/default/templates/questions.html:35
-msgid "Found by title"
-msgstr ""
-
-#: forum/skins/default/templates/questions.html:39
-msgid "Unanswered questions"
-msgstr ""
-
-#: forum/skins/default/templates/questions.html:41
-msgid "All questions"
-msgstr ""
-
-#: forum/skins/default/templates/questions.html:47
-msgid "most recently asked questions"
-msgstr ""
-
-#: forum/skins/default/templates/questions.html:48
-msgid "most recently updated questions"
-msgstr ""
-
-#: forum/skins/default/templates/questions.html:48
-msgid "active"
-msgstr ""
-
-#: forum/skins/default/templates/questions.html:64
-#, python-format
-msgid ""
-"\n"
-" have total %(q_num)s questions tagged %(tagname)s\n"
-" "
-msgid_plural ""
-"\n"
-" have total %(q_num)s questions tagged %(tagname)s\n"
-" "
-msgstr[0] ""
-msgstr[1] ""
-
-#: forum/skins/default/templates/questions.html:72
-#, python-format
-msgid ""
-"\n"
-" have total %(q_num)s questions containing %(searchtitle)"
-"s in full text\n"
-" "
-msgid_plural ""
-"\n"
-" have total %(q_num)s questions containing %(searchtitle)"
-"s in full text\n"
-" "
-msgstr[0] ""
-msgstr[1] ""
-
-#: forum/skins/default/templates/questions.html:78
-#, python-format
-msgid ""
-"\n"
-" have total %(q_num)s questions containing %(searchtitle)"
-"s\n"
-" "
-msgid_plural ""
-"\n"
-" have total %(q_num)s questions containing %(searchtitle)"
-"s\n"
-" "
-msgstr[0] ""
-msgstr[1] ""
-
-#: forum/skins/default/templates/questions.html:86
-#, python-format
-msgid ""
-"\n"
-" have total %(q_num)s unanswered questions\n"
-" "
-msgid_plural ""
-"\n"
-" have total %(q_num)s unanswered questions\n"
-" "
-msgstr[0] ""
-msgstr[1] ""
-
-#: forum/skins/default/templates/questions.html:92
-#, python-format
-msgid ""
-"\n"
-" have total %(q_num)s question\n"
-" "
-msgid_plural ""
-"\n"
-" have total %(q_num)s questions\n"
-" "
-msgstr[0] ""
-msgstr[1] ""
-
-#: forum/skins/default/templates/questions.html:102
-msgid "latest questions info"
-msgstr ""
-
-#: forum/skins/default/templates/questions.html:106
-msgid "Questions are sorted by the <strong>time of last update</strong>."
-msgstr ""
-
-#: forum/skins/default/templates/questions.html:107
-msgid "Most recently answered ones are shown first."
-msgstr ""
-
-#: forum/skins/default/templates/questions.html:111
-msgid "Questions sorted by <strong>number of responses</strong>."
-msgstr ""
-
-#: forum/skins/default/templates/questions.html:112
-msgid "Most answered questions are shown first."
-msgstr ""
-
-#: forum/skins/default/templates/questions.html:116
-msgid "Questions are sorted by the <strong>number of votes</strong>."
-msgstr ""
-
-#: forum/skins/default/templates/questions.html:117
-msgid "Most voted questions are shown first."
-msgstr ""
-
-#: forum/skins/default/templates/questions.html:125
-msgid "Related tags"
-msgstr ""
-
-#: forum/skins/default/templates/questions.html:128
-#: forum/skins/default/templates/tag_selector.html:10
-#: forum/skins/default/templates/tag_selector.html:27
-#, python-format
-msgid "see questions tagged '%(tag_name)s'"
-msgstr ""
-
-#: forum/skins/default/templates/reopen.html:6
-#: forum/skins/default/templates/reopen.html:16
-msgid "Reopen question"
-msgstr ""
-
-#: forum/skins/default/templates/reopen.html:19
-msgid "Open the previously closed question"
-msgstr ""
-
-#: forum/skins/default/templates/reopen.html:22
-msgid "The question was closed for the following reason "
-msgstr ""
-
-#: forum/skins/default/templates/reopen.html:22
-msgid "reason - leave blank in english"
-msgstr ""
-
-#: forum/skins/default/templates/reopen.html:22
-msgid "on "
-msgstr ""
-
-#: forum/skins/default/templates/reopen.html:22
-msgid "date closed"
-msgstr ""
-
-#: forum/skins/default/templates/reopen.html:29
-msgid "Reopen this question"
-msgstr ""
-
-#: forum/skins/default/templates/revisions_answer.html:7
-#: forum/skins/default/templates/revisions_answer.html:38
-#: forum/skins/default/templates/revisions_question.html:8
-#: forum/skins/default/templates/revisions_question.html:38
-msgid "Revision history"
-msgstr ""
-
-#: forum/skins/default/templates/revisions_answer.html:50
-#: forum/skins/default/templates/revisions_question.html:50
-msgid "click to hide/show revision"
-msgstr ""
-
-#: forum/skins/default/templates/tag_selector.html:4
-msgid "Interesting tags"
-msgstr ""
-
-#: forum/skins/default/templates/tag_selector.html:14
-#, python-format
-msgid "remove '%(tag_name)s' from the list of interesting tags"
-msgstr ""
-
-#: forum/skins/default/templates/tag_selector.html:20
-#: forum/skins/default/templates/tag_selector.html:37
-msgid "Add"
-msgstr ""
-
-#: forum/skins/default/templates/tag_selector.html:21
-msgid "Ignored tags"
-msgstr ""
-
-#: forum/skins/default/templates/tag_selector.html:31
-#, python-format
-msgid "remove '%(tag_name)s' from the list of ignored tags"
-msgstr ""
-
-#: forum/skins/default/templates/tag_selector.html:40
-msgid "keep ignored questions hidden"
-msgstr ""
-
-#: forum/skins/default/templates/tags.html:6
-#: forum/skins/default/templates/tags.html:30
-msgid "Tag list"
-msgstr ""
-
-#: forum/skins/default/templates/tags.html:32
-msgid "sorted alphabetically"
-msgstr ""
-
-#: forum/skins/default/templates/tags.html:32
-msgid "by name"
-msgstr ""
-
-#: forum/skins/default/templates/tags.html:33
-msgid "sorted by frequency of tag use"
-msgstr ""
-
-#: forum/skins/default/templates/tags.html:33
-msgid "by popularity"
-msgstr ""
-
-#: forum/skins/default/templates/tags.html:39
-msgid "All tags matching query"
-msgstr ""
-
-#: forum/skins/default/templates/tags.html:39
-msgid "all tags - make this empty in english"
-msgstr ""
-
-#: forum/skins/default/templates/tags.html:42
-msgid "Nothing found"
-msgstr ""
-
-#: forum/skins/default/templates/user_edit.html:6
-msgid "Edit user profile"
-msgstr ""
-
-#: forum/skins/default/templates/user_edit.html:19
-msgid "edit profile"
-msgstr ""
-
-#: forum/skins/default/templates/user_edit.html:31
-msgid "image associated with your email address"
-msgstr ""
-
-#: forum/skins/default/templates/user_edit.html:31
-#, python-format
-msgid "avatar, see %(gravatar_faq_url)s"
-msgstr ""
-
-#: forum/skins/default/templates/user_edit.html:36
-#: forum/skins/default/templates/user_info.html:56
-msgid "Registered user"
-msgstr ""
-
-#: forum/skins/default/templates/user_edit.html:43
-msgid "Screen Name"
-msgstr ""
-
-#: forum/skins/default/templates/user_edit.html:86
-#: forum/skins/default/templates/user_email_subscriptions.html:20
-msgid "Update"
-msgstr ""
-
-#: forum/skins/default/templates/user_email_subscriptions.html:8
-msgid "Email subscription settings"
-msgstr ""
-
-#: forum/skins/default/templates/user_email_subscriptions.html:9
-msgid "email subscription settings info"
-msgstr ""
-
-#: forum/skins/default/templates/user_email_subscriptions.html:21
-msgid "Stop sending email"
-msgstr ""
-
-#: forum/skins/default/templates/user_info.html:22
-#: forum/skins/default/templates/users.html:26 forum/views/users.py:916
-msgid "reputation"
-msgstr ""
-
-#: forum/skins/default/templates/user_info.html:32
-msgid "Moderate this user"
-msgstr ""
-
-#: forum/skins/default/templates/user_info.html:45
-msgid "update profile"
-msgstr ""
-
-#: forum/skins/default/templates/user_info.html:60
-msgid "real name"
-msgstr ""
-
-#: forum/skins/default/templates/user_info.html:65
-msgid "member for"
-msgstr ""
-
-#: forum/skins/default/templates/user_info.html:70
-msgid "last seen"
-msgstr ""
-
-#: forum/skins/default/templates/user_info.html:76
-msgid "user website"
-msgstr ""
-
-#: forum/skins/default/templates/user_info.html:82
-msgid "location"
-msgstr ""
-
-#: forum/skins/default/templates/user_info.html:89
-msgid "age"
-msgstr ""
-
-#: forum/skins/default/templates/user_info.html:90
-msgid "age unit"
-msgstr ""
-
-#: forum/skins/default/templates/user_info.html:96
-msgid "todays unused votes"
-msgstr ""
-
-#: forum/skins/default/templates/user_info.html:97
-msgid "votes left"
-msgstr ""
-
-#: forum/skins/default/templates/user_stats.html:12
-#, python-format
-msgid ""
-"\n"
-" <span class=\"count\">1</span> Question\n"
-" "
-msgid_plural ""
-"\n"
-" <span class=\"count\">%(counter)s</span> Questions\n"
-" "
-msgstr[0] ""
-msgstr[1] ""
-
-#: forum/skins/default/templates/user_stats.html:23
-#, python-format
-msgid ""
-"\n"
-" <span class=\"count\">1</span> Answer\n"
-" "
-msgid_plural ""
-"\n"
-" <span class=\"count\">%(counter)s</span> Answers\n"
-" "
-msgstr[0] ""
-msgstr[1] ""
-
-#: forum/skins/default/templates/user_stats.html:36
-#, python-format
-msgid "the answer has been voted for %(vote_count)s times"
-msgstr ""
-
-#: forum/skins/default/templates/user_stats.html:36
-msgid "this answer has been selected as correct"
-msgstr ""
-
-#: forum/skins/default/templates/user_stats.html:46
-#, python-format
-msgid ""
-"\n"
-" (one comment)\n"
-" "
-msgid_plural ""
-"\n"
-" the answer has been commented %(comment_count)s times\n"
-" "
-msgstr[0] ""
-msgstr[1] ""
-
-#: forum/skins/default/templates/user_stats.html:61
-#, python-format
-msgid ""
-"\n"
-" <span class=\"count\">1</span> Vote\n"
-" "
-msgid_plural ""
-"\n"
-" <span class=\"count\">%(cnt)s</span> Votes\n"
-" "
-msgstr[0] ""
-msgstr[1] ""
-
-#: forum/skins/default/templates/user_stats.html:72
-msgid "thumb up"
-msgstr ""
-
-#: forum/skins/default/templates/user_stats.html:73
-msgid "user has voted up this many times"
-msgstr ""
-
-#: forum/skins/default/templates/user_stats.html:77
-msgid "thumb down"
-msgstr ""
-
-#: forum/skins/default/templates/user_stats.html:78
-msgid "user voted down this many times"
-msgstr ""
-
-#: forum/skins/default/templates/user_stats.html:87
-#, python-format
-msgid ""
-"\n"
-" <span class=\"count\">1</span> Tag\n"
-" "
-msgid_plural ""
-"\n"
-" <span class=\"count\">%(counter)s</span> Tags\n"
-" "
-msgstr[0] ""
-msgstr[1] ""
-
-#: forum/skins/default/templates/user_stats.html:100
-#, python-format
-msgid ""
-"see other questions with %(view_user)s's contributions tagged '%(tag_name)s' "
-msgstr ""
-
-#: forum/skins/default/templates/user_stats.html:115
-#, python-format
-msgid ""
-"\n"
-" <span class=\"count\">1</span> Badge\n"
-" "
-msgid_plural ""
-"\n"
-" <span class=\"count\">%(counter)s</span> Badges\n"
-" "
-msgstr[0] ""
-msgstr[1] ""
-
-#: forum/skins/default/templates/user_tabs.html:7
-msgid "User profile"
-msgstr ""
-
-#: forum/skins/default/templates/user_tabs.html:7 forum/views/users.py:890
-msgid "overview"
-msgstr ""
-
-#: forum/skins/default/templates/user_tabs.html:9 forum/views/users.py:898
-msgid "recent activity"
-msgstr ""
-
-#: forum/skins/default/templates/user_tabs.html:12 forum/views/users.py:908
-msgid "comments and answers to others questions"
-msgstr ""
-
-#: forum/skins/default/templates/user_tabs.html:13 forum/views/users.py:907
-msgid "responses"
-msgstr ""
-
-#: forum/skins/default/templates/user_tabs.html:16
-msgid "graph of user reputation"
-msgstr ""
-
-#: forum/skins/default/templates/user_tabs.html:17
-msgid "reputation history"
-msgstr ""
-
-#: forum/skins/default/templates/user_tabs.html:20 forum/views/users.py:934
-msgid "user vote record"
-msgstr ""
-
-#: forum/skins/default/templates/user_tabs.html:20 forum/views/users.py:933
-msgid "casted votes"
-msgstr ""
-
-#: forum/skins/default/templates/user_tabs.html:23
-msgid "questions that user selected as his/her favorite"
-msgstr ""
-
-#: forum/skins/default/templates/user_tabs.html:24
-msgid "favorites"
-msgstr ""
-
-#: forum/skins/default/templates/user_tabs.html:27 forum/views/users.py:943
-msgid "email subscription settings"
-msgstr ""
-
-#: forum/skins/default/templates/user_tabs.html:28 forum/views/users.py:942
-msgid "email subscriptions"
-msgstr ""
-
-#: forum/skins/default/templates/users.html:6
-#: forum/skins/default/templates/users.html:24
-msgid "Users"
-msgstr ""
-
-#: forum/skins/default/templates/users.html:27
-msgid "recent"
-msgstr ""
-
-#: forum/skins/default/templates/users.html:28
-msgid "oldest"
-msgstr ""
-
-#: forum/skins/default/templates/users.html:29
-msgid "by username"
-msgstr ""
-
-#: forum/skins/default/templates/users.html:35
-#, python-format
-msgid "users matching query %(suser)s:"
-msgstr ""
-
-#: forum/skins/default/templates/users.html:39
-msgid "Nothing found."
-msgstr ""
-
-#: forum/skins/default/templates/users_questions.html:11
-msgid "this questions was selected as favorite"
-msgstr ""
-
-#: forum/skins/default/templates/users_questions.html:12
-msgid "thumb-up on"
-msgstr ""
-
-#: forum/skins/default/templates/users_questions.html:19
-msgid "thumb-up off"
-msgstr ""
-
-#: forum/skins/default/templates/auth/auth_settings.html:5
-#: forum/skins/default/templates/auth/auth_settings.html:7
-msgid "Authentication settings"
-msgstr ""
-
-#: forum/skins/default/templates/auth/auth_settings.html:9
-msgid ""
-"These are the external authentication providers currently associated with "
-"your account."
-msgstr ""
-
-#: forum/skins/default/templates/auth/auth_settings.html:12
-msgid "remove"
-msgstr ""
-
-#: forum/skins/default/templates/auth/auth_settings.html:17
-msgid ""
-"You currently have no external authentication provider associated with your "
-"account."
-msgstr ""
-
-#: forum/skins/default/templates/auth/auth_settings.html:19
-msgid "Add new provider"
-msgstr ""
-
-#: forum/skins/default/templates/auth/auth_settings.html:21
-msgid "This is where you can change your password. Make sure you remember it!"
-msgstr ""
-
-#: forum/skins/default/templates/auth/auth_settings.html:24
-msgid ""
-"You can set up a password for your account, so you can login using standard "
-"username and password!"
-msgstr ""
-
-#: forum/skins/default/templates/auth/auth_settings.html:31
-msgid "Create password"
-msgstr ""
-
-#: forum/skins/default/templates/auth/complete.html:5
-msgid "Connect your OpenID with this site"
-msgstr ""
-
-#: forum/skins/default/templates/auth/complete.html:8
-msgid "Connect your OpenID with your account on this site"
-msgstr ""
-
-#: forum/skins/default/templates/auth/complete.html:12
-msgid "You are here for the first time with "
-msgstr ""
-
-#: forum/skins/default/templates/auth/complete.html:13
-msgid ""
-"Please create your screen name and save your email address. Saved email "
-"address will let you subscribe for the updates on the most interesting "
-"questions and will be used to create and retrieve your unique avatar image. "
-msgstr ""
-
-#: forum/skins/default/templates/auth/complete.html:15
-msgid "This account already exists, please use another."
-msgstr ""
-
-#: forum/skins/default/templates/auth/complete.html:30
-msgid "Sorry, looks like we have some errors:"
-msgstr ""
-
-#: forum/skins/default/templates/auth/complete.html:47
-msgid "Screen name label"
-msgstr ""
-
-#: forum/skins/default/templates/auth/complete.html:54
-msgid "Email address label"
-msgstr ""
-
-#: forum/skins/default/templates/auth/complete.html:60
-#: forum/skins/default/templates/auth/signup.html:18
-msgid "receive updates motivational blurb"
-msgstr ""
-
-#: forum/skins/default/templates/auth/complete.html:64
-#: forum/skins/default/templates/auth/signup.html:22
-msgid "please select one of the options above"
-msgstr ""
-
-#: forum/skins/default/templates/auth/complete.html:67
-msgid "Tag filter tool will be your right panel, once you log in."
-msgstr ""
-
-#: forum/skins/default/templates/auth/complete.html:68
-msgid "create account"
-msgstr ""
-
-#: forum/skins/default/templates/auth/complete.html:77
-msgid "Existing account"
-msgstr ""
-
-#: forum/skins/default/templates/auth/complete.html:78
-msgid "user name"
-msgstr ""
-
-#: forum/skins/default/templates/auth/complete.html:79
-msgid "password"
-msgstr ""
-
-#: forum/skins/default/templates/auth/complete.html:86
-msgid "Register"
-msgstr ""
-
-#: forum/skins/default/templates/auth/complete.html:87
-msgid "Forgot your password?"
-msgstr ""
-
-#: forum/skins/default/templates/auth/email_validation.html:6
-#: forum/skins/default/templates/auth/temp_login_email.html:6
-msgid "Greetings from the Q&A forum"
-msgstr ""
-
-#: forum/skins/default/templates/auth/email_validation.html:8
-msgid "To make use of the Forum, please follow the link below:"
-msgstr ""
-
-#: forum/skins/default/templates/auth/email_validation.html:12
-msgid "Following the link above will help us verify your email address."
-msgstr ""
-
-#: forum/skins/default/templates/auth/email_validation.html:14
-#: forum/skins/default/templates/auth/temp_login_email.html:14
-msgid ""
-"If you beleive that this message was sent in mistake -\n"
-" no further action is needed. Just ingore this email, we apologize\n"
-" for any inconvenience"
-msgstr ""
-
-#: forum/skins/default/templates/auth/email_validation.html:18
-#: forum/skins/default/templates/auth/temp_login_email.html:18
-msgid ""
-"Sincerely,<br />\n"
-" Forum Administrator"
-msgstr ""
-
-#: forum/skins/default/templates/auth/signin.html:22
-msgid "User login"
-msgstr ""
-
-#: forum/skins/default/templates/auth/signin.html:34
-#: forum/skins/default/templates/auth/signin.html:84
-#: forum/skins/default/templates/auth/signin.html:90
-msgid "Or..."
-msgstr ""
-
-#: forum/skins/default/templates/auth/signin.html:37
-msgid "Click to sign in through any of these services."
-msgstr ""
-
-#: forum/skins/default/templates/auth/signin.html:42
-msgid ""
-"Take the oppurtunity to validate my email next to the external provider I "
-"choose."
-msgstr ""
-
-#: forum/skins/default/templates/auth/signin.html:92
-msgid "Click"
-msgstr ""
-
-#: forum/skins/default/templates/auth/signin.html:92
-msgid "if you're having troubles signing in."
-msgstr ""
-
-#: forum/skins/default/templates/auth/signin.html:96
-msgid "Enter your "
-msgstr ""
-
-#: forum/skins/default/templates/auth/signin.html:152
-msgid "Why use OpenID?"
-msgstr ""
-
-#: forum/skins/default/templates/auth/signin.html:155
-msgid "with openid it is easier"
-msgstr ""
-
-#: forum/skins/default/templates/auth/signin.html:158
-msgid "reuse openid"
-msgstr ""
-
-#: forum/skins/default/templates/auth/signin.html:161
-msgid "openid is widely adopted"
-msgstr ""
-
-#: forum/skins/default/templates/auth/signin.html:164
-msgid "openid is supported open standard"
-msgstr ""
-
-#: forum/skins/default/templates/auth/signin.html:169
-msgid "Find out more"
-msgstr ""
-
-#: forum/skins/default/templates/auth/signin.html:170
-msgid "Get OpenID"
-msgstr ""
-
-#: forum/skins/default/templates/auth/signup.html:4
-msgid "Signup"
-msgstr ""
-
-#: forum/skins/default/templates/auth/signup.html:8
-msgid "Create login name and password"
-msgstr ""
-
-#: forum/skins/default/templates/auth/signup.html:10
-msgid "Traditional signup info"
-msgstr ""
-
-#: forum/skins/default/templates/auth/signup.html:31
-msgid "Create Account"
-msgstr ""
-
-#: forum/skins/default/templates/auth/signup.html:33
-msgid "return to login page"
-msgstr ""
-
-#: forum/skins/default/templates/auth/temp_login_email.html:8
-msgid "You're seeing this because someone requested a temporary login link"
-msgstr ""
-
-#: forum/skins/default/templates/auth/temp_login_email.html:12
-msgid "Following the link above will give you access to your account."
-msgstr ""
-
-#: forum/skins/default/templates/auth/temp_login_request.html:5
-msgid "Request temporary login key"
-msgstr ""
-
-#: forum/skins/default/templates/auth/temp_login_request.html:7
-msgid "Account: request temporary login key"
-msgstr ""
-
-#: forum/skins/default/templates/auth/temp_login_request.html:8
-msgid ""
-"\n"
-" If you're experiencing problems accessing your account, or if you forgot "
-"your password,\n"
-" here you can request a temporary login key. Fill out your account email "
-"and we'll send you a temporary access link that\n"
-" will enable you to access your account. This token is valid only once "
-"and for a limited period of time.\n"
-" "
-msgstr ""
-
-#: forum/skins/default/templates/auth/temp_login_request.html:25
-msgid "Send link"
-msgstr ""
-
-#: forum/skins/default/templates/fbconnect/xd_receiver.html:5
-#, python-format
-msgid "Connect to %(APP_SHORT_NAME)s with Facebook!"
-msgstr ""
-
-#: forum/skins/default/templates/osqaadmin/base.html:12
-msgid "OSQA administration area"
-msgstr ""
-
-#: forum/skins/default/templates/osqaadmin/base.html:36
-msgid "Administration menu"
-msgstr ""
-
-#: forum/skins/default/templates/osqaadmin/index.html:6
-msgid "Basic settings"
-msgstr ""
-
-#: forum/skins/default/templates/osqaadmin/index.html:9
-msgid "Welcome to the OSQA administration area."
-msgstr ""
-
-#: forum/templatetags/extra_tags.py:167 forum/templatetags/extra_tags.py:194
-msgid "reputation points"
-msgstr ""
-
-#: forum/templatetags/extra_tags.py:254
-msgid "2 days ago"
-msgstr ""
-
-#: forum/templatetags/extra_tags.py:256
-msgid "yesterday"
-msgstr ""
-
-#: forum/templatetags/extra_tags.py:258
-#, python-format
-msgid "%(hr)d hour ago"
-msgid_plural "%(hr)d hours ago"
-msgstr[0] ""
-msgstr[1] ""
-
-#: forum/templatetags/extra_tags.py:260
-#, python-format
-msgid "%(min)d min ago"
-msgid_plural "%(min)d mins ago"
-msgstr[0] ""
-msgstr[1] ""
-
-#: forum/utils/forms.py:27
-msgid "this field is required"
-msgstr ""
-
-#: forum/utils/forms.py:42
-msgid "choose a username"
-msgstr ""
-
-#: forum/utils/forms.py:47
-msgid "user name is required"
-msgstr ""
-
-#: forum/utils/forms.py:48
-msgid "sorry, this name is taken, please choose another"
-msgstr ""
-
-#: forum/utils/forms.py:49
-msgid "sorry, this name is not allowed, please choose another"
-msgstr ""
-
-#: forum/utils/forms.py:50
-msgid "sorry, there is no user with this name"
-msgstr ""
-
-#: forum/utils/forms.py:51
-msgid "sorry, we have a serious error - user name is taken by several users"
-msgstr ""
-
-#: forum/utils/forms.py:52
-msgid "user name can only consist of letters, empty space and underscore"
-msgstr ""
-
-#: forum/utils/forms.py:100
-msgid "your email address"
-msgstr ""
-
-#: forum/utils/forms.py:101
-msgid "email address is required"
-msgstr ""
-
-#: forum/utils/forms.py:103
-msgid "this email is already used by someone else, please choose another"
-msgstr ""
-
-#: forum/utils/forms.py:128
-msgid "choose password"
-msgstr ""
-
-#: forum/utils/forms.py:129
-msgid "password is required"
-msgstr ""
-
-#: forum/utils/forms.py:132
-msgid "retype password"
-msgstr ""
-
-#: forum/utils/forms.py:133
-msgid "please, retype your password"
-msgstr ""
-
-#: forum/utils/forms.py:134
-msgid "sorry, entered passwords did not match, please try again"
-msgstr ""
-
-#: forum/views/auth.py:104 forum/views/auth.py:113
-msgid ""
-"Sorry, these login credentials belong to anoother user. Plese terminate your "
-"current session and try again."
-msgstr ""
-
-#: forum/views/auth.py:106
-msgid "You are already logged in with that user."
-msgstr ""
-
-#: forum/views/auth.py:111
-msgid "These login credentials are already associated with your account."
-msgstr ""
-
-#: forum/views/auth.py:117
-msgid "The new credentials are now associated with your account"
-msgstr ""
-
-#: forum/views/auth.py:155
-msgid ""
-"Oops, something went wrong in the middle of this process. Please try again."
-msgstr ""
-
-#: forum/views/auth.py:215
-msgid "Temporary login link"
-msgstr ""
-
-#: forum/views/auth.py:220
-msgid "An email has been sent with your temporary login key"
-msgstr ""
-
-#: forum/views/auth.py:235
-msgid ""
-"You are logged in with a temporary access key, please take the time to fix "
-"your issue with authentication."
-msgstr ""
-
-#: forum/views/auth.py:241
-msgid "Email Validation"
-msgstr ""
-
-#: forum/views/auth.py:252
-msgid "Thank you, your email is now validated."
-msgstr ""
-
-#: forum/views/auth.py:276
-msgid "Your password was changed"
-msgstr ""
-
-#: forum/views/auth.py:278
-msgid "New password set"
-msgstr ""
-
-#: forum/views/auth.py:311
-#, python-format
-msgid "You removed the association with %s"
-msgstr ""
-
-#: forum/views/auth.py:350
-#, python-format
-msgid "Welcome back %s, you are now logged in"
-msgstr ""
-
-#: forum/views/commands.py:218
-#, python-format
-msgid "subscription saved, %(email)s needs validation, see %(details_url)s"
-msgstr ""
-
-#: forum/views/commands.py:226
-msgid "email update frequency has been set to daily"
-msgstr ""
-
-#: forum/views/meta.py:39
-msgid "Q&A forum feedback"
-msgstr ""
-
-#: forum/views/meta.py:40
-msgid "Thanks for the feedback!"
-msgstr ""
-
-#: forum/views/meta.py:48
-msgid "We look forward to hearing your feedback! Please, give it next time :)"
-msgstr ""
-
-#: forum/views/users.py:851 forum/views/users.py:855
-msgid "changes saved"
-msgstr ""
-
-#: forum/views/users.py:861
-msgid "email updates canceled"
-msgstr ""
-
-#: forum/views/users.py:891
-msgid "user profile"
-msgstr ""
-
-#: forum/views/users.py:892
-msgid "user profile overview"
-msgstr ""
-
-#: forum/views/users.py:899
-msgid "recent user activity"
-msgstr ""
-
-#: forum/views/users.py:900
-msgid "profile - recent activity"
-msgstr ""
-
-#: forum/views/users.py:909
-msgid "profile - responses"
-msgstr ""
-
-#: forum/views/users.py:917
-msgid "user reputation in the community"
-msgstr ""
-
-#: forum/views/users.py:918
-msgid "profile - user reputation"
-msgstr ""
-
-#: forum/views/users.py:924
-msgid "favorite questions"
-msgstr ""
-
-#: forum/views/users.py:925
-msgid "users favorite questions"
-msgstr ""
-
-#: forum/views/users.py:926
-msgid "profile - favorite questions"
-msgstr ""
-
-#: forum/views/users.py:935
-msgid "profile - votes"
-msgstr ""
-
-#: forum/views/users.py:944
-msgid "profile - email subscriptions"
-msgstr ""
-
-#: forum/views/writers.py:85
-#, python-format
-msgid ""
-"Error uploading file. Please contact the site administrator. Thank you. %s"
-msgstr ""
-
-#: forum_modules/books/urls.py:7 forum_modules/books/urls.py:8
-#: forum_modules/books/urls.py:9
-msgid "books/"
-msgstr ""
-
-#: forum_modules/default_badges/badges.py:18
-#: forum_modules/default_badges/badges.py:25
-#: forum_modules/default_badges/badges.py:32
-#, python-format
-msgid "Asked a question with %s views"
-msgstr ""
-
-#: forum_modules/default_badges/badges.py:40
-#: forum_modules/default_badges/badges.py:54
-#: forum_modules/default_badges/badges.py:68
-#, python-format
-msgid "Answer voted up %s times"
-msgstr ""
-
-#: forum_modules/default_badges/badges.py:47
-#: forum_modules/default_badges/badges.py:61
-#: forum_modules/default_badges/badges.py:75
-#, python-format
-msgid "Question voted up %s times"
-msgstr ""
-
-#: forum_modules/default_badges/badges.py:83
-#: forum_modules/default_badges/badges.py:90
-#, python-format
-msgid "Question favorited by %s users"
-msgstr ""
-
-#: forum_modules/default_badges/badges.py:98
-#, python-format
-msgid "Deleted own post with score of %s or higher"
-msgstr ""
-
-#: forum_modules/default_badges/badges.py:109
-#, python-format
-msgid "Deleted own post with score of %s or lower"
-msgstr ""
-
-#: forum_modules/default_badges/badges.py:121
-msgid "First flagged post"
-msgstr ""
-
-#: forum_modules/default_badges/badges.py:128
-msgid "First down vote"
-msgstr ""
-
-#: forum_modules/default_badges/badges.py:135
-msgid "First retag"
-msgstr ""
-
-#: forum_modules/default_badges/badges.py:142
-msgid "First up vote"
-msgstr ""
-
-#: forum_modules/default_badges/badges.py:149
-msgid "First edit"
-msgstr ""
-
-#: forum_modules/default_badges/badges.py:156
-msgid "First accepted answer on your own question"
-msgstr ""
-
-#: forum_modules/default_badges/badges.py:163
-msgid "Completed all user profile fields"
-msgstr ""
-
-#: forum_modules/default_badges/badges.py:170
-msgid "First rollback"
-msgstr ""
-
-#: forum_modules/default_badges/badges.py:178
-#, python-format
-msgid "Voted %s times"
-msgstr ""
-
-#: forum_modules/default_badges/badges.py:185
-#, python-format
-msgid "Left %s comments"
-msgstr ""
-
-#: forum_modules/default_badges/badges.py:193
-#, python-format
-msgid "Answered your own question with at least %s up votes"
-msgstr ""
-
-#: forum_modules/default_badges/badges.py:206
-msgid "Strunk & White"
-msgstr ""
-
-#: forum_modules/default_badges/badges.py:207
-#, python-format
-msgid "Edited %s entries"
-msgstr ""
-
-#: forum_modules/default_badges/badges.py:218
-msgid "Asked first question with at least one up vote"
-msgstr ""
-
-#: forum_modules/default_badges/badges.py:229
-msgid "Answered first question with at least one up vote"
-msgstr ""
-
-#: forum_modules/default_badges/badges.py:260
-#, python-format
-msgid "First answer was accepted with at least %s up votes"
-msgstr ""
-
-#: forum_modules/default_badges/badges.py:271
-#, python-format
-msgid "Accepted answer and voted up %s times"
-msgstr ""
-
-#: forum_modules/default_badges/badges.py:282
-#, python-format
-msgid ""
-"Answered a question more than `%(dif_days)s` days later with at least `%"
-"(up_votes)s` votes"
-msgstr ""
-
-#: forum_modules/default_badges/badges.py:298
-#, python-format
-msgid "Created a tag used by %s questions"
-msgstr ""
-
-#: forum_modules/facebookauth/authentication.py:31
-msgid "Sorry, your Facebook session has expired, please try again"
-msgstr ""
-
-#: forum_modules/facebookauth/authentication.py:33
-msgid ""
-"The authentication with Facebook connect failed due to an invalid signature"
-msgstr ""
-
-#: forum_modules/facebookauth/authentication.py:35
-msgid ""
-"The authentication with Facebook connect failed, cannot find authentication "
-"tokens"
-msgstr ""
-
-#: forum_modules/localauth/forms.py:74
-msgid "Please enter valid username and password (both are case-sensitive)."
-msgstr ""
-
-#: forum_modules/localauth/forms.py:77
-msgid "This account is inactive."
-msgstr ""
-
-#: forum_modules/localauth/forms.py:79
-msgid "Login failed."
-msgstr ""
-
-#: forum_modules/localauth/forms.py:81
-msgid "Please enter username and password"
-msgstr ""
-
-#: forum_modules/localauth/forms.py:83
-msgid "Please enter your password"
-msgstr ""
-
-#: forum_modules/localauth/forms.py:85
-msgid "Please enter user name"
-msgstr ""
-
-#: forum_modules/localauth/urls.py:7
-msgid "local/"
-msgstr ""
-
-#: forum_modules/localauth/views.py:23
-msgid "A validation email has been sent to your email address. "
-msgstr ""
-
-#: forum_modules/oauthauth/consumer.py:33
-msgid "Error, the oauth token is not on the server"
-msgstr ""
-
-#: forum_modules/oauthauth/consumer.py:38
-msgid "Something went wrong! Auth tokens do not match"
-msgstr ""
-
-#: forum_modules/openidauth/consumer.py:40
-msgid "Sorry, but your input is not a valid OpenId"
-msgstr ""
-
-#: forum_modules/openidauth/consumer.py:92
-msgid "The OpenId authentication request was canceled"
-msgstr ""
-
-#: forum_modules/openidauth/consumer.py:94
-msgid "The OpenId authentication failed: "
-msgstr ""
-
-#: forum_modules/openidauth/consumer.py:96
-msgid "Setup needed"
-msgstr ""
-
-#: forum_modules/openidauth/consumer.py:98
-msgid "The OpenId authentication failed with an unknown status: "
-msgstr ""
-
-#: forum_modules/openidauth/templates/openidurl.html:7
-msgid "Enter your OpenId Url"
-msgstr ""
-
-#: forum_modules/project_badges/badges.py:9
-#, python-format
-msgid "Got %s upvotes in a question tagged with \"bug\""
-msgstr ""
-
-#: forum_modules/recaptcha/formfield.py:20
-msgid "Invalid captcha"
-msgstr ""
+++ /dev/null
-msgid ""
-msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-07-28 15:57+0000\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: LANGUAGE <LL@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-
-#: settings.py:12
-#, fuzzy
-msgid "account/"
-msgstr "新帐号"
-
-#: settings.py:12 django_authopenid/urls.py:9 django_authopenid/urls.py:11
-msgid "signin/"
-msgstr ""
-
-#: django_authopenid/forms.py:67 django_authopenid/views.py:93
-#, fuzzy
-msgid "i-names are not supported"
-msgstr "基本的HTML标签也是支持的"
-
-#: django_authopenid/forms.py:102 django_authopenid/forms.py:207
-msgid ""
-"Usernames can only contain letters, numbers and "
-"underscores"
-msgstr ""
-
-#: django_authopenid/forms.py:109
-msgid ""
-"This username does not exist in our database. Please "
-"choose another."
-msgstr ""
-
-#: django_authopenid/forms.py:126 django_authopenid/forms.py:231
-msgid ""
-"Please enter a valid username and password. Note that "
-"both fields are case-sensitive."
-msgstr ""
-
-#: django_authopenid/forms.py:130 django_authopenid/forms.py:235
-msgid "This account is inactive."
-msgstr ""
-
-# translation and user name validation are language-specific
-#: django_authopenid/forms.py:158
-msgid "invalid user name"
-msgstr "用户名只能包含英文字母、数字和下划线"
-
-#: django_authopenid/forms.py:160
-msgid "sorry, this name can not be used, please try another"
-msgstr "对不起,您不能注册该用户名,请换一个试试"
-
-# minimal length of user name may be language specific
-#: django_authopenid/forms.py:162
-msgid "username too short"
-msgstr "用户名太短,请使用三个或三个以上字符"
-
-#: django_authopenid/forms.py:170 django_authopenid/forms.py:171
-msgid "this name is already in use - please try anoter"
-msgstr "该用户名已被注册,请换一个试试"
-
-#: django_authopenid/forms.py:184
-msgid ""
-"This email is already registered in our database. Please "
-"choose another."
-msgstr "该电子邮件已被注册,请选择另一个再试。"
-
-#: django_authopenid/forms.py:214
-msgid ""
-"This username don't exist. Please choose another."
-msgstr ""
-
-#: django_authopenid/forms.py:253
-msgid "choose a username"
-msgstr "选择一个用户名"
-
-#: django_authopenid/forms.py:255 templates/authopenid/signup.html:36
-msgid "your email address"
-msgstr "您的电子邮件地址"
-
-#: django_authopenid/forms.py:257 templates/authopenid/signup.html:37
-msgid "choose password"
-msgstr "密码"
-
-#: django_authopenid/forms.py:259 templates/authopenid/signup.html:38
-msgid "retype password"
-msgstr "确认密码"
-
-#: django_authopenid/forms.py:330
-msgid ""
-"Old password is incorrect. Please enter the correct "
-"password."
-msgstr ""
-
-#: django_authopenid/forms.py:342
-msgid "new passwords do not match"
-msgstr ""
-
-#: django_authopenid/forms.py:434
-msgid "Incorrect username."
-msgstr "选择一个用户名"
-
-#: django_authopenid/urls.py:10
-msgid "signout/"
-msgstr ""
-
-#: django_authopenid/urls.py:11
-msgid "complete/"
-msgstr ""
-
-#: django_authopenid/urls.py:13
-#, fuzzy
-msgid "register/"
-msgstr "确认"
-
-#: django_authopenid/urls.py:14
-#, fuzzy
-msgid "signup/"
-msgstr "注册帐号"
-
-#: django_authopenid/urls.py:16
-msgid "sendpw/"
-msgstr ""
-
-#: django_authopenid/urls.py:26
-msgid "delete/"
-msgstr "删除"
-
-#: django_authopenid/views.py:99
-#, python-format
-msgid "非法OpenID地址: %s"
-msgstr ""
-
-#: django_authopenid/views.py:366
-msgid "Welcome"
-msgstr ""
-
-#: django_authopenid/views.py:456
-#, fuzzy
-msgid "Password changed."
-msgstr "密码"
-
-#: django_authopenid/views.py:488
-msgid "Email changed."
-msgstr ""
-
-#: django_authopenid/views.py:519 django_authopenid/views.py:671
-#, python-format
-msgid "No OpenID %s found associated in our database"
-msgstr ""
-
-#: django_authopenid/views.py:523 django_authopenid/views.py:678
-#, python-format
-msgid "The OpenID %s isn't associated to current user logged in"
-msgstr ""
-
-#: django_authopenid/views.py:531
-msgid "Email Changed."
-msgstr ""
-
-#: django_authopenid/views.py:606
-msgid "This OpenID is already associated with another account."
-msgstr ""
-
-#: django_authopenid/views.py:611
-#, python-format
-msgid "OpenID %s is now associated with your account."
-msgstr ""
-
-# todo please check this in chinese
-#: django_authopenid/views.py:681
-#, fuzzy
-msgid "Account deleted."
-msgstr "取消"
-
-#: django_authopenid/views.py:721
-#, fuzzy
-msgid "Request for new password"
-msgstr "重设密码"
-
-#: django_authopenid/views.py:734
-#, fuzzy
-msgid "A new password has been sent to your email address."
-msgstr "和您的邮件地址是绑定的"
-
-#: django_authopenid/views.py:764
-#, python-format
-msgid ""
-"Could not change password. Confirmation key '%s' is not "
-"registered."
-msgstr ""
-
-#: django_authopenid/views.py:773
-msgid ""
-"Can not change password. User don't exist anymore in our "
-"database."
-msgstr ""
-
-#: django_authopenid/views.py:782
-#, python-format
-msgid "Password changed for %s. You may now sign in."
-msgstr ""
-
-#: forum/const.py:8
-msgid "duplicate question"
-msgstr "完全重复的问题"
-
-# chinese translation is domain specific
-#: forum/const.py:9
-msgid "question if off-topic or not relevant"
-msgstr "不是编程技术问题"
-
-#: forum/const.py:10
-msgid "too subjective and argumentative"
-msgstr "太主观性、引起争吵的问题"
-
-#: forum/const.py:11
-msgid "is not an answer to the question"
-msgstr "不是一个可以回答的“问题”"
-
-#: forum/const.py:12
-msgid "the question is answered, right answer was accepted"
-msgstr "问题已经解决,已得到正确答案"
-
-#: forum/const.py:13
-msgid "problem is not reproducible or outdated"
-msgstr "已经过时、不可重现的问题"
-
-#: forum/const.py:15
-msgid "question contains offensive inappropriate, or malicious remarks"
-msgstr "恶意言论"
-
-#: forum/const.py:16
-msgid "spam or advertising"
-msgstr "垃圾广告"
-
-#: forum/const.py:56
-msgid "question"
-msgstr "提问"
-
-#: forum/const.py:57 templates/book.html:110
-msgid "answer"
-msgstr "回答"
-
-#: forum/const.py:58
-msgid "commented question"
-msgstr "评论问题"
-
-#: forum/const.py:59
-#, fuzzy
-msgid "commented answer"
-msgstr "修改回答"
-
-#: forum/const.py:60
-msgid "edited question"
-msgstr "修改问题"
-
-#: forum/const.py:61
-msgid "edited answer"
-msgstr "修改回答"
-
-#: forum/const.py:62
-msgid "received award"
-msgstr "获奖"
-
-#: forum/const.py:63
-msgid "marked best answer"
-msgstr "标记最佳答案"
-
-#: forum/const.py:64
-msgid "upvoted"
-msgstr "投赞成票"
-
-#: forum/const.py:65
-msgid "downvoted"
-msgstr "投反对票"
-
-#: forum/const.py:66
-msgid "canceled vote"
-msgstr "撤销投票"
-
-#: forum/const.py:67
-msgid "deleted question"
-msgstr "删除问题"
-
-#: forum/const.py:68
-msgid "deleted answer"
-msgstr "删除回答"
-
-#: forum/const.py:69
-msgid "marked offensive"
-msgstr "标记垃圾帖"
-
-#: forum/const.py:70
-msgid "updated tags"
-msgstr "更新标签"
-
-#: forum/const.py:71
-msgid "selected favorite"
-msgstr "收藏"
-
-#: forum/const.py:72
-msgid "completed user profile"
-msgstr "完成个人所有资料"
-
-#: forum/const.py:83
-msgid "[closed]"
-msgstr "[已关闭]"
-
-#: forum/const.py:84
-msgid "[deleted]"
-msgstr "[已删除]"
-
-#: forum/const.py:85
-msgid "initial version"
-msgstr "初始版本"
-
-#: forum/const.py:86
-msgid "retagged"
-msgstr "更新了标签"
-
-#: forum/feed.py:17
-msgid "site title"
-msgstr "CNProg.com"
-
-#: forum/feed.py:17
-msgid " - "
-msgstr "-"
-
-#: forum/feed.py:17
-msgid "site slogan"
-msgstr "程序员问答社区"
-
-#: forum/feed.py:17
-msgid "latest questions"
-msgstr "最新问题"
-
-#: forum/feed.py:20
-msgid "meta site content"
-msgstr "中国程序员的编程技术问答社区。我们做专业的、可协作编辑的技术问答社区。"
-
-#: forum/feed.py:22
-msgid "copyright message"
-msgstr "Copyright(c)2009.CNPROG.COM"
-
-#: forum/forms.py:14 templates/question_edit_tips.html:31
-#: templates/question_edit_tips.html:36
-msgid "title"
-msgstr "标题"
-
-#: forum/forms.py:15
-msgid "please enter a descriptive title for your question"
-msgstr ""
-"请输入对问题具有描述性质的标题 - “帮忙!紧急求助!”不是建议的提问方式。"
-
-#: forum/forms.py:20
-msgid "title must be > 10 characters"
-msgstr "标题的长度必须大于10"
-
-#: forum/forms.py:29
-msgid "content"
-msgstr "内容"
-
-#: forum/forms.py:35
-msgid "question content must be > 10 characters"
-msgstr "内容至少要10个字符"
-
-#: forum/forms.py:45 templates/header.html:30 templates/header.html.py:61
-msgid "tags"
-msgstr "标签"
-
-#: forum/forms.py:46
-msgid "please use space to separate tags (this enables autocomplete feature)"
-msgstr "多个标签请用空格间隔-最多5个标签。(优先使用自动匹配的英文标签。)"
-
-#: forum/forms.py:53
-msgid "tags are required"
-msgstr " 标签不能为空。"
-
-#: forum/forms.py:57
-msgid "please use 5 tags or less"
-msgstr "最多只能有5个标签"
-
-#: forum/forms.py:60
-msgid "tags must be shorter than 20 characters"
-msgstr "每个标签的长度不超过20"
-
-#: forum/forms.py:64
-msgid ""
-"please use following characters in tags: letters 'a-z', numbers, and "
-"characters '.-_#'"
-msgstr "标签请使用英文字母,中文或者数字字符串(. - _ # 也可以)"
-
-# index.html
-#: forum/forms.py:74 templates/index.html:56 templates/question.html:196
-#: templates/question.html.py:377 templates/unanswered.html:48
-#: templates/unanswered.html.py:60
-msgid "community wiki"
-msgstr "社区Wiki"
-
-#: forum/forms.py:75
-msgid ""
-"if you choose community wiki option, the question and answer do not generate "
-"points and name of author will not be shown"
-msgstr "选择社区wiki模式,问答不计算积分,签名也不显示作者信息"
-
-#: forum/forms.py:84
-msgid "update summary:"
-msgstr "更新概要:"
-
-#: forum/forms.py:85
-msgid ""
-"enter a brief summary of your revision (e.g. fixed spelling, grammar, "
-"improved style, this field is optional)"
-msgstr ""
-"输入本次修改的简单概述(如:修改了别字,修正了语法,改进了样式等。非必填"
-"项。)"
-
-#: forum/forms.py:160
-msgid "this email does not have to be linked to gravatar"
-msgstr "不会公开,用于头像显示服务"
-
-#: forum/forms.py:161
-msgid "Real name"
-msgstr "真实姓名"
-
-#: forum/forms.py:162
-msgid "Website"
-msgstr "个人网站"
-
-#: forum/forms.py:163
-msgid "Location"
-msgstr "城市"
-
-#: forum/forms.py:164
-msgid "Date of birth"
-msgstr "生日"
-
-#: forum/forms.py:164
-msgid "will not be shown, used to calculate age, format: YYYY-MM-DD"
-msgstr "不会公开,只会显示您的年龄,格式为:YYYY-MM-DD"
-
-#: forum/forms.py:165 templates/authopenid/settings.html:20
-msgid "Profile"
-msgstr "个人简介"
-
-#: forum/forms.py:190 forum/forms.py:191
-msgid "this email has already been registered, please use another one"
-msgstr "该电子邮件已被注册,请选择另一个再试。"
-
-#: forum/models.py:316 templates/badges.html:50
-msgid "gold"
-msgstr "金牌"
-
-#: forum/models.py:317 templates/badges.html:58
-msgid "silver"
-msgstr "银牌"
-
-#: forum/models.py:318 templates/badges.html:65
-msgid "bronze"
-msgstr ""
-
-#: forum/user.py:17 templates/user_tabs.html:7
-msgid "overview"
-msgstr "概览"
-
-#: forum/user.py:18
-#, fuzzy
-msgid "user profile"
-msgstr "用户概览"
-
-#: forum/user.py:19
-#, fuzzy
-msgid "user profile overview"
-msgstr "用户概览"
-
-#: forum/user.py:25 templates/user_tabs.html:9
-msgid "recent activity"
-msgstr "最近活动"
-
-#: forum/user.py:26
-#, fuzzy
-msgid "recent user activity"
-msgstr "最近活动"
-
-#: forum/user.py:27
-#, fuzzy
-msgid "profile - recent activity"
-msgstr "最近活动"
-
-#: forum/user.py:34 templates/user_tabs.html:13
-msgid "responses"
-msgstr "回应"
-
-#: forum/user.py:35 templates/user_tabs.html:12
-msgid "comments and answers to others questions"
-msgstr "其他用户的回复和评论"
-
-#: forum/user.py:36
-msgid "profile - responses"
-msgstr "回应 - 用户资料"
-
-#: forum/user.py:43 templates/user_info.html:23 templates/users.html:25
-msgid "reputation"
-msgstr "积分"
-
-#: forum/user.py:44
-msgid "user reputation in the community"
-msgstr "用户社区积分"
-
-#: forum/user.py:45
-msgid "profile - user reputation"
-msgstr "积分 - 用户资料"
-
-#: forum/user.py:51
-#, fuzzy
-msgid "favorite questions"
-msgstr "收藏"
-
-#: forum/user.py:52
-msgid "users favorite questions"
-msgstr "用户收藏的问题"
-
-#: forum/user.py:53
-msgid "profile - favorite questions"
-msgstr "收藏 - 用户资料"
-
-#: forum/user.py:60 templates/user_tabs.html:20
-msgid "casted votes"
-msgstr "投票"
-
-#: forum/user.py:61 templates/user_tabs.html:20
-msgid "user vote record"
-msgstr "用户所有投票"
-
-#: forum/user.py:62
-msgid "profile - votes"
-msgstr "投票 - 用户资料"
-
-#: forum/user.py:69
-msgid "preferences"
-msgstr "设置"
-
-#: forum/user.py:70 templates/user_tabs.html:28
-msgid "user preference settings"
-msgstr "用户参数的设置"
-
-#: forum/user.py:71
-msgid "profile - user preferences"
-msgstr "设置 - 用户资料"
-
-#: forum/views.py:1726
-msgid "uploading images is limited to users with >60 reputation points"
-msgstr "上传图片只限于积分+60以上注册用户!"
-
-# todo take these out of settings
-#: forum/views.py:1728
-msgid "allowed file types are 'jpg', 'jpeg', 'gif', 'bmp', 'png', 'tiff'"
-msgstr "只允许上传'jpg', 'jpeg', 'gif', 'bmp', 'png', 'tiff'类型的文件!"
-
-#: forum/views.py:1730
-#, python-format
-msgid "maximum upload file size is %sK"
-msgstr "只允许上传%sK大小的文件!"
-
-#: forum/views.py:1732
-#, fuzzy, python-format
-msgid ""
-"Error uploading file. Please contact the site administrator. Thank you. %s"
-msgstr "在文件上传过程中产生了错误,请联系管理员,谢谢^_^"
-
-#: forum/templatetags/extra_tags.py:139 forum/templatetags/extra_tags.py:168
-#: templates/header.html:33
-msgid "badges"
-msgstr "奖牌榜"
-
-#: forum/templatetags/extra_tags.py:140 forum/templatetags/extra_tags.py:167
-#, fuzzy
-msgid "reputation points"
-msgstr "积分"
-
-#: forum/templatetags/extra_tags.py:221
-#, fuzzy
-msgid " ago"
-msgstr "前"
-
-#: templates/404.html:24
-msgid "Sorry, could not find the page you requested."
-msgstr "对不起,没有找到您请求的页面!"
-
-#: templates/404.html:26
-msgid "This might have happened for the following reasons:"
-msgstr "有可能是以下原因导致:"
-
-#: templates/404.html:28
-msgid "this question or answer has been deleted;"
-msgstr "你正在查看的问题或者回答已经被删除;"
-
-#: templates/404.html:29
-msgid "url has error - please check it;"
-msgstr "请求的地址有误 - 请核实原始URL地址;"
-
-#: templates/404.html:30
-msgid ""
-"the page you tried to visit is protected or you don't have sufficient "
-"points, see"
-msgstr "访问的页面被保护或你的积分不够,参见"
-
-#: templates/404.html:31
-msgid "if you believe this error 404 should not have occured, please"
-msgstr "如果你确信不该出现404错误,请"
-
-#: templates/404.html:32
-msgid "report this problem"
-msgstr "报告这个问题"
-
-#: templates/404.html:41 templates/500.html:27
-msgid "back to previous page"
-msgstr "返回前页"
-
-#: templates/404.html:42
-msgid "see all questions"
-msgstr "查看最新问题"
-
-#: templates/404.html:43
-msgid "see all tags"
-msgstr "查看标签列表"
-
-#: templates/500.html:24
-msgid "system error log is recorded, error will be fixed as soon as possible"
-msgstr ""
-
-#: templates/500.html:25
-msgid "please report the error to the site administrators if you wish"
-msgstr ""
-
-#: templates/500.html:28
-#, fuzzy
-msgid "see latest questions"
-msgstr "最新问题"
-
-#: templates/500.html:29
-#, fuzzy
-msgid "see tags"
-msgstr "标记垃圾帖"
-
-#: templates/answer_edit.html:4 templates/answer_edit.html.py:47
-msgid "Edit answer"
-msgstr "修改回答"
-
-#: templates/answer_edit.html:24 templates/answer_edit.html.py:27
-#: templates/ask.html:25 templates/ask.html.py:28 templates/question.html:37
-#: templates/question.html.py:40 templates/question_edit.html:27
-msgid "hide preview"
-msgstr "禁用预览"
-
-#: templates/answer_edit.html:27 templates/ask.html:28
-#: templates/question.html:40 templates/question_edit.html:27
-msgid "show preview"
-msgstr "启用预览"
-
-#: templates/answer_edit.html:47 templates/question_edit.html:65
-#: templates/revisions_answer.html:36 templates/revisions_question.html:36
-msgid "back"
-msgstr "返回"
-
-#: templates/answer_edit.html:52 templates/question_edit.html:70
-#: templates/revisions_answer.html:47 templates/revisions_question.html:47
-msgid "revision"
-msgstr "版本"
-
-#: templates/answer_edit.html:55 templates/question_edit.html:74
-msgid "select revision"
-msgstr "选择版本"
-
-#: templates/answer_edit.html:62 templates/ask.html:81
-#: templates/question.html:447 templates/question_edit.html:91
-msgid "Toggle the real time Markdown editor preview"
-msgstr "打开或者关闭Markdown编辑器的实时预览"
-
-#: templates/answer_edit.html:62 templates/ask.html:81
-#: templates/question.html:447 templates/question_edit.html:91
-msgid "toggle preview"
-msgstr "预览开关"
-
-# synonym of above in Edit question
-#: templates/answer_edit.html:73 templates/question_edit.html:119
-msgid "Save edit"
-msgstr "现在修改"
-
-msgid "Save"
-msgstr "保存"
-
-#: templates/answer_edit.html:74 templates/close.html:29
-#: templates/question_edit.html:120 templates/reopen.html:30
-#: templates/user_edit.html:83
-msgid "Cancel"
-msgstr "取消"
-
-#: templates/ask.html:4 templates/ask.html.py:60
-msgid "Ask a question"
-msgstr "我要提问"
-
-#: templates/ask.html:106
-msgid "Use"
-msgstr "使用"
-
-#: templates/ask.html:106
-msgid "learn more about OpenID"
-msgstr "了解更多有关OpenID的信息"
-
-#: templates/ask.html:106 templates/authopenid/signin.html:35
-#: templates/authopenid/signin.html:61
-msgid "Login"
-msgstr "登录"
-
-#: templates/ask.html:109
-#, fuzzy
-msgid "Get your own "
-msgstr "获取您自己的"
-
-#: templates/ask.html:117 templates/authopenid/sendpw.html:27
-msgid "User name"
-msgstr "您的大名"
-
-#: templates/ask.html:120
-msgid "Email: (won't be shown to anyone)"
-msgstr "电子邮件:(不会公开显示)"
-
-#: templates/ask.html:127
-msgid "Ask your question"
-msgstr "现在提问"
-
-#: templates/badge.html:6 templates/badge.html.py:17
-msgid "Badge"
-msgstr "奖牌"
-
-#: templates/badge.html:26
-msgid "The users have been awarded with badges:"
-msgstr "用户已被授予该奖牌:"
-
-#: templates/badges.html:5
-#, fuzzy
-msgid "Badges summary"
-msgstr "奖牌列表"
-
-#: templates/badges.html:16 templates/user_stats.html:113
-msgid "Badges"
-msgstr "枚奖牌"
-
-#: templates/badges.html:20
-#, fuzzy
-msgid ""
-"Community gives you awards for your questions, answers and votes. Below is "
-"the list of available badges and number of times each type of badge has been "
-"awarded."
-msgstr "这里列出社区所有的奖牌,以及到目前为此,每个奖牌被授予的用户人数。"
-
-#: templates/badges.html:47
-msgid "Community badges"
-msgstr "社区奖牌"
-
-#: templates/badges.html:53
-msgid "gold badge description"
-"Gold badge is very rare. To obtain it you have to show profound knowledge "
-"and ability in addition to actively participating in the community. Gold "
-"badge is the highest award in this community."
-msgstr ""
-"金牌是十分罕见的。你不仅要参与社区的提问、回答、投票等活动,而且需要有高深的知识和能力才能获"
-"得。"
-
-#: templates/badges.html:61
-msgid "silver badge description"
-"Obtaining silver badge requires significant patience. If you got one, you've "
-"very significantly contributed to this community"
-msgstr "它是不同寻常的荣誉,只要你付出足够的努力就会得到。"
-
-#: templates/badges.html:64
-msgid "bronze badge: often given as a special honor"
-msgstr "铜牌:时常授予之特殊荣誉"
-
-msgid "Connect with Twitter"
-msgstr "同步Twitter消息"
-
-msgid "Twitter account name:"
-msgstr "账号:"
-
-msgid "Twitter password:"
-msgstr "密码:"
-
-msgid "Send my Questions to Twitter"
-msgstr "发布我的提问到我的Twitter"
-
-msgid "Send my Answers to Twitter"
-msgstr "发布我的回答到我的Twitter"
-
-#: templates/badges.html:68
-#, fuzzy
-msgid "bronze badge description"
-"If you are active in this community, you will get this medal - still it is a "
-"special honor."
-msgstr "铜牌会在你活跃于社区时产生,它相对容易获得,但也是一种特殊的荣誉。"
-
-# base_content.html
-#: templates/base.html:61 templates/base_content.html:60
-msgid "congratulations, community gave you a badge"
-msgstr "恭喜您,社区给您颁发了奖牌"
-
-#: templates/base.html:63 templates/base_content.html:62
-msgid "profile"
-msgstr "个人资料"
-
-#: templates/base_content.html:61
-msgid "see"
-msgstr "查看"
-
-# templates/book.html 78
-#: templates/book.html:7
-msgid "reading channel"
-msgstr "读书频道"
-
-#: templates/book.html:26
-msgid "[author]"
-msgstr "【作者】"
-
-#: templates/book.html:30
-msgid "[publisher]"
-msgstr "【出版社】"
-
-#: templates/book.html:34
-msgid "[publication date]"
-msgstr "【出版日期】"
-
-#: templates/book.html:38
-msgid "[price]"
-msgstr "【价格】"
-
-#: templates/book.html:39
-msgid "currency unit"
-msgstr ""
-
-#: templates/book.html:42
-msgid "[pages]"
-msgstr "【页数】"
-
-#: templates/book.html:43
-msgid "pages abbreviation"
-msgstr ""
-
-#: templates/book.html:46
-msgid "[tags]"
-msgstr "【标签】"
-
-#: templates/book.html:56
-msgid "author blog"
-msgstr "作者博客"
-
-#: templates/book.html:62
-msgid "book directory"
-msgstr "书籍目录"
-
-#: templates/book.html:66
-msgid "buy online"
-msgstr "网上购买"
-
-#: templates/book.html:79
-msgid "reader questions"
-msgstr "答读者问"
-
-#: templates/book.html:82
-msgid "ask the author"
-msgstr "向作者提问"
-
-#: templates/book.html:88 templates/book.html.py:93
-#: templates/users_questions.html:17
-msgid "this question was selected as favorite"
-msgstr "这个问题被"
-
-#: templates/book.html:88 templates/book.html.py:93
-#: templates/users_questions.html:11 templates/users_questions.html.py:17
-msgid "number of times"
-msgstr "位用户收藏"
-
-#: templates/book.html:105 templates/index.html:47
-#: templates/unanswered.html:37 templates/users_questions.html:30
-msgid "votes"
-msgstr "票"
-
-#: templates/book.html:108
-msgid "the answer has been accepted to be correct"
-msgstr "有答案已被接受为正确答案"
-
-#: templates/book.html:115 templates/index.html:48
-#: templates/unanswered.html:38 templates/users_questions.html:40
-msgid "views"
-msgstr "浏览"
-
-# book.html line 123 must be empty in english
-#: templates/book.html:125 templates/index.html:68 templates/question.html:112
-#: templates/question.html.py:479 templates/tags.html:46
-#: templates/unanswered.html:75 templates/unanswered.html.py:109
-#: templates/users_questions.html:52
-msgid "using tags"
-msgstr "的问题"
-
-#: templates/book.html:147
-msgid "subscribe to book RSS feed"
-msgstr "RSS订阅该图书最新问题"
-
-#: templates/book.html:147 templates/index.html:115
-msgid "subscribe to the questions feed"
-msgstr "订阅最>新问题"
-
-# close.html
-#: templates/close.html:6 templates/close.html.py:16
-msgid "Close question"
-msgstr "关闭问题"
-
-#: templates/close.html:19
-msgid "Close the question"
-msgstr "由于以下原因,你要关闭这个问题"
-
-#: templates/close.html:25
-msgid "Reasons"
-msgstr "原因"
-
-#: templates/close.html:28
-msgid "OK to close"
-msgstr "确定关闭"
-
-#: templates/footer.html:5
-#, fuzzy
-msgid "About us"
-msgstr "关于本站"
-
-#: templates/footer.html:6 templates/header.html:13 templates/index.html:83
-msgid "faq"
-msgstr "常见问题"
-
-#: templates/footer.html:8
-#, fuzzy
-msgid "Contact"
-msgstr "联系我们"
-
-#: templates/footer.html:9
-#, fuzzy
-msgid "Privacy"
-msgstr "隐私政策"
-
-#: templates/footer.html:10
-#, fuzzy
-msgid "Feedback"
-msgstr "问题反馈"
-
-#: templates/header.html:8
-msgid "logout"
-msgstr "退出登录"
-
-#: templates/header.html:10 templates/authopenid/signup.html:39
-msgid "login"
-msgstr "登录"
-
-# footer.html
-#: templates/header.html:12 templates/index.html:82
-msgid "about"
-msgstr "关于本站"
-
-#: templates/header.html:23
-msgid "back to home page"
-msgstr "回到首页"
-
-#: templates/header.html:29 templates/header.html.py:60
-msgid "questions"
-msgstr "问题"
-
-#: templates/header.html:31 templates/header.html.py:62
-msgid "users"
-msgstr "用户"
-
-#: templates/header.html:32
-msgid "books"
-msgstr "读书"
-
-#: templates/header.html:34 templates/index.html:120
-msgid "unanswered questions"
-msgstr "没有回答的问题"
-
-#: templates/header.html:38
-msgid "my profile"
-msgstr "我的资料"
-
-#: templates/header.html:42
-msgid "ask a question"
-msgstr "我要提问"
-
-#: templates/header.html:57
-msgid "search"
-msgstr "搜索"
-
-#: templates/index.html:6
-msgid "Home"
-msgstr "首页"
-
-#: templates/index.html:21
-msgid "Questions"
-msgstr "问题列表"
-
-#: templates/index.html:23
-msgid "last updated questions"
-msgstr "最新更新的问题"
-
-#: templates/index.html:23 templates/unanswered.html:20
-msgid "newest"
-msgstr "最新问题"
-
-#: templates/index.html:24
-msgid "hottest questions"
-msgstr "被回复最多的问题"
-
-#: templates/index.html:24
-msgid "hottest"
-msgstr "热门问题"
-
-#: templates/index.html:25
-msgid "most voted questions"
-msgstr "投票次数最多的问题"
-
-#: templates/index.html:25
-#"最有价值问题"
-#"最新问题"
-msgid "most voted"
-msgstr "最有价值的问题"
-
-#: templates/index.html:26
-msgid "all questions"
-msgstr "全部问题"
-
-#: templates/index.html:46 templates/unanswered.html:36
-#: templates/users_questions.html:35
-msgid "answers"
-msgstr "回答"
-
-# must have extra space after in english
-#: templates/index.html:68 templates/question.html:112
-#: templates/question.html.py:479 templates/tags.html:46
-#: templates/unanswered.html:75 templates/unanswered.html.py:109
-#: templates/users_questions.html:52
-msgid "see questions tagged"
-msgstr "查看有关"
-
-#: templates/index.html:79
-msgid "welcome to website"
-msgstr "CNProg欢迎您!"
-
-#: templates/index.html:88
-msgid "Recent tags"
-msgstr "最新标签"
-
-# this is how above two are supposed to be
-#: templates/index.html:93
-#, fuzzy, python-format
-msgid "see questions tagged '%(tagname)s'"
-msgstr "查看有关'%(tagname)s'的问题"
-
-#: templates/index.html:96 templates/index.html.py:120
-msgid "popular tags"
-msgstr "受欢迎的标签"
-
-#: templates/index.html:100
-msgid "Recent awards"
-msgstr "最新奖牌"
-
-#: templates/index.html:106
-msgid "given to"
-msgstr "授予"
-
-#: templates/index.html:111
-msgid "all awards"
-msgstr "所有奖牌"
-
-#: templates/index.html:115
-msgid "subscribe to last 30 questions by RSS"
-msgstr "RSS订阅最新30个问题"
-
-#: templates/index.html:120
-msgid "Still looking for more? See"
-msgstr "在寻找更多问题吗?请查阅"
-
-#: templates/index.html:120
-#, fuzzy
-msgid "complete list of quesionts"
-msgstr "全部问题列表"
-
-#: templates/index.html:120
-msgid "or"
-msgstr "或者"
-
-#: templates/index.html:120
-msgid "."
-msgstr "。"
-
-#: templates/pagesize.html:5
-msgid "posts per page"
-msgstr "每页显示:"
-
-#: templates/paginator.html:5
-msgid "previous"
-msgstr "上一页"
-
-#: templates/questions.html:22
-msgid "Found by tags"
-msgstr "标签问题"
-
-#: templates/questions.html:25
-msgid "Active"
-msgstr "活跃问题"
-
-#: templates/authopenid/changeemail.html:10
-msgid "Account: change email"
-msgstr "修改电子邮件"
-
-#: templates/index.html:120
-msgid "Please help us answer"
-msgstr "请帮助我们回答"
-
-#: templates/logout.html:6 templates/logout.html.py:17
-msgid "Logout"
-msgstr "退出登录"
-
-#: templates/logout.html:20
-msgid ""
-"As a registered user you can login with your OpenID, log out of the site or "
-"permanently remove your account."
-msgstr ""
-"您是系统的<strong class=\"darkred\">注册</strong>用户,可以随时使用OpenID帐号"
-"登录系统或者注销登录。"
-
-#: templates/logout.html:21
-msgid "Logout now"
-msgstr "点击退出登录"
-
-#: templates/pagesize.html:5
-#, fuzzy
-msgid "Size per page:"
-msgstr "每页显示"
-
-#: templates/privacy.html:6 templates/privacy.html.py:11
-msgid "Privacy policy"
-msgstr "隐私政策"
-
-#: templates/privacy.html:15
-msgid "general message about privacy"
-msgstr ""
-"CNProg承认用户隐私的重要性。本文件概述在您浏览CNProg过程中所接收和收集的个人"
-"信息的种类,以及CNProg所采取的保护信息的一些措施。CNProg希望这将有助于您在知"
-"情的情况下,就和我们 共享个人信息的问题作出决定。"
-
-#: templates/privacy.html:18
-msgid "Site Visitors"
-msgstr "网站访问者"
-
-#: templates/privacy.html:20
-msgid "what technical information is collected about visitors"
-msgstr ""
-"当您访问本网站或使用我们的某些在线服务时,服务器会自动记录信息,包括但不限于"
-"URL、IP地址、浏览器的类型、屏幕分辨率、系统类型和使用的语言以及访问日期和时"
-"间。我们的目的是为了向您>提供更好的用户服务,包括可能为您提供定制的在线服务。"
-
-#: templates/privacy.html:23
-msgid "Personal Information"
-msgstr "个人身份信息"
-
-#: templates/privacy.html:25
-msgid "details on personal information policies"
-msgstr ""
-"在登录使用CNProg的提问和回答功能时,我们要求使用者提供用户名、密码、电子邮件"
-"等信息。CNProg收集这类关于个人身份的信息只是为了登录系统获得使用功能的目的。"
-"我们不会向任何其他社区用 户、个人或第三方透露您的密码或者电子邮件信息。用户可"
-"以选择性地填写用户资料、个人网站、年龄、城市等信息,我们收集这些内容为了使用"
-"户能够更容易和更满意地使用CNProg提供的网页和服务。"
-
-#: templates/privacy.html:28
-msgid "Other Services"
-msgstr "其他服务"
-
-#: templates/privacy.html:30
-msgid "details on sharing data with third parties"
-msgstr ""
-"CNProg可能会收集和统计用户访问本站的概况数据。例如,CNProg可能会检测网站最流"
-"行的部分功能。CNProg可能会公开显示或者提供给第三方使用该数据。但是,CNProg不"
-"会公开您的身份信息。"
-
-#: templates/privacy.html:35
-msgid "cookie policy details"
-msgstr ""
-"访问CNProg时,我们会向您的计算机发送一个或多个专门用于识别您的浏览器的Cookie"
-"(包含一个字符串的小文件)。 使用 Cookie 的目的是通过储存用户偏好、跟踪用户倾"
-"向(例如搜索方法)来提高我们的服务质量。大多数浏览器的初始设置均为接受 "
-"Cookie,但也可以将其重置为拒绝所有 Cookie 或在收到 Cookie 时提示。不过,如果"
-"禁用 Cookie,某些功能和服务可能无法正常运行。"
-
-#: templates/privacy.html:37
-msgid "Policy Changes"
-msgstr "政策更改"
-
-#: templates/privacy.html:38
-#, fuzzy
-msgid "how privacy policies can be changed"
-msgstr ""
-"我们可能在事先通知或不通知的情况下随时更改此'隐私政策',我们建议用户时常查看"
-"CNProg隐私政策的改动,在任何改动生效后您的继续访问和使用本站,我们假设您已同"
-"意了CNProg以上的所有条款。"
-
-#: templates/question.html:66 templates/question.html.py:78
-msgid "i like this post (click again to cancel)"
-msgstr "这篇帖子有价值(再次点击取消操作)"
-
-#: templates/question.html:68 templates/question.html.py:80
-#: templates/question.html:273
-msgid "current number of votes"
-msgstr "当前总票数"
-
-#: templates/question.html:73 templates/question.html.py:84
-msgid "i dont like this post (click again to cancel)"
-msgstr "这篇帖子没有价值(再次点击取消操作)"
-
-#: templates/question.html:90
-msgid "mark this question as favorite (click again to cancel)"
-msgstr "我要收藏这个问题(再次点击取消操作)"
-
-#: templates/question.html:96
-msgid "remove favorite mark from this question (click again to restore mark)"
-msgstr "我要收藏这个问题(再次点击取消操作)"
-
-#: templates/question.html:121 templates/question.html.py:304
-#: templates/revisions_answer.html:53 templates/revisions_question.html:53
-msgid "edit"
-msgstr "编辑"
-
-#: templates/question.html:125 templates/question.html.py:314
-msgid "delete"
-msgstr "删除"
-
-#: templates/question.html:130
-msgid "reopen"
-msgstr "打开"
-
-#: templates/question.html:135
-msgid "close"
-msgstr "关闭"
-
-#: templates/question.html:141 templates/question.html.py:327
-msgid ""
-"report as offensive (i.e containing spam, advertising, malicious text, etc.)"
-msgstr "检举该帖为垃“水帖”(含广告、人身攻击、恶意言论等)"
-
-#: templates/question.html:142 templates/question.html.py:328
-msgid "flag offensive"
-msgstr "垃圾帖?"
-
-#: templates/question.html:154 templates/question.html.py:337
-#: templates/revisions_answer.html:65 templates/revisions_question.html:65
-msgid "updated"
-msgstr "更新于"
-
-#: templates/question.html:203 templates/question.html.py:384
-#: templates/revisions_answer.html:63 templates/revisions_question.html:63
-msgid "asked"
-msgstr "提问于"
-
-#: templates/question.html:233 templates/question.html.py:411
-msgid "comments"
-msgstr "评论"
-
-#: templates/question.html:234 templates/question.html.py:412
-msgid "add comment"
-msgstr "添加评论"
-
-#: templates/question.html:247
-#, fuzzy, python-format
-msgid ""
-"The question has been closed for the following reason \"%(question."
-"get_close_reason_display)s\" by"
-msgstr "问题以“%s”的原因已被"
-
-#: templates/question.html:249
-#, fuzzy, python-format
-msgid "close date %(question.closed_at)s"
-msgstr "由于以下原因,你要关闭这个问题"
-
-#: templates/question.html:256 templates/questions.html:44
-#: templates/user_stats.html:28
-msgid "Answers"
-msgstr "个回答"
-
-#: templates/question.html:258
-msgid "oldest answers will be shown first"
-msgstr "最先回答显示在最前面"
-
-#: templates/question.html:258
-msgid "oldest answers"
-msgstr "最先回答"
-
-#: templates/question.html:259
-msgid "newest answers will be shown first"
-msgstr "最晚回答显示在最前面"
-
-#: templates/question.html:259
-msgid "newest answers"
-msgstr "最近回答"
-
-#: templates/question.html:260
-msgid "most voted answers will be shown first"
-msgstr "投票次数最多的显示在最前面"
-
-#: templates/question.html:260
-msgid "popular answers"
-msgstr "投票最多"
-
-#: templates/question.html:272
-msgid "i like this answer (click again to cancel)"
-msgstr "这篇帖子有价值(再次点击取消操作)"
-
-#: templates/question.html:278
-msgid "i dont like this answer (click again to cancel)"
-msgstr "这篇帖子没有价值(再次点击取消操作)"
-
-#: templates/question.html:284
-msgid "mark this answer as favorite (click again to undo)"
-msgstr "最佳答案(再次点击取消操作)"
-
-#: templates/question.html:289
-msgid "the author of the question has selected this answer as correct"
-msgstr "这个答案已经被提问作者标记为最佳答案"
-
-# todo please check this in chinese
-#: templates/question.html:311
-msgid "undelete"
-msgstr "取消"
-
-#: templates/question.html:321
-msgid "answer permanent link"
-msgstr "该回答的链接地址"
-
-#: templates/question.html:322
-msgid "permanent link"
-msgstr "永久链接"
-
-#: templates/question.html:436
-msgid "Your answer"
-msgstr "您的回答"
-
-#: templates/question.html:460
-msgid "Answer the question"
-msgstr "回答该问题"
-
-#: templates/question.html:462
-msgid "Login to answer"
-msgstr "登录并回答该问题"
-
-#: templates/question.html:474
-msgid "Question tags"
-msgstr "您正在浏览的问题含有以下标签"
-
-#: templates/question.html:484
-#, fuzzy
-msgid "question asked"
-msgstr "提问时间"
-
-#: templates/question.html:484 templates/question.html.py:490
-#: templates/user_info.html:51
-msgid "ago"
-msgstr "前"
-
-#: templates/question.html:487
-msgid "question was seen"
-msgstr "目前浏览数量"
-
-#: templates/question.html:487
-msgid "times"
-msgstr "次"
-
-#: templates/question.html:490
-msgid "last updated"
-msgstr "最后更新时间"
-
-#: templates/question.html:495
-#, fuzzy
-msgid "Related questions"
-msgstr "相似的问题"
-
-# page title
-#: templates/question_edit.html:4 templates/question_edit.html.py:65
-msgid "Edit question"
-msgstr "修改问题"
-
-#: templates/question_edit_tips.html:4
-msgid "question tips"
-msgstr "受欢迎的提问"
-
-#: templates/question_edit_tips.html:7
-#, fuzzy
-msgid "please ask a relevant question"
-msgstr "我要提问"
-
-#: templates/question_edit_tips.html:10
-#, fuzzy
-msgid "please try provide enough details"
-msgstr "请详细描述您的问题。"
-
-#: templates/question_edit_tips.html:13
-msgid "be clear and concise"
-msgstr "我们推荐您使用中文描述问题,这样可以得到更多的答复机会。"
-
-#: templates/question_edit_tips.html:16
-msgid "see frequently asked questions"
-msgstr "查看常见问题"
-
-#: templates/question_edit_tips.html:22
-msgid "Markdown tips"
-msgstr "Markdown快速参考"
-
-#: templates/question_edit_tips.html:25
-#, fuzzy
-msgid "*italic* or __italic__"
-msgstr "*斜体* 或者 _斜体_"
-
-#: templates/question_edit_tips.html:28
-msgid "**bold** or __bold__"
-msgstr "**加粗** 或者 __加粗__ "
-
-#: templates/question_edit_tips.html:31
-msgid "link"
-msgstr "链接"
-
-#: templates/question_edit_tips.html:31 templates/question_edit_tips.html:36
-msgid "text"
-msgstr "文本"
-
-#: templates/question_edit_tips.html:36
-msgid "image"
-msgstr "图片"
-
-#: templates/question_edit_tips.html:40
-msgid "numbered list:"
-msgstr "列表:"
-
-#: templates/question_edit_tips.html:45
-msgid "basic HTML tags are also supported"
-msgstr "基本的HTML标签也是支持的"
-
-#: templates/question_edit_tips.html:48
-msgid "learn more about Markdown"
-msgstr "有关Markdown详细说明"
-
-#: templates/questions.html:22
-msgid "All questions"
-msgstr "所有问题"
-
-#: templates/questions.html:26
-#, fuzzy
-msgid "Questions with most answers"
-msgstr "您正在浏览的问题含有以下标签"
-
-#: templates/questions.html:27
-msgid "Questions with most votes"
-msgstr ""
-
-# index.html
-#: templates/questions.html:57 templates/questions.html.py:69
-msgid "Community wiki"
-msgstr "社区Wiki"
-
-# must have extra space after in english
-#: templates/questions.html:83
-#, fuzzy
-msgid "Browse questions with tag of "
-msgstr "查看有关"
-
-#: templates/questions.html:125 templates/unanswered.html:105
-msgid "Related tags"
-msgstr "相关标签"
-
-#: templates/reopen.html:6 templates/reopen.html.py:16
-msgid "Reopen question"
-msgstr "重设问题"
-
-#: templates/reopen.html:19
-msgid "Open the previously closed question"
-msgstr "你将打开这个已经被关闭的问题"
-
-#: templates/reopen.html:22
-#, fuzzy
-msgid "The question was closed for the following reason "
-msgstr "问题曾以"
-
-#: templates/reopen.html:22
-msgid "reason - leave blank in english"
-msgstr "的原因被"
-
-#: templates/reopen.html:22
-#, fuzzy
-msgid "on "
-msgstr "于"
-
-#: templates/reopen.html:22
-msgid "date closed"
-msgstr "关闭"
-
-#: templates/reopen.html:29
-#, fuzzy
-msgid "Reopen this question"
-msgstr "确定打开这个问题"
-
-# revisions_answer.html
-#: templates/revisions_answer.html:7 templates/revisions_answer.html.py:36
-#: templates/revisions_question.html:8 templates/revisions_question.html:36
-msgid "Revision history"
-msgstr "版本历史"
-
-#: templates/tags.html:5 templates/tags.html.py:28
-msgid "Tag list"
-msgstr "标签列表"
-
-#: templates/tags.html:30
-msgid "sorted alphabetically"
-msgstr "按名称的字母先后顺序排序"
-
-#: templates/tags.html:30
-msgid "by name"
-msgstr "按名称排序"
-
-#: templates/tags.html:31
-msgid "sorted by frequency of tag use"
-msgstr "按标签被使用的次数排序"
-
-#: templates/tags.html:31
-#, fuzzy
-msgid "by popularity"
-msgstr "按流行程度排序"
-
-#: templates/tags.html:37
-msgid "All tags matching query"
-msgstr "匹配查询"
-
-#: templates/tags.html:37
-msgid "all tags - make this empty in english"
-msgstr "的所有标签"
-
-#: templates/tags.html:40
-#, fuzzy
-msgid "Nothing found"
-msgstr "没有找到相关数据。"
-
-#: templates/unanswered.html:7 templates/unanswered.html.py:18
-msgid "Unanswered questions"
-msgstr "没有回答的问题"
-
-#: templates/unanswered.html:20
-msgid "most recently asked questions"
-msgstr "最新加入系统的问题"
-
-#: templates/unanswered.html:97
-#, python-format
-msgid "have %(num_q)s unanswered questions"
-msgstr ""
-"您正在浏览所有<br><div class=\"questions-count\">%(num_q)s</div>个<p>问题按 "
-"<strong>问题创建时间</strong> 排序。最新加入的问题将显示在最前面。</p>"
-
-# in unanswered.html and somewhere else
-#: templates/unanswered.html:99
-msgid "Have a total of"
-msgstr "您正在浏览所有"
-
-#: templates/user_edit.html:6
-msgid "Edit user profile"
-msgstr "修改个人资料"
-
-#: templates/user_edit.html:19
-msgid "edit profile"
-msgstr "修改资料"
-
-#: templates/user_edit.html:31
-msgid "image associated with your email address"
-msgstr "和您的邮件地址是绑定的"
-
-#: templates/user_edit.html:31
-msgid "avatar"
-msgstr "修改头像"
-
-#: templates/user_edit.html:36 templates/user_info.html:31
-msgid "Registered user"
-msgstr "注册用户"
-
-#: templates/user_edit.html:82
-msgid "Update"
-msgstr "更新"
-
-#: templates/user_info.html:34
-msgid "update profile"
-msgstr "更新我的资料"
-
-#: templates/user_info.html:40
-msgid "real name"
-msgstr "姓名"
-
-#: templates/user_info.html:45
-msgid "member for"
-msgstr "已加入"
-
-#: templates/user_info.html:50
-msgid "last seen"
-msgstr "上次活动时间"
-
-#: templates/user_info.html:56
-msgid "user website"
-msgstr "个人网站"
-
-#: templates/user_info.html:62
-msgid "location"
-msgstr "城市"
-
-# user_info.html
-#: templates/user_info.html:69
-msgid "age"
-msgstr "年龄"
-
-#: templates/user_info.html:70
-msgid "age unit"
-msgstr "岁"
-
-#: templates/user_info.html:75
-msgid "todays unused votes"
-msgstr "今日剩余投票数"
-
-#: templates/user_info.html:76
-msgid "votes left"
-msgstr "票"
-
-#: templates/user_stats.html:15
-msgid "User questions"
-msgstr "个问题"
-
-#: templates/user_stats.html:37
-#, fuzzy, python-format
-msgid "the answer has been voted for %(vote_count)s times"
-msgstr "该回答总共有%d个投票"
-
-#: templates/user_stats.html:37
-msgid "this answer has been selected as correct"
-msgstr "该回答已被设为最佳答案"
-
-#: templates/user_stats.html:43
-#, fuzzy, python-format
-msgid "the answer has been commented %(answered_question.comment_count)s times"
-msgstr "该回答有%d条评论"
-
-#: templates/user_stats.html:56
-msgid "votes total"
-msgstr "个投票"
-
-#: templates/user_stats.html:65
-msgid "user has voted up this many times"
-msgstr "该用户投的赞成票总数"
-
-#: templates/user_stats.html:70
-#, fuzzy
-msgid "user voted down this many times"
-msgstr "用户投的反对票总数"
-
-#: templates/user_stats.html:84
-msgid "Tags"
-msgstr "个标签"
-
-msgid "Tags help us keep Questions organized"
-msgstr "CNProg用标签来分类系统的信息"
-
-#: templates/user_stats.html:94
-#, fuzzy, python-format
-msgid "see other questions tagged '%(tag)s' "
-msgstr "查看有关'%s'的问题"
-
-#: templates/user_tabs.html:7
-msgid "User profile"
-msgstr "用户概览"
-
-#: templates/user_tabs.html:16
-msgid "graph of user reputation"
-msgstr "用户的社区积分历史"
-
-#: templates/user_tabs.html:17
-msgid "reputation history"
-msgstr "积分"
-
-#: templates/user_tabs.html:24
-msgid "favorites"
-msgstr "收藏"
-
-#: templates/user_tabs.html:29
-msgid "settings"
-msgstr "设置"
-
-#: templates/user_votes.html:14
-msgid "upvote"
-msgstr "投赞成票"
-
-#: templates/user_votes.html:16
-msgid "downvote"
-msgstr "投反对票"
-
-#: templates/users.html:5 templates/users.html.py:23
-msgid "Users"
-msgstr "用户列表"
-
-#: templates/users.html:26
-msgid "recent"
-msgstr "最新加入"
-
-#: templates/users.html:27
-msgid "oldest"
-msgstr "最先加入"
-
-#: templates/users.html:28
-msgid "by username"
-msgstr "用户名"
-
-#: templates/users.html:34
-#, fuzzy, python-format
-msgid "users matching query %(suser)s:"
-msgstr ""
-"匹配查询 '<span class=\"darkred\"><strong>%s</strong></span>' 的所有用户名:"
-
-#: templates/users.html:38
-msgid "Nothing found."
-msgstr "没有找到相关数据。"
-
-#: templates/users_questions.html:11
-#, fuzzy
-msgid "this questions was selected as favorite"
-msgstr "这个问题被"
-
-#: templates/users_questions.html:33
-#, fuzzy
-msgid "this answer has been accepted to be correct"
-msgstr "有答案已被接受为正确答案"
-
-#: templates/authopenid/changeemail.html:9
-msgid ""
-"This is where you can change the email address associated with your account. "
-"Please keep this email address up to date so we can send you a password-"
-"reset email if you request one."
-msgstr ""
-
-#: templates/authopenid/changeemail.html:11
-#: templates/authopenid/changeopenid.html:13
-#: templates/authopenid/changepw.html:18 templates/authopenid/delete.html:14
-#: templates/authopenid/delete.html:24
-msgid "Please correct errors below:"
-msgstr ""
-
-#: templates/authopenid/changeemail.html:28
-msgid "Email"
-msgstr ""
-
-#: templates/authopenid/changeemail.html:29
-#: templates/authopenid/signin.html:60
-msgid "Password"
-msgstr "密码"
-
-#: templates/authopenid/changeemail.html:31
-msgid "Change email"
-msgstr "更换电子邮件"
-
-#: templates/authopenid/changeopenid.html:7
-#, fuzzy
-msgid "Account: change OpenID URL"
-msgstr "更换OpenID地址"
-
-#: templates/authopenid/changeopenid.html:11
-msgid ""
-"This is where you can change your OpenID URL. Make sure you remember it!"
-msgstr ""
-
-#: templates/authopenid/changeopenid.html:28
-msgid "OpenID URL:"
-msgstr ""
-
-#: templates/authopenid/changeopenid.html:29
-msgid "Change OpenID"
-msgstr "更换OpenID地址"
-
-#: templates/authopenid/changepw.html:13
-#, fuzzy
-msgid "Account: change password"
-msgstr "修改密码"
-
-#: templates/authopenid/changepw.html:16
-msgid "This is where you can change your password. Make sure you remember it!"
-msgstr ""
-
-#: templates/authopenid/changepw.html:26
-#, fuzzy
-msgid "Current password"
-msgstr "确认密码"
-
-#: templates/authopenid/changepw.html:27
-#, fuzzy
-msgid "New password"
-msgstr "密码"
-
-#: templates/authopenid/changepw.html:28
-#, fuzzy
-msgid "New password again"
-msgstr "发送新密码"
-
-#: templates/authopenid/changepw.html:29 templates/authopenid/settings.html:28
-msgid "Change password"
-msgstr "修改密码"
-
-#: templates/authopenid/complete.html:4
-msgid "Connect your OpenID with this site"
-msgstr "绑定OpenID"
-
-#: templates/authopenid/complete.html:7
-msgid "Connect your OpenID with your account on this site"
-msgstr "绑定OpenID帐号"
-
-#: templates/authopenid/complete.html:10
-#, fuzzy
-msgid "Your OpenID is accepted. Please complete this to finish registration."
-msgstr "您的OpenID帐号已经验证通过! 请完成最后一步 - 绑定OpenID到您的帐号。"
-
-# todo: review this message may be confusing user
-#: templates/authopenid/complete.html:11
-msgid "This account already exists, please use another."
-msgstr "输入您的新帐号或者指定已经存在的帐号。"
-
-#: templates/authopenid/complete.html:16 templates/authopenid/complete.html:29
-#: templates/authopenid/signin.html:43
-msgid "Sorry, looks like we have some errors:"
-msgstr "请注意以下错误:"
-
-#: templates/authopenid/complete.html:45
-msgid "New account"
-msgstr "新帐号"
-
-#: templates/authopenid/complete.html:46
-msgid "User name (<i>will be shown to others, cannot be modified</i>)"
-msgstr "用户名(<i>在社区显示友好名称,不可更改</i>)"
-
-#: templates/authopenid/complete.html:47
-msgid "Email (<i>not shared with anyone</i>)"
-msgstr "电子邮件(<i>用于头像显示服务</i>)"
-
-#: templates/authopenid/complete.html:48
-msgid "create account"
-msgstr "创建帐号"
-
-#: templates/authopenid/complete.html:56
-msgid "Existing account"
-msgstr "已经存在的用户"
-
-#: templates/authopenid/complete.html:57
-msgid "user name"
-msgstr "用户名"
-
-#: templates/authopenid/complete.html:58
-msgid "password"
-msgstr "密码"
-
-#: templates/authopenid/complete.html:61
-msgid "Register"
-msgstr "确认"
-
-#: templates/authopenid/complete.html:62 templates/authopenid/signin.html:62
-msgid "Forgot your password?"
-msgstr "忘记密码?"
-
-#: templates/authopenid/delete.html:8
-#, fuzzy
-msgid "Account: delete account"
-msgstr "删除帐号"
-
-#: templates/authopenid/delete.html:12
-msgid ""
-"Note: After deleting your account, anyone will be able to register this "
-"username."
-msgstr ""
-
-#: templates/authopenid/delete.html:16
-msgid "Check confirm box, if you want delete your account."
-msgstr ""
-
-#: templates/authopenid/delete.html:19
-#, fuzzy
-msgid "Password:"
-msgstr "密码"
-
-#: templates/authopenid/delete.html:31
-msgid "I am sure I want to delete my account."
-msgstr ""
-
-#: templates/authopenid/delete.html:32
-msgid "Password/OpenID URL"
-msgstr ""
-
-#: templates/authopenid/delete.html:32
-msgid "(required for your security)"
-msgstr ""
-
-#: templates/authopenid/delete.html:34
-#, fuzzy
-msgid "Delete account permanently"
-msgstr "删除帐号"
-
-#: templates/authopenid/sendpw.html:3 templates/authopenid/sendpw.html.py:7
-msgid "Send new password"
-msgstr "发送新密码"
-
-#: templates/authopenid/sendpw.html:11
-msgid "Lost your password? No problem - here you can reset it."
-msgstr "丢失了您的密码? 你可以在这里重设密码。"
-
-#: templates/authopenid/sendpw.html:12
-msgid ""
-"Please enter your username below and new password will be sent to your "
-"registered e-mail"
-msgstr "请输入用户名,新的密码会发送到你注册时候填写的电子邮件。"
-
-#: templates/authopenid/sendpw.html:29
-msgid "Reset password"
-msgstr "重设密码"
-
-#: templates/authopenid/sendpw.html:29
-msgid "return to login"
-msgstr "返回登录"
-
-# todo - check translation or see if it's indeed true
-#: templates/authopenid/sendpw.html:32
-msgid ""
-"Note: your new password will be activated only after you click the "
-"activation link in the email message"
-msgstr "注意: 新的密码只有您在激活邮件中的链接后才会被激活。"
-
-#: templates/authopenid/settings.html:29
-msgid "Give your account a new password."
-msgstr ""
-
-#: templates/authopenid/settings.html:30
-msgid "Change email "
-msgstr "更换电子邮件"
-
-#: templates/authopenid/settings.html:31
-msgid "Add or update the email address associated with your account."
-msgstr ""
-
-#: templates/authopenid/settings.html:34
-msgid "Change openid associated to your account"
-msgstr ""
-
-#: templates/authopenid/settings.html:37
-msgid "Delete account"
-msgstr "删除帐号"
-
-#: templates/authopenid/settings.html:38
-msgid "Erase your username and all your data from website"
-msgstr ""
-
-#: templates/authopenid/signin.html:3 templates/authopenid/signin.html:16
-msgid "User login"
-msgstr "用户登录"
-
-#: templates/authopenid/signin.html:21
-msgid "we support two login modes"
-msgstr ""
-"CNProg支持<b>两种</b>登录模式。您可以使用帐号、密码登录,或者使用OpenID登录。"
-
-#: templates/authopenid/signin.html:26 templates/authopenid/signup.html:49
-msgid "Login with your OpenID"
-msgstr "使用OpenID登录"
-
-#: templates/authopenid/signin.html:28
-msgid "select openid provider"
-msgstr "1)请选择您的帐号类:"
-
-#: templates/authopenid/signin.html:32
-msgid "verify openid link and login"
-msgstr "2)型并完成正确的OpenID地址(如:替换“{username}”为您的对应帐号):"
-
-#: templates/authopenid/signin.html:58
-msgid "Use login name and password"
-msgstr "使用帐号密码登录"
-
-#: templates/authopenid/signin.html:59
-msgid "Login name"
-msgstr "用户名"
-
-#: templates/authopenid/signin.html:63
-#, fuzzy
-msgid "Create new acccount"
-msgstr "注册新帐号"
-
-#: templates/authopenid/signin.html:72
-msgid "Why use OpenID?"
-msgstr "为什么需要OpenID登录?"
-
-#: templates/authopenid/signin.html:76
-msgid "with openid it is easier"
-msgstr ""
-"构建在OpenID网络认证上的本系统,不需要你注册新的帐号,即可使用我们系统的所有"
-"功能"
-
-#: templates/authopenid/signin.html:79
-msgid "reuse openid"
-msgstr "用同一个帐号可登录互联网所有激活OpenID的网站"
-
-#: templates/authopenid/signin.html:82
-msgid "openid is widely adopted"
-msgstr "全世界有1.6亿OpenID帐号,和10,000个支持OpenID的站点"
-
-#: templates/authopenid/signin.html:85
-msgid "openid is supported open standard"
-msgstr "OpenID是有开放标准,并且有相关的基金组织提供支持"
-
-#: templates/authopenid/signin.html:89
-msgid "Find out more"
-msgstr "查看更多"
-
-#: templates/authopenid/signin.html:90
-msgid "Get OpenID"
-msgstr "获取OpenID"
-
-#: templates/authopenid/signup.html:2 templates/authopenid/signup.html.py:6
-msgid "Signup"
-msgstr "注册帐号"
-
-#: templates/authopenid/signup.html:10
-msgid ""
-"We support two types of user registration: conventional username/password, "
-"and"
-msgstr "我们支持两种注册方式,你可以使用常规的用户名、密码方式注册,或者"
-
-#: templates/authopenid/signup.html:10
-msgid "the OpenID method"
-msgstr "使用OpenID帐号注册"
-
-#: templates/authopenid/signup.html:15
-#, fuzzy
-msgid "Sorry, looks like we have some errors"
-msgstr "请注意以下错误:"
-
-#: templates/authopenid/signup.html:33
-msgid "Conventional registration"
-msgstr "请注意以下错误:"
-
-#: templates/authopenid/signup.html:34
-msgid "choose a user name"
-msgstr "选择一个用户名"
-
-#: templates/authopenid/signup.html:40
-msgid "back to login"
-msgstr "返回登录"
-
-#: templates/authopenid/signup.html:46
-msgid "Register with your OpenID"
-msgstr "使用OpenID注册"
-
-msgid "meta site keywords, comma separated"
-msgstr ""
-"技术问答社区,中国程序员,编程技术社区,程序员社区,程序员论坛,程序员"
-"wiki,程序员博客"
-
-msgid "what is this website"
-msgstr ""
-"CNProg是一个<strong>面向程序员</strong>的可协作编辑的<strong>开放源代码问"
-"答社区</strong>。"
-
-msgid "what can one do on this website"
-msgstr ""
-"您可以在这里提问各类<strong>程序技术问题</strong> - 问题不分语言和平台。 "
-"同时也希望您对力所能及的问题,给予您的宝贵答案。"
-
-msgid "Goal of this site is..."
-msgstr "CNProg 是为了帮助程序员解决更多问题,更加方便的解决问题。"
-
-msgid "Community gives you awards for your questions, answers and votes."
-msgstr ""
-"提出问题,给予回答,投出你的票 - CNProg 会针对你在社区的表现,授予你各类奖"
-"牌。"
-
-msgid "please make your answer relevant to this community"
-msgstr "您的问题与编程相关吗?"
-
-msgid "book technical Q&A"
-msgstr "图书相关的技术答疑"
-
-msgid "blog"
-msgstr "Blog"
-
-msgid "privacy policy"
-msgstr "隐私政策"
-
-msgid "current revision"
-msgstr "当前版本"
-
-msgid "number of votes"
-msgstr "票数"
-
-msgid "current page"
-msgstr "当前页"
-
-msgid "next page"
-msgstr "下一页"
-
-msgid "page number "
-msgstr "第"
-
-msgid "number - make blank in english"
-msgstr "页"
-
-msgid "Change tags"
-msgstr "修改问题标签"
-
-# todo: remove magic numbers from this file
-msgid "up to 5 tags, less than 20 characters each"
-msgstr "最多5个标签,每个标签长度小于20个字符。"
-
-msgid "Change now"
-msgstr "现在修改"
-
-msgid "uses tags for the classification of questions"
-msgstr "用标签来分类系统的信息"
-
-msgid "tag editors receive special awards from the community"
-msgstr "修改标签的用户将授予特殊的社区奖牌"
-
-msgid "Why use and modify tags?"
-msgstr "为什么我只能修改问题标签?"
-
-msgid "Found by tag"
-msgstr "标签问题"
-
-msgid "Found by title"
-msgstr "查询结果"
-
-msgid "most recently updated questions"
-msgstr "最近被更新的问题"
-
-msgid "latest questions info"
-msgstr ""
-"问题按<strong>提问时间</strong>显示排序。新加入的问题将显示在最前面。"
-
-msgid ""
-"\n"
-"\t\t\thave total %(q_num)s questions tagged %(tagname)s\n"
-"\t\t\t"
-msgid_plural ""
-"\n"
-"\t\t\thave total %(q_num)s questions tagged %(tagname)s\n"
-"\t\t\t"
-msgstr[0] ""
-"\n"
-"您正在浏览所有<div class=\"questions-count\">%(q_num)s</div>个标记为<span "
-"class=\"tag\">%(tagname)s</span></p>"
-msgstr[1] ""
-"\n"
-"您正在浏览所有<div class=\"questions-count\">%(q_num)s</div>个标记为<span "
-"class=\"tag\">%(tagname)s</span></p>"
-
-msgid ""
-"\n"
-"\t\t\thave total %(q_num)s questions containing %(searchtitle)s\n"
-"\t\t\t"
-msgid_plural ""
-"\n"
-"\t\t\thave total %(q_num)s questions containing %(searchtitle)s\n"
-"\t\t\t"
-msgstr[0] ""
-"\n"
-"您正在浏览所有<div class=\"questions-count\">%(q_num)s</div>个标题含有"
-"<span class=\"tag\">%(searchtitle)s</span></p>"
-msgstr[1] ""
-"\n"
-"您正在浏览所有<div class=\"questions-count\">%(q_num)s</div>个标题含有"
-"<span class=\"tag\">%(searchtitle)s</span></p>"
-
-msgid "number of questions"
-msgstr "个"
-
-msgid "number of <strong>unanswered</strong> questions"
-msgstr ""
-"个 <span class=\"darkred\"><strong>没有回答的</strong></span> 问题。"
-
-msgid "tagged with"
-msgstr "标记为"
-
-msgid "whose title contains"
-msgstr "标题含有"
-
-msgid "number of questions end of sentence"
-msgstr "的问题。"
-
-msgid "Questions are sorted by the <strong>time of last update</strong>."
-msgstr "问题按<strong>最后更新时间</strong>显示排序。"
-
-msgid "Most recently answered ones are shown first."
-msgstr "最后被回答或者>更新的问题将显示在最前面。"
-
-msgid "Questions sorted by <strong>number of responses</strong>."
-msgstr "问题按<strong>回复数量</strong>显示排序。"
-
-msgid "Most answered questions are shown first"
-msgstr "回复最多的问题将显示在最前面。"
-
-msgid "Questions are sorted by the <strong>number of votes</strong>."
-msgstr "问题按<strong>投票数量</strong>显示排序。"
-
-msgid "Most voted questions are shown first"
-msgstr "投票最多的问题将显示在最前面。"
-
-msgid "questions that user selected as his/her favorite"
-msgstr "用户收藏的问题"
-
-msgid "Frequently Asked Questions "
-msgstr "常见问题"
-
-msgid "What kinds of questions can I ask here?"
-msgstr "我可以在这里提问什么样的问题?"
-
-msgid "What questions should I avoid asking?"
-msgstr "什么样的问题我不该在这里提问?"
-
-msgid ""
-"Most importanly - questions should be <strong>relevant</strong> to this "
-"community."
-msgstr "毫无疑问,首先必须是<span class=\"yellowbg\">技术编程问题!</span>"
-
-msgid ""
-"Before asking the question - please make sure to use search to see "
-"whether your question has alredy been answered."
-msgstr ""
-"提问之前,充分利用系统的自动查找、标签和搜索,看看是否已经有一样的问题并有"
-"了答案。"
-
-msgid "What should I avoid in my answers?"
-msgstr "什么样的回答是不受欢迎的?"
-
-msgid "Who moderates this community?"
-msgstr "谁是社区的管理员?"
-
-msgid ""
-"Please avoid asking questions that are not relevant to this community, "
-"too subjective and argumentative."
-msgstr ""
-"<span class=\"yellowbg\">与程序员或技术无关的,引起争吵或太过于主观性等违"
-"背社区宗旨的内容。</span>本站建立是为了帮助大众程序员解决实际技术问题,我"
-"们需要实际的问题!"
-
-msgid ""
-"is a Q&A site, not a discussion group. Therefore - please avoid having "
-"discussions in your answers, comment facility allows some space for brief "
-"discussions."
-msgstr ""
-"希望用户提供针对提问的技术回答,可以是进一步了解问题实质,给予参考方案,或"
-"完全解决问题的回答。我们希望通过问答的形式解决用户的实际问题。因此,<span "
-"class=\"yellowbg\">我们不>欢迎在回答中出现不是回答问题的内容,包括针对他人"
-"回答的讨论,和其他无意义的浪费网络资源行为</span>。CNProg建议您使用<span "
-"class=\"yellowbg\">评论</span>功能来讨论你的意见和想法。"
-
-msgid "The short answer is: <strong>you</strong>."
-msgstr "答案是:<span class=\"yellowbg\">每个用户。</span>"
-
-msgid ""
-"The reputation system allows users earn the authorization to perform a "
-"variety of moderation tasks."
-msgstr ""
-"通过积分运作,<span class=\"yellowbg\">每个用户都有权限创建标签,进行对所"
-"有问题、回答的投票、编辑、关闭等操作。</span>"
-
-msgid "This website is moderated by the users."
-msgstr "社区没有严格意义上的管理员身份"
-
-msgid "How does reputation system work?"
-msgstr "什么是社区积分?"
-
-msgid ""
-"Anyone can ask questions and give answers, points are not necessary for "
-"that."
-msgstr "对于正常使用社区进行提问、回答而言,积分不是必须的。"
-
-msgid ""
-"As we've said before, users help running this site. Point system helps "
-"select users who can administer this community."
-msgstr ""
-"我们一再声明,CNProg由你来运行和维护。如果你想帮助我们来运作CNProg,你需要"
-"一定的积分等级。"
-
-msgid ""
-"Reputation points roughly measure how community trusts you. These points "
-"are given to you directly by other members of the community."
-msgstr ""
-"<span class=\"yellowbg\">积分是一种用来粗略衡量社区对你有多信任的数据。</"
-"span>积分不是有谁来支付或直接给予你的,而是你通过获得其他用户的支持和信"
-"任“赚得”的。"
-
-msgid ""
-"For example, if you ask an interesting question or give a helpful answer, "
-"your input will be upvoted and you will gain more trust in the community."
-msgstr ""
-"举例来说,如果你提了一个非常有帮助的问题或者做了很有用的回答,你将会被其他"
-"用户投赞成票。"
-
-msgid ""
-"If on the other hand someone gives a misleading answer, the answer will "
-"be voted down and he/she loses some points."
-msgstr ""
-"相反,你提了不受欢迎的问题,或者误导用户的回答,你将可能被其他用户投反对"
-"票。每个赞成"
-
-msgid ""
-"Each vote in favor will generate <strong>10</strong> points, each vote "
-"against will subtract <strong>2</strong> points."
-msgstr ""
-"票会帮你产生<strong>10</strong>个社区积分,每个反对票会相应扣除你"
-"<strong>2</strong>个积分。"
-
-msgid ""
-"Through the votes of other people you can accumulate a maximum of "
-"<strong>200</strong> points."
-msgstr ""
-"每天通过别人投赞成票,你最多只能产生<strong>200</strong>个积分,这是上限。"
-
-msgid "After accumulating certain number of points, you can do more:"
-msgstr "当你累计到一定>积分,你可以在社区做更多的事情:"
-
-# todo - check if it's indeed plural
-msgid "add comments"
-msgstr "添加评论"
-
-msgid "retag questions"
-msgstr "给任何问题整理标签"
-
-msgid "edit community wiki questions"
-msgstr "编辑wiki类问题"
-
-msgid "edit any answer"
-msgstr "编辑任何问题或答案"
-
-msgid "reopen any closed questions"
-msgstr "打开关闭任何人的问题"
-
-msgid "delete any comment"
-msgstr "删除任何一个评论"
-
-msgid "delete any questions and answers and perform other moderation tasks"
-msgstr "删除任何一个问题或答案,及其他管理功能"
-
-msgid "To register, do I need to create new password?"
-msgstr "我需要注册一个新用户吗?"
-
-msgid "Why other people can edit my questions/answers?"
-msgstr "为什么其他人可以修改我的问题/回答?"
-
-msgid "Still have questions?"
-msgstr "还有其他问题?"
-
-msgid "Please ask your question, help make our community better!"
-msgstr "如果您对社区还有其他疑问,请一起来完善我们的"
-
-msgid ""
-"No, you don't have to. You can login through any service that supports "
-"OpenID, e.g. Google, Yahoo, AOL, etc."
-msgstr ""
-"不需要。社区提供了OpenID的登录支持,你要用Google、Yahoo等任何支持OpenID登"
-"录的帐号就可以使用系统。"
-
-msgid "Login now!"
-msgstr "马上登录"
-
-msgid ""
-"So questions and answers can be edited like wiki pages by experienced "
-"users of this site and this improves the overall quality of the knowledge "
-"base content."
-msgstr ""
-"所以问题和答案都是如Wiki一样可编辑的,我们希望社区能帮助用户沉淀、积累更多"
-"有用的知识和经验。"
-
-msgid "If this approach is not for you, we respect your choice."
-msgstr "如果您不喜欢这种方式,我们尊重你的选择。"
-
-msgid "answer tips"
-msgstr "受欢迎的提问"
-
-msgid "try to give an answer, rather than engage into a discussion"
-msgstr "建议您提的问题是可以被答复的,而不仅仅是可以讨论。"
-
-msgid "gold badge: the highest honor and is very rare"
-msgstr "金牌:十分罕见之最高荣耀"
-
-msgid ""
-"silver badge: occasionally awarded for the very high quality contributions"
-msgstr "银牌:偶尔颁发之优质奖章"
-
-msgid "Gold badge is very rare."
-msgstr "金牌是十分罕见的。"
-
-msgid "Gold badge is the highest award in this community."
-msgstr "获得金牌意味着你在某个层次上已经达到了顶峰。"
-
-msgid "Obtaining silver badge requires significant patience."
-msgstr "银牌需要经过长时间的奋斗才能获得。"
-
-msgid "%s ago"
-msgstr "于%s<font class=\"darkred\">关闭</font>"
+++ /dev/null
-this file is just a placeholder so the empty directory is not ignored by version control
\ No newline at end of file
+++ /dev/null
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-26 19:49:23,969 MSG: pagesize.py:process_exception:33 have exception SubscriptionSettings matching query does not exist.\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:35:25,446 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:35:25,930 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:35:25,996 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:36:27,973 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:36:28,276 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:36:28,342 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:36:54,345 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:36:54,651 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:36:54,714 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:37:28,526 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:37:28,861 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:37:28,928 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:38:54,523 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:38:54,904 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:38:54,977 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:39:11,576 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:39:11,895 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:39:11,966 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:39:37,927 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:39:38,250 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:39:38,311 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:41:33,898 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:41:34,217 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:41:34,283 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:42:02,309 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:42:02,681 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:42:02,747 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:42:19,944 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:42:20,098 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:42:20,188 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:42:29,967 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:42:30,181 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:44:25,065 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:44:25,377 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:44:59,007 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:44:59,505 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:48:24,023 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:48:24,275 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:49:14,601 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:49:18,344 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:49:24,082 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:50:26,776 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:50:35,214 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:50:35,437 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:50:35,500 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:53:00,076 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:53:00,382 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:53:00,448 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:56:30,275 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:56:30,549 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:56:30,615 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:59:21,661 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:59:31,177 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:59:31,269 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:59:32,832 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:59:32,940 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:59:33,936 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:59:34,017 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:59:34,082 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:59:36,227 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:59:36,345 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:59:37,691 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 00:59:37,831 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:13:08,194 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:13:08,538 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:13:20,427 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:13:20,608 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:13:24,694 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:13:58,236 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:13:58,506 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:14:02,017 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:14:02,209 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:14:02,288 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:14:02,355 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:15:20,062 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:15:20,401 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:15:20,471 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:15:20,552 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:17:34,242 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:17:34,510 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:17:34,586 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:17:34,673 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:18:25,740 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:18:25,994 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:18:26,082 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:18:26,196 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:19:21,772 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:19:22,036 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:19:22,105 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:19:22,177 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:20:05,875 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:20:06,138 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:20:06,207 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:20:06,325 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 01:20:27,128 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 01:20:27,161 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 01:20:27,171 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 01:20:27,178 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 01:20:27,187 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 01:20:27,193 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 01:20:27,201 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 01:20:27,210 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/11/gandulo">Gandulo</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 01:20:27,219 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 01:20:27,229 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:20:27,471 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:20:32,203 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:20:37,674 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:21:48,417 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:23:13,713 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:23:13,908 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/upfiles\osqa____.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:23:13,993 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/upfiles\osqa_____.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:23:22,319 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:23:22,444 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/upfiles\osqa______.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:23:22,517 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/upfiles\osqa_______.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:23:28,795 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:23:28,963 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/upfiles\osqa________.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:23:29,036 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/upfiles\osqa_________.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:24:13,911 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:24:14,131 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/upfiles\osqa________.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:24:14,213 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:24:14,292 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:24:14,388 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 01:24:24,851 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 01:24:24,861 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 01:24:24,867 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 01:24:24,874 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 01:24:24,880 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 01:24:24,884 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 01:24:24,891 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 01:24:24,898 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/11/gandulo">Gandulo</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 01:24:24,904 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 01:24:24,911 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:24:25,155 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:24:25,342 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/upfiles\osqa________.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:24:27,648 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:24:27,862 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/upfiles\osqa________.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:24:43,503 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:24:43,686 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/upfiles\osqa_logo.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:24:43,788 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/upfiles\osqa_logo_.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:25:39,362 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:25:39,552 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/upfiles\osqa_logo.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:25:45,460 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:25:45,664 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/upfiles\osqa_logo__.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:25:45,759 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/upfiles\osqa_logo___.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:26:58,088 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:26:58,278 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/upfiles\osqa_logo____.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:26:58,348 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/upfiles\osqa_logo_____.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:27:25,005 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:27:25,198 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/upfiles\osqa_logo_____.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:27:48,012 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:27:48,214 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/upfiles\osqa_logo_____.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:28:12,867 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:28:13,062 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/upfiles\osqa_logo_____.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:28:16,092 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:28:16,262 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/upfiles\osqa_logo_____.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:28:18,369 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:28:18,546 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/upfiles\osqa_logo_____.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:28:22,785 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:29:22,122 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:34:09,061 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:34:09,746 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:34:09,818 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:34:09,887 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:35:45,063 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:35:45,392 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:35:45,476 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:35:45,540 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:36:18,734 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:36:19,177 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:36:19,263 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:36:19,335 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:37:06,309 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:37:06,627 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:37:06,688 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:37:06,767 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:37:24,611 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:37:24,959 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:37:25,039 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:37:25,105 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:39:26,078 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:39:26,431 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:39:26,496 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:39:26,578 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:41:02,628 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:41:02,983 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:41:03,053 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:41:03,121 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:41:48,144 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:41:48,573 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:41:48,641 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:41:48,704 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:42:39,420 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:42:39,746 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:42:39,812 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:42:39,884 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:43:24,295 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:43:24,697 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:43:24,780 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:43:24,842 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:44:16,226 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:44:16,565 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:44:16,630 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:44:16,734 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:57:39,713 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:57:40,042 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:57:40,154 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:57:42,144 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:57:42,384 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:57:42,447 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 01:57:42,513 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 03:28:43,815 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 03:28:44,128 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 03:28:44,213 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 03:28:44,286 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:10:45,084 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:10:46,591 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:10:46,778 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\default/media/images/img_tag.jpg" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:10:47,364 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:10:47,450 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:11:22,838 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:11:23,398 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:11:23,565 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:11:23,654 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 18:13:41,079 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 18:13:41,223 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 18:13:41,230 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 18:13:41,236 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 18:13:41,243 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 18:13:41,247 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 18:13:41,255 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 18:13:41,259 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/11/gandulo">Gandulo</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 18:13:41,266 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 18:13:41,270 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:13:41,601 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 18:23:41,960 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 18:23:42,030 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 18:23:42,038 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 18:23:42,048 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 18:23:42,055 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 18:23:42,059 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 18:23:42,068 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 18:23:42,073 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/11/gandulo">Gandulo</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 18:23:42,081 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 18:23:42,085 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:23:42,680 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:23:44,392 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:23:44,562 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:23:44,723 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:23:44,786 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:24:27,250 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:24:27,568 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:24:27,713 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:24:27,780 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:24:54,348 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:24:54,700 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:24:54,845 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:24:54,913 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:25:09,862 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:25:10,193 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:25:10,400 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:25:10,474 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:25:37,236 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:25:37,569 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:25:37,710 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:25:37,772 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:27:20,338 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:27:20,671 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:27:20,808 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:27:20,875 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:28:52,387 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:28:52,700 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:28:52,838 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:28:52,910 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:29:16,171 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala_on.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:29:41,201 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:29:41,558 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:29:41,687 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:29:41,767 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:32:27,153 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:32:27,566 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:32:27,719 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:32:27,782 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:36:21,229 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:36:21,630 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:36:21,769 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:36:21,835 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:36:47,365 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:36:47,694 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:36:47,832 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:36:47,904 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:37:19,298 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:37:19,641 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:37:19,769 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:37:19,834 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:44:51,180 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:44:51,552 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:44:51,700 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:44:51,769 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:45:33,296 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:45:33,640 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:45:33,805 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:45:33,887 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:47:07,203 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:47:07,608 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:47:07,783 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:47:07,851 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 18:47:41,200 MSG: readers.py:question:424 loaded from session latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 18:47:41,200 MSG: readers.py:question:435 view_id=latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 18:47:41,211 MSG: readers.py:question:441 /question/100/([\w-]+)\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 18:47:41,211 MSG: readers.py:question:442 /question/100/cant-create-language-file\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 18:47:41,211 MSG: readers.py:question:446 have slug cant-create-language-file\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 18:47:42,584 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 18:47:42,640 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 18:47:42,664 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:47:44,039 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:47:44,871 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:47:45,053 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/gray-up-arrow-h18px.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:55:40,259 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:55:40,513 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:55:40,698 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:55:40,769 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:56:52,423 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:56:53,033 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:56:53,214 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:56:53,309 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:57:12,778 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:57:13,124 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:57:13,328 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:57:13,401 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:57:26,789 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:57:27,217 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:57:27,576 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:57:27,644 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:57:48,615 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:57:48,969 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:57:49,128 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:57:49,201 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:58:43,907 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:58:44,249 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:58:44,467 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:58:44,563 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:58:59,831 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:59:00,232 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:59:00,401 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 18:59:00,471 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:00:08,778 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:00:09,102 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:00:09,260 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:00:09,332 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:00:55,996 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:00:56,404 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:00:56,654 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:00:56,720 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:01:50,440 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:01:50,759 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:01:50,947 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:01:51,015 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 19:01:59,526 MSG: readers.py:question:424 loaded from session latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 19:01:59,526 MSG: readers.py:question:435 view_id=latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 19:01:59,529 MSG: readers.py:question:441 /question/100/([\w-]+)\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 19:01:59,529 MSG: readers.py:question:442 /question/100/cant-create-language-file\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 19:01:59,530 MSG: readers.py:question:446 have slug cant-create-language-file\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 19:01:59,755 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 19:01:59,782 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 19:01:59,808 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:02:00,250 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:02:00,572 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/gray-up-arrow-h18px.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:02:00,644 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 19:02:19,539 MSG: readers.py:question:424 loaded from session latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 19:02:19,539 MSG: readers.py:question:435 view_id=latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 19:02:19,546 MSG: readers.py:question:441 /question/100/([\w-]+)\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 19:02:19,546 MSG: readers.py:question:442 /question/100/cant-create-language-file\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 19:02:19,546 MSG: readers.py:question:446 have slug cant-create-language-file\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 19:02:19,798 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 19:02:19,826 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 19:02:19,857 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:02:21,369 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:02:22,565 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/gray-up-arrow-h18px.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:02:22,632 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 19:02:41,990 MSG: readers.py:question:424 loaded from session latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 19:02:41,990 MSG: readers.py:question:435 view_id=latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 19:02:41,993 MSG: readers.py:question:441 /question/100/([\w-]+)\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 19:02:41,993 MSG: readers.py:question:442 /question/100/cant-create-language-file\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 19:02:41,993 MSG: readers.py:question:446 have slug cant-create-language-file\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 19:02:42,227 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 19:02:42,260 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 19:02:42,292 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:02:42,976 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:02:43,974 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/gray-up-arrow-h18px.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:02:44,055 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:02:58,665 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:02:58,996 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:02:59,091 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:02:59,165 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:03:34,111 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:03:36,415 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:03:36,760 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:03:36,842 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:03:36,907 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:03:38,312 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:03:43,323 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:03:43,628 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:03:43,698 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:03:43,766 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:05:42,140 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:05:42,338 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:05:44,736 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:05:44,895 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:05:47,158 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:05:47,244 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:05:49,611 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:05:49,763 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:05:49,832 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:05:49,891 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:05:51,486 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:05:51,642 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:05:54,654 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:05:54,802 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:05:56,157 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:05:56,273 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:05:58,578 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:05:58,697 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:06:01,200 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:06:01,309 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:06:02,346 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:06:02,461 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:06:05,483 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:06:05,595 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:06:07,361 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:06:07,559 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:06:07,618 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:06:07,678 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:07:42,269 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:07:42,801 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:07:42,938 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:07:43,000 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:08:08,003 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:08:08,326 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:08:08,497 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:08:08,569 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:09:56,062 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:09:56,473 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:09:56,611 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:09:56,670 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:12:05,009 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:12:05,279 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:12:05,427 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:12:05,509 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:12:26,371 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:12:26,634 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:12:26,795 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:12:26,875 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 19:12:28,687 MSG: readers.py:question:424 loaded from session latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 19:12:28,687 MSG: readers.py:question:435 view_id=latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 19:12:28,690 MSG: readers.py:question:441 /question/100/([\w-]+)\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 19:12:28,690 MSG: readers.py:question:442 /question/100/cant-create-language-file\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 19:12:28,691 MSG: readers.py:question:446 have slug cant-create-language-file\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 19:12:29,098 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 19:12:29,115 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 19:12:29,131 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:12:29,351 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:12:29,505 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/gray-up-arrow-h18px.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:12:29,569 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:12:34,532 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:12:34,720 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:12:34,786 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:12:34,861 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:17:12,036 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:17:12,431 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:17:12,586 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\default/images/medala.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:17:12,644 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:17:15,815 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\default/images/medala_on.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:17:33,891 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:17:34,188 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:17:34,413 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:17:36,631 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\default/mediaimages/medala_on.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:18:23,372 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:18:40,214 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:18:40,456 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:18:40,706 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:20:03,678 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:20:03,954 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 19:20:04,181 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 21:52:37,085 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 21:52:37,436 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 21:52:37,678 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 21:53:35,105 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 21:53:35,448 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 21:53:35,697 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 21:54:12,628 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 21:54:12,872 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 21:54:13,105 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 21:56:58,551 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 21:56:58,924 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 21:56:59,151 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 21:57:21,188 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 21:57:21,540 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 21:57:21,779 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 21:58:28,460 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 21:58:28,563 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 21:58:28,653 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 22:20:32,319 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\default/mediaimages/medala_on.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 22:46:27,265 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 22:46:27,704 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 22:46:27,920 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 22:46:39,819 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 22:46:57,190 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 22:46:57,408 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 22:46:57,736 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 22:47:06,839 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 22:48:52,012 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 22:49:04,497 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 22:49:53,023 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 22:50:27,473 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 22:50:27,585 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 22:50:27,657 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 22:50:31,262 MSG: pagesize.py:process_exception:33 have exception __init__() got an unexpected keyword argument 'initial_data'\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 22:51:12,507 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 22:51:23,211 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 22:52:40,661 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 22:55:12,943 MSG: readers.py:question:424 loaded from session latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 22:55:12,943 MSG: readers.py:question:435 view_id=latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 22:55:12,947 MSG: readers.py:question:441 /question/104/([\w-]+)\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 22:55:12,947 MSG: readers.py:question:442 /question/104/dsf-gsdfgsdfgsdfg\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 22:55:12,947 MSG: readers.py:question:446 have slug dsf-gsdfgsdfgsdfg\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 22:55:13,072 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 22:55:13,736 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 22:55:14,499 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/gray-up-arrow-h18px.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 22:55:19,782 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 23:05:39,137 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 23:06:17,588 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 23:06:17,780 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 23:06:17,842 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 23:06:19,739 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 23:07:35,118 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 23:07:55,062 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 23:08:08,628 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 23:08:08,710 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 23:08:13,273 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 23:08:13,388 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 23:08:13,471 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 23:20:23,510 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 23:20:23,517 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 23:20:23,528 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 23:20:23,535 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 23:20:23,542 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 23:20:23,548 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 23:20:23,552 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 23:20:23,559 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 23:20:23,566 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/11/gandulo">Gandulo</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 23:20:23,573 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 23:20:23,825 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 23:21:27,907 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 23:21:28,019 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 23:21:28,105 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 23:21:30,171 MSG: readers.py:question:425 loaded from session latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 23:21:30,171 MSG: readers.py:question:436 view_id=latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 23:21:30,174 MSG: readers.py:question:442 /question/104/([\w-]+)\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 23:21:30,174 MSG: readers.py:question:443 /question/104/dsf-gsdfgsdfgsdfg\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 23:21:30,174 MSG: readers.py:question:447 have slug dsf-gsdfgsdfgsdfg\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 23:21:30,305 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 23:21:30,471 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 23:21:30,617 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/gray-up-arrow-h18px.png" does not exist\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 23:21:36,507 MSG: readers.py:question:425 loaded from session latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 23:21:36,507 MSG: readers.py:question:436 view_id=latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 23:21:36,513 MSG: readers.py:question:442 /question/104/([\w-]+)\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 23:21:36,513 MSG: readers.py:question:443 /question/104/dsf-gsdfgsdfgsdfg\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 23:21:36,513 MSG: readers.py:question:447 have slug dsf-gsdfgsdfgsdfg\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 23:21:36,642 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 23:21:36,664 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 23:21:37,210 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 23:21:38,028 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/gray-up-arrow-h18px.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 23:21:38,369 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 23:21:46,263 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/vote-accepted-on.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 23:25:26,194 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 23:25:26,585 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 23:25:26,788 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 23:25:32,295 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 23:25:57,223 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 23:25:57,489 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 23:25:57,614 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 23:26:15,944 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\default/mediaimages/medala_on.gif" does not exist\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 23:26:23,213 MSG: readers.py:question:425 loaded from session latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 23:26:23,213 MSG: readers.py:question:436 view_id=latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 23:26:23,213 MSG: readers.py:question:442 /question/104/([\w-]+)\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 23:26:23,213 MSG: readers.py:question:443 /question/104/dsf-gsdfgsdfgsdfg\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 23:26:23,213 MSG: readers.py:question:447 have slug dsf-gsdfgsdfgsdfg\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 23:26:23,477 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 23:26:23,493 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 23:26:24,398 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 23:26:24,803 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/gray-up-arrow-h18px.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 23:26:24,960 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 23:26:35,163 MSG: readers.py:question:425 loaded from session latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 23:26:35,163 MSG: readers.py:question:436 view_id=latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 23:26:35,163 MSG: readers.py:question:442 /question/104/([\w-]+)\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 23:26:35,163 MSG: readers.py:question:443 /question/104/dsf-gsdfgsdfgsdfg\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-27 23:26:35,163 MSG: readers.py:question:447 have slug dsf-gsdfgsdfgsdfg\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 23:26:35,288 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\__init__.py TIME: 2010-03-27 23:26:35,302 MSG: __init__.py:get_profile_link:101 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 23:26:36,191 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 23:26:36,926 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/gray-up-arrow-h18px.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 23:26:37,003 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-27 23:26:57,549 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/vote-accepted-on.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 00:40:23,739 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 00:40:24,174 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 00:40:24,237 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 00:40:27,654 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 00:40:35,828 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 00:40:42,598 MSG: pagesize.py:process_exception:33 have exception 'SimpleEmailSubscribeForm' object has no attribute 'save'\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 00:59:02,237 MSG: pagesize.py:process_exception:33 have exception 'auth_provider'\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 00:59:29,474 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 00:59:29,709 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 00:59:29,786 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 00:59:33,655 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 00:59:33,828 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 00:59:37,891 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 00:59:38,171 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 00:59:39,607 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 00:59:39,763 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 00:59:42,025 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 00:59:42,289 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 02:00:08,670 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 02:00:09,091 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 02:00:10,900 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 02:00:14,410 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 02:00:35,131 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 02:00:39,779 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 02:00:40,092 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 02:00:44,497 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 02:00:46,526 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 02:00:46,822 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 02:00:46,884 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 02:00:49,256 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 02:00:49,520 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 02:00:51,627 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 02:00:51,953 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 02:03:46,371 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 02:03:51,535 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 02:03:51,878 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 02:03:54,654 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 02:03:56,885 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 02:03:59,242 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 02:04:32,694 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-28 02:04:43,302 MSG: readers.py:question:425 loaded from session latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-28 02:04:43,302 MSG: readers.py:question:436 view_id=latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-28 02:04:43,319 MSG: readers.py:question:442 /question/1/([\w-]+)\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-28 02:04:43,319 MSG: readers.py:question:443 /question/1/this-is-the-first-question\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-28 02:04:43,319 MSG: readers.py:question:447 have slug this-is-the-first-question\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-28 02:04:43,474 MSG: user.py:get_profile_link:79 in get profile link <a href="/users/2/hrc">hrc</a>\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 02:04:44,519 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 02:04:44,862 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/gray-up-arrow-h18px.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 02:49:57,621 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 02:49:57,871 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 02:49:57,933 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 02:50:00,819 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 02:50:03,752 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 02:50:24,234 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 02:51:24,799 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 02:51:28,043 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 02:51:35,796 MSG: pagesize.py:process_exception:33 have exception Cannot assign "<User: hrc>": "ValidationHash.user" must be a "User" instance.\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 02:54:56,548 MSG: pagesize.py:process_exception:33 have exception Cannot assign "<User: hrc>": "ValidationHash.user" must be a "User" instance.\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 02:55:04,987 MSG: pagesize.py:process_exception:33 have exception Cannot assign "<User: hrc>": "ValidationHash.user" must be a "User" instance.\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 02:55:54,684 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 02:55:55,151 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 02:55:55,230 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 03:51:38,223 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 03:51:38,489 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/upfiles\osqa_logo__.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 03:51:38,612 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 03:51:38,815 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 03:51:42,357 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 03:51:42,529 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/upfiles\osqa_logo__.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 03:51:47,645 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 03:51:47,802 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/upfiles\osqa_logo__.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 03:51:53,869 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 03:51:54,026 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/upfiles\osqa_logo__.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 03:52:15,273 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 03:52:15,444 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/upfiles\osqa_logo__.png" does not exist\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-28 03:52:23,588 MSG: user.py:get_profile_link:76 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-28 03:52:23,604 MSG: user.py:get_profile_link:76 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-28 03:52:23,604 MSG: user.py:get_profile_link:76 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-28 03:52:23,651 MSG: user.py:get_profile_link:76 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-28 03:52:23,651 MSG: user.py:get_profile_link:76 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-28 03:52:23,665 MSG: user.py:get_profile_link:76 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-28 03:52:23,665 MSG: user.py:get_profile_link:76 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-28 03:52:23,665 MSG: user.py:get_profile_link:76 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-28 03:52:23,681 MSG: user.py:get_profile_link:76 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-28 03:52:23,681 MSG: user.py:get_profile_link:76 in get profile link <a href="/users/11/gandulo">Gandulo</a>\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 03:52:24,259 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 03:52:24,493 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/upfiles\osqa_logo__.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 03:52:27,239 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 03:52:27,457 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/upfiles\osqa_logo__.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 03:52:32,651 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 03:52:37,207 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 03:52:37,549 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 03:52:37,628 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 03:52:40,686 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 03:52:42,838 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 03:52:43,134 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 03:52:43,213 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 03:52:45,756 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 03:52:55,444 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 03:52:55,786 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 03:52:55,865 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 17:57:13,127 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 17:57:13,555 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 17:57:13,595 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 23:27:23,392 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 23:27:23,861 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 23:27:23,891 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 23:27:25,842 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 23:27:25,997 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 23:27:29,617 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 23:27:29,867 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 23:58:51,183 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 23:58:51,354 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 23:58:51,542 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 23:58:53,960 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 23:58:54,069 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 23:58:56,549 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 23:59:02,632 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 23:59:07,671 MSG: pagesize.py:process_exception:33 have exception 'function' object has no attribute 'count'\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 23:59:31,230 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 23:59:31,556 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 23:59:36,346 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 23:59:38,280 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 23:59:38,654 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 23:59:38,687 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-28 23:59:41,572 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 00:00:13,982 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 00:00:20,081 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 00:00:20,440 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 00:00:20,486 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 04:47:45,709 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 04:47:46,170 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 04:47:46,503 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 04:47:52,469 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 04:48:20,460 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 04:48:20,677 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 04:48:21,140 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 10:24:14,115 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 10:24:14,515 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 10:24:14,826 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 10:24:17,829 MSG: pagesize.py:process_exception:33 have exception column auth_user.bronze does not exist\r
-LINE 1: SELECT (auth_user.bronze) AS "la_user_bronze", (auth_user.si...\r
- ^\r
-\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 10:27:47,145 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 10:27:47,835 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/edit.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 10:28:02,311 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 10:28:02,642 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/edit.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 10:28:07,085 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 10:28:07,323 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/edit.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 10:28:37,256 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 10:28:37,551 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/edit.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 10:28:42,033 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 10:28:42,243 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/edit.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 10:28:47,867 MSG: pagesize.py:process_exception:33 have exception Caught an exception while rendering: column auth_user.bronze does not exist\r
-LINE 1: SELECT (auth_user.bronze) AS "la_user_bronze", (auth_user.si...\r
- ^\r
-\r
-\r
-Original Traceback (most recent call last):\r
- File "C:\Python26\lib\site-packages\django\template\debug.py", line 71, in render_node\r
- result = node.render(context)\r
- File "C:\Python26\lib\site-packages\django\template\defaulttags.py", line 126, in render\r
- len_values = len(values)\r
- File "C:\Python26\lib\site-packages\django\db\models\query.py", line 81, in __len__\r
- self._result_cache = list(self.iterator())\r
- File "C:\Python26\lib\site-packages\django\db\models\query.py", line 756, in iterator\r
- for row in self.query.results_iter():\r
- File "C:\Python26\lib\site-packages\django\db\models\sql\query.py", line 287, in results_iter\r
- for rows in self.execute_sql(MULTI):\r
- File "C:\Python26\lib\site-packages\django\db\models\sql\query.py", line 2369, in execute_sql\r
- cursor.execute(sql, params)\r
- File "C:\Python26\lib\site-packages\django_debug_toolbar-0.8.3-py2.6.egg\debug_toolbar\panels\sql.py", line 91, in execute\r
- return self.cursor.execute(sql, params)\r
-ProgrammingError: column auth_user.bronze does not exist\r
-LINE 1: SELECT (auth_user.bronze) AS "la_user_bronze", (auth_user.si...\r
- ^\r
-\r
-\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 10:28:58,431 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 10:28:58,753 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/edit.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 10:29:02,607 MSG: pagesize.py:process_exception:33 have exception Caught an exception while rendering: column auth_user.bronze does not exist\r
-LINE 1: SELECT (auth_user.bronze) AS "la_user_bronze", (auth_user.si...\r
- ^\r
-\r
-\r
-Original Traceback (most recent call last):\r
- File "C:\Python26\lib\site-packages\django\template\debug.py", line 71, in render_node\r
- result = node.render(context)\r
- File "C:\Python26\lib\site-packages\django\template\defaulttags.py", line 126, in render\r
- len_values = len(values)\r
- File "C:\Python26\lib\site-packages\django\db\models\query.py", line 81, in __len__\r
- self._result_cache = list(self.iterator())\r
- File "C:\Python26\lib\site-packages\django\db\models\query.py", line 756, in iterator\r
- for row in self.query.results_iter():\r
- File "C:\Python26\lib\site-packages\django\db\models\sql\query.py", line 287, in results_iter\r
- for rows in self.execute_sql(MULTI):\r
- File "C:\Python26\lib\site-packages\django\db\models\sql\query.py", line 2369, in execute_sql\r
- cursor.execute(sql, params)\r
- File "C:\Python26\lib\site-packages\django_debug_toolbar-0.8.3-py2.6.egg\debug_toolbar\panels\sql.py", line 91, in execute\r
- return self.cursor.execute(sql, params)\r
-ProgrammingError: column auth_user.bronze does not exist\r
-LINE 1: SELECT (auth_user.bronze) AS "la_user_bronze", (auth_user.si...\r
- ^\r
-\r
-\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 10:36:54,905 MSG: pagesize.py:process_exception:33 have exception Caught an exception while rendering: column auth_user.bronze does not exist\r
-LINE 1: SELECT (auth_user.bronze) AS "la_user_bronze", (auth_user.si...\r
- ^\r
-\r
-\r
-Original Traceback (most recent call last):\r
- File "C:\Python26\lib\site-packages\django\template\debug.py", line 71, in render_node\r
- result = node.render(context)\r
- File "C:\Python26\lib\site-packages\django\template\defaulttags.py", line 126, in render\r
- len_values = len(values)\r
- File "C:\Python26\lib\site-packages\django\db\models\query.py", line 81, in __len__\r
- self._result_cache = list(self.iterator())\r
- File "C:\Python26\lib\site-packages\django\db\models\query.py", line 756, in iterator\r
- for row in self.query.results_iter():\r
- File "C:\Python26\lib\site-packages\django\db\models\sql\query.py", line 287, in results_iter\r
- for rows in self.execute_sql(MULTI):\r
- File "C:\Python26\lib\site-packages\django\db\models\sql\query.py", line 2369, in execute_sql\r
- cursor.execute(sql, params)\r
- File "C:\Python26\lib\site-packages\django_debug_toolbar-0.8.3-py2.6.egg\debug_toolbar\panels\sql.py", line 91, in execute\r
- return self.cursor.execute(sql, params)\r
-ProgrammingError: column auth_user.bronze does not exist\r
-LINE 1: SELECT (auth_user.bronze) AS "la_user_bronze", (auth_user.si...\r
- ^\r
-\r
-\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 10:40:03,237 MSG: pagesize.py:process_exception:33 have exception Caught an exception while rendering: column auth_user.bronze does not exist\r
-LINE 1: SELECT (auth_user.bronze) AS "la_user_bronze", (auth_user.si...\r
- ^\r
-\r
-\r
-Original Traceback (most recent call last):\r
- File "C:\Python26\lib\site-packages\django\template\debug.py", line 71, in render_node\r
- result = node.render(context)\r
- File "C:\Python26\lib\site-packages\django\template\defaulttags.py", line 126, in render\r
- len_values = len(values)\r
- File "C:\Python26\lib\site-packages\django\db\models\query.py", line 81, in __len__\r
- self._result_cache = list(self.iterator())\r
- File "C:\Python26\lib\site-packages\django\db\models\query.py", line 756, in iterator\r
- for row in self.query.results_iter():\r
- File "C:\Python26\lib\site-packages\django\db\models\sql\query.py", line 287, in results_iter\r
- for rows in self.execute_sql(MULTI):\r
- File "C:\Python26\lib\site-packages\django\db\models\sql\query.py", line 2369, in execute_sql\r
- cursor.execute(sql, params)\r
- File "C:\Python26\lib\site-packages\django_debug_toolbar-0.8.3-py2.6.egg\debug_toolbar\panels\sql.py", line 91, in execute\r
- return self.cursor.execute(sql, params)\r
-ProgrammingError: column auth_user.bronze does not exist\r
-LINE 1: SELECT (auth_user.bronze) AS "la_user_bronze", (auth_user.si...\r
- ^\r
-\r
-\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 10:43:02,184 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 10:43:02,704 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/edit.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 11:12:33,444 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 11:12:33,822 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 11:12:34,104 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 11:12:48,657 MSG: readers.py:question:425 loaded from session latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 11:12:48,657 MSG: readers.py:question:436 view_id=latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 11:12:48,661 MSG: readers.py:question:442 /question/100/([\w-]+)\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 11:12:48,661 MSG: readers.py:question:443 /question/100/cant-create-language-file\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 11:12:48,661 MSG: readers.py:question:447 have slug cant-create-language-file\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 11:12:49,819 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 11:12:49,914 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 11:12:50,000 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 11:12:52,719 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 11:12:53,026 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/gray-up-arrow-h18px.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 11:12:53,111 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 11:12:55,526 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/vote-arrow-down-on.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 11:12:56,555 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/vote-arrow-up-on.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 11:12:58,950 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/vote-favorite-on.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 11:27:25,783 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 11:27:26,010 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 11:27:26,094 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 11:27:30,434 MSG: readers.py:question:425 loaded from session latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 11:27:30,434 MSG: readers.py:question:436 view_id=latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 11:27:30,438 MSG: readers.py:question:442 /question/96/([\w-]+)\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 11:27:30,440 MSG: readers.py:question:443 /question/96/mark-question-as-favorite-counter-bug\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 11:27:30,440 MSG: readers.py:question:447 have slug mark-question-as-favorite-counter-bug\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 11:27:30,641 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/52/alexlavr1">alexlavr1</a>\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 11:27:32,467 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 11:27:32,900 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/gray-up-arrow-h18px.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 11:27:34,999 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/vote-arrow-up-on.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 11:27:35,082 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/vote-arrow-down-on.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 11:27:38,832 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/vote-favorite-on.png" does not exist\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 11:27:58,831 MSG: readers.py:question:425 loaded from session latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 11:27:58,832 MSG: readers.py:question:436 view_id=latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 11:27:58,836 MSG: readers.py:question:442 /question/96/([\w-]+)\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 11:27:58,838 MSG: readers.py:question:443 /question/96/mark-question-as-favorite-counter-bug\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 11:27:58,838 MSG: readers.py:question:447 have slug mark-question-as-favorite-counter-bug\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 11:27:59,069 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/52/alexlavr1">alexlavr1</a>\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 11:28:00,778 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 11:28:01,641 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/gray-up-arrow-h18px.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 11:28:06,095 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/vote-arrow-down-on.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 11:28:11,033 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/vote-arrow-up-on.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 11:28:15,072 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 11:28:15,267 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 11:28:15,351 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 11:28:21,456 MSG: readers.py:question:425 loaded from session latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 11:28:21,456 MSG: readers.py:question:436 view_id=latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 11:28:21,461 MSG: readers.py:question:442 /question/100/([\w-]+)\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 11:28:21,461 MSG: readers.py:question:443 /question/100/cant-create-language-file\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 11:28:21,461 MSG: readers.py:question:447 have slug cant-create-language-file\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 11:28:21,678 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 11:28:21,739 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 11:28:21,822 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 11:28:23,707 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 11:28:23,986 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/gray-up-arrow-h18px.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 11:28:24,066 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 11:28:29,095 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/vote-arrow-up-on.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 11:28:32,855 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/vote-arrow-down.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 11:28:32,947 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/vote-arrow-up.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 11:32:28,454 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 11:32:28,658 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 11:32:28,740 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 11:35:45,316 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 11:35:45,661 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 11:35:46,032 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/feed-icon-small.png" does not exist\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 11:36:26,746 MSG: readers.py:question:425 loaded from session latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 11:36:26,746 MSG: readers.py:question:436 view_id=latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 11:36:26,753 MSG: readers.py:question:442 /question/100/([\w-]+)\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 11:36:26,753 MSG: readers.py:question:443 /question/100/cant-create-language-file\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 11:36:26,753 MSG: readers.py:question:447 have slug cant-create-language-file\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 11:36:27,065 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 11:36:27,125 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 11:36:27,207 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 11:36:28,927 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 11:36:29,272 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/gray-up-arrow-h18px.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 11:36:29,354 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 11:59:03,035 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/vote-arrow-down-on.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 11:59:03,141 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/vote-arrow-up-on.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 12:05:15,065 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/vote-favorite-on.png" does not exist\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:24:10,299 MSG: readers.py:question:425 loaded from session latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:24:10,301 MSG: readers.py:question:436 view_id=latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:24:10,306 MSG: readers.py:question:442 /question/100/([\w-]+)\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:24:10,306 MSG: readers.py:question:443 /question/100/cant-create-language-file\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:24:10,306 MSG: readers.py:question:447 have slug cant-create-language-file\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 17:24:10,594 MSG: pagesize.py:process_exception:33 have exception Invalid block tag: 'media'\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:25:37,198 MSG: readers.py:question:425 loaded from session latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:25:37,198 MSG: readers.py:question:436 view_id=latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:25:37,209 MSG: readers.py:question:442 /question/100/([\w-]+)\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:25:37,209 MSG: readers.py:question:443 /question/100/cant-create-language-file\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:25:37,209 MSG: readers.py:question:447 have slug cant-create-language-file\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 17:25:37,474 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 17:25:37,532 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 17:25:37,615 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 17:25:39,431 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 17:25:40,209 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/gray-up-arrow-h18px.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 17:25:40,598 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 17:25:50,456 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/vote-arrow-up-on.png" does not exist\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:26:30,556 MSG: readers.py:question:425 loaded from session latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:26:30,556 MSG: readers.py:question:436 view_id=latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:26:30,562 MSG: readers.py:question:442 /question/100/([\w-]+)\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:26:30,562 MSG: readers.py:question:443 /question/100/cant-create-language-file\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:26:30,562 MSG: readers.py:question:447 have slug cant-create-language-file\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 17:26:30,819 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 17:26:30,882 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 17:26:31,002 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 17:26:32,953 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 17:26:33,984 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/gray-up-arrow-h18px.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 17:26:34,098 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:27:01,884 MSG: readers.py:question:425 loaded from session latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:27:01,884 MSG: readers.py:question:436 view_id=latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:27:01,890 MSG: readers.py:question:442 /question/100/([\w-]+)\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:27:01,890 MSG: readers.py:question:443 /question/100/cant-create-language-file\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:27:01,890 MSG: readers.py:question:447 have slug cant-create-language-file\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 17:27:02,142 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 17:27:02,220 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 17:27:02,315 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 17:27:05,984 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 17:27:07,069 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/gray-up-arrow-h18px.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 17:27:07,190 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:27:46,621 MSG: readers.py:question:425 loaded from session latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:27:46,621 MSG: readers.py:question:436 view_id=latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:27:46,627 MSG: readers.py:question:442 /question/100/([\w-]+)\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:27:46,627 MSG: readers.py:question:443 /question/100/cant-create-language-file\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:27:46,627 MSG: readers.py:question:447 have slug cant-create-language-file\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 17:27:46,892 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 17:27:46,960 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 17:27:47,040 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 17:27:49,003 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 17:27:49,926 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/gray-up-arrow-h18px.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 17:27:50,013 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:28:54,795 MSG: readers.py:question:425 loaded from session latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:28:54,795 MSG: readers.py:question:436 view_id=latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:28:54,801 MSG: readers.py:question:442 /question/100/([\w-]+)\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:28:54,801 MSG: readers.py:question:443 /question/100/cant-create-language-file\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:28:54,802 MSG: readers.py:question:447 have slug cant-create-language-file\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 17:28:55,040 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 17:28:55,099 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 17:28:55,181 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 17:28:56,966 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 17:28:57,637 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/gray-up-arrow-h18px.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 17:28:57,999 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:29:42,157 MSG: readers.py:question:425 loaded from session latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:29:42,157 MSG: readers.py:question:436 view_id=latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:29:42,161 MSG: readers.py:question:442 /question/100/([\w-]+)\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:29:42,161 MSG: readers.py:question:443 /question/100/cant-create-language-file\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:29:42,163 MSG: readers.py:question:447 have slug cant-create-language-file\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 17:29:42,384 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 17:29:42,441 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 17:29:42,532 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 17:29:44,647 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 17:29:45,463 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/gray-up-arrow-h18px.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 17:29:45,821 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 17:29:47,941 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/vote-favorite-on.png" does not exist\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:30:45,427 MSG: readers.py:question:425 loaded from session latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:30:45,427 MSG: readers.py:question:436 view_id=latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:30:45,437 MSG: readers.py:question:442 /question/100/([\w-]+)\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:30:45,437 MSG: readers.py:question:443 /question/100/cant-create-language-file\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:30:45,437 MSG: readers.py:question:447 have slug cant-create-language-file\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 17:30:45,694 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 17:30:45,752 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 17:30:45,835 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 17:30:47,762 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 17:30:48,681 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/gray-up-arrow-h18px.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 17:30:48,780 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 17:31:16,344 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/vote-favorite-on.png" does not exist\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:31:17,696 MSG: readers.py:question:425 loaded from session latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:31:17,696 MSG: readers.py:question:436 view_id=latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:31:17,703 MSG: readers.py:question:442 /question/100/([\w-]+)\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:31:17,703 MSG: readers.py:question:443 /question/100/cant-create-language-file\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:31:17,703 MSG: readers.py:question:447 have slug cant-create-language-file\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 17:31:17,940 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 17:31:17,997 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 17:31:18,115 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 17:31:20,134 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/style/jquery.autocomplete.css" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 17:31:20,776 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/gray-up-arrow-h18px.png" does not exist\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 17:31:21,292 MSG: pagesize.py:process_exception:33 have exception "D:/osqa/dev/osqa/forum/skins\css3/media/images/dot-list.gif" does not exist\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:31:28,829 MSG: readers.py:question:425 loaded from session latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:31:28,831 MSG: readers.py:question:436 view_id=latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:31:28,842 MSG: readers.py:question:442 /question/100/([\w-]+)\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:31:28,842 MSG: readers.py:question:443 /question/100/cant-create-language-file\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:31:28,842 MSG: readers.py:question:447 have slug cant-create-language-file\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 17:31:29,138 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 17:31:29,194 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 17:31:29,276 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:39:38,627 MSG: readers.py:question:425 loaded from session latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:39:38,627 MSG: readers.py:question:436 view_id=latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:39:38,631 MSG: readers.py:question:442 /question/100/([\w-]+)\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:39:38,631 MSG: readers.py:question:443 /question/100/cant-create-language-file\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:39:38,632 MSG: readers.py:question:447 have slug cant-create-language-file\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 17:39:38,875 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 17:39:38,934 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 17:39:39,010 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:42:39,631 MSG: readers.py:question:425 loaded from session latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:42:39,632 MSG: readers.py:question:436 view_id=latest\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:42:39,638 MSG: readers.py:question:442 /question/100/([\w-]+)\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:42:39,638 MSG: readers.py:question:443 /question/100/cant-create-language-file\r
-d:\osqa\dev\osqa\forum\views\readers.py TIME: 2010-03-29 17:42:39,638 MSG: readers.py:question:447 have slug cant-create-language-file\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 17:42:39,858 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 17:42:39,914 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-29 17:42:39,993 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-29 21:17:43,624 MSG: pagesize.py:process_exception:33 have exception Caught an exception while rendering: column auth_user.gold does not exist\r
-LINE 1: SELECT DISTINCT (auth_user.username) AS "name", (auth_user.g...\r
- ^\r
-\r
-\r
-Original Traceback (most recent call last):\r
- File "C:\Python26\lib\site-packages\django\template\debug.py", line 71, in render_node\r
- result = node.render(context)\r
- File "C:\Python26\lib\site-packages\django\template\debug.py", line 87, in render\r
- output = force_unicode(self.filter_expression.resolve(context))\r
- File "C:\Python26\lib\site-packages\django\template\__init__.py", line 572, in resolve\r
- new_obj = func(obj, *arg_vals)\r
- File "C:\Python26\lib\site-packages\django\template\defaultfilters.py", line 523, in length\r
- return len(value)\r
- File "C:\Python26\lib\site-packages\django\db\models\query.py", line 81, in __len__\r
- self._result_cache = list(self.iterator())\r
- File "C:\Python26\lib\site-packages\django\db\models\query.py", line 238, in iterator\r
- for row in self.query.results_iter():\r
- File "C:\Python26\lib\site-packages\django\db\models\sql\query.py", line 287, in results_iter\r
- for rows in self.execute_sql(MULTI):\r
- File "C:\Python26\lib\site-packages\django\db\models\sql\query.py", line 2369, in execute_sql\r
- cursor.execute(sql, params)\r
- File "C:\Python26\lib\site-packages\django_debug_toolbar-0.8.3-py2.6.egg\debug_toolbar\panels\sql.py", line 91, in execute\r
- return self.cursor.execute(sql, params)\r
-ProgrammingError: column auth_user.gold does not exist\r
-LINE 1: SELECT DISTINCT (auth_user.username) AS "name", (auth_user.g...\r
- ^\r
-\r
-\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-30 00:22:42,796 MSG: pagesize.py:process_exception:33 have exception Caught an exception while rendering: Reverse for 'question' with arguments '()' and keyword arguments '{'id': 104}' not found.\r
-\r
-Original Traceback (most recent call last):\r
- File "C:\Python26\lib\site-packages\django\template\debug.py", line 71, in render_node\r
- result = node.render(context)\r
- File "C:\Python26\lib\site-packages\django\template\defaulttags.py", line 382, in render\r
- raise e\r
-NoReverseMatch: Reverse for 'question' with arguments '()' and keyword arguments '{'id': 104}' not found.\r
-\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-30 02:52:03,246 MSG: pagesize.py:process_exception:33 have exception global name 'answer' is not defined\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-30 02:53:01,062 MSG: pagesize.py:process_exception:33 have exception 'AnonymousUser' object has no attribute 'subscription_settings'\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-30 02:53:25,250 MSG: pagesize.py:process_exception:33 have exception 'AnonymousUser' object has no attribute 'subscription_settings'\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-30 02:56:15,960 MSG: pagesize.py:process_exception:33 have exception Invalid block tag: 'trans'\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 02:56:42,651 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 02:56:42,676 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 02:56:42,694 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 09:14:32,982 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 09:14:33,040 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 09:14:33,095 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 09:41:00,528 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 09:41:00,558 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 09:41:00,569 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 09:41:00,595 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 09:41:00,619 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 09:41:00,641 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 09:41:00,664 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 09:41:00,680 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 09:41:00,700 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 09:41:00,723 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/11/gandulo">Gandulo</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 11:27:55,456 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 11:27:55,515 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 11:27:55,556 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 19:25:12,288 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/56/adumlah">adumlah</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 19:25:12,335 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 19:25:12,348 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 19:25:12,355 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 19:27:10,976 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/56/adumlah">adumlah</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 19:27:11,005 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 19:27:11,017 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 19:27:11,023 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 19:27:58,983 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/56/adumlah">adumlah</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 19:27:59,006 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 19:27:59,019 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 19:27:59,026 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 19:35:19,229 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/56/adumlah">adumlah</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 19:35:19,255 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 19:35:19,267 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 19:35:19,275 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 19:36:11,082 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 19:36:11,117 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 19:36:11,154 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 19:37:24,987 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 19:37:25,016 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/13/joseph">Joseph</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 19:39:11,969 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 19:39:12,000 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/13/joseph">Joseph</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 19:40:02,839 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 19:40:02,845 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 19:40:02,872 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 19:40:02,895 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 19:43:29,471 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 19:43:29,496 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 19:43:29,515 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 20:03:55,140 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 20:03:55,164 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 20:03:55,184 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 20:04:19,486 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 20:04:19,545 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 20:04:19,589 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 20:05:47,285 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 20:05:47,342 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 20:05:47,392 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 20:06:29,924 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 20:06:29,989 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 20:06:30,030 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 20:08:30,848 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 20:08:30,918 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 20:08:31,010 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 20:10:10,305 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 20:10:10,381 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 20:10:10,427 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 20:10:35,878 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 20:10:35,938 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 20:10:35,980 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 20:11:04,312 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 20:11:04,400 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 20:11:04,467 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 23:36:44,483 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 23:36:44,540 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 23:36:44,585 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 23:37:11,947 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 23:37:12,006 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 23:37:12,049 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 23:40:54,015 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 23:40:54,072 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 23:40:54,118 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 23:40:58,737 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 23:40:58,795 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 23:40:58,836 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-30 23:41:06,224 MSG: pagesize.py:process_exception:33 have exception Reverse for 'question' with arguments '(100,)' and keyword arguments '{}' not found.\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 23:42:58,615 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 23:42:58,673 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 23:42:58,717 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 23:43:03,401 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 23:43:03,460 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 23:43:03,502 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 23:59:23,046 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 23:59:23,105 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-30 23:59:23,147 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:00:02,408 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:00:02,467 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:00:02,509 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:03:28,835 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:03:28,892 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:03:28,937 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:04:34,217 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:04:34,306 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:04:34,359 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:22:54,766 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:22:54,825 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:22:54,868 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:23:24,736 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:23:24,808 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:23:24,861 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:24:33,469 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:24:33,526 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:24:33,569 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:25:00,210 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:25:00,293 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:25:00,348 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:25:32,130 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:25:32,210 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:25:32,256 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:26:38,930 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:26:38,990 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:26:39,032 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:26:59,207 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:26:59,265 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:26:59,308 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:27:30,355 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:27:30,413 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:27:30,460 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:28:46,658 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:28:46,723 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:28:46,766 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:29:26,150 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:29:26,220 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:29:26,266 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:31:33,882 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:31:33,944 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:31:33,989 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:33:22,984 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:33:23,042 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:33:23,088 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:34:15,448 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:34:15,506 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:34:15,551 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:34:36,316 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:34:36,377 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 00:34:36,421 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:17:10,247 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:17:10,305 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:17:10,351 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:17:53,128 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:17:53,194 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:17:53,240 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:19:22,828 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:19:22,927 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:19:22,980 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:19:46,607 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:19:46,674 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:19:46,723 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:20:15,648 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:20:15,686 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:20:15,697 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:20:15,724 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:20:15,747 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:20:15,772 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:20:15,792 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:20:15,809 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:20:15,832 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:20:15,852 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/11/gandulo">Gandulo</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:20:37,585 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:20:37,642 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:20:37,684 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-31 02:20:45,513 MSG: pagesize.py:process_exception:33 have exception <class 'forum.models.question.Question'> is not JSON serializable\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:21:02,026 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:21:02,085 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:21:02,128 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:21:23,608 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:21:23,664 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:21:23,707 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:21:45,641 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:21:45,700 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:21:45,743 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\badges\base.py TIME: 2010-03-31 02:24:12,625 MSG: base.py:award_badge:53 Trying to award badged already awarded.\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-31 02:24:13,203 MSG: pagesize.py:process_exception:33 have exception <class 'forum.models.question.Question'> is not JSON serializable\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-31 02:24:17,400 MSG: pagesize.py:process_exception:33 have exception <class 'forum.models.question.Question'> is not JSON serializable\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:24:19,147 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:24:19,209 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:24:19,240 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\badges\base.py TIME: 2010-03-31 02:24:24,871 MSG: base.py:award_badge:53 Trying to award badged already awarded.\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-31 02:24:25,464 MSG: pagesize.py:process_exception:33 have exception <class 'forum.models.question.Question'> is not JSON serializable\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-31 02:24:31,253 MSG: pagesize.py:process_exception:33 have exception <class 'forum.models.question.Question'> is not JSON serializable\r
-d:\osqa\dev\osqa\forum\badges\base.py TIME: 2010-03-31 02:27:05,345 MSG: base.py:award_badge:53 Trying to award badged already awarded.\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:52:15,709 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:52:15,770 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:52:15,802 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:52:29,624 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:52:29,686 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:52:29,733 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:52:39,467 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:52:39,513 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 02:52:39,561 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\badges\base.py TIME: 2010-03-31 02:52:44,194 MSG: base.py:award_badge:53 Trying to award badged already awarded.\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 03:02:37,150 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 03:02:37,213 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 03:02:37,259 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 03:05:45,983 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 03:05:46,045 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 03:05:46,092 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\badges\base.py TIME: 2010-03-31 03:05:55,624 MSG: base.py:award_badge:53 Trying to award badged already awarded.\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 12:21:55,688 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 12:21:55,756 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-03-31 12:21:55,802 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\middleware\pagesize.py TIME: 2010-03-31 12:27:23,460 MSG: pagesize.py:process_exception:33 have exception 'VoteManager' object has no attribute 'get_votes_count_today_from_user'\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 01:49:39,418 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 01:49:39,480 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 01:49:39,528 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 01:52:24,585 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 01:52:24,648 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 01:52:24,694 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\badges\base.py TIME: 2010-04-01 02:42:48,499 MSG: base.py:award_badge:53 Trying to award badged already awarded.\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 02:42:49,091 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 02:42:49,154 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 02:42:49,184 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-c:\python26\lib\site-packages\south-0.7-py2.6.egg\south\db\generic.py TIME: 2010-04-01 22:17:26,864 MSG: generic.py:execute:129 south execute "ALTER TABLE "vote" ADD COLUMN "canceled" boolean NOT NULL DEFAULT False;" with params "[]"\r
-c:\python26\lib\site-packages\south-0.7-py2.6.egg\south\db\generic.py TIME: 2010-04-01 22:17:27,269 MSG: generic.py:execute:129 south execute "ALTER TABLE "vote" ALTER COLUMN "canceled" TYPE boolean, ALTER COLUMN "canceled" DROP DEFAULT, ALTER COLUMN "canceled" SET NOT NULL;" with params "[]"\r
-c:\python26\lib\site-packages\south-0.7-py2.6.egg\south\db\generic.py TIME: 2010-04-01 22:28:46,187 MSG: generic.py:execute:129 south execute "\r
- SELECT kc.constraint_name, kc.column_name\r
- FROM information_schema.key_column_usage AS kc\r
- JOIN information_schema.table_constraints AS c ON\r
- kc.table_schema = c.table_schema AND\r
- kc.table_name = c.table_name AND\r
- kc.constraint_name = c.constraint_name\r
- WHERE\r
- kc.table_schema = %s AND\r
- kc.table_name = %s AND\r
- c.constraint_type = %s\r
- " with params "['public', u'vote', 'UNIQUE']"\r
-c:\python26\lib\site-packages\south-0.7-py2.6.egg\south\db\generic.py TIME: 2010-04-01 22:28:46,436 MSG: generic.py:execute:129 south execute "ALTER TABLE "vote" DROP CONSTRAINT "vote_content_type_id_key"" with params "[]"\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:42:24,102 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:42:24,161 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:42:24,204 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:42:29,483 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:42:29,552 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:42:29,598 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:42:35,196 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:42:35,263 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:42:35,306 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:42:39,119 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:42:39,177 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:42:39,220 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:42:42,845 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:42:42,903 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:42:42,944 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:48:22,765 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:48:22,836 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:48:22,887 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:48:26,976 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:48:27,033 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:48:27,078 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:48:49,438 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:48:49,513 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:48:49,565 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:50:27,982 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:50:28,039 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:50:28,081 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:54:03,338 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:54:03,404 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:54:03,447 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:54:08,651 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:54:08,730 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:54:08,786 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:55:07,030 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:55:07,091 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:55:07,135 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:55:11,878 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:55:11,937 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:55:11,980 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:55:40,117 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:55:40,180 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:55:40,224 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:56:01,609 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:56:01,670 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:56:01,711 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:56:14,849 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:56:14,921 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:56:14,973 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:56:20,364 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:56:20,423 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:56:20,469 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:56:24,986 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:56:25,049 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:56:25,092 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:59:59,500 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:59:59,562 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 22:59:59,619 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:00:36,443 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:00:36,503 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:00:36,546 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:01:28,240 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:01:28,325 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:01:28,381 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:01:48,556 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:01:48,617 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:01:48,660 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:01:53,714 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:01:53,776 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:01:53,819 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:02:18,203 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:02:18,263 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:02:18,306 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:02:35,210 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:02:35,270 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:02:35,315 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:03:15,365 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:03:15,424 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:03:15,467 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:04:18,734 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:04:18,795 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:04:18,838 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:04:24,194 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:04:24,253 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:04:24,298 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:04:33,032 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:04:33,089 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:04:33,132 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:04:38,263 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:04:38,319 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:04:38,361 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:04:44,749 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:04:44,813 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:04:44,867 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:05:37,298 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:05:37,358 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:05:37,401 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:05:49,937 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:05:49,996 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:05:50,039 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:06:50,634 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:06:50,696 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:06:50,740 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:11:36,211 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:11:36,273 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:11:36,316 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:11:41,311 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:11:41,368 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-01 23:11:41,414 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 00:26:06,581 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 00:26:06,642 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 00:26:06,690 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 00:26:13,523 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 00:26:13,585 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 00:26:13,631 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 00:26:18,811 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 00:26:18,874 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 00:26:18,904 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 00:26:23,788 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 00:26:23,849 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 00:26:23,881 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 00:29:07,680 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 00:29:07,743 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 00:29:07,789 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 00:39:13,276 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 00:39:13,338 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 00:39:13,384 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 00:39:26,582 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 00:39:26,630 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 00:39:26,677 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 00:39:31,762 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 00:39:31,825 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 00:39:31,871 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 00:45:31,844 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 00:45:31,905 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 00:45:31,937 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 00:46:25,180 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 00:46:25,226 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 00:46:25,273 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 00:49:44,897 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 00:49:44,944 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 00:49:44,990 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 00:50:19,144 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 00:50:19,176 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 00:50:19,207 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 00:50:31,280 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 00:50:31,312 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 00:50:31,344 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 01:06:21,211 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 01:06:21,243 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 01:06:21,275 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 01:06:25,440 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 01:06:25,470 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 01:06:25,486 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 01:07:44,197 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 01:07:44,229 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 01:07:44,259 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 01:12:08,707 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 01:12:08,753 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 01:12:08,769 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 01:12:26,319 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 01:12:26,349 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 01:12:26,365 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 01:12:32,512 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 01:12:32,542 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 01:12:32,575 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 01:12:40,921 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 01:12:40,951 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 01:12:40,983 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 01:13:19,450 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 01:13:19,496 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 01:13:19,528 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 01:13:29,278 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 01:13:29,309 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 01:13:29,325 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 01:13:34,487 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 01:13:34,519 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 01:13:34,535 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:19:01,490 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:19:01,538 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:19:01,553 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:19:07,575 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:19:07,607 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:19:07,638 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:19:11,756 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:19:11,786 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:19:11,819 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:19:16,265 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:19:16,296 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:19:16,326 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:19:37,694 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:19:37,742 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:19:37,756 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:19:50,565 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:19:50,595 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:19:50,595 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:19:50,642 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:19:50,658 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:19:50,690 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:19:50,704 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:19:50,720 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:19:50,752 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:19:50,767 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/11/gandulo">Gandulo</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:21:59,125 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/52/alexlavr1">alexlavr1</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:22:09,796 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/52/alexlavr1">alexlavr1</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:22:38,967 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/52/alexlavr1">alexlavr1</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:44:27,951 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:44:27,986 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:44:28,015 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:45:46,454 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:45:46,490 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:45:46,517 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:46:28,355 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:46:28,398 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:46:28,427 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:47:16,302 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:47:16,345 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:47:16,372 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:48:25,717 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:48:25,747 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:48:25,779 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:51:27,138 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:51:27,184 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:51:27,200 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:52:45,381 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:52:45,413 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:52:45,444 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:52:56,519 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:52:56,551 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:52:56,582 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:53:03,088 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:53:03,118 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:53:03,150 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:54:34,293 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:54:34,325 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:54:34,371 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:57:17,941 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:57:17,973 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 02:57:18,005 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 03:00:28,714 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 03:00:28,762 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 03:00:28,792 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 04:08:18,730 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 04:08:18,762 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 04:08:18,793 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 04:09:03,598 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 04:09:03,635 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 04:09:03,683 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 04:09:10,984 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 04:09:11,016 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 04:09:11,048 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 04:09:25,375 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 04:09:25,423 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 04:09:25,437 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 04:09:57,267 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 04:09:57,299 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 04:09:57,331 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\badges\base.py TIME: 2010-04-02 04:10:09,513 MSG: base.py:award_badge:53 Trying to award badged already awarded.\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 04:10:37,706 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 04:10:37,743 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 04:10:37,786 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 04:11:56,599 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 04:11:56,647 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 04:11:56,661 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 04:12:07,503 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 04:12:07,551 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 04:12:07,582 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 04:12:17,721 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 04:12:17,753 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 04:12:17,769 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 05:30:15,842 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/56/adumlah">adumlah</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 05:35:41,392 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/56/adumlah">adumlah</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 05:35:44,404 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/56/adumlah">adumlah</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 05:36:19,246 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/56/adumlah">adumlah</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 05:36:19,308 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 05:36:19,323 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 05:36:19,338 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 05:36:33,364 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 05:36:33,364 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 05:36:33,394 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 05:36:33,410 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 05:36:40,523 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 05:36:40,571 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 05:37:24,986 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 05:37:25,049 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 14:50:25,043 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 14:50:52,609 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 14:50:52,668 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 15:13:21,913 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 15:13:21,963 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 15:14:15,825 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 15:14:15,885 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 15:16:40,831 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 15:16:40,898 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 15:18:28,157 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 15:18:28,236 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 15:19:09,897 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 15:21:10,049 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 15:21:31,217 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 15:21:31,243 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 15:21:31,257 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 15:21:55,315 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 15:21:55,355 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 15:22:48,009 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 15:22:48,062 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 15:23:32,217 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 15:23:32,269 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 15:27:46,940 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 15:27:46,993 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 15:28:19,608 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 15:28:19,660 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 15:28:31,793 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 15:28:31,861 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 15:28:46,246 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 15:28:46,407 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 15:30:22,839 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 15:30:23,000 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 15:34:21,387 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 15:34:21,440 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 15:35:43,940 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 15:35:43,990 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 21:07:07,020 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 21:07:07,098 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 21:09:10,976 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 21:09:11,039 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 21:10:09,519 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 21:10:09,565 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 21:12:08,213 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 21:12:08,260 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 22:22:52,809 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-02 22:22:52,855 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 00:42:10,387 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 00:42:10,450 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 00:42:41,474 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 00:42:41,770 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 00:43:12,362 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 00:43:12,424 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 00:49:49,229 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 00:49:49,354 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 00:53:36,757 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 00:53:36,815 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 00:54:34,599 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 00:54:34,664 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 00:55:25,618 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 00:55:25,668 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 00:55:47,484 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 00:55:47,548 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 01:02:51,006 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 01:02:51,052 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 01:03:59,834 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 01:04:00,049 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 01:04:35,954 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 01:04:36,026 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 01:04:59,825 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 01:04:59,944 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 01:13:02,289 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 01:13:02,351 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 01:13:32,487 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 01:13:32,565 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 01:14:00,351 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 01:14:00,585 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 01:14:12,992 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 01:14:13,049 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 01:14:27,207 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 01:14:27,378 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 01:14:50,992 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 01:14:51,055 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 01:15:40,730 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 01:15:40,785 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 01:16:14,440 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 01:16:14,496 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 01:17:22,957 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 01:17:23,035 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 01:18:47,272 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 01:18:47,365 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 01:24:35,897 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 01:24:36,163 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 01:24:59,898 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 01:24:59,953 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 01:25:49,197 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 01:25:49,270 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 01:26:35,796 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 01:26:35,874 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 01:27:26,654 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 01:27:26,730 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 01:28:13,821 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 01:28:13,882 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 02:28:48,917 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 02:28:48,996 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 02:31:29,812 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 02:31:29,890 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 02:32:05,536 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 02:32:05,598 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 02:33:31,927 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 02:33:31,994 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 02:45:33,319 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 02:45:33,413 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 02:47:35,795 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 02:47:35,858 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 02:48:11,846 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 02:48:11,908 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 02:49:03,305 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 02:49:03,368 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 02:50:14,299 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 02:50:14,361 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 02:50:20,336 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 02:50:20,414 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 03:12:57,112 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 03:12:57,190 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 03:13:02,385 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 03:13:02,447 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 03:14:18,394 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 03:14:18,473 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 03:14:24,838 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 03:14:24,900 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 03:14:32,029 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 03:14:32,108 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 03:14:38,753 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 03:14:38,831 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 03:14:49,766 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 03:14:49,828 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 03:15:19,918 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 03:15:19,971 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 03:15:50,714 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 03:15:50,778 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 03:16:39,875 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 03:16:39,937 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 03:17:29,032 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 03:17:29,088 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 03:32:41,407 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 03:32:41,484 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 03:33:29,861 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 03:33:29,907 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 03:45:54,976 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 03:46:29,571 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 03:46:29,690 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 03:47:29,088 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 03:47:29,150 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 03:51:48,216 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 03:51:48,263 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 03:52:39,484 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 03:52:39,540 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 03:53:00,249 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 03:53:00,357 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 03:54:02,515 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 03:54:02,561 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 03:55:29,894 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 03:55:29,956 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 04:13:04,793 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 04:13:04,839 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 04:25:02,380 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 04:25:02,441 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 04:27:15,808 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 04:27:15,855 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 04:27:43,201 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 04:27:43,262 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 04:28:41,615 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 04:28:41,661 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 04:51:15,269 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 04:51:15,348 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 04:52:44,278 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 04:52:44,339 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 05:00:16,282 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 05:00:16,345 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 05:57:30,956 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 05:57:31,019 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 05:57:53,549 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 05:57:53,612 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 05:59:05,954 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 05:59:06,016 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\badges\base.py TIME: 2010-04-03 05:59:11,867 MSG: base.py:award_badge:53 Trying to award badged already awarded.\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 05:59:12,522 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 05:59:12,585 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 05:59:16,733 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 05:59:16,796 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\badges\base.py TIME: 2010-04-03 05:59:22,397 MSG: base.py:award_badge:53 Trying to award badged already awarded.\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 05:59:22,911 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 05:59:22,959 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 06:04:41,101 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 06:04:41,163 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\badges\base.py TIME: 2010-04-03 06:04:49,993 MSG: base.py:award_badge:53 Trying to award badged already awarded.\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 06:07:08,598 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 06:07:08,677 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 06:08:44,020 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 06:08:44,114 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 06:09:22,608 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 06:09:22,671 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 06:13:41,246 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 06:13:41,309 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 06:14:52,884 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 06:14:52,963 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 06:19:35,555 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 06:19:35,618 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 06:19:51,522 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 06:19:51,599 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 06:22:57,496 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 06:22:57,558 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\badges\base.py TIME: 2010-04-03 06:23:03,736 MSG: base.py:award_badge:53 Trying to award badged already awarded.\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 06:26:34,098 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 06:26:34,177 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 06:27:12,638 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 06:27:12,732 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 06:30:11,198 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 06:30:11,292 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 21:55:26,266 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 21:55:26,407 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 21:55:36,671 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 21:55:36,750 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 21:55:57,404 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 21:55:57,483 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 21:56:20,566 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 21:56:20,645 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 21:56:40,240 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 21:56:40,318 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 21:56:55,668 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 21:56:55,746 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 21:57:04,749 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 21:57:04,842 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 21:57:16,526 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 21:57:16,619 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 21:57:24,029 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 21:57:24,108 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 21:58:06,237 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 21:58:06,331 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 21:58:16,533 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 21:58:16,611 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 21:58:56,539 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 21:58:56,632 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 21:59:05,102 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 21:59:05,180 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 21:59:12,857 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 21:59:12,934 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 22:23:48,502 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 22:23:48,595 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 22:38:42,605 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 22:38:57,342 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 22:38:57,451 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 22:41:29,283 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 22:41:29,361 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 22:43:49,601 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 22:43:49,680 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 22:46:05,503 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 22:46:05,602 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 22:47:05,578 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 22:47:05,671 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 22:47:19,901 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 22:47:19,990 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 22:52:04,484 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 22:52:04,578 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 22:53:09,404 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 22:53:09,483 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 23:08:23,019 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 23:08:23,049 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 23:08:23,065 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 23:08:23,065 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 23:08:23,081 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 23:08:23,096 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 23:08:23,111 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 23:08:23,128 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 23:08:23,144 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 23:08:23,158 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 23:57:01,313 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-03 23:57:01,407 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 00:04:07,293 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 00:04:07,387 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 00:04:29,407 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 00:04:29,500 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 00:06:12,688 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 00:06:12,766 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 00:07:04,003 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 00:07:04,081 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 00:08:14,099 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 00:08:14,194 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 00:09:23,848 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 00:09:23,940 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 00:32:30,763 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 00:32:30,888 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 00:32:47,282 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 00:32:47,391 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 00:34:58,262 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 00:34:58,371 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 00:41:39,036 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 00:41:39,131 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 00:41:56,400 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 00:41:56,493 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 00:42:23,536 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 00:42:23,644 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 00:46:14,026 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 00:46:14,088 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 00:47:36,562 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 00:47:36,668 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 00:53:25,049 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 00:53:25,128 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 00:53:57,403 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 00:53:57,473 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 00:56:00,306 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 00:56:00,369 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 00:57:06,289 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 00:57:06,365 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 00:57:33,269 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 00:57:33,331 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 01:24:09,605 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 01:24:09,683 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 01:24:33,078 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 01:24:33,140 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 01:30:29,644 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 01:30:29,707 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 01:38:40,736 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 01:38:40,799 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 01:39:25,224 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 01:39:25,302 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 02:44:41,815 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 02:44:41,892 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 02:45:17,351 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 02:45:17,430 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 02:45:24,371 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 02:45:24,450 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 02:46:36,881 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/80/mrdoornbos">mrdoornbos</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 02:46:36,927 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/80/mrdoornbos">mrdoornbos</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 02:46:36,943 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 02:46:36,943 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 02:46:51,138 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 02:46:51,186 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/51/dz_brandon">DZ_Brandon</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:03:32,671 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:03:32,671 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:03:32,717 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:03:32,717 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/59/dakota23123">dakota23123</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:03:32,733 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:07:08,207 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:07:08,207 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:07:08,247 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:07:08,257 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/59/dakota23123">dakota23123</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:07:08,267 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:45:26,131 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:45:26,131 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:45:48,171 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:45:48,176 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:45:48,221 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:45:48,253 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/59/dakota23123">dakota23123</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:45:48,267 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:46:24,976 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:46:24,993 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:46:25,023 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:46:25,055 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/59/dakota23123">dakota23123</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:46:25,086 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:47:32,420 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:47:32,436 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:47:32,483 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:47:32,545 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/59/dakota23123">dakota23123</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:47:32,561 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:48:20,578 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:48:20,578 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:48:20,625 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:48:20,671 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/59/dakota23123">dakota23123</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:48:20,687 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:51:07,312 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:51:07,326 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:51:07,374 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:51:07,404 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/59/dakota23123">dakota23123</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:51:07,421 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:54:22,921 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:54:22,921 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:54:22,969 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:54:23,032 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/59/dakota23123">dakota23123</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:54:23,062 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:54:47,789 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:54:47,789 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:54:47,835 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:54:47,867 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/59/dakota23123">dakota23123</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 03:54:47,881 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 04:12:17,516 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 04:12:17,516 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 04:12:17,563 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 04:12:17,595 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/59/dakota23123">dakota23123</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 04:12:17,625 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 04:12:49,163 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 04:12:49,163 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 04:12:49,223 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 04:12:49,256 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/59/dakota23123">dakota23123</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 04:12:49,283 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 04:18:07,775 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 04:18:07,775 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 04:18:07,838 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/59/dakota23123">dakota23123</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 04:18:07,868 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 04:18:07,884 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 04:18:17,572 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 04:18:17,572 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 04:18:17,618 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 04:18:17,680 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 04:18:17,697 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/59/dakota23123">dakota23123</a>\r
-d:\osqa\dev\osqa\forum\badges\base.py TIME: 2010-04-04 04:19:03,269 MSG: base.py:award_badge:53 Trying to award badged already awarded.\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 04:19:06,249 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 04:19:06,249 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 04:19:06,311 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 04:19:06,342 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/59/dakota23123">dakota23123</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 04:19:06,374 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 05:33:40,654 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 05:33:40,671 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 05:33:40,701 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 05:33:40,733 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/59/dakota23123">dakota23123</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 05:33:40,763 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 05:52:22,450 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 05:52:22,464 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 05:52:22,512 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 05:52:22,542 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/59/dakota23123">dakota23123</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 05:52:22,559 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 05:53:08,951 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 05:53:08,951 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 05:53:08,997 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 05:53:09,029 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/59/dakota23123">dakota23123</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 05:53:09,061 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 05:53:27,081 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 05:53:27,088 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 05:53:27,121 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 05:53:27,184 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/59/dakota23123">dakota23123</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 05:53:27,214 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 19:44:57,829 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 19:44:57,845 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 19:44:57,907 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 19:44:57,938 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/59/dakota23123">dakota23123</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 19:44:57,970 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 19:46:09,230 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 19:46:09,233 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 19:46:38,388 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 19:46:38,404 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 19:46:38,482 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 19:46:38,529 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/59/dakota23123">dakota23123</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 19:46:38,559 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\badges\base.py TIME: 2010-04-04 19:47:22,630 MSG: base.py:award_badge:53 Trying to award badged already awarded.\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 19:47:29,572 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 19:47:29,572 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 19:47:29,618 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 19:47:29,650 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/59/dakota23123">dakota23123</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 19:47:29,681 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 19:48:59,443 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 19:48:59,453 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 19:48:59,502 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 19:48:59,539 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/59/dakota23123">dakota23123</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-04 19:48:59,555 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\badges\base.py TIME: 2010-04-05 00:39:19,269 MSG: base.py:award_badge:53 Trying to award badged already awarded.\r
-d:\osqa\dev\osqa\forum\badges\base.py TIME: 2010-04-05 00:39:26,809 MSG: base.py:award_badge:53 Trying to award badged already awarded.\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 01:55:25,301 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 01:55:25,305 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 01:55:25,348 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 01:55:25,387 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/59/dakota23123">dakota23123</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 01:55:25,414 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 01:56:02,595 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 01:56:02,601 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 01:56:02,644 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 01:56:02,683 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/59/dakota23123">dakota23123</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 01:56:02,714 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:06:22,644 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:06:22,651 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:06:22,690 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:06:22,816 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/59/dakota23123">dakota23123</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:06:22,851 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:06:53,752 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:06:53,756 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:06:53,799 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:06:53,835 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/59/dakota23123">dakota23123</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:06:53,862 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:17:41,046 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:17:41,051 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:17:41,095 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:17:41,132 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/59/dakota23123">dakota23123</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:17:41,161 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:18:42,167 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:18:42,174 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:18:42,233 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:18:42,322 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/59/dakota23123">dakota23123</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:18:42,351 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:18:58,818 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:18:58,823 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:18:58,868 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:18:58,904 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/59/dakota23123">dakota23123</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:18:58,933 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:19:31,220 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:19:31,227 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:19:31,276 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:19:31,325 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/59/dakota23123">dakota23123</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:19:31,357 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:19:47,838 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:19:47,844 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:19:47,888 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:19:47,924 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/59/dakota23123">dakota23123</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:19:56,427 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:19:56,431 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:19:56,470 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:19:56,507 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/59/dakota23123">dakota23123</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:21:36,253 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:21:36,259 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:21:36,298 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:21:36,332 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/59/dakota23123">dakota23123</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:21:57,519 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/80/mrdoornbos">mrdoornbos</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:21:57,526 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:21:57,562 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:22:42,769 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/80/mrdoornbos">mrdoornbos</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:22:42,812 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/80/mrdoornbos">mrdoornbos</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:22:42,838 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:22:42,854 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:26:12,553 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:26:12,561 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:26:12,598 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:26:12,631 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/59/dakota23123">dakota23123</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:26:24,559 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:26:24,565 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:26:24,601 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:26:24,647 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/59/dakota23123">dakota23123</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:26:37,028 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:26:37,032 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:26:37,072 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:26:37,105 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/59/dakota23123">dakota23123</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:30:41,901 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:30:41,907 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:30:41,943 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:30:41,974 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/59/dakota23123">dakota23123</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:30:57,607 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:30:57,612 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:30:57,650 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:30:57,681 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/59/dakota23123">dakota23123</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:40:58,191 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:40:58,200 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:40:58,247 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 02:40:58,298 MSG: user.py:get_profile_link:70 in get profile link <a href="/users/59/dakota23123">dakota23123</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 03:22:54,273 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 03:22:54,279 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 03:22:54,316 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 03:22:54,351 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/59/dakota23123">dakota23123</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 03:28:42,220 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/80/mrdoornbos">mrdoornbos</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 03:28:42,263 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/80/mrdoornbos">mrdoornbos</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 03:28:42,290 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 03:28:42,305 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 03:33:54,492 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/80/mrdoornbos">mrdoornbos</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 03:33:54,535 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/80/mrdoornbos">mrdoornbos</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 03:33:54,562 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 03:33:54,581 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 03:34:06,385 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/80/mrdoornbos">mrdoornbos</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 03:34:06,427 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/80/mrdoornbos">mrdoornbos</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 03:34:06,453 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 03:34:06,467 MSG: user.py:get_profile_link:69 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 22:22:20,042 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 22:22:20,130 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 22:22:20,161 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 22:22:29,338 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 22:22:29,380 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 22:22:29,413 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\badges\base.py TIME: 2010-04-05 22:22:35,892 MSG: base.py:award_badge:53 Trying to award badged already awarded.\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 22:22:44,153 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 22:22:44,194 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 22:22:44,223 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 22:23:19,838 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 22:23:19,898 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 22:23:19,980 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 22:26:57,058 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 22:26:57,101 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 22:26:57,141 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 22:28:24,075 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 22:28:24,115 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 22:28:24,187 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 22:29:22,367 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 22:29:22,407 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 22:29:22,437 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 22:31:13,588 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 22:31:13,641 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 22:31:13,677 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 22:34:15,536 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 22:34:15,578 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 22:34:15,611 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 22:35:24,561 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 22:35:24,601 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 22:35:24,641 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 22:35:41,591 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 22:35:41,632 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-05 22:35:41,670 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 01:31:35,196 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/52/alexlavr1">alexlavr1</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 02:12:17,667 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/80/mrdoornbos">mrdoornbos</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 02:12:17,683 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 02:12:33,750 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 02:12:33,798 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 02:12:33,812 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 02:12:33,828 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/60/quimey">quimey</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 02:12:48,118 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 02:12:48,164 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 02:12:48,180 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 02:12:48,197 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/60/quimey">quimey</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 02:58:38,700 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 02:58:38,700 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 02:58:38,716 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 02:58:38,732 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 02:58:38,855 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 02:58:38,871 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 02:58:38,934 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 02:58:38,950 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 02:58:38,966 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 02:58:38,980 MSG: user.py:get_profile_link:72 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 04:13:00,493 MSG: user.py:get_profile_link:76 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 04:14:23,828 MSG: user.py:get_profile_link:76 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 04:14:23,872 MSG: user.py:get_profile_link:76 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 04:14:23,918 MSG: user.py:get_profile_link:76 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 04:14:42,108 MSG: user.py:get_profile_link:76 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 04:14:42,155 MSG: user.py:get_profile_link:76 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 04:14:42,187 MSG: user.py:get_profile_link:76 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 04:17:58,029 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 04:17:58,075 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 04:17:58,121 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 04:19:48,997 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 04:19:49,059 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 04:19:49,107 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:20:00,638 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/56/adumlah">adumlah</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:20:00,670 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:20:00,700 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:20:00,700 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:20:48,624 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:20:48,640 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:20:48,671 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:20:48,701 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:21:32,210 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:21:32,210 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:21:32,256 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:21:32,303 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:21:55,989 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:21:55,994 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:21:56,032 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:21:56,095 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:22:58,119 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:22:58,134 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:22:58,181 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:22:58,229 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:23:57,131 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:23:57,131 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:23:57,178 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:24:38,930 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:24:38,944 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:24:38,992 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:25:24,055 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:25:24,055 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:25:24,102 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:26:50,763 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:26:50,763 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:26:50,825 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:27:05,147 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:27:05,224 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:27:05,286 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:27:05,334 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:27:21,042 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:27:21,121 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:27:21,198 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:27:21,246 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:28:15,907 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:28:15,986 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:28:16,049 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 06:28:16,111 MSG: user.py:get_profile_link:121 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:08:42,440 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/13/joseph">Joseph</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:08:42,539 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:08:42,631 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:08:52,124 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:08:52,132 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:08:52,141 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:08:52,150 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:08:52,160 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:08:52,168 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:08:52,178 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:08:52,187 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:08:52,196 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:08:52,267 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:35:09,858 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:35:09,907 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:35:09,951 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:36:27,326 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:36:27,431 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:36:27,487 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:37:04,316 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:37:04,450 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:37:04,507 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:38:53,651 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:38:53,698 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:38:53,756 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:41:36,269 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:41:36,315 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:41:36,361 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:41:52,588 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:41:52,635 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:41:52,678 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:41:52,700 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:44:36,937 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:44:36,990 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:44:37,132 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:44:37,158 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:44:55,884 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:44:55,937 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:44:55,993 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:44:56,019 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:44:56,048 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:46:55,933 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:46:55,992 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:46:56,046 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:46:56,072 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:46:56,099 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:47:36,970 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:47:37,019 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:47:37,062 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:47:37,082 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:47:37,102 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:47:37,124 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:49:10,122 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:49:10,174 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:49:10,217 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:49:10,237 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:49:10,259 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:49:10,279 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:50:02,049 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:50:02,148 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:50:02,216 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:50:02,240 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:50:02,285 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:50:02,316 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:52:02,042 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:52:02,095 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:52:02,137 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:52:02,158 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:52:02,178 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:52:02,200 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:53:21,081 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:53:21,127 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:53:21,168 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:53:21,190 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:53:21,210 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:53:21,230 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:58:02,154 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/56/adumlah">adumlah</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:58:02,207 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:58:02,239 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 07:58:02,246 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 08:00:06,237 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/56/adumlah">adumlah</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 08:00:06,286 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 08:00:06,318 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 08:00:06,323 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 09:17:37,213 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 09:17:37,220 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 09:17:37,338 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 09:17:37,634 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 09:52:21,381 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/56/adumlah">adumlah</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 09:52:21,438 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 09:52:21,470 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 09:52:21,476 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\views\commands.py TIME: 2010-04-06 09:54:22,802 MSG: commands.py:mark_tag:363 deleting tag localization\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 12:18:27,575 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 12:18:27,602 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 12:18:27,664 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 12:19:53,917 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/56/adumlah">adumlah</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 12:19:53,928 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 12:19:53,940 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 12:19:53,948 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 12:19:53,959 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 12:19:53,970 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 12:19:53,980 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 12:19:53,987 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 12:19:53,996 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 12:19:54,006 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 18:15:38,974 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 18:15:39,052 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 18:15:39,096 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 18:15:39,117 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 18:15:39,138 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-06 18:15:39,157 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 06:53:18,849 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/56/adumlah">adumlah</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 06:53:18,943 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 06:53:18,974 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 06:53:18,990 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 06:53:19,006 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 06:53:19,395 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 06:53:19,411 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 06:53:19,661 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 06:53:19,677 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 06:53:19,691 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 06:54:58,517 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 07:43:39,562 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 07:45:14,500 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 08:00:24,803 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 08:01:26,154 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 08:01:26,161 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 08:01:26,168 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 08:01:26,177 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 08:01:26,184 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/56/adumlah">adumlah</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 08:01:26,193 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 08:01:26,303 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 08:01:26,415 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 08:01:26,519 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 08:01:26,700 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 08:01:58,009 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 08:03:08,167 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 08:04:55,276 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 08:06:52,826 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 08:09:15,332 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 08:14:49,026 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 08:29:42,094 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 08:30:06,740 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 08:32:55,674 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 08:37:03,372 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 08:39:28,765 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 10:18:24,121 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 10:18:24,299 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 10:19:45,278 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 10:19:45,286 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 10:19:45,292 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 10:20:19,072 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 10:20:19,180 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 10:20:24,415 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 10:20:24,424 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 10:20:24,433 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 10:20:48,132 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 10:20:48,244 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 10:21:09,213 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 10:21:09,220 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 10:21:09,226 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 10:21:16,332 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 10:21:16,448 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 10:37:13,556 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 10:56:16,148 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 10:57:08,316 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 11:02:46,512 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 11:10:30,142 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 11:20:44,677 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 11:24:03,471 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 11:25:31,377 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 11:30:42,013 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 11:30:42,019 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 11:30:42,028 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 11:30:42,036 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 11:30:42,043 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 11:30:42,051 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 11:30:42,059 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 11:30:42,066 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 11:30:42,073 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 11:30:42,167 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 11:47:37,663 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 11:47:37,674 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 11:47:37,680 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 11:47:37,688 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 11:47:37,697 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 11:47:37,706 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 11:47:37,713 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 11:47:37,720 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 11:47:37,727 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 11:47:37,734 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 15:13:43,009 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 15:13:43,016 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 15:13:43,288 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 15:13:59,591 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 15:13:59,595 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 15:13:59,684 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 15:17:41,755 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 15:17:41,776 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 15:17:41,806 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 15:17:41,826 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 15:17:41,855 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 15:17:41,871 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 15:17:41,887 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 15:17:41,897 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 15:17:41,918 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 15:17:41,941 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 15:50:05,038 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 15:50:05,092 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 15:50:05,153 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 16:22:35,727 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 16:22:35,740 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 16:22:35,749 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 16:22:35,756 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 16:22:35,765 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 16:22:35,773 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 16:22:35,780 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 16:22:35,788 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 16:22:35,796 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-07 16:22:35,803 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 07:59:57,724 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/60/quimey">quimey</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 07:59:57,990 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 07:59:58,049 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/56/adumlah">adumlah</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 07:59:58,086 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\views\commands.py TIME: 2010-04-08 08:03:38,085 MSG: commands.py:mark_tag:363 deleting tag bug\r
-d:\osqa\dev\osqa\forum\views\commands.py TIME: 2010-04-08 08:14:24,385 MSG: commands.py:mark_tag:363 deleting tag bug\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 10:12:11,346 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/56/adumlah">adumlah</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 10:12:11,506 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 10:12:11,543 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 10:12:11,551 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 10:12:20,471 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 10:12:20,526 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 10:12:20,578 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 10:12:20,601 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 10:12:20,622 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 10:12:20,648 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 10:52:34,486 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 10:52:34,545 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 10:52:34,594 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 10:52:34,615 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 10:52:34,635 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 10:52:34,657 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 10:53:45,220 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 10:53:45,276 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 10:53:45,322 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 10:53:45,344 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 10:53:45,365 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 10:53:45,400 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 11:31:01,854 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 11:31:01,898 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 11:31:01,928 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 11:31:01,947 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 15:32:29,992 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/56/adumlah">adumlah</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 15:32:30,036 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 15:32:30,053 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 15:32:30,055 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 15:32:36,868 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 15:32:36,904 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 15:32:36,924 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 15:32:36,933 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 15:32:36,940 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 15:32:36,950 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 15:52:06,088 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 15:52:06,236 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 15:52:06,283 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 15:52:06,309 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 15:52:06,334 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 15:52:06,359 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 15:52:06,405 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 15:52:06,434 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 15:52:06,460 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 15:52:06,486 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 15:52:45,059 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/43/sorin">sorin</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 15:52:45,065 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/84/espennilsen">espennilsen</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 15:52:45,066 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 15:52:45,069 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 15:52:45,072 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 15:52:45,073 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 15:52:45,076 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 15:52:45,078 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 15:52:45,081 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-08 15:52:45,082 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 10:44:14,904 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/66/dealsvista_com">DealsVista_com</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 10:58:25,394 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 10:58:25,654 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/13/joseph">Joseph</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:03:27,150 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/22/nojo">nojo</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:03:27,154 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:03:27,193 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:36:00,869 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/22/nojo">nojo</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:36:00,878 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:36:00,933 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:36:21,516 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/28/tesyre">tesyre</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:36:21,522 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:36:21,559 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:36:21,585 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:36:21,588 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:36:21,627 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:37:11,069 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/28/tesyre">tesyre</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:37:11,073 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:37:11,111 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:37:11,137 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:37:11,138 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:37:11,177 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:37:23,997 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/28/tesyre">tesyre</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:37:24,003 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:37:24,045 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:37:24,071 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:37:24,072 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:37:24,114 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:37:31,058 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/28/tesyre">tesyre</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:37:31,062 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:37:31,101 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:37:31,130 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:37:31,131 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:37:31,170 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:37:36,878 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/28/tesyre">tesyre</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:37:36,884 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:37:36,941 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:37:36,947 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:37:36,994 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:37:37,010 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:37:51,305 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/28/tesyre">tesyre</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:37:51,311 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:37:51,348 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:37:51,375 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:37:51,378 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:37:51,417 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:39:06,976 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/28/tesyre">tesyre</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:39:06,982 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:39:07,019 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:39:07,046 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:39:07,046 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:39:07,085 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:39:14,346 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/28/tesyre">tesyre</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:39:14,351 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:39:14,391 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:39:14,417 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:39:14,417 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:39:14,457 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:39:27,365 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/28/tesyre">tesyre</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:39:27,371 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:39:27,411 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:39:27,438 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:39:27,440 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:39:27,480 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:39:35,733 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/28/tesyre">tesyre</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:39:35,739 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:39:35,776 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:39:35,782 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:39:35,828 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:39:35,844 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:39:45,831 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/28/tesyre">tesyre</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:39:45,838 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:39:45,875 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:39:45,881 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:39:45,927 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-09 11:39:45,943 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-10 12:39:21,749 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/3/rickross">rickross</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-10 12:39:21,842 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/13/joseph">Joseph</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-10 12:39:22,170 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/4/evgeny-fadeev">Evgeny Fadeev</a>\r
-d:\osqa\dev\osqa\forum\models\user.py TIME: 2010-04-10 12:39:22,186 MSG: user.py:get_profile_link:126 in get profile link <a href="/users/10/hernani-cerqueira">Hernani Cerqueira</a>\r
+++ /dev/null
-#!/usr/bin/env python
-from django.core.management import execute_manager
-try:
- import settings # Assumed to be in the same directory.
-except ImportError, e:
- import traceback
- traceback.print_exc()
- import sys
- sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__)
- sys.exit(1)
-
-if __name__ == "__main__":
- execute_manager(settings)
+++ /dev/null
-django>=1.1 # Note: email subscription sender job requires Django 1.1, everything else works with 1.0
-python-openid
-html5lib
-markdown2
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>\r
-<module type="PYTHON_MODULE" version="4">\r
- <component name="FacetManager">\r
- <facet type="django" name="Django">\r
- <configuration>\r
- <option name="rootFolder" value="$MODULE_DIR$" />\r
- <option name="templatesFolder" value="" />\r
- <option name="settingsModule" value="osqa" />\r
- </configuration>\r
- </facet>\r
- </component>\r
- <component name="NewModuleRootManager">\r
- <content url="file://$MODULE_DIR$" />\r
- <orderEntry type="inheritedJdk" />\r
- <orderEntry type="sourceFolder" forTests="false" />\r
- </component>\r
-</module>\r
-\r
+++ /dev/null
-import os
-import sys
-sys.path.append('/path/to_dir_above')
-sys.path.append('/path/to_dir_above/osqa')
-os.environ['DJANGO_SETTINGS_MODULE'] = 'osqa.settings'
-import django.core.handlers.wsgi
-application = django.core.handlers.wsgi.WSGIHandler()
+++ /dev/null
-Exception:\r
-Traceback (most recent call last):\r
- File "d:\env\lib\site-packages\pip-0.6.3-py2.6.egg\pip\basecommand.py", line 115, in main\r
- self.run(options, args)\r
- File "d:\env\lib\site-packages\pip-0.6.3-py2.6.egg\pip\commands\install.py", line 153, in run\r
- for req in parse_requirements(filename, finder=finder, options=options):\r
- File "d:\env\lib\site-packages\pip-0.6.3-py2.6.egg\pip\req.py", line 1274, in parse_requirements\r
- filename, content = get_file_content(filename, comes_from=comes_from)\r
- File "d:\env\lib\site-packages\pip-0.6.3-py2.6.egg\pip\util.py", line 300, in get_file_content\r
- f = open(url)\r
-IOError: [Errno 2] No such file or directory: 'osqa_requirements.txt'\r
+++ /dev/null
-rm `find . -name '*.pyc'`
+++ /dev/null
-# encoding:utf-8
-# Django settings for lanai project.
-import os.path
-import sys
-
-SITE_ID = 1
-
-ADMIN_MEDIA_PREFIX = '/admin_media/'
-SECRET_KEY = '$oo^&_m&qwbib=(_4m_n*zn-d=g#s0he5fx9xonnym#8p6yigm'
-# List of callables that know how to import templates from various sources.
-TEMPLATE_LOADERS = (
- 'django.template.loaders.filesystem.load_template_source',
- 'django.template.loaders.app_directories.load_template_source',
- 'forum.modules.module_templates_loader',
- 'forum.skins.load_template_source',
-# 'django.template.loaders.eggs.load_template_source',
-)
-
-MIDDLEWARE_CLASSES = [
- #'django.middleware.gzip.GZipMiddleware',
- 'django.contrib.sessions.middleware.SessionMiddleware',
- #'django.middleware.locale.LocaleMiddleware',
- #'django.middleware.cache.UpdateCacheMiddleware',
- 'django.middleware.common.CommonMiddleware',
- #'django.middleware.cache.FetchFromCacheMiddleware',
- 'forum.middleware.extended_user.ExtendedUser',
- #'django.middleware.sqlprint.SqlPrintingMiddleware',
- 'forum.middleware.anon_user.ConnectToSessionMessagesMiddleware',
- 'forum.middleware.request_utils.RequestUtils',
- 'forum.middleware.cancel.CancelActionMiddleware',
- #'recaptcha_django.middleware.ReCaptchaMiddleware',
- 'django.middleware.transaction.TransactionMiddleware',
-]
-
-TEMPLATE_CONTEXT_PROCESSORS = (
- 'django.core.context_processors.request',
- 'forum.context.application_settings',
- #'django.core.context_processors.i18n',
- 'forum.user_messages.context_processors.user_messages',#must be before auth
- 'django.core.context_processors.auth', #this is required for admin
-)
-
-ROOT_URLCONF = 'urls'
-
-TEMPLATE_DIRS = (
- os.path.join(os.path.dirname(__file__),'forum','skins').replace('\\','/'),
-)
-
-#UPLOAD SETTINGS
-FILE_UPLOAD_TEMP_DIR = os.path.join(os.path.dirname(__file__), 'tmp').replace('\\','/')
-FILE_UPLOAD_HANDLERS = ("django.core.files.uploadhandler.MemoryFileUploadHandler",
- "django.core.files.uploadhandler.TemporaryFileUploadHandler",)
-DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
-# for user upload
-ALLOW_FILE_TYPES = ('.jpg', '.jpeg', '.gif', '.bmp', '.png', '.tiff')
-# unit byte
-ALLOW_MAX_FILE_SIZE = 1024 * 1024
-
-# User settings
-from settings_local import *
-
-INSTALLED_APPS = [
- 'django.contrib.auth',
- 'django.contrib.contenttypes',
- 'django.contrib.sessions',
- 'django.contrib.sites',
- 'django.contrib.admin',
- 'django.contrib.humanize',
- 'django.contrib.sitemaps',
- #'django.contrib.markup',
- 'forum',
-]
-
-if DEBUG:
- try:
- import debug_toolbar
- MIDDLEWARE_CLASSES.append('debug_toolbar.middleware.DebugToolbarMiddleware')
- INSTALLED_APPS.append('debug_toolbar')
- except:
- pass
-
-try:
- import south
- INSTALLED_APPS.append('south')
-except:
- pass
-
-AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.ModelBackend',]
+++ /dev/null
-# encoding:utf-8
-import os.path
-from django.utils.translation import ugettext as _
-
-def check_local_setting(name, value):
- local_vars = locals()
- if name in local_vars and local_vars[name] == value:
- return True
- else:
- return False
-
-SITE_SRC_ROOT = os.path.dirname(__file__)
-LOG_FILENAME = 'django.osqa.log'
-
-#for logging
-import logging
-logging.basicConfig(
- filename=os.path.join(SITE_SRC_ROOT, 'log', LOG_FILENAME),
- level=logging.DEBUG,
- format='%(pathname)s TIME: %(asctime)s MSG: %(filename)s:%(funcName)s:%(lineno)d %(message)s',
-)
-
-#ADMINS and MANAGERS
-ADMINS = (('Forum Admin', 'forum@example.com'),)
-MANAGERS = ADMINS
-
-DEBUG = True
-DEBUG_TOOLBAR_CONFIG = {
- 'INTERCEPT_REDIRECTS': True
-}
-TEMPLATE_DEBUG = DEBUG
-INTERNAL_IPS = ('127.0.0.1',)
-
-DATABASE_NAME = '' # Or path to database file if using sqlite3.
-DATABASE_USER = '' # Not used with sqlite3.
-DATABASE_PASSWORD = '' # Not used with sqlite3.
-DATABASE_ENGINE = '' #mysql, etc
-DATABASE_HOST = ''
-DATABASE_PORT = ''
-
-#CACHE_BACKEND = 'file://%s' % os.path.join(os.path.dirname(__file__),'cache').replace('\\','/')
-CACHE_BACKEND = 'dummy://'
-#SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
-
-APP_URL = 'http://' #used by email notif system and RSS
-
-#LOCALIZATIONS
-TIME_ZONE = 'America/New_York'
-
-###########################
-#
-# this will allow running your forum with url like http://site.com/forum
-#
-# FORUM_SCRIPT_ALIAS = 'forum/'
-#
-FORUM_SCRIPT_ALIAS = '' #no leading slash, default = '' empty string
-
-
-#OTHER SETTINGS
-
-USE_I18N = True
-LANGUAGE_CODE = 'en'
-EMAIL_VALIDATION = 'off' #string - on|off
-MIN_USERNAME_LENGTH = 1
-EMAIL_UNIQUE = False
-
-WIKI_ON = True
-FEEDBACK_SITE_URL = None #None or url
-EDITABLE_SCREEN_NAME = False #True or False - can user change screen name?
-
-DJANGO_VERSION = 1.1
-RESOURCE_REVISION=4
-
-OSQA_DEFAULT_SKIN = 'default'
-
-DISABLED_MODULES = ['books', 'recaptcha', 'project_badges']
-
-from forum.settings import *
\ No newline at end of file
+++ /dev/null
-from django.conf.urls.defaults import *
-from django.utils.translation import ugettext as _
-from django.conf import settings
-
-urlpatterns = patterns('',
- (r'^%s' % settings.FORUM_SCRIPT_ALIAS, include('forum.urls')),
-)
-