This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AllowPUTAsCreateMixin(object): | |
""" | |
The following mixin class may be used in order to support PUT-as-create | |
behavior for incoming requests. | |
""" | |
def update(self, request, *args, **kwargs): | |
partial = kwargs.pop('partial', False) | |
instance = self.get_object_or_none() | |
serializer = self.get_serializer(instance, data=request.data, partial=partial) | |
serializer.is_valid(raise_exception=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// CLLocation+rhextensions.h | |
// | |
// Copyright (C) 2015 by Christopher Meyer | |
// http://schwiiz.org/ | |
// | |
// 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
$(function($) { | |
$('.rhSingleClickLogout').click(function() { | |
var onClickStr = $('#ToolsGlobalMenu a[onclick*="ll.DoLogout"]').attr('onclick') + "; onclick();"; | |
eval( onClickStr ); | |
}); | |
}); | |
</script> | |
<a href="#" class="rhSingleClickLogout">Logout Now</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Christopher Meyer [email protected] | |
* Copyright 2014 Red House Consulting GmbH | |
* | |
* Version: 1.3 | |
*/ | |
function Dynamic super(Object item, String func) | |
switch GetMethodType(item, func) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* beautify_oscript.lxe - A code beautifier for OpenText Content Server OScript | |
* | |
* This script will beautify your OScript. Copy to a file within opentext/scripts/ | |
* (e.g., opentext/scripts/beautify_oscript.lxe), restart Builder, place the focus on a | |
* script window, and run from the Tools menu. | |
* | |
* Some coding conventions assumed. Use at your own risk. | |
* | |
* Christopher Meyer ([email protected]) |