Skip to content

Instantly share code, notes, and snippets.

Index: appengine_django/auth/middleware.py
===================================================================
--- appengine_django/auth/middleware.py (revision 100)
+++ appengine_django/auth/middleware.py (working copy)
@@ -12,8 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-from django.contrib.auth.models import AnonymousUser
-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Test</title>
<!-- Combo-handled YUI CSS files: -->
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/combo?2.8.0r4/build/button/assets/skins/sam/button.css&2.8.0r4/build/datatable/assets/skins/sam/datatable.css">
<!-- Combo-handled YUI JS files: -->
<script type="text/javascript" src="http://yui.yahooapis.com/combo?2.8.0r4/build/yahoo-dom-event/yahoo-dom-event.js&2.8.0r4/build/element/element-min.js&2.8.0r4/build/button/button-min.js&2.8.0r4/build/datasource/datasource-min.js&2.8.0r4/build/datatable/datatable-min.js"></script>
</head>
<body class="yui-skin-sam">
<!DOCTYPE html>
<html>
<head>
<title>Test Media</title>
<script type="text/javascript" src="http://yui.yahooapis.com/combo?3.1.0pr5/build/yui/yui-min.js"></script>
</head>
<body>
<video width="640" height="480" controls autoplay>
<source type="video/mp4" src="video.mp4">
<source type="video/ogg" src="video.ogg">
package
{
import flash.display.Sprite;
import flash.events.*;
import org.osmf.media.*;
import org.osmf.layout.LayoutMetadata;
import org.osmf.containers.MediaContainer;
public class MyVideoPlayer extends Sprite
YUI.use(function (Y) {
var a = [
{id : 1, label : "foo", value : "bar"},
{id : 2, label : "baz", value : "boo"}
], data;
Y.Array.each(a, function (val, index, arr) {
if (!data) {
data = Y.Object(val);
} else {
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<script type="text/javascript" src="http://yui.yahooapis.com/combo?3.1.1/build/yui/yui-min.js"></script></head>
<title>Test</title>
<body>
<div>
<h1>Testing loading Scripts</h1>
</div>
<script type="text/javascript">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<script type="text/javascript" src="http://yui.yahooapis.com/combo?3.1.1/build/yui/yui-min.js"></script>
<title>Test</title>
</head>
<body>
<div>
<h1>Testing</h1>
</div>
YUI.add('root-cls', function (Y) {
// Have to add the method name to be aggregated down the inheritance chain
Y.Base._buildCfg.aggregates.push('getClassAttrs');
Y.rootClass = Y.Base.create('root-class', Y.Base, [], {
someInstanceMethod : function () {}
}, {
ATTRS : {
test : {
validator : Y.Lang.isBoolean
YUI.add('root-cls', function (Y) {
Y.Base._buildCfg.aggregates.push('getClassAttrs');
Y.rootClass = Y.Base.create('root-class', Y.Base, [], {
someInstanceMethod : function () {}
}, {
ATTRS : {
test : {
validator : Y.Lang.isBoolean
}
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>untitled</title>
<script type="text/javascript" src="http://yui.yahooapis.com/combo?3.1.1/build/yui/yui-min.js"></script>
</head>
<body>
<div id="widget1">Widget 1</div>